/*
Theme Name: Mitra Gembul App Theme
Theme URI: http://wa.me/6289676444807
Author: Adhi Sukmawan
Author URI: http://wa.me/6289676444807
Description: A custom theme for Mitra Gembul App.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mitra-gembul-app-theme
*/

/* ================================================================
   1. DASAR APLIKASI (FONT, WARNA, LAYOUT)
   ================================================================ */
:root {
    --primary-color: #FF5722; /* Oranye Khas Donat */
    --primary-dark: #E64A19;
    --secondary-color: #03A9F4; /* Biru untuk Info */
    --text-color: #333333;
    --text-light: #757575;
    --background-color: #F4F6F8; /* Abu-abu muda lembut */
    --surface-color: #FFFFFF;
    --border-color: #E0E0E0;
}

body.page-template-template-app, 
body.landing-page-layout, 
body.single-landing_page,
body.single-produk_gembul,
body.page-slug-login-mitra-pekerja,
body.page-slug-pendaftaran-mitra,
body.page-template-default { /* Menargetkan semua halaman aplikasi kita */
    background-color: var(--background-color);
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    padding-bottom: 64px; 
}
#app-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--surface-color);
    min-height: 100vh;
}
.app-header {
    background-color: var(--surface-color);
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0;
    z-index: 1000;
}
.app-header h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}
#app-content {
    padding: 16px;
}

/* ================================================================
   2. ATURAN GLOBAL UNTUK SEMUA FORM & TOMBOL (PERBAIKAN UTAMA)
   ================================================================ */
/* Menargetkan SEMUA form di dalam aplikasi */
.worker-form, .login-card form, .register-card form {
    width: 100%;
}
/* Menargetkan SEMUA label */
.worker-form label, .login-card label {
    display: block;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 14px;
}
/* Menargetkan SEMUA input field, select, dan textarea */
.worker-form input[type="text"], .worker-form input[type="email"],
.worker-form input[type="password"], .worker-form input[type="number"],
.worker-form input[type="date"], .worker-form input[type="time"],
.worker-form select, .worker-form textarea,
#loginform input[type="text"], #loginform input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 5px;
    margin-bottom: 15px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    box-sizing: border-box;
    height: auto;
    line-height: normal;
}
/* Menargetkan SEMUA tombol submit utama */
.worker-form input[type="submit"], #loginform input[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    margin: 15px 0 0 0;
    height: auto;
    font-weight: 600;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.worker-form input[type="submit"]:hover, #loginform input[type="submit"]:hover {
    background-color: var(--primary-dark);
}
/* Link di bawah form login/register */
.login-register-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
/* Notifikasi sukses/error */
.registration-success, .registration-error {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid;
}
.registration-success { background-color: #dcfce7; border-color: #4ade80; color: #15803d; }
.registration-error { background-color: #fee2e2; border-color: #f87171; color: #b91c1c; }

/* ================================================================
   3. KARTU (CARD) & JUDUL KONTEN
   ================================================================ */
.app-content h3, .app-content-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    margin: 24px 0 12px 0;
    letter-spacing: 0.5px;
}
.app-content h3:first-child { margin-top: 0; }
.card {
    background-color: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* ================================================================
   4. TABEL & FORM YANG LEBIH BAIK
   ================================================================ */
.mitra-gembul-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: 14px;
}
.mitra-gembul-table td, 
.mitra-gembul-table th {
    padding: 12px 4px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.mitra-gembul-table thead th {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom-width: 2px;
}
.mitra-gembul-table tbody tr:last-child td {
    border-bottom: none;
}
/* Selector Universal untuk semua Input */
.worker-form input[type="text"], .worker-form input[type="email"],
.worker-form input[type="password"], .worker-form input[type="number"],
.worker-form input[type="date"], .worker-form input[type="time"],
.worker-form select, .worker-form textarea, .wp-editor-wrap {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 5px;
    margin-bottom: 15px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    box-sizing: border-box;
    resize: vertical;
}


/* ================================================================
   5. NAVIGASI BAWAH & NAVIGASI PEKERJA
   ================================================================ */
body.page-template-template-app .app-bottom-nav {
    display: flex;
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    max-width: 600px;
    margin: 0 auto;
    height: 60px;
    z-index: 1000;
}
body.page-template-template-app .app-bottom-nav .nav-item {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; color: var(--text-light); text-decoration: none;
    flex-grow: 1; padding: 5px 0;
}
body.page-template-template-app .app-bottom-nav .nav-item .nav-icon { font-size: 22px; }
body.page-template-template-app .app-bottom-nav .nav-item .nav-text { font-size: 11px; margin-top: 4px; }

body.page-template-template-app .worker-nav {
    display: flex;
    border-radius: 12px;
    background-color: var(--background-color);
    margin-bottom: 16px;
    overflow: hidden;
}
body.page-template-template-app .worker-nav a {
    flex-grow: 1; text-align: center; padding: 12px 10px; text-decoration: none;
    color: var(--text-light); font-weight: 600; font-size: 14px;
    border-bottom: 3px solid transparent;
}
body.page-template-template-app .worker-nav a.active {
    color: var(--primary-color);
    background-color: var(--surface-color);
}

/* ================================================================
   MODIFIKASI FINAL UI/UX DASBOR PEKERJA
   ================================================================ */

/* 1. Tombol Aksi di Dasbor Pekerja (Kelola, Sunting) */
.button-edit {
    display: inline-block;
    background-color: var(--surface-color);
    color: var(--primary-color) !important;
    padding: 8px 16px;
    border-radius: 20px; /* Membuatnya seperti "pill" */
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}
.button-edit:hover {
    background-color: var(--primary-color);
    color: #fff !important;
    border-color: var(--primary-color);
}

/* 2. Tombol "Tambah Produk Baru" */
.button-add-new {
    display: flex;
    align-items: center;
    gap: 8px; /* Jarak antara ikon dan teks */
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}
.button-add-new:hover {
    background-color: var(--primary-dark);
}

/* 3. Header Konten & Tombol Kembali di Dasbor Pekerja */
.app-content-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    /* Hapus dari card agar bisa menempel di atas */
    background-color: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}
.app-content-header h3 {
    margin: 0;
    border: none;
    flex-grow: 1;
    text-align: center;
}
.back-button {
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-color);
    line-height: 1;
}

/* 4. Tombol Upload File Modern */
.file-upload-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}
.file-upload-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--background-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}
.file-upload-button:hover {
    background-color: #e8e8e8;
}
.file-upload-button .icon {
    font-size: 20px;
}
/* Sembunyikan input file asli */
.file-upload-wrapper input[type="file"] {
    display: none;
}
/* Teks nama file */
.file-upload-wrapper .file-name {
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

/* Styling untuk Halaman Konfirmasi Sukses */
.konfirmasi-sukses {
    text-align: center;
}
.konfirmasi-sukses .icon-sukses {
    display: inline-block;
    font-size: 48px;
    line-height: 80px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #22c55e;
    color: white;
    margin-bottom: 20px;
}
.konfirmasi-sukses h3 {
    border-bottom: none;
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}
.konfirmasi-sukses p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}
.order-timeline {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}
.order-timeline li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #aaa;
}
.order-timeline li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: 3px solid var(--background-color);
}
.order-timeline li.completed {
    color: var(--text-color);
}
.order-timeline li.completed::before {
    background-color: #22c55e;
}
.order-timeline li.active {
    color: var(--text-color);
    font-weight: bold;
}
.order-timeline li.active::before {
    background-color: var(--primary-color);
}
.button-kembali {
    display: inline-block;
    width: auto;
    background-color: var(--background-color);
    color: var(--text-color) !important;
    border: 1px solid var(--border-color);
    margin-top: 20px;
    padding: 12px 24px;
}
.button-kembali:hover {
    background-color: #e8e8e8;
}

/* ================================================================
   STYLING UNTUK NAVIGASI TAB PORTAL MITRA
   ================================================================ */

.portal-tabs {
    display: flex;
    overflow-x: auto; /* Memungkinkan scroll horizontal di mobile */
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    margin: -15px -15px 20px -15px; /* Menempel ke tepi card */
    padding: 0 10px;

    /* Sembunyikan scrollbar */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.portal-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.portal-tabs a {
    flex-shrink: 0; /* Mencegah tab menyusut */
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 15px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

.portal-tabs a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.portal-tabs a:hover {
    background-color: var(--background-color);
}

.tab-content {
    animation: fadeIn 0.5s; /* Animasi fade-in halus */
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Styling untuk Form Login & Pendaftaran */
.login-card, .register-card {
    margin-top: 50px;
}
.login-card .login-form label,
.register-card .worker-form label {
    display: block;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 5px;
}
.login-card .login-form input[type="text"],
.login-card .login-form input[type="password"] {
     width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}
.login-card .login-submit input {
    margin-top: 20px;
}
.login-register-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.registration-error {
    background-color: #ffebe6;
    border: 1px solid #c00;
    color: #c00;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* ================================================================
   STYLING UNTUK DASBOR RINGKASAN (KARTU GRID)
   ================================================================ */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolom */
    gap: 16px; /* Jarak antar kartu */
}

.summary-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.summary-card h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    text-transform: none; /* Tidak uppercase */
    border: none;
    padding: 0;
}

.summary-card .number {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
}

/* ================================================================
   STYLING KHUSUS UNTUK LANDING PAGE MITRA
   ================================================================ */
body.page-template-template-landingpage {
    padding-bottom: 0; /* Hapus padding bawah khusus untuk landing page */
}

.landing-section {
    padding: 50px 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

/* Hero Section */
.hero-section {
    background: var(--primary-color);
    background: linear-gradient(145deg, #FF5722, #FF8A65);
    color: white;
    padding: 60px 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}
.hero-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}
.cta-button {
    background-color: white;
    color: var(--primary-color) !important;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    display: inline-block;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Feature & USP List */
.feature-list {
    list-style: none; padding: 0; text-align: left;
    max-width: 400px; margin: 30px auto;
}
.feature-list li {
    font-size: 16px; margin-bottom: 15px;
    padding-left: 35px; position: relative;
    font-weight: 500;
}
.feature-list li span { position: absolute; left: 0; font-size: 20px; }

.usp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}
.usp-item .usp-icon { font-size: 40px; }
.usp-item .usp-title { font-size: 16px; font-weight: 600; margin: 10px 0 5px 0; }
.usp-item .usp-text { font-size: 14px; color: var(--text-light); line-height: 1.5; }
.solution-section { background-color: var(--background-color); }

/* Profit Simulation */
.profit-section { background-color: #2c3e50; color: white; }
.profit-section .section-title { color: white; }
.profit-card {
    background-color: rgba(255,255,255, 0.1);
    border-radius: 12px; padding: 25px; margin-top: 20px;
}
.profit-card p { margin: 0 0 5px 0; opacity: 0.8; }
.profit-card .profit-amount { font-size: 28px; font-weight: 700; color: #FFC107; }
.profit-card .profit-period { font-size: 16px; opacity: 0.8; }
.profit-card hr { border: none; height: 1px; background-color: rgba(255,255,255, 0.2); margin: 20px 0; }

/* Final CTA */
.final-cta-section { background-color: var(--background-color); }

/* ================================================================
   UPDATE FONT & STYLING LANDING PAGE
   ================================================================ */
body.page-template-template-app, body.landing-page-layout {
    font-family: 'Poppins', sans-serif;
}
/* Anda bisa menghapus referensi ke font Inter atau -apple-system jika ada */

/* ================================================================
   STYLING UNTUK PRODUCT SLIDER (SWIPERJS)
   ================================================================ */
.product-slider {
    width: 100%;
    padding: 10px 0 40px 0; /* Ruang untuk pagination */
}
.product-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.product-card img {
    display: block;
    width: 100%;
    height: auto;
}
.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
}
.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color) !important;
}

/* ================================================================
   STYLING UNTUK GALERI PRODUK SLIDER (VERSI PERBAIKAN)
   ================================================================ */
.product-slider-section {
    padding: 40px 0;
    background-color: var(--background-color);
}

.app-style-slider {
    width: 100%; /* Biarkan lebar penuh agar bisa di-swipe dari ujung ke ujung */
    margin: 0 auto;
    padding-bottom: 50px;
    
    /* PERBAIKAN KUNCI 1: Mencegah scroll horizontal halaman */
    overflow: hidden; 
    position: relative;
}

.app-style-slider .swiper-slide {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.app-style-slider .swiper-slide-active {
    transform: scale(1.05); /* Sedikit memperbesar slide yang aktif di tengah */
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1; /* Membuat semua gambar persegi */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-style-slider .swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
}

.app-style-slider .swiper-button-next,
.app-style-slider .swiper-button-prev {
    color: var(--primary-color) !important;
    --swiper-navigation-size: 30px; /* Perkecil ukuran panah */
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    backdrop-filter: blur(4px);
}

/* Styling untuk Fitur Baru Dasbor Pekerja */
.partner-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.partner-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.whatsapp-button {
    background-color: #25D366;
    color: white !important;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}
.whatsapp-button:hover {
    background-color: #128C7E;
}

/* Styling untuk Kartu Pesanan di Dasbor Pekerja */
.order-card {
    padding: 0;
    overflow: hidden; /* Penting untuk border-radius */
}
.order-card-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 15px;
}
.order-card-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.order-card-info strong {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
}
.order-card-info small {
    font-size: 13px;
    color: var(--text-light);
}
.order-card-status {
    flex-shrink: 0;
}

/* Kotak Info Pelanggan Publik */
.order-card-guest-details {
    padding: 0 15px 15px 15px;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
    padding-top: 15px;
}
.order-card-guest-details p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}
.order-card-guest-details p strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Tombol Aksi */
.order-card-action {
    background-color: #f6f7f7;
    padding: 10px 15px;
    border-top: 1px solid var(--border-color);
}
.button-edit.full-width {
    width: 100%;
    text-align: center;
}

/* Styling untuk Detail Alamat di Kartu Partner */
.partner-card-detailed {
    align-items: flex-start; /* Ubah alignment agar tombol chat tetap di atas */
}
.partner-address {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}
.partner-address p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-light);
}
.partner-address p strong {
    color: var(--text-color);
    font-size: 13px;
}

/* Styling untuk Pusat Aset Digital */
.asset-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.asset-item { position: relative; display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.asset-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.asset-item:hover img { transform: scale(1.05); }
.asset-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: white; padding: 20px 10px 10px 10px; text-align: center; font-weight: 600; opacity: 0; transition: opacity 0.3s ease; }
.asset-item:hover .asset-overlay { opacity: 1; }
.copywriting-box { background-color: #2d2d2d; color: #f8f8f8; padding: 20px; border-radius: 8px; text-align: left; white-space: pre-wrap; word-wrap: break-word; }
.copywriting-box code { font-family: monospace; font-size: 14px; }

/* ================================================================
   PERBAIKAN BUG SCROLL HORIZONTAL
   ================================================================ */

/* * Terapkan ini ke body layout aplikasi untuk memastikan tidak ada 
 * elemen yang bisa "mendorong" halaman ke samping.
*/
body.page-template-template-app, body.landing-page-layout {
    overflow-x: hidden;
}

/* ================================================================
   PERBAIKAN & PENYEMPURNAAN BLOK COPYWRITING
   ================================================================ */

/* 1. Perbaikan Teks Memanjang (Bug Fix) */
.copywriting-box pre {
    white-space: pre-wrap;       /* Membuat teks otomatis pindah baris */
    word-break: break-word;      /* Memaksa teks yang sangat panjang untuk patah */
    margin: 0;
}

/* 2. Styling untuk Header & Tombol Salin (Enhancement) */
.copywriting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.copywriting-header .section-title {
    margin-bottom: 0;
}
.copy-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--background-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.copy-button:hover {
    background-color: #e8e8e8;
    border-color: #aaa;
}
.copy-button .icon {
    font-size: 16px;
}

/* ================================================================
   STYLING UNTUK PAPAN PERINGKAT (LEADERBOARD)
   ================================================================ */
.leaderboard-container {
    display: grid;
    grid-template-columns: 1fr; /* 1 kolom di mobile */
    gap: 20px;
    margin-top: 20px;
}

/* Tampilan 2 kolom di layar lebih besar */
@media (min-width: 768px) {
    .leaderboard-container {
        grid-template-columns: 1fr 1fr;
    }
}

.leaderboard-table td, .leaderboard-table th {
    padding: 12px 8px;
}

/* Menyorot baris partner yang sedang login */
.leaderboard-table tr.highlight-me {
    background-color: #fff9e6 !important; /* Kuning muda */
    font-weight: bold;
}
.leaderboard-table tr.highlight-me td {
    color: #b45309; /* Oranye tua */
}

/* ================================================================
   STYLING UNTUK SISTEM RATING & ULASAN
   ================================================================ */

/* Form Input Bintang */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse; /* Balik urutan agar bintang terisi dari kanan ke kiri */
    justify-content: flex-end;
    margin-bottom: 20px;
}
.star-rating-input input[type=radio] { display: none; }
.star-rating-input label {
    font-size: 30px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}
.star-rating-input input[type=radio]:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #ffc700;
}

/* Ringkasan Rating */
.testimonial-summary {
    display: flex;
    align-items: center;
    gap: 30px;
}
.summary-left { text-align: center; flex-shrink: 0; }
.average-rating-number { font-size: 48px; font-weight: bold; line-height: 1; }
.total-reviews { font-size: 14px; color: var(--text-light); }

.summary-right { width: 100%; }
.rating-bar-group { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.star-label { font-size: 12px; color: var(--text-light); flex-basis: 40px; }
.rating-bar { flex-grow: 1; height: 8px; background-color: #e0e0e0; border-radius: 4px; }
.rating-bar-filled { height: 100%; background-color: #ffc700; border-radius: 4px; }
.star-count { font-size: 12px; color: var(--text-light); flex-basis: 20px; text-align: right; }

/* Tampilan Bintang (Display Only) */
.star-rating-display { color: #ffc700; }

/* Kartu Testimoni Individual */
.testimonials-grid { margin-top: 30px; }
.testimonial-card {
    padding: 20px;
    border-top: 4px solid var(--primary-color);
}
.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.testimonial-author { font-weight: bold; font-size: 16px; }
.testimonial-content { color: var(--text-light); line-height: 1.6; }

/* ================================================================
   STYLING UNTUK NAVIGASI TESTIMONI
   ================================================================ */
.testimonial-nav {
    margin-top: 30px;
    text-align: center;
}

.button-secondary {
    display: inline-block;
    background-color: var(--surface-color);
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}
.button-secondary:hover {
    background-color: var(--primary-color);
    color: white !important;
}

/* Styling untuk Paginasi WordPress */
.testimonial-nav .page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.testimonial-nav .page-numbers li {
    margin: 0;
}
.testimonial-nav .page-numbers a,
.testimonial-nav .page-numbers span {
    display: block;
    padding: 10px 15px;
    background: #f0f2f5;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
}
.testimonial-nav .page-numbers a:hover {
    background-color: #e0e0e0;
}
.testimonial-nav .page-numbers .current {
    background-color: var(--primary-color);
    color: white;
}

/* Styling untuk Blok Homepage Baru */
.usp-grid-3 {
    display: grid;
    grid-template-columns: 1fr; /* 1 kolom di mobile */
    gap: 20px;
    margin-top: 40px;
}
@media (min-width: 768px) {
    .usp-grid-3 {
        grid-template-columns: repeat(3, 1fr); /* 3 kolom di layar lebih besar */
    }
}

/* ================================================================
   STYLING UNTUK HALAMAN DAFTAR PARTNER PUBLIK (DENGAN PERBAIKAN)
   ================================================================ */
.search-card {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 0 20px 0;
}
.search-card h3 {
    border: none; text-align: center; font-size: 18px; margin-bottom: 15px;
}
.search-card form {
    display: flex;
    gap: 10px;
    align-items: stretch; /* Memaksa elemen memiliki tinggi yang sama */
}
.search-card input[type="text"] {
    flex-grow: 1;
    margin: 0;
    padding: 14px 16px;
    font-size: 16px;
    height: auto;
    line-height: normal;
    background-color: #fff;
    border: 1px solid var(--border-color);
}
.search-card input[type="submit"] {
    flex-shrink: 0;
    width: auto;
    padding: 14px 24px;
    font-size: 16px;
    margin: 0;
    height: auto;
    text-transform: none;
    font-weight: 600;
}

/* Styling untuk Header Logo */
.site-logo { text-align: center; }
.site-logo .custom-logo { max-height: 40px; width: auto; }

/* Styling untuk Keunggulan Slider */
.keunggulan-slider .usp-item {
    background-color: var(--surface-color);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    height: 100%; /* Agar tinggi kartu sama */
}

/* Styling untuk Cara Pesan */
.steps-section { counter-reset: steps-counter; }
.step-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
}
.step-item::before {
    content: counter(steps-counter);
    counter-increment: steps-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styling untuk Halaman Beranda Baru */
.homepage-header {
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}
.homepage-header .site-logo .custom-logo {
    max-height: 40px;
    width: auto;
}
.keunggulan-slider .usp-item.card {
    height: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.steps-section .step-item {
    background: var(--surface-color);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    text-align: left;
    position: relative;
    padding-left: 50px;
}
.steps-section .step-item::before {
    counter-increment: steps-counter;
    content: counter(steps-counter);
    position: absolute; left: 15px; top: 20px;
    width: 25px; height: 25px;
    background-color: var(--primary-color); color: white;
    border-radius: 50%; font-weight: bold;
    display: flex; align-items: center; justify-content: center;
}
.homepage-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 20px;
    text-align: center;
}
.homepage-footer .social-icons a {
    color: white; margin: 0 10px; text-decoration: none; font-weight: bold;
}
.homepage-footer .contact-info {
    margin: 20px 0;
    line-height: 1.6;
    opacity: 0.8;
}
.homepage-footer .footer-nav {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}
.homepage-footer .footer-nav a {
    color: white; opacity: 0.8; margin: 0 10px; text-decoration: none;
}
.homepage-footer .footer-nav a:hover {
    opacity: 1;
}

/* ================================================================
   STYLING UNTUK HALAMAN DETAIL PRODUK
   ================================================================ */
.product-detail-container .app-header {
    /* Buat header transparan di halaman detail produk */
    background-color: transparent;
    box-shadow: none;
    border-bottom: none;
    position: absolute; /* Tumpang tindih di atas gambar */
}
.product-detail-container #app-content {
    padding: 0;
}
.product-detail-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}
.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-detail-content {
    margin-top: -30px; /* Tarik konten ke atas agar menimpa gambar */
    position: relative;
    z-index: 10;
    border-radius: 20px 20px 0 0 !important;
    padding-top: 30px;
}
.product-detail-title {
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
}
.product-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.product-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
}

/* ================================================================
   STYLING UNTUK HALAMAN DETAIL PRODUK INTERAKTIF
   ================================================================ */
body.single-produk_gembul {
    padding-bottom: 100px; /* Ruang aman untuk sticky footer */
}

.price-quantity-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.quantity-btn {
    background-color: transparent;
    border: none;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    padding: 8px 12px;
    cursor: pointer;
}

.quantity-input {
    width: 40px !important;
    text-align: center;
    font-weight: bold;
    font-size: 16px !important;
    border: none !important;
    background-color: transparent !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield; /* Sembunyikan panah di Firefox */
}
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none; /* Sembunyikan panah di Chrome, Safari, Edge */
    margin: 0;
}

.sticky-footer-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    /* Padding di container untuk memberi jarak kanan-kiri pada tombol */
    padding: 15px 20px; 
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    max-width: 600px; /* Samakan dengan #app-container */
    margin: 0 auto;
    box-sizing: border-box; /* Pastikan padding tidak menambah lebar */
}

.sticky-footer-cta .cta-button {
    width: 100%; /* Tombol akan mengisi lebar container (yang sudah diberi padding) */
    display: block; /* Pastikan tombol mengambil lebar penuh */
    background-color: #FF5722; /* Ganti warna sesuai permintaan */
	color: white !important;
}

/* ================================================================
   STYLING UNTUK FORM PEMESANAN PUBLIK (GUEST CHECKOUT)
   ================================================================ */

.guest-checkout-fields {
    margin-top: 20px;
}

.guest-checkout-fields label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    margin-top: 15px; /* Memberi jarak antar field */
}

/* Menargetkan semua input teks dan textarea di dalam form ini */
.guest-checkout-fields input[type="text"],
.guest-checkout-fields textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif; /* Pastikan fontnya seragam */
    background-color: #f9f9f9;
    box-sizing: border-box; /* Mencegah padding merusak layout */
}

.guest-checkout-fields textarea {
    resize: vertical; /* Izinkan user mengubah tinggi textarea jika perlu */
    min-height: 80px; /* Tinggi minimal untuk kotak alamat */
}

/* Styling untuk Halaman Tagihan Publik */
.public-invoice h3 {
    text-align: center;
    border: none;
}
.payment-instructions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.payment-instructions ul {
    list-style: none;
    padding: 0;
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 15px;
}

/* Styling Halaman Toko */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.product-grid-item { text-decoration: none; color: var(--text-color); }
.product-grid-image { border-radius: 8px; overflow: hidden; aspect-ratio: 1/1; }
.product-grid-image img { width: 100%; height: 100%; object-fit: cover; }
.product-grid-title { font-size: 15px; font-weight: 600; margin: 8px 0; }
.product-grid-price { font-size: 14px; font-weight: bold; color: var(--primary-color); }
/* Styling Form Ulasan */
.comment-form-rating { margin-bottom: 20px; }
.comment-form-rating label { display: block; font-weight: bold; margin-bottom: 10px; }
#reviews .comment-list { list-style: none; padding: 0; }
#reviews .comment-body { padding: 15px; margin-bottom: 15px; border-radius: 8px; background: #f6f7f7; }

/* ================================================================
   STYLING UNTUK FORM ULASAN PRODUK
   ================================================================ */

.comment-form-wrapper {
    margin-top: 30px;
}

/* Mengatur ulang beberapa gaya dasar dari WordPress */
#respond {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    margin: 0;
}

#respond h3#reply-title {
    font-size: 18px;
    font-weight: 600;
    text-transform: none;
    color: var(--text-color);
    margin-bottom: 20px;
    border-bottom: none;
}

/* Menata ulang field-field form */
#respond .comment-form {
    display: flex;
    flex-direction: column;
}
#respond .comment-form-comment,
#respond .comment-form-author,
#respond .comment-form-email,
#respond .comment-form-url {
    order: 3; /* Pindahkan field nama & email ke bawah */
}
#respond .comment-form-rating {
    order: 1; /* Pindahkan rating ke paling atas */
}
#respond .comment-form-comment {
    order: 2; /* Pindahkan textarea ke posisi kedua */
}

/* Menghias field form agar seragam */
#respond input[type="text"],
#respond input[type="email"],
#respond textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

#respond textarea {
    min-height: 100px;
    resize: vertical;
}

#respond .form-submit input#submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    margin: 15px 0 0 0;
    height: auto;
    font-weight: 600;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
#respond .form-submit input#submit:hover {
    background-color: var(--primary-dark);
}

/* ================================================================
   PENYEMPURNAAN TAMPILAN ULASAN PRODUK
   ================================================================ */

/* 1. Menghilangkan "says:" & menata VCard */
.comment-author-vcard {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.comment-author-vcard .says {
    display: none; /* Sembunyikan teks "says" atau "berkata:" */
}
.comment-author-vcard .avatar {
    border-radius: 50%;
}
.comment-author-vcard .fn {
    font-weight: 600;
}

/* 2. Perkecil ukuran font metadata */
.comment-meta.commentmetadata a {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: none;
}

/* 3. Perbesar ukuran font bintang */
.comment-text .star-rating-display {
    font-size: 18px; /* Ukuran bintang di dalam ulasan */
    margin-bottom: 10px;
}
.summary-left .star-rating-display {
    font-size: 20px; /* Ukuran bintang di ringkasan */
}

/* 4. Penataan umum daftar komentar */
#reviews .comment-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
#reviews .comment-body {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    background: #f6f7f7;
    border: 1px solid var(--border-color);
}

/* Styling untuk Ikon Keranjang di Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-title { flex-grow: 1; text-align: center; }
.header-cart-icon {
    position: relative;
    color: var(--text-color);
    text-decoration: none;
    font-size: 24px;
}
.cart-item-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
#add-to-cart-button span {
    margin-right: 8px;
}

.related-products-section {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.related-products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.related-product-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.related-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.related-product-title {
    margin: 10px 0;
    font-size: 16px;
}

.related-product-price {
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 10px;
}

.related-product-quantity {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.no-related {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}