        :root {
            --bg-color: #f5f5f7;
            --card-bg: rgba(255,255,255,0.65);
            --text-primary: #1d1d1f;
            --text-secondary: #6e6e73;
            --border-color: rgba(0,0,0,0.08);
            --accent-color: #0071e3;
            --accent-hover: #0a84ff;
            --success: #1a9e4b;
            --radius-sm: 12px;
            --radius-md: 20px;
            --radius-lg: 28px;
            --shadow-soft: 0 4px 24px rgba(0,0,0,0.04);
            --shadow-hover: 0 10px 32px rgba(0,0,0,0.10);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
        body { position: relative; min-height: 100vh; background-color: var(--bg-color); background-image: url("../images/bg.jpg"); background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed; color: var(--text-primary); -webkit-font-smoothing: antialiased; line-height: 1.5; padding-bottom: 40px; overflow-x: hidden; }
        /* Overlay putih tipis di atas gambar agar konten tetap terbaca, motif daun tetap samar */
        body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(255,255,255,0.55); pointer-events: none; }
        a { text-decoration: none; color: inherit; cursor: pointer; }
        button { cursor: pointer; border: none; outline: none; font-family: inherit; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

        header { background: rgba(255,255,255,0.65); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.6); box-shadow: var(--shadow-soft); position: sticky; top: 0; z-index: 100; display: flex; flex-direction: column; }
        .top-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; max-width: 1200px; margin: 0 auto; width: 100%; gap: 16px; }
        
        .brand-container { display: flex; flex-direction: column; }
        .brand { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; background: linear-gradient(135deg, #ff007a 0%, #7928ca 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        
        .nav-links { display: flex; gap: 24px; align-items: center; flex: 1; justify-content: center; }
        .nav-links a { font-weight: 500; font-size: 15px; color: var(--text-secondary); transition: all 0.3s; }
        .nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
        .nav-links a.active { border-bottom: 2px solid var(--accent-color); padding-bottom: 2px; }

        .controls-section { background: rgba(255,255,255,0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.6); }
        .controls-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
        .search-sort-row { display: flex; gap: 12px; align-items: center; }
        
        .search-box { flex: 1; position: relative; }
        .search-input { width: 100%; padding: 12px 20px; border-radius: 100px; border: 1px solid var(--border-color); font-size: 15px; background: rgba(255,255,255,0.85); color: var(--text-primary); transition: all 0.3s; }
        .search-input::placeholder { color: var(--text-secondary); }
        .search-input:focus { background: #ffffff; border-color: var(--accent-color); outline: none; box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15); }
        
        .sort-box { position: relative; min-width: 160px; }
        .sort-select { width: 100%; appearance: none; padding: 12px 40px 12px 20px; border-radius: 100px; border: 1px solid var(--border-color); font-size: 15px; background: rgba(255,255,255,0.85); color: var(--text-primary); cursor: pointer; transition: all 0.3s; }
        .sort-select option { color: #1d1d1f; }
        .sort-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-secondary); font-size: 12px; font-weight: bold; }
        
        .filter-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
        .filter-scroll::-webkit-scrollbar { display: none; }
        .filter-btn { padding: 8px 16px; border-radius: 100px; background: rgba(255,255,255,0.75); border: 1px solid var(--border-color); color: var(--text-secondary); font-size: 14px; font-weight: 500; white-space: nowrap; transition: all 0.2s; }
        .filter-btn:hover { background: #ffffff; color: var(--text-primary); }
        .filter-btn.active { background: var(--accent-color); color: #ffffff; border-color: var(--accent-color); }

        .grid-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 32px 0; }
        .product-card { background: rgba(255,255,255,0.65); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: var(--radius-md); padding: 16px; border: 1px solid rgba(255,255,255,0.6); transition: all 0.3s ease; display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow-soft); }
        .product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(255,255,255,0.9); }
        
        .thumb { width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-sm); position: relative; overflow: hidden; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.9); }
        .mockup-browser { width: 80%; height: 70%; background: rgba(255,255,255,0.95); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); display: flex; flex-direction: column; overflow: hidden; }
        .mockup-header { height: 12px; background: #f0f0f0; display: flex; align-items: center; padding: 0 8px; gap: 4px; border-bottom: 1px solid #e0e0e0; }
        .dot { width: 6px; height: 6px; border-radius: 50%; background: #ff5f56; }
        .dot:nth-child(2) { background: #ffbd2e; }
        .dot:nth-child(3) { background: #27c93f; }
        .mockup-body { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
        .mockup-line { height: 4px; background: #e0e0e0; border-radius: 2px; width: 100%; }
        .mockup-line.short { width: 60%; }
        
        /* Gradient variations */
        .gradient-1 { background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%); }
        .gradient-2 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
        .gradient-3 { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
        .gradient-4 { background: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%); }
        .gradient-5 { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }
        .gradient-6 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
        .gradient-7 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
        .gradient-8 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
        .gradient-9 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
        .gradient-10 { background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%); }

        .badge { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.92); backdrop-filter: blur(4px); padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 600; color: #10241b; box-shadow: 0 2px 8px rgba(0,0,0,0.2); z-index: 2; }
        .badge.terbaru { color: #ff007a; }
        
        .product-meta { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; display: flex; justify-content: space-between; }
        .product-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 39px; }
        .product-price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
        .product-price { font-family: 'Playfair Display', Georgia, serif; font-size: 20px; font-weight: 800; color: var(--accent-color); letter-spacing: 0.3px; }
        .card-discount-badge { background: rgba(238, 77, 45, 0.1); color: #ee4d2d; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; }
        .product-old-price { font-size: 12px; color: var(--text-secondary); text-decoration: line-through; margin-bottom: 6px; }
        .card-rating-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
        .rating-badge { display: inline-flex; align-items: center; gap: 3px; background: #fff7e6; color: #b8860b; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
        .sold-count { font-size: 12px; color: var(--text-secondary); }
        
        .card-actions { display: flex; gap: 8px; }
        .btn { flex: 1; padding: 10px 0; border-radius: 100px; font-size: 13px; font-weight: 600; text-align: center; transition: all 0.2s; }
        .btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-primary); }
        .btn-outline:hover { background: var(--bg-color); }
        .btn-primary { background: var(--accent-color); color: #ffffff; border: 1px solid var(--accent-color); }
        .btn-primary:hover { background: var(--accent-hover); }

        .pagination { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 20px 0 40px; }
        .btn-page { padding: 10px 20px; border-radius: 100px; background: var(--card-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--text-primary); border: 1px solid var(--border-color); font-size: 14px; font-weight: 500; transition: all 0.2s; }
        .btn-page:not(:disabled):hover { background: #ffffff; }
        .btn-page:disabled { opacity: 0.5; cursor: not-allowed; }
        .page-info { font-size: 14px; color: var(--text-secondary); }

        .view-detail { padding: 32px 0; display: none; }
        .btn-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--card-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 100px; font-size: 14px; font-weight: 500; margin-bottom: 24px; transition: all 0.2s; }
        .btn-back:hover { background: #ffffff; }
        
        .detail-container { background: rgba(255,255,255,0.65); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.6); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-soft); display: flex; gap: 40px; }
        .detail-gallery { flex: 1; display: flex; flex-direction: column; gap: 16px; }
        
        /* Gallery Slider */
        .main-image-container { position: relative; width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-md); overflow: hidden; background: rgba(255,255,255,0.9); }
        .main-image { width: 100%; height: 100%; object-fit: cover; transition: all 0.3s ease; }
        .slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.8); border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #333; cursor: pointer; backdrop-filter: blur(4px); box-shadow: 0 2px 8px rgba(0,0,0,0.1); opacity: 0; transition: opacity 0.2s; z-index: 10; }
        .main-image-container:hover .slider-btn { opacity: 1; }
        .slider-btn.prev { left: 16px; }
        .slider-btn.next { right: 16px; }
        
        .thumbnail-list { display: flex; gap: 12px; }
        .thumbnail-item { width: calc(25% - 9px); aspect-ratio: 1; border-radius: 12px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: 0.6; transition: all 0.2s; background: rgba(255,255,255,0.9); }
        .thumbnail-item.active { border-color: var(--accent-color); opacity: 1; }
        .thumbnail-item:hover { opacity: 1; }
        .thumbnail-item div { width: 100%; height: 100%; }
        
        .detail-info { flex: 1; display: flex; flex-direction: column; }
        .d-title { font-size: 26px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; line-height: 1.3; }
        
        .d-rating-row { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
        .d-star { color: #b8860b; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; background: #fff7e6; padding: 3px 10px; border-radius: 8px; }
        .d-rating-divider { width: 1px; height: 12px; background: var(--border-color); }
        
        .d-price-box { background: rgba(255,255,255,0.65); border: 1px solid rgba(255,255,255,0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 16px; border-radius: var(--radius-sm); margin-bottom: 16px; }
        .d-price-row { display: flex; align-items: center; gap: 12px; }
        .d-price-promo { font-family: 'Playfair Display', Georgia, serif; font-size: 30px; font-weight: 800; color: #ff7a5c; letter-spacing: 0.3px; }
        .d-price-original { font-size: 16px; color: var(--text-secondary); text-decoration: line-through; }
        .d-discount-badge { background: rgba(238, 77, 45, 0.1); color: #ee4d2d; padding: 2px 6px; border-radius: 4px; font-size: 12px; font-weight: 700; }
        
        .d-desc { color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; font-size: 15px; }
        .d-features h4 { margin-bottom: 10px; font-size: 16px; }
        .d-features ul { list-style: none; margin-bottom: 20px; }
        .d-features li { padding-left: 24px; position: relative; margin-bottom: 8px; color: var(--text-secondary); font-size: 14px; }
        .d-features li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: bold; }
        
        .d-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: nowrap; }
        .d-btn { flex: 1; padding: 15px 10px; border-radius: 100px; font-size: 15px; font-weight: 600; text-align: center; transition: all 0.2s; white-space: nowrap; }
        .btn-wa { background: #25D366; color: white; }
        .btn-wa:hover { background: #20BA56; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2); }
        .btn-trial { background: #fff; color: #1a9e4b; border: 1.5px solid #25D366; }
        .btn-trial:hover { background: #f0fff5; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.15); }
        
        .reviews-section { margin-top: 40px; }
        .reviews-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
        .reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
        
        .wa-mockup { background: #e5ddd5; padding: 12px; border-radius: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-family: Helvetica, Arial, sans-serif; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
        .wa-bubble { background-color: #dcf8c6; padding: 8px 12px; border-radius: 8px; border-top-right-radius: 0; max-width: 90%; align-self: flex-end; position: relative; color: #111; line-height: 1.4; }
        .wa-bubble.white { background-color: #fff; border-radius: 8px; border-top-left-radius: 0; align-self: flex-start; }

        /* Testimoni View Styles */
        .view-testimoni { padding: 40px 0; display: none; }
        .testimoni-header { text-align: center; margin-bottom: 40px; }
        .testimoni-title { font-size: 32px; font-weight: 800; color: var(--text-primary); margin-bottom: 12px; }
        .testimoni-desc { color: var(--text-secondary); font-size: 16px; }
        
        .testimoni-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
        .t-card { background: var(--card-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 16px; padding: 16px; border: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 12px; }
        .t-user { display: flex; align-items: center; gap: 12px; }
        .t-avatar { width: 36px; height: 36px; background: linear-gradient(135deg, #ff007a, #7928ca); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: white; font-size: 14px; }
        .t-info { flex: 1; }
        .t-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
        .t-status { font-size: 12px; color: #25D366; font-weight: 500; }

        .view-about { padding: 80px 20px; text-align: center; max-width: 900px; margin: 0 auto; display: none; }
        .about-hook { font-size: 48px; font-weight: 800; line-height: 1.2; letter-spacing: -1px; margin-bottom: 24px; background: linear-gradient(135deg, #1d1d1f 0%, #0071e3 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        .about-desc { font-size: 18px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 40px; }
        .about-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; }
        .feature-card { background: var(--card-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 24px; border-radius: 20px; border: 1px solid var(--border-color); }
        .feature-icon { font-size: 32px; margin-bottom: 16px; }
        
        .empty-state { text-align: center; padding: 60px 20px; color: var(--text-secondary); grid-column: 1 / -1; }
        footer { text-align: center; padding: 24px; color: var(--text-secondary); font-size: 14px; border-top: 1px solid var(--border-color); background: rgba(255,255,255,0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

        @media (max-width: 992px) {
            .grid-container { grid-template-columns: repeat(3, 1fr); }
            .detail-container { flex-direction: column; padding: 24px; gap: 24px; }
            .reviews-grid { grid-template-columns: repeat(2, 1fr); }
            .testimoni-grid { grid-template-columns: repeat(3, 1fr); }
        }

        @media (max-width: 768px) {
            /* Fix Header & Mobile Nav */
            .top-bar { padding: 12px 16px; gap: 8px; flex-wrap: nowrap; }
            .brand { font-size: 22px; }
            .nav-links { gap: 12px; justify-content: center; flex: 1; }
            .nav-links a { font-size: 13px; }
            
            /* Fix Search & Sort sejajar */
            .search-sort-row { flex-direction: row; flex-wrap: nowrap; gap: 8px; }
            .search-box { flex: 2; }
            .sort-box { flex: 1; min-width: 110px; }
            .search-input { padding: 10px 16px; font-size: 14px; }
            .sort-select { padding: 10px 24px 10px 12px; font-size: 13px; }
            .sort-icon { right: 10px; }
            
            /* Sticky Control Section */
            .controls-section { position: sticky; top: 57px; z-index: 99; padding: 10px 16px; }

            .grid-container { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px 0; }
            .product-card { padding: 10px; }
            .thumb { aspect-ratio: 1; margin-bottom: 8px; }
            .product-title { font-size: 13px; height: 34px; margin-bottom: 4px; }
            .product-price { font-size: 16px; }
            .product-old-price { font-size: 11px; margin-bottom: 4px; }
            .rating-badge, .sold-count { font-size: 11px; }
            .card-discount-badge { font-size: 10px; padding: 1px 5px; }
            .card-rating-row { padding-top: 6px; }
            
            .d-actions { flex-direction: row; gap: 8px; }
            .d-btn { padding: 12px 6px; font-size: 13px; }
            .d-title { font-size: 19px; }
            .d-price-promo { font-size: 24px; }
            .d-desc { font-size: 14px; }
            .slider-btn { opacity: 1; width: 32px; height: 32px; font-size: 16px; }
            
            .about-features { grid-template-columns: 1fr; }
            .about-hook { font-size: 36px; }
            .reviews-grid { grid-template-columns: repeat(1, 1fr); }
            
            /* Aturan Testimoni HP (2 kolom, 5 baris = 10 item) */
            .testimoni-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
            .t-card:nth-child(n+11) { display: none; }
        }
        
        @media (max-width: 480px) {
            .nav-links a { font-size: 12px; }
            .brand { font-size: 20px; }
        }

/* ===== Penyesuaian untuk versi PHP multi-halaman ===== */
/* Halaman detail/testimoni/tentang kini halaman penuh, selalu tampil. */
.view-detail, .view-about, .view-testimoni { display: block; }

/* Gambar thumbnail kartu produk mengisi penuh area .thumb */
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Galeri detail: slide gambar/gradient mengisi kontainer utama */
.gallery-main { width: 100%; height: 100%; position: relative; }
.gallery-slide { display: none; width: 100%; height: 100%; }
.gallery-slide.active { display: block; }
.main-image-container .thumb { margin: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.main-image-container .thumb img { border-radius: 0; }
.thumbnail-item .thumb { margin: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }

/* Kartu produk terkait pada halaman detail */
.related-section { margin-top: 40px; }
.related-section .reviews-title { margin-bottom: 20px; }

/* Testimoni: rating bintang & meta produk */
.t-rating { color: #FFD700; font-size: 13px; letter-spacing: 1px; }
.t-product { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.t-product a { color: var(--accent-color); }
.t-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.t-date { font-size: 11px; color: var(--text-secondary); }

/* Filter aktif juga berlaku untuk elemen <a> */
a.filter-btn { display: inline-block; }

/* Pesan flash & empty state pada halaman testimoni */
.testimoni-filter { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
