/* ==========================================================================
 * BERDIGITAL — MASTER PREMIUM VANILLA CSS DESIGN SYSTEM
 * Glassmorphism, Modern Dark Aesthetics, Vibrant Gradients & Micro-Animations
 * ========================================================================== */

:root {
    /* Color Palette (Orange / Coral Theme) */
    --primary: #f97316;      /* Orange 500 */
    --primary-hover: #ea580c; /* Orange 600 */
    --primary-light: #fb923c; /* Orange 400 */
    --secondary: #f43f5e;    /* Rose 500 (for vibrant sunset gradients) */
    --accent: #eab308;       /* Yellow 500 */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Light Theme Backgrounds & Surfaces */
    --bg-root: #fafaf9; /* Warm Stone 50 */
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f5f4; /* Stone 100 */
    --bg-elevated: #ffffff;

    /* Borders & Glassmorphism */
    --border-subtle: #e7e5e4; /* Stone 200 */
    --border-hover: rgba(249, 115, 22, 0.45);
    --border-glow: rgba(244, 63, 94, 0.35);

    /* Typography & Text Colors */
    --text-main: #1c1917; /* Stone 900 */
    --text-muted: #57534e; /* Stone 600 */
    --text-subtle: #78716c; /* Stone 500 */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Shadows & Glows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 28px -6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 45px -10px rgba(0, 0, 0, 0.15);
    --glow-primary: 0 8px 30px -5px rgba(249, 115, 22, 0.3);
    --glow-secondary: 0 8px 30px -5px rgba(244, 63, 94, 0.3);
}

/* Dark Theme Overrides */
[data-theme="dark"] {
    /* Backgrounds & Surfaces */
    --bg-root: #070913;
    --bg-surface: #0f1526;
    --bg-card: rgba(18, 26, 47, 0.75);
    --bg-card-hover: rgba(24, 34, 61, 0.85);
    --bg-elevated: #161f38;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.08);

    /* Typography */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
}

/* ==========================================================================
   1. RESET & BASE LAYOUT
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-root);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input {
    font-family: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   2. TOP PROMO ANNOUNCEMENT BAR
   ========================================================================== */
.promo-banner {
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #db2777);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 16px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.promo-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.promo-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 9999px;
}

.promo-link {
    font-weight: 700;
    text-decoration: underline;
    margin-left: 4px;
}
.promo-link:hover {
    color: #e0e7ff;
}

/* ==========================================================================
   3. STICKY HEADER & NAVBAR
   ========================================================================== */
.navbar {
    /* Force dark theme variables for navbar */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    --bg-surface: #0f1526;
    --bg-elevated: #161f38;
    --border-subtle: rgba(255, 255, 255, 0.08);

    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 9, 19, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(7, 9, 19, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo img {
    height: 38px;
    width: auto;
    transition: transform 0.25s ease;
}

.navbar-logo:hover img {
    transform: scale(1.05);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Quick Search Button */
.btn-search-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-search-trigger:hover {
    border-color: var(--primary-light);
    color: var(--text-main);
    background: var(--bg-elevated);
}

.search-kbd {
    background: rgba(120, 113, 108, 0.15);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 6px;
}

/* Primary Glowing CTA Button */
.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: var(--glow-primary);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px -5px rgba(99, 102, 241, 0.65);
    filter: brightness(1.1);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    display: none;
    background: #090e1c;
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 24px;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-link {
    display: block;
    padding: 12px 0;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.mobile-nav-link:hover {
    color: var(--primary);
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    padding: 80px 0 40px 0;
    overflow: hidden;
}

/* Glow Background Balls */
.hero-glow-1 {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(168, 85, 247, 0.15) 50%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    top: 30%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.14) 0%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366f1;
    box-shadow: 0 0 10px #6366f1;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: var(--text-main);
    margin-bottom: 24px;
}

.hero-title-gradient {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-subtitle strong {
    color: var(--text-main);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 36px;
    border-top: 1px solid var(--border-subtle);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-value.accent {
    color: var(--primary-light);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-subtle);
    margin-top: 4px;
}

/* Hero Right Isometric Image */
.hero-isometric-wrapper {
    position: relative;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-isometric-image {
    position: relative;
    z-index: 10;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.hero-isometric-image:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.hero-isometric-image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: block;
}

/* Floating Glass Elements */
.floating-glass {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

[data-theme="dark"] .floating-glass {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-terminal {
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    padding: 16px;
}

.icon-code {
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    padding: 20px;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.skeleton-line {
    height: 8px;
    border-radius: 4px;
    background: var(--primary);
    opacity: 0.6;
}

.skeleton-line.w-half { width: 50%; }
.skeleton-line.w-full { width: 100%; opacity: 0.3; }
.skeleton-line.w-three-quarter { width: 75%; opacity: 0.3; }

/* Animations */
@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes floatPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.animate-float-bounce {
    animation: floatBounce 4s ease-in-out infinite;
}

.animate-float-pulse {
    animation: floatPulse 3s ease-in-out infinite;
}

/* ==========================================================================
   5. WHY CHOOSE US (KEUNGGULAN TOKO)
   ========================================================================== */
.section-features {
    padding: 100px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px auto;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-light);
    display: inline-block;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.25;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg);
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon-box.indigo { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.feature-icon-box.purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.feature-icon-box.emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.feature-icon-box.pink { background: rgba(236, 72, 153, 0.15); color: #f472b6; }

.feature-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.feature-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
}
.feature-footer.indigo { color: #818cf8; }
.feature-footer.purple { color: #c084fc; }
.feature-footer.emerald { color: #34d399; }
.feature-footer.pink { color: #f472b6; }

/* ==========================================================================
   6. CATALOG SECTION & FILTER TABS
   ========================================================================== */
.section-catalog {
    padding: 110px 0;
    position: relative;
}

.catalog-header-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 48px;
}

.category-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tab {
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-tab:hover,
.filter-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Product Cards Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

/* --- View Toggle Styles --- */
.catalog-grid.view-list {
    grid-template-columns: 1fr;
}

.catalog-grid.view-list .product-card {
    flex-direction: row;
    height: 220px;
}

.catalog-grid.view-list .product-cover-wrap {
    width: 320px;
    height: 100%;
    border-bottom: none;
    border-right: 1px solid var(--border-subtle);
}

.catalog-grid.view-list .product-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.catalog-grid.view-list .product-footer {
    border-top: none;
    border-left: 1px solid var(--border-subtle);
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    min-width: 240px;
}

.catalog-grid.view-detail {
    grid-template-columns: repeat(2, 1fr);
}

.catalog-grid.view-detail .product-cover-wrap {
    height: 380px;
}
/* -------------------------- */

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.25);
    background: var(--bg-card-hover);
}

.product-cover-wrap {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
}

.product-cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-cover-wrap img {
    transform: scale(1.1);
}

.product-badge-group {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.badge-featured {
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.badge-discount {
    background: var(--danger);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.product-rating-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(7, 9, 19, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    color: #f59e0b;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 10px;
    z-index: 5;
}

.product-body {
    padding: 24px;
    flex-grow: 1;
}

.product-cat-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

.product-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.product-card:hover .product-title {
    color: #a5b4fc;
}

.product-summary {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    background: rgba(0, 0, 0, 0.15);
}

.price-box .old-price {
    font-size: 0.85rem;
    color: var(--text-subtle);
    text-decoration: line-through;
    display: block;
}

.price-box .current-price {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
}

.btn-buy-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    white-space: nowrap;
}

.btn-buy-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* Guarantee Banner */
.guarantee-banner {
    margin-top: 64px;
    padding: 28px 36px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.guarantee-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.guarantee-banner-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
}

/* ==========================================================================
   7. TESTIMONIALS SECTION
   ========================================================================== */
.section-testimonials {
    padding: 100px 0;
    background: rgba(15, 21, 38, 0.45);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testi-stars {
    display: flex;
    gap: 4px;
    color: #f59e0b;
    margin-bottom: 20px;
}

.testi-text {
    font-size: 0.98rem;
    color: var(--text-main);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 28px;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.testi-author img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.author-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.author-role {
    font-size: 0.85rem;
    color: var(--primary-light);
}

/* ==========================================================================
   8. FAQ ACCORDION SECTION
   ========================================================================== */
.section-faq {
    padding: 100px 0;
}

.faq-container {
    max-width: 840px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-item.open {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--text-main);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #a5b4fc;
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-light);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease;
    opacity: 0;
    padding: 0 28px;
}

.faq-item.open .faq-answer {
    max-height: 400px;
    opacity: 1;
    padding-bottom: 24px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.98rem;
}

/* ==========================================================================
   9. NEWSLETTER CTA SECTION
   ========================================================================== */
.section-newsletter {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-root) 0%, var(--bg-surface) 50%, var(--bg-root) 100%);
    border-top: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.newsletter-box {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.2;
}

.newsletter-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.newsletter-form {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    gap: 12px;
}

.newsletter-input {
    flex-grow: 1;
    padding: 16px 20px;
    border-radius: 14px;
    background: var(--bg-root);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.newsletter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.btn-subscribe {
    padding: 16px 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.98rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: var(--glow-primary);
    transition: all 0.25s ease;
}

.btn-subscribe:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* ==========================================================================
   10. MAIN FOOTER
   ========================================================================== */
.site-footer {
    /* Force dark theme variables for footer */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    --bg-root: #070913;
    --bg-surface: #0f1526;
    --border-subtle: rgba(255, 255, 255, 0.08);

    background: var(--bg-root);
    border-top: 1px solid var(--border-subtle);
    padding: 80px 0 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 16px 0 24px 0;
    max-width: 320px;
    line-height: 1.7;
}

.footer-contacts {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-wa-support {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.btn-email-support {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
}

.footer-col-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--primary);
}

.payment-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.payment-badge {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 0;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 36px;
    font-size: 0.85rem;
    color: var(--text-subtle);
}

.footer-trust-list {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ==========================================================================
   11. INSTANT SEARCH MODAL
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 19, 0.85);
    backdrop-filter: blur(16px);
    z-index: 1000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 20px 20px;
}

.modal-backdrop.active {
    display: flex;
}

.modal-box {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    width: 100%;
    max-width: 660px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeInModal 0.25s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-header input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.05rem;
    outline: none;
}

.btn-modal-close {
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.modal-results {
    max-height: 420px;
    overflow-y: auto;
    padding: 20px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--primary-light);
}

.search-result-item img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
}

.search-result-info h5 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.search-result-info p {
    font-size: 0.82rem;
    color: var(--primary-light);
    font-weight: 700;
    margin-top: 2px;
}

/* ==========================================================================
   14. RICH TEXT EDITOR CONTENT
   ========================================================================== */
.rich-text-content p {
    margin-bottom: 16px;
}
.rich-text-content ul, .rich-text-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}
.rich-text-content ul {
    list-style: disc;
}
.rich-text-content ol {
    list-style: decimal;
}
.rich-text-content li {
    margin-bottom: 6px;
}
.rich-text-content h1, .rich-text-content h2, .rich-text-content h3, .rich-text-content h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-main);
    font-family: var(--font-display);
}
.rich-text-content a {
    color: var(--primary);
    text-decoration: underline;
}

/* ==========================================================================
   15. CRO NOTIFICATION & INTERACTIVE ANIMATIONS
   ========================================================================== */
.cro-notification {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 14px 40px 14px 16px; /* Right padding for close button */
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    z-index: 9999;
    transform: translateY(120px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 360px;
}

.cro-notification.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.cro-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

#cro-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border-subtle);
}

.cro-text {
    line-height: 1.35;
}

.cro-text p {
    font-size: 0.85rem;
    color: var(--text-main);
    margin: 0;
}

.cro-text p strong {
    font-weight: 700;
    color: var(--primary);
}

.cro-text small {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    margin-top: 4px;
}

.cro-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    position: absolute;
    top: 8px;
    right: 12px;
    line-height: 1;
    transition: 0.2s;
}

.cro-close:hover {
    color: var(--text-main);
}

/* Make sure vanilla-tilt works nicely */
.product-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}
.product-card-img {
    transform: translateZ(20px);
}
.product-card-body {
    transform: translateZ(30px);
}

/* ==========================================================================
   14. PRODUCT SLIDESHOW (Katalog Pilihan)
   ========================================================================== */
.slideshow-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}
.slides-wrapper {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
    height: 100%;
}
.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.6);
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 14px;
    backdrop-filter: blur(4px);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slideshow-container:hover .slide-btn,
.product-card:hover .slide-btn {
    opacity: 1;
}
.slide-btn:hover {
    background: rgba(15, 23, 42, 0.9);
}
.slide-prev {
    left: 8px;
}

/* ==========================================================================
   FLASH SALE BANNER
   ========================================================================== */
.flash-sale-banner {
    background: linear-gradient(90deg, #ef4444, #f59e0b);
    color: white;
    text-align: center;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    font-weight: 600;
}

.flash-sale-banner.hidden {
    display: none !important;
}

.flash-sale-text {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.flash-sale-timer {
    display: flex;
    align-items: center;
    gap: 6px;
}

.flash-sale-timer .time-box {
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    min-width: 44px;
    text-align: center;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .flash-sale-banner {
        flex-direction: column;
        gap: 8px;
        padding: 16px;
    }
}
.slide-next {
    right: 8px;
}
