/* =========================================
   GLOBAL STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #fcfcfc;
    width: 100%; 
    
    /* FIX: Ganti 'hidden' menjadi 'clip' */
    overflow-x: clip; 
    
    position: relative;
}

a {
    text-decoration: none; /* Menghilangkan garis bawah */
    color: inherit;        /* Memaksa link mengikuti warna teks di sekitarnya */
}
/* Mengamankan agar tidak ada gambar yang menembus layar HP */
img, video {
    max-width: 100%;
    height: auto;
}

/* =========================================
   TOP ANNOUNCEMENT BAR (MARQUEE)
   ========================================= */
.scrolling-text-container {
    background: #000;
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 101;
}

.scrolling-text-inner {
    display: inline-block;
    animation: scroll-left 20s linear infinite;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
}

.scrolling-text-inner span { 
    padding-right: 50px; 
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

/* =========================================
   HEADER & NAVIGATION (GLASSMORPHISM / BUNGELON)
   ========================================= */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    
    /* Posisi menempel tepat di bawah Running Text */
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    
    /* Kondisi Awal: Transparan dengan Teks Putih */
    background-color: transparent;
    color: #ffffff;
    transition: all 0.4s ease;
}

/* --- WARNA SAAT TRANSPARAN (DI ATAS FOTO GELAP) --- */
.main-header .logo,
.main-header .nav-pill,
.main-header .icon-btn,
.main-header .mobile-toggle,
.main-header #user-avatar-display,
.main-header .logo-sekunder-futura { 
    /* 🔥 Hapus !important agar bisa ditimpa saat scrolled 🔥 */
    color: #ffffff; 
    border-color: rgba(255, 255, 255, 0.4);
    background-color: transparent;
}

/* Jurus Rahasia: Mengubah logo hitam Anda menjadi putih tanpa ganti file gambar */
.main-header .nav-logo-img {
    filter: brightness(0) invert(1);
    transition: all 0.4s ease;
}

/* Tampilan Search Bar ala Glassmorphism (Kaca Buram) */
.main-header .search-input {
    background-color: rgba(255, 255, 255, 0);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    backdrop-filter: blur(1px); /* Efek blur estetik */
}
.main-header .search-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}
.main-header .search-btn {
    color: #ffffff6a;
}

/* Pill Menu yang Aktif saat transparan */
.main-header .nav-pill.active {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}
.main-header .nav-pill:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* --- WARNA SAAT DI-SCROLL (BACKGROUND PUTIH) --- */
.main-header.scrolled {
    background-color: #ffffff;
    color: #111111;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* --- WARNA SAAT DI-SCROLL (BACKGROUND PUTIH) --- */
.main-header.scrolled .logo,
.main-header.scrolled .nav-pill,
.main-header.scrolled .icon-btn,
.main-header.scrolled .mobile-toggle,
.main-header.scrolled #user-avatar-display { 
    color: #111111 !important; 
    border-color: #dddddd !important;
    
    /* Pastikan tetap transparan saat discroll agar ikon cart tidak jadi kotak abu-abu */
    background: transparent !important; 
    -webkit-appearance: none !important;
}

/* Kembalikan logo gambar ke warna asli (hitam) */
.main-header.scrolled .nav-logo-img {
    /* 🔥 KUNCI: Mengembalikan logo ke warna aslinya (Hitam) 🔥 */
    filter: brightness(1) invert(0); 
    
    /* (Opsional) Mengecilkan sedikit zoom logo saat di-scroll agar nav lebih slim */
    transform: scale(2.2); 
}

.main-header.scrolled .search-input {
    background-color: #ffffff;
    border-color: #dddddd6c;
    color: #111111;
    backdrop-filter: none;
}
.main-header.scrolled .search-input::placeholder {
    color: #888888;
}
.main-header.scrolled .search-btn {
    color: #666666;
}

.main-header.scrolled .nav-pill.active {
    background-color: #111111;
    color: #ffffff;
    border-color: #111111;
}
.main-header.scrolled .nav-pill:hover {
    background-color: #f5f5f5;
}
.main-header.scrolled .icon-btn:hover {
    background-color: #f5f5f5;
}

/* --- Left Nav --- */
.header-left, .header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 12px;
}

.nav-pill {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-pill:hover {
    background-color: #ff0000;
}

.nav-pill.active {
    background-color: #e5e5e5;
    border-color: #e5e5e5;
}

/* --- Center Logo --- */
.header-center {
    flex: 0 1 auto;
    text-align: center;
}

.logo {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -1px;
    font-style: italic;
}

/* --- Right Actions --- */
.header-right {
    justify-content: flex-end;
    gap: 16px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 10px 40px 10px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    width: 250px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

.search-input:focus {
    border-color: #333;
}

.search-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.action-icons {
    display: flex;
    gap: 12px;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    transition: background 0.3s;
}

.icon-btn:hover {
    background-color: #f5f5f5;
}

/* --- Mobile Menu Toggle --- */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 16px;
}
/* --- WARNA SAAT TRANSPARAN (DI ATAS FOTO GELAP) --- */
.main-header .logo,
.main-header .nav-pill,
.main-header .icon-btn,
.main-header .mobile-toggle { /* 🔥 Tambahan Hamburger disini */
    color: #ffffff; 
    border-color: rgba(255, 255, 255, 0.4);
}

.main-header.scrolled .logo,
.main-header.scrolled .nav-pill,
.main-header.scrolled .icon-btn,
.main-header.scrolled .mobile-toggle { /* 🔥 Tambahan Hamburger disini */
    color: #111111; 
    border-color: #dddddd;
}

/* Pengaturan Logo (Zoom Tanpa Merubah Nav) */
/* 1. Kondisi Awal (Saat Header Transparan / Di Atas Foto Gelap) */
.nav-logo-img {
    height: 30px; 
    width: auto;
    object-fit: contain;
    display: block;
    transform: scale(2.8); 
    transform-origin: center;
    image-rendering: -webkit-optimize-contrast;
    
    /* 🔥 KUNCI: Mengubah logo hitam asli menjadi putih bersih 🔥 */
    filter: brightness(0) invert(1);
    
    transition: filter 0.4s ease, transform 0.3s ease; /* Transisi mulus saat berubah warna */
}

/* Pastikan wadah pusat tidak membatasi hasil zoom */
.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important; /* Penting agar logo yang membesar tidak terpotong */
}
/* =========================================
   HERO SECTION (FULL SCREEN FIX)
   ========================================= */
.hero-section {
    padding: 0 !important; 
    margin-top: -85px !important; 
    
    height: 100vh; /* Fallback untuk browser lama */
    /* 🔥 KUNCI MOBILE: 'svh' (Small Viewport Height) memastikan foto tidak terpotong oleh URL Bar di Safari/Chrome HP 🔥 */
    height: 100svh; 
    
    width: 100%;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 95%; 
    border-radius: 0 !important; 
    overflow: hidden;
    background-color: #111;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    /* 🔥 KUNCI: Titik fokus di 25% (Di antara tengah dan puncak atas) 🔥 */
    /* Anda bisa mengubah angka 25% ini (misal ke 20% atau 35%) sampai mendapatkan potongan wajah yang paling pas */
    object-position: center 25%; 
    
    filter: brightness(0.85);
}

.hero-content {
    position: absolute !important;
    top: auto !important;     
    transform: none !important; 
    bottom: 2% !important;    
    left: 5% !important;
    right: 5% !important;
    z-index: 10;
    
    /* 🔥 KUNCI PERBAIKAN: Bikin menyamping (Kiri - Kanan) 🔥 */
    display: flex !important;
    flex-direction: row !important; 
    justify-content: space-between !important; /* Dorong teks ke kiri, tombol ke mentok kanan */
    align-items: flex-end !important; /* Sejajarkan di garis bawah yang sama */
    
    background: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0,0,0,0) 100%);
    padding: 10px;
    border-radius: 12px;
}

.hero-text-group {
    display: flex;
    flex-direction: column;
    gap: 10px; 
    max-width: 600px; /* Diperlebar sedikit agar teks tidak terlalu cepat turun baris */
}

.hero-subtext {
    font-size: 12px !important;
    line-height: 1.5;
    margin-bottom: 1px;
    color: #f1f1f153;
}

/* Ukuran Desktop Standar */
.hero-title {
    font-size: 42px !important;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

/* --- Hero Buttons & Nav --- */
.hero-cta {
    /* 🔥 KUNCI PERBAIKAN: Matikan absolute agar masuk ke barisan Flexbox 🔥 */
    position: static !important; 
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: auto;
    flex-shrink: 0; /* Mencegah tombol Shop terlipat/mengecil */
}

.btn-shop {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #fff;
    color: #000;
    padding: 12px 24px 12px 32px; 
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-shop:hover {
    transform: scale(1.05);
}

.arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #000;
    border-radius: 50%;
}

/* Memindahkan tombol panah slider ke tengah agar tidak menabrak header/cart */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 30px;
    display: flex;
    flex-direction: column; /* Ditumpuk vertikal jadi lebih modern */
    gap: 12px;
    pointer-events: auto;
    z-index: 10;
}

.nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background-color: #555555; 
    color: #2E362C;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background-color: #fff;
}

/* =========================================
   BRAND ROSTER
   ========================================= */
.brand-roster {
    padding: 60px 40px;
    overflow: hidden;
}

.brand-track {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    opacity: 0.6;
}

.brand-logo {
    font-size: 28px;
    color: #666;
}

/* =========================================
   FEATURED DROP (PRODUCT GRID)
   ========================================= */
.featured-drop {
    padding: 60px 40px;
    max-width: 1440px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    flex-wrap: wrap; /* Menjaga agar elemen aman saat menyempit */
}

.header-titles .subtitle {
    font-size: 14px;
    color: #666;
    display: block;
    margin-bottom: 8px;
}

.header-titles .title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.discover-link {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
    transition: opacity 0.3s;
}

.discover-link:hover {
    opacity: 0.6;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background-color: #f5f5f5;
    margin-bottom: 16px;
    position: relative; /* INI KUNCI PENTING: Mengunci posisi tombol di dalam gambar */
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .image-wrapper img {
    transform: scale(1.05); /* Efek zoom saat di-hover */
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-name {
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

/* =========================================
   SHARED STORIES SECTION (DESKTOP & MOBILE)
   ========================================= */
.shared-stories {
    background-color: #0b0b0b; 
    color: #fff;
    padding: 80px 40px;
    text-align: center;
}

.stories-header {
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.stories-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

/* 🔥 REVISI 5: Teks Highlight / Deskripsi dibuat Rata Kanan Kiri (Justify) 🔥 */
.stories-header p {
    font-size: 16px;
    color: #a0a0a0; 
    line-height: 1.6;
    text-align: justify; /* Membuat teks rata tepi kanan dan kiri */
    text-align-last: center; /* Memastikan sisa kata di baris terakhir tetap di tengah */
}

/* 🔥 KUNCI DESKTOP: 3 Kolom 🔥 */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    max-width: 1440px;
    margin: 0 auto;
}

.story-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4; /* Proporsi Portrait ala Poster */
    cursor: pointer;
    outline: none; 
}

.story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
    filter: grayscale(100%); 
}

.story-card:hover img,
.story-card:focus img {
    transform: scale(1.05); 
    filter: grayscale(0%); 
}

.story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 24px 24px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    text-align: left;
    opacity: 0; 
    transform: translateY(20px); 
    transition: all 0.4s ease;
}

.story-card:hover .story-overlay,
.story-card:focus .story-overlay {
    opacity: 1;
    transform: translateY(0); 
}

.story-subtitle {
    font-size: 12px;
    color: #d1d1d1;
    margin-bottom: 4px;
    font-weight: 500;
}

.story-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

/* =========================================
   🔥 REVISI 4: PEMISAHAN MODE MOBILE & TABLET 🔥
   ========================================= */
@media (max-width: 900px) {
    .shared-stories {
        padding: 60px 20px;
    }
    
    .stories-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet jadi 2 Kolom */
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .stories-header h2 {
        font-size: 32px;
    }

    .stories-header p {
        font-size: 14px;
    }

    .stories-grid {
        grid-template-columns: 1fr; /* Mobile jadi 1 Kolom Penuh */
        gap: 25px;
    }
    
    .story-card {
        /* Gambar dibuat memendek (Landscape) agar tidak menutupi seluruh layar HP */
        aspect-ratio: 4/3; 
    }

    /* Memunculkan judul secara default di HP (karena tidak ada hover di layar sentuh) */
    .story-overlay {
        opacity: 1; 
        transform: translateY(0);
        padding: 30px 20px 20px 20px; /* Sedikit dirampingkan */
    }
}

/* =========================================
   CART DRAWER & BADGE
   ========================================= */
.cart-icon-wrapper {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* FIX: Diubah dari 100vw menjadi 100% */
    height: 100%; 
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px; 
    width: 400px;
    height: 100%;
    background: #fff;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open { right: 0; }
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #eee;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.cart-item img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title { font-size: 14px; font-weight: 600; }
.cart-item-price { font-size: 14px; color: #666; }
.remove-item { font-size: 12px; color: red; cursor: pointer; background: none; border: none; text-align: left;}
/* --- Pengaturan Kuantitas di Keranjang --- */
.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 50px;
    overflow: hidden;
    background: #f9f9f9;
}

.qty-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    transition: background 0.3s;
}

.qty-btn:hover {
    background: #e0e0e0;
}

.qty-display {
    width: 30px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}
.checkout-btn:hover { opacity: 0.8; }

/* --- Overlay Gelap Opsional Agar Tombol Lebih Terbaca --- */
.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    pointer-events: none; /* Memastikan klik tetap tembus ke tombol */
}

.product-card:hover .image-wrapper::after {
    background: rgba(0, 0, 0, 0.2); /* Gambar sedikit meredup saat di-hover */
}

/* --- Posisi Tombol di Tengah --- */
.add-to-cart-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Memposisikan tepat di tengah dan membuatnya sedikit mengecil (scale) saat tersembunyi */
    transform: translate(-50%, -50%) scale(0.9);
    width: 80%; /* Sedikit lebih kecil dari lebar gambar agar elegan */
    padding: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Bayangan lembut */
}

/* --- Animasi Muncul ke Tengah Saat Di-hover --- */
.product-card:hover .add-to-cart-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1); /* Tombol membesar ke ukuran normal */
}

.add-to-cart-btn:hover {
    background: #000;
    color: #fff;
}
/* =========================================
   ANIMASI KONTINU (MARQUEE & SCROLL)
   ========================================= */
.scrolling-text-container {
    background: #000;
    color: #fff;
    padding: 16px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.scrolling-text-inner {
    display: inline-block;
    animation: scroll-left 20s linear infinite;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
}

.scrolling-text-inner span { padding-right: 50px; }

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); } 
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   ABOUT / HISTORY SECTION
   ========================================= */
.about-history {
    padding: 100px 40px;
    background-color: #fff; 
    max-width: 1440px;
    margin: 0 auto;
}

.about-container {
    display: flex;
    align-items: center; 
    gap: 60px; 
}

.about-content {
    flex: 1; 
}

.about-subtitle {
    font-size: 16px;
    color: #888;
    margin-bottom: 16px;
    display: inline-block;
}

.about-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: #000;
}

.about-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 40px;
    max-width: 90%; 
    
    /* 🔥 REVISI: Teks dibuat rata kanan kiri 🔥 */
    text-align: justify;
}

.btn-outline {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid #000;
    border-radius: 50px;
    color: #000;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #000;
    color: #fff; 
}

.about-image {
    flex: 1; 
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* =========================================
   ENTRY PORTAL (Splash, Announcement, Auth)
   ========================================= */
#entry-portal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* FIX: Diubah dari 100vw menjadi 100% */
    height: 100%;
    z-index: 99999; 
    background-color: #000;
    transition: opacity 1s ease, visibility 1s;
}

#entry-portal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.entry-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scale(1.05); 
}

.entry-screen.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1); 
}

.btn-portal {
    padding: 16px 40px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* --- 1. SPLASH SCREEN --- */
#screen-splash {
    background-color: #0b0b0b;
    color: #fff;
    text-align: center;
}

.splash-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -1.5px;
}

.splash-subtitle {
    font-size: 16px;
    color: #888;
    margin-bottom: 40px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

#screen-splash .btn-portal {
    background: #fff;
    color: #000;
    border: none;
}

#screen-splash .btn-portal:hover {
    background: #ccc;
    transform: translateY(-2px);
}

/* --- 2. ANNOUNCEMENT SCREEN --- */
.announcement-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1509319117193-57bab727e09d?q=80&w=1200&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4); 
    animation: slowZoom 20s linear infinite alternate; 
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.announcement-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    max-width: 600px;
    padding: 20px;
}

.announcement-content .tagline {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d1d1d1;
}

.announcement-content h2 {
    font-size: 48px;
    margin: 16px 0;
    line-height: 1.1;
}

.announcement-content p {
    font-size: 16px;
    margin-bottom: 40px;
    color: #bbb;
}

.btn-portal.outline {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.btn-portal.outline:hover {
    background: #fff;
    color: #000;
}

/* --- 3. REGISTRATION SCREEN --- */
.auth-bg {
    position: absolute;
    width: 100%;
    height: 100%;
}
.auth-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.glass-form {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.glass-form h2 { font-size: 32px; margin-bottom: 8px; }
.glass-form p { font-size: 14px; color: #ccc; margin-bottom: 30px; }

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-google:hover { background: #f0f0f0; }

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #888;
    font-size: 12px;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.2);
}
.divider span { padding: 0 10px; }

.glass-form input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
    outline: none;
}
.glass-form input::placeholder { color: #aaa; }
.glass-form input:focus { border-color: #fff; }

.btn-portal.fill {
    width: 100%;
    background: #fff;
    color: #000;
    border-radius: 8px;
    padding: 14px;
}

.btn-skip {
    background: none;
    border: none;
    color: #aaa;
    font-size: 13px;
    margin-top: 24px;
    cursor: pointer;
    text-decoration: underline;
}
.btn-skip:hover { color: #fff; }

/* =========================================
   PROMO POP-UP MODAL
   ========================================= */
.promo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;   
    height: 100%;  
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999999; 
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.promo-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.promo-modal-content {
    background: #fff;
    display: flex;
    width: 800px;
    max-width: 90%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    transform: translateY(50px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.promo-modal-overlay.show .promo-modal-content {
    transform: translateY(0) scale(1);
}

.close-promo-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.close-promo-btn:hover {
    transform: scale(1.1);
}

.promo-image {
    flex: 1;
    display: none; 
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-text {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 12px;
}

.promo-text h2 {
    font-size: 36px;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.promo-text p {
    color: #666;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
}

.promo-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promo-form input {
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 12px;
}

.promo-form input:focus {
    border-color: #000;
}

.no-thanks-btn {
    background: none;
    border: none;
    color: #888;
    margin-top: 16px;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s;
}

.no-thanks-btn:hover {
    color: #000;
}

/* =========================================
   CUSTOMER REVIEWS SECTION
   ========================================= */
.reviews-section {
    padding: 100px 40px;
    max-width: 1000px; 
    margin: 0 auto;
}

.reviews-header {
    text-align: center;
    margin-bottom: 40px;
}

.reviews-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.reviews-header p {
    color: #666;
}

.reviews-dashboard {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding: 40px;
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 16px;
}

.rating-summary {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #eee; 
}

.average-score {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
}

.stars {
    color: #000;
    font-size: 24px;
    margin: 12px 0;
    letter-spacing: 2px;
}

.total-reviews {
    font-size: 14px;
    color: #888;
}

.rating-distribution {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.dist-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 500;
}

.dist-bar-bg {
    flex: 1;
    height: 8px;
    background: #e5e5e5;
    border-radius: 50px;
    overflow: hidden;
}

.dist-bar-fill {
    height: 100%;
    background: #000;
    border-radius: 50px;
    width: 0%; 
    transition: width 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.dist-count {
    min-width: 30px;
    text-align: right;
    color: #666;
}

.review-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: transparent;
    color: #666;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #000;
    color: #000;
}

.filter-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    padding: 24px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.reviewer-name {
    font-weight: 600;
    font-size: 16px;
    color: #000;
}

.review-date {
    color: #a0a0a0;
    font-size: 13px;
}

.review-card-stars {
    color: #000;
    font-size: 14px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.review-text {
    color: #444;
    line-height: 1.6;
    font-size: 15px;
}

/* =========================================
   MAIN FOOTER
   ========================================= */
.main-footer {
    background-color: #000;
    color: #fff;
    padding-top: 0;
    margin-top: 60px;
}

.footer-campaign {
    background: #1a1a1a;
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid #333;
}

.campaign-track {
    display: inline-block;
    animation: marquee-footer 25s linear infinite;
}

.campaign-track span {
    padding-right: 50px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
}

@keyframes marquee-footer {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 40px 40px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 700;
    font-style: italic;
    display: block;
    margin-bottom: 24px;
}

.footer-desc {
    color: #888;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 300px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #888;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.newsletter p {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-newsletter-form {
    display: flex;
    gap: 10px;
}

.footer-newsletter-form input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 12px 16px;
    border-radius: 50px;
    color: #fff;
    font-family: inherit;
    outline: none;
}

.footer-newsletter-form button {
    padding: 12px 24px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    display: block;
}

.payment-icons {
    display: flex;
    gap: 10px;
}

.pay-chip {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border: 1px solid #333;
    border-radius: 4px;
    color: #888;
}

.copyright {
    color: #666;
    font-size: 13px;
}

/* =========================================
   SHOP PAGE CATALOG
   ========================================= */
.shop-header-section {
    padding: 60px 40px;
    text-align: center;
    background-color: #EAE7DF; 
    border-bottom: 1px solid #DCE0D9;
}

.shop-header-content h1 {
    font-size: 48px;
    color: #2E362C;
    margin-bottom: 16px;
}

.shop-header-content p {
    color: #6A7365;
    font-size: 16px;
}

.shop-catalog-section {
    padding: 40px 40px 100px 40px;
    max-width: 1440px;
    margin: 0 auto;
}

.shop-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-chip {
    padding: 10px 24px;
    border: 1px solid #DCE0D9;
    border-radius: 50px;
    background: transparent;
    color: #6A7365;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-chip:hover {
    border-color: #4A5D4E;
    color: #4A5D4E;
}

.filter-chip.active {
    background: #4A5D4E;
    color: #F7F5F0;
    border-color: #4A5D4E;
}

.shop-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}


/* =========================================
   FLASH CAMPAIGN BANNER (GRID LAYOUT)
   ========================================= */
.flash-campaign-section {
    max-width: 1440px;
    margin: 40px auto;
    padding: 0 40px;
}

/* --- MENGGUNAKAN CSS GRID (Pasti Kiri-Kanan) --- */
.campaign-banner {
    display: grid;
    grid-template-columns: 1fr 1fr; /* KUNCI: Membagi persis 2 kolom rata (50% : 50%) */
    background-color: #1A221B; 
    border-radius: 24px;
    overflow: hidden;
    color: #F7F5F0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    width: 100%;
}

/* --- Wadah Teks Kiri --- */
.campaign-info {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Wadah Gambar Kanan --- */
.campaign-img {
    width: 100%;
    height: 100%; 
}

/* --- Memaksa Gambar Memenuhi Kotak --- */
.campaign-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memotong gambar agar memenuhi kotak tanpa gepeng */
    object-position: center;
}


/* =========================================
   GAYA TEKS DAN TOMBOL (Milik Anda)
   ========================================= */
.camp-tag {
    color: #BC6C6C; /* Merah Mendesak */
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: inline-block;
}

.campaign-info h2 {
    font-size: 40px;
    margin-bottom: 8px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.campaign-info .camp-prod-name {
    font-size: 20px;
    color: #A3ACA5;
    margin-bottom: 24px;
}

.camp-price {
    font-size: 32px;
    font-weight: 700;
    color: #D4A373; /* Aksen Gold */
    margin-bottom: 30px;
}

.timer-box {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.time-slot {
    background: rgba(255,255,255,0.1);
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    min-width: 80px;
}

.time-slot span {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.time-slot small {
    font-size: 11px;
    text-transform: uppercase;
    color: #A3ACA5;
}

.btn-midtrans {
    background-color: #F7F5F0;
    color: #1A221B;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s;
    width: fit-content;
}

.btn-midtrans:hover {
    transform: scale(1.05);
}

.btn-story {
    background-color: transparent;
    color: #F7F5F0;
    border: 1px solid #F7F5F0;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-story:hover {
    background-color: #F7F5F0;
    color: #1A221B;
}

/* =========================================
   SHARE BUTTON STYLES
   ========================================= */
.share-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0; /* Tersembunyi sebelum di-hover */
    transform: translateY(-10px);
}

.product-card:hover .share-btn {
    opacity: 1;
    transform: translateY(0);
}

.share-btn:hover {
    background: #000;
    color: #fff;
    transform: scale(1.1);
}

/* Tombol share khusus untuk modal story/campaign */
.btn-share-outline {
    background: transparent;
    color: #A3ACA5;
    border: 1px solid #A3ACA5;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-share-outline:hover {
    background: #A3ACA5;
    color: #1A221B;
}


/* Pengaturan Logo Footer (Zoom Tanpa Merubah Layout) */
.footer-logo-img {
    height: 30px; /* Tinggi dasar agar area footer tetap rapi */
    width: auto;
    object-fit: contain;
    display: block;
    
    /* 🔥 EFEK ZOOM 🔥 */
    transform: scale(5.5); /* Sesuaikan angka ini (2.5 = 250%) sesuai keinginan */
    transform-origin: left center; /* Zoom dimulai dari kiri agar tidak tumpang tindih ke luar kontainer */
    
    image-rendering: -webkit-optimize-contrast;
}

/* Pastikan wadah logo footer tidak memotong hasil zoom */
.footer-col.about {
    overflow: visible !important;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 25px; /* Memberi ruang agar logo yang di-zoom tidak menabrak teks di bawahnya */
    text-decoration: none;
}


/* =========================================
   PERBAIKAN MODAL PREVIEW & GALLERY
   ========================================= */
.preview-story {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed #DCE0D9; /* Garis pembatas elegan */
    max-height: 250px;
    overflow-y: auto; /* Bisa discroll jika deskripsinya sangat panjang */
    padding-right: 10px;
}

/* Mempercantik Scrollbar khusus Deskripsi & Galeri */
.preview-story::-webkit-scrollbar,
.preview-gallery-container::-webkit-scrollbar { 
    width: 4px; height: 6px; 
}
.preview-story::-webkit-scrollbar-thumb,
.preview-gallery-container::-webkit-scrollbar-thumb { 
    background: #DCE0D9; border-radius: 4px; 
}

/* Efek Hover pada Thumbnail Gallery */
.thumb-item {
    transition: all 0.2s ease;
}
.thumb-item:hover {
    border-color: #4A5D4E !important;
    opacity: 0.8 !important;
}
/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .main-header {
        padding: 15px 20px;
    }
    
    .desktop-only {
        display: none;
    }
    
    .desktop-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 20px;
        background: #fff;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        flex-direction: column;
    }
    
    .desktop-nav.show-mobile {
        display: flex;
    }
    
    .desktop-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-toggle {
        display: block;
    }

    .hero-section {
        padding: 0 20px;
    }
    
    .hero-container {
        border-radius: 0 !important; /* Menghilangkan sudut melengkung di HP */
        height: 100% !important; /* 🔥 KUNCI: Memaksa tinggi penuh menabrak batas layar */
    }

    .hero-content {
        padding: 30px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtext {
        font-size: 16px;
    }

    .hero-cta {
        bottom: 30px;
        right: 30px;
    }

    .btn-shop {
        padding: 12px 24px;
        font-size: 14px;
    }

    .hero-nav {
        /* 🔥 REVISI: Sembunyikan navigasi panah di Mobile 🔥 */
        display: none !important; 
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .brand-track {
        justify-content: center;
    }

    .about-history {
        padding: 60px 20px;
    }
    .about-container {
        flex-direction: column; 
        gap: 40px;
    }
    .about-content {
        text-align: center; 
    }
    .about-desc {
        max-width: 100%;
        margin: 0 auto 30px auto;
        
        /* 🔥 REVISI: Memastikan baris terakhir teks rata tengah di HP 🔥 */
        text-align-last: justify; 
    }

    .campaign-banner {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Teks mengambil lebar penuh (100%) di atas */
    .campaign-info {
        width: 100% !important;
        flex: none !important;
        padding: 40px 20px !important;
    }

    /* Gambar mengambil lebar penuh (100%) di bawah */
    .campaign-img {
        width: 100% !important;
        flex: none !important;
        min-height: 400px !important; /* Tinggi gambar di HP */
    }
    
    /* Merapikan tombol timer agar tidak berantakan */
    .timer-box {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }
}

@media (min-width: 768px) {
    .promo-image {
        display: block; 
    }
}

@media (max-width: 600px) {

    /* Tambahkan di dalam Media Query Mobile (Misal: max-width: 600px) */
    .flash-campaign-section { padding: 0 16px; margin: 20px auto; }
    .campaign-banner { flex-direction: column; }
    .campaign-img { min-height: 300px; }
    .campaign-info { padding: 40px 20px; }
    .timer-box { flex-wrap: wrap; gap: 10px; }
    .time-slot { min-width: 70px; padding: 10px; }
    .campaign-info h2 { font-size: 32px; }


    .splash-title { font-size: 40px; }
    .announcement-content h2 { font-size: 32px; }

    .promo-text {
        padding: 30px 20px;
    }
    .promo-text h2 {
        font-size: 28px;
    }
    
    .cart-drawer { width: 100%; right: -100%; }

    .hero-section {
        padding: 0 16px;
    }

    .hero-content {
        position: absolute !important;
        bottom: 5% !important;  
        left: 5% !important;
        right: 5% !important;
        width: 90% !important; 
        padding: 15px !important; 
        
        display: grid !important;
        grid-template-columns: 1fr auto !important; 
        align-items: end !important; 
        gap: 15px !important; 
    }

    .hero-text-group {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .hero-title {
        font-size: 20px !important; 
        margin-bottom: 0 !important;
        line-height: 1.2 !important;
    }

    .hero-subtext {
        font-size: 11px !important;
        line-height: 1.4 !important;
        margin-bottom: 6px !important;
    }

    /* 🔥 INI KUNCI PERBAIKANNYA 🔥 */
    .hero-cta {
        position: static !important; /* Mematikan efek terbang (absolute) dari desktop */
        margin: 0 !important;
        padding: 0 !important;
    }

    .hero-cta .btn-shop {
        padding: 8px 14px !important; 
        font-size: 12px !important; 
        white-space: nowrap !important; /* Mencegah tombol terlipat */
        border-radius: 50px !important;
    }
    
    .hero-cta .btn-shop svg {
        width: 14px !important;
        height: 14px !important;
    }

    

    .arrow-icon {
        width: 24px;
        height: 24px;
    }

    .featured-drop {
        padding: 40px 16px;
    }

    .section-header {
        flex-direction: row; 
        align-items: flex-end;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap; /* FIX: Mencegah elemen berdesakan ke samping */
    }

    .discover-link {
        font-size: 12px;
        white-space: normal; /* FIX: jangan nowrap agar tidak mendorong layar */
        margin-bottom: 2px; 
    }

    .header-titles .title {
        font-size: 20px; 
    }

    .header-titles .subtitle {
        font-size: 12px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px; 
    }
    
    .product-name {
        font-size: 12px;
    }
    
    .product-price {
        font-size: 14px;
    }

    .stories-header h2 {
        font-size: 28px;
    }
    .stories-header p {
        font-size: 14px;
    }
    .stories-grid {
        grid-template-columns: 1fr; 
        gap: 16px;
    }

    .reviews-dashboard {
        flex-direction: column;
        padding: 24px;
        gap: 30px;
    }
    .rating-summary {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 30px;
    }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 30px; text-align: center; }
}




/* =========================================
   PERBAIKAN TAMPILAN KARTU PRODUK (GRID)
   ========================================= */

/* 1. Menghilangkan margin bawah yang besar pada wadah gambar */
.product-card .image-wrapper {
    width: 100%;
    aspect-ratio: 4/5; /* Menjaga proporsi gambar tetap seragam */
    overflow: hidden;
    background-color: #f5f5f5;
    position: relative;
    
    /* 🔥 KUNCI PERBAIKAN 1: Atur celah kecil di sini (misalnya, 8px atau 0) 🔥 */
    margin-bottom: 8px; 
}

/* 2. Menghilangkan margin/padding atas pada wadah teks detail */
.product-card .product-info {
    display: flex;
    flex-direction: column;
    
    /* 🔥 KUNCI PERBAIKAN 2: Pastikan margin dan padding atas adalah NOL 🔥 */
    padding-top: 0;   
    margin-top: 0;
    
    /* 🔥 KUNCI PERBAIKAN 3: Atur celah kecil antar elemen teks di sini 🔥 */
    gap: 4px;         
}

/* 3. Menghilangkan margin atas pada nama produk */
.product-card .product-name {
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
    
    /* 🔥 KUNCI PERBAIKAN 4: Hilangkan margin atas jika ada 🔥 */
    margin-top: 0;
}


/* =========================================
   SISTEM AUTENTIKASI & PROFIL (FRONTEND)
   ========================================= */

/* 1. Ikon Profil di Navigasi Header */
.profile-nav-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#user-avatar-display {
    /* 🔥 KUNCI 2: Perbesar dari 28px ke 36px agar menutupi celah kosong 🔥 */
    width: 36px !important; 
    height: 36px !important;
    
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    
    background: transparent !important; 
    border: 1px solid rgba(255, 255, 255, 0.4); 
    
    transition: all 0.4s ease; 
    cursor: pointer;
    color: inherit; 
    -webkit-appearance: none;
}

#user-avatar-display:hover {
    transform: scale(1.05);
}

#user-avatar-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent !important; /* Mencegah gambar membawa warna latar */
}

/* 2. Kartu Modal Autentikasi (Auth Card) */
.auth-card {
    max-width: 400px !important; 
    width: 90% !important;
    padding: 30px !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
    display: flex !important;
    flex-direction: column !important; /* Mencegah layout menjadi kiri-kanan */
    box-sizing: border-box !important;
}

.auth-view {
    display: flex;
    flex-direction: column;
    width: 100%;
    animation: fadeIn 0.3s ease-in-out;
}

/* 3. Tampilan Header Profil User */
.profile-header {
    display: flex;
    flex-direction: row; /* Gambar di kiri, teks di kanan */
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #EAE7DF;
    width: 100%;
    box-sizing: border-box;
}

.profile-header img {
    width: 64px;
    height: 64px;
    min-width: 64px; /* Cegah gambar penyok */
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4a5d4e00;
    padding: 2px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    flex: 1; /* Ambil sisa ruang */
    overflow: hidden; /* Cegah nama panjang merusak layout */
}

.profile-info h3 {
    font-size: 16px;
    color: #1A221B;
    margin: 0 0 4px 0;
    font-weight: 700;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; /* Beri ... jika nama terlalu panjang */
}

.profile-info p {
    font-size: 12px;
    color: #6A7365;
    margin: 0 0 12px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tombol Buka Dashboard di Profil */
.profile-info .btn-primary {
    background-color: #4A5D4E;
    color: #fff;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: 0.3s;
    width: fit-content; /* Tombol menyesuaikan teks */
}

.profile-info .btn-primary:hover {
    background-color: #38473B;
}

/* 4. Form Kredensial Pengiriman di Profil */
.auth-form-scroll {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Custom Scrollbar */
.auth-form-scroll::-webkit-scrollbar { width: 4px; }
.auth-form-scroll::-webkit-scrollbar-thumb { background: #DCE0D9; border-radius: 4px; }

.auth-form-scroll h4 {
    font-size: 12px;
    color: #888;
    margin: 0 0 16px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-form-scroll .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    width: 100%;
}

.auth-form-scroll .form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #6A7365;
    margin-bottom: 8px;
}

.auth-form-scroll .form-group input,
.auth-form-scroll .form-group textarea {
    padding: 14px;
    border: 1px solid #DCE0D9;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    color: #111;
    background-color: #FAFAFA;
    outline: none;
    transition: 0.3s;
    width: 100%;
    box-sizing: border-box; /* Kunci agar input tidak tumpah keluar */
}

.auth-form-scroll .form-group input:focus,
.auth-form-scroll .form-group textarea:focus {
    border-color: #4A5D4E;
    background-color: #fff;
}

/* Tombol Update Data (Shop Style) */
#save-profile-btn {
    background-color: #111;
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 8px;
    width: 100%;
}

#save-profile-btn:hover {
    background-color: #D4A373;
}

/* Tombol Logout */
#logout-btn-frontend {
    margin-top: 12px;
    background: #fff;
    border: 1px solid #FFEBEE;
    color: #C62828;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    transition: 0.2s;
}

#logout-btn-frontend:hover {
    background-color: #FFEBEE;
}

/* 5. Tombol Login Google */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background-color: #ffffff;
    border: 1px solid #DCE0D9;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: 0.2s;
}

.btn-google:hover {
    background-color: #F9F9F9;
    border-color: #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

/* 4. Tampilan Header Profil User */
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #EAE7DF;
}

.profile-header img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4A5D4E; /* Lingkaran hijau khas brand */
    padding: 2px;
}

.profile-info h3 {
    font-size: 18px;
    color: #1A221B;
    margin: 0 0 4px 0;
    font-weight: 700;
}

.profile-info p {
    font-size: 13px;
    color: #6A7365;
    margin: 0;
}

/* 5. Form Kredensial Pengiriman di Profil */
.auth-form-scroll {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Kustomisasi scrollbar agar rapi */
.auth-form-scroll::-webkit-scrollbar {
    width: 4px;
}
.auth-form-scroll::-webkit-scrollbar-thumb {
    background: #DCE0D9;
    border-radius: 4px;
}

.auth-form-scroll .form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.auth-form-scroll .form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #6A7365;
    margin-bottom: 8px;
}

.auth-form-scroll .form-group input,
.auth-form-scroll .form-group textarea {
    padding: 12px 16px;
    border: 1px solid #DCE0D9;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #2E362C;
    outline: none;
    background-color: #F9F9F9;
    transition: border-color 0.3s, background-color 0.3s;
    width: 100%;
}

.auth-form-scroll .form-group input:focus,
.auth-form-scroll .form-group textarea:focus {
    border-color: #4A5D4E;
    background-color: #fff;
}

/* 6. Tombol Logout */
#logout-btn-frontend {
    margin-top: 15px;
    background: none;
    border: none;
    color: #BC6C6C; /* Merah halus */
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

#logout-btn-frontend:hover {
    background-color: rgba(188, 108, 108, 0.08);
}

/* Pastikan tombol di dalam modal profil tidak terlalu besar */
#view-profile .btn-primary {
    background-color: #4A5D4E;
    color: white;
    border-radius: 6px;
    transition: 0.3s;
}
#view-profile .btn-primary:hover {
    background-color: #38473B;
}



/* ==========================================
   TOMBOL OVERLAY (CART & PREVIEW) PADA GAMBAR
   ========================================== */
.action-buttons-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
/* Saat mouse menyentuh kotak gambar, tombol naik ke atas */
.image-wrapper:hover .action-buttons-overlay {
    transform: translateY(0);
}
.btn-overlay-add, .btn-overlay-preview {
    flex: 1;
    padding: 14px 0;
    border: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-overlay-add { background: #111; color: #fff; }
.btn-overlay-preview { background: #EAE7DF; color: #111; }
.btn-overlay-add:hover { background: #333; }
.btn-overlay-preview:hover { background: #DCE0D9; }

/* ==========================================
   MODAL PREVIEW PRODUK EKSKLUSIF
   ========================================== */
.preview-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none; /* Disembunyikan secara default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.preview-overlay.show {
    opacity: 1;
}
.preview-box {
    background: #fff;
    width: 100%;
    max-width: 900px;
    height: 600px;
    border-radius: 12px;
    display: flex;
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.preview-overlay.show .preview-box {
    transform: translateY(0);
}
.close-preview-btn {
    position: absolute;
    top: 15px; right: 20px;
    background: none; border: none;
    font-size: 22px; color: #111;
    cursor: pointer; z-index: 10;
}
.preview-left {
    flex: 1;
    background: #f5f5f5;
}
.preview-left img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.preview-right {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.preview-category {
    font-size: 11px; font-weight: 600; color: #888;
    text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 12px;
}
.preview-name {
    font-family: 'Playfair Display', serif;
    font-size: 28px; color: #111;
    margin-bottom: 10px; line-height: 1.2;
}
.preview-price {
    font-size: 18px; font-weight: 700; color: #4A5D4E;
    margin-bottom: 30px;
}
.preview-story {
    font-size: 13px; color: #555; line-height: 1.7;
    margin-bottom: 40px;
    border-top: 1px solid #EAE7DF; padding-top: 20px;
}
.btn-preview-cart {
    background: #111; color: #fff;
    padding: 16px; border: none; border-radius: 6px;
    font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; cursor: pointer; transition: background 0.3s;
}
.btn-preview-cart:hover { background: #D4A373; }

/* Responsif Mobile */
@media (max-width: 768px) {
    .preview-box { flex-direction: column; height: 90vh; overflow-y: auto; }
    .preview-left { min-height: 350px; flex: none; }
    .preview-right { padding: 30px; flex: none; }
}


@media (max-width: 768px) {
    .desktop-nav {
        position: fixed;
        top: 0;
        left: -100%; /* Sembunyi di kiri */
        width: 80%;
        height: 100vh;
        background: #fff;
        z-index: 999;
        display: flex;
        flex-direction: column;
        padding: 80px 40px;
        transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        box-shadow: 10px 0 30px rgba(0,0,0,0.05);
    }

    /* 🔥 SAAT AKTIF 🔥 */
    .desktop-nav.active {
        left: 0; /* Muncul menggeser ke kanan */
    }

    .desktop-nav ul {
        flex-direction: column;
        gap: 24px;
    }

    .desktop-nav ul li a {
        font-size: 18px;
        font-weight: 500;
        color: #111;
        display: block;
    }

    /* Sembunyikan search container di mobile jika terlalu sempit */
    .desktop-only {
        display: none;
    }
}


/* =========================================
   PERBAIKAN MODAL PREVIEW (MOBILE RESPONSIVE)
   ========================================= */

/* 1. Cegah Tumpang Tindih (Overlap) Thumbnail & Teks */
.preview-left {
    display: flex;
    flex-direction: column;
    height: auto !important; /* Biarkan tinggi menyesuaikan isi (gambar + thumbnail) */
    overflow: visible !important; 
}

.preview-gallery-container {
    margin-bottom: 20px; /* Beri jarak napas antara thumbnail dan judul produk */
}

/* 2. Aturan Khusus Layar HP (Mobile) */
@media (max-width: 768px) {
    .preview-box {
        flex-direction: column; /* Ubah layout dari Kiri-Kanan menjadi Atas-Bawah */
        width: 92%;
        max-height: 85vh; /* Batasi tinggi modal agar tidak melebihi layar HP */
        overflow-y: auto; /* Aktifkan scroll vertikal di dalam modal */
        padding: 20px;
        border-radius: 16px;
        position: relative;
    }

    .preview-left {
        width: 100%;
        border-right: none; /* Hilangkan garis pembatas desktop */
        padding-right: 0;
    }

    /* Membatasi tinggi gambar utama di HP agar tidak terlalu memanjang */
    #preview-img-main {
        max-height: 380px; 
        width: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

    .preview-right {
        width: 100%;
        padding: 0;
        padding-top: 10px;
        padding-bottom: 20px; /* Jarak bawah sebelum batas scroll habis */
    }

    /* Perbaiki posisi tombol Close (X) agar mudah diklik di HP */
    .close-preview-btn {
        top: 15px;
        right: 15px;
        background: #ffffff; /* Beri warna solid agar tidak tenggelam oleh gambar */
        color: #111;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 100;
        font-weight: bold;
    }
}



/* =========================================
   🔥 FLASH CAMPAIGN SECTION
   ========================================= */
.flash-campaign-section {
    padding: 80px 20px;
    background-color: #FAFAFA; /* Warna latar belakang lembut agar card menonjol */
}

.campaign-container {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid #EAE7DF;
}

.campaign-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.campaign-info {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.camp-badge {
    display: inline-block;
    background: #BC6C6C; /* Merah elegan */
    color: #fff;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    align-self: flex-start;
}

.camp-title {
    font-size: 38px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.camp-product {
    font-size: 18px;
    color: #666;
    font-weight: 400;
    margin-bottom: 24px;
}

/* Kotak Hitung Mundur (Timer) */
.camp-countdown {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.time-box {
    background: #111;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.time-box span {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.time-box small {
    font-size: 10px;
    color: #D4A373; /* Aksen emas */
    margin-top: 4px;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Area Tombol */
.camp-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Responsif untuk Layar HP */
@media (max-width: 768px) {
    .flash-campaign-section {
        padding: 40px 20px;
    }
    
    .campaign-container {
        flex-direction: column; /* Mengubah layout jadi atas-bawah di HP */
    }
    
    .campaign-image {
        height: 350px; /* Batasi tinggi gambar di HP */
    }
    
    .campaign-info {
        padding: 30px 20px;
    }
    
    .camp-title {
        font-size: 28px;
    }
    
    .camp-countdown {
        gap: 8px;
    }
    
    .time-box {
        width: 60px;
        height: 60px;
    }
    
    .time-box span {
        font-size: 20px;
    }
    
    .camp-actions {
        flex-direction: column;
    }
    
    .camp-actions button {
        width: 100%;
    }
}

/* =========================================
   PERBAIKAN TOMBOL FLASH CAMPAIGN
   ========================================= */

.camp-actions .btn-primary {
    background: #111;
    color: #fff;
    padding: 14px 28px;
    border: 2px solid #111;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.camp-actions .btn-primary:hover {
    background: #D4A373;
    border-color: #D4A373;
    color: #111;
}

.camp-actions .btn-outline {
    background: transparent;
    color: #111;
    padding: 14px 28px;
    border: 2px solid #DCE0D9;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.camp-actions .btn-outline:hover {
    border-color: #111;
    background: #FAFAFA;
}




/* =========================================
   🔥 EXCLUSIVE CAMPAIGN TAKEOVER (PREMIUM) 🔥
   ========================================= */
#campaign-takeover-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 999999; /* Berada di lapisan paling atas */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #000;
}

/* Efek Zoom Lambat (Cinematic) pada Background */
.takeover-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    z-index: -2;
    transform: scale(1.05);
    animation: slowZoom 25s infinite alternate;
}
@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

/* Gradasi gelap agar teks emas/putih terbaca jelas */
.takeover-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 100%);
    z-index: -1;
}

/* Header Minimalis */
.takeover-header {
    position: absolute; top: 0; width: 100%; padding: 40px 60px;
    display: flex; justify-content: space-between; align-items: center;
    box-sizing: border-box;
}
.logo-takeover { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.logo-takeover span { color: #D4A373; font-weight: 400; }

.bypass-link { 
    color: #888; text-decoration: none; font-size: 11px; 
    text-transform: uppercase; letter-spacing: 2px; 
    transition: 0.3s; border-bottom: 1px solid transparent; 
}
.bypass-link:hover { color: #fff; border-bottom: 1px solid #fff; }

/* Konten Utama */
.takeover-content { text-align: center; z-index: 1; max-width: 900px; padding: 0 20px; width: 100%; }
.takeover-badge { 
    display: inline-block; padding: 6px 16px; border: 1px solid #D4A373; 
    color: #D4A373; font-size: 11px; text-transform: uppercase; 
    letter-spacing: 3px; margin-bottom: 30px; font-weight: 600;
}
.takeover-title { 
    font-size: 72px; font-weight: 600; line-height: 1.1; 
    margin-bottom: 16px; letter-spacing: -2px; 
}
.takeover-product { font-size: 22px; font-weight: 400; color: #ccc; margin-bottom: 50px; }

/* Timer Hitung Mundur Elegan */
.takeover-countdown { display: flex; gap: 24px; justify-content: center; margin-bottom: 50px; }
.t-box { display: flex; flex-direction: column; align-items: center; width: 80px; }
.t-box span { font-size: 52px; font-weight: 300; line-height: 1; margin-bottom: 8px; font-family: 'Helvetica Neue', sans-serif;}
.t-box small { font-size: 10px; color: #D4A373; text-transform: uppercase; letter-spacing: 2px; font-weight: 600;}
.t-colon { font-size: 42px; font-weight: 300; opacity: 0.5; margin-top: -5px; }

/* Tombol Eksekusi */
.btn-takeover { 
    background: #fff; color: #111; padding: 20px 50px; 
    font-size: 15px; font-weight: 700; text-transform: uppercase; 
    letter-spacing: 1px; border: none; cursor: pointer; transition: 0.4s; 
    border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.btn-takeover:hover { 
    background: #D4A373; color: #111; transform: translateY(-3px); 
    box-shadow: 0 15px 40px rgba(212, 163, 115, 0.4); 
}

/* Responsif Layar HP */
@media (max-width: 768px) {
    .takeover-header { padding: 30px 20px; flex-direction: column; gap: 20px; }
    .takeover-title { font-size: 48px; }
    .takeover-countdown { gap: 10px; }
    .t-box { width: 60px; }
    .t-box span { font-size: 36px; }
    .t-colon { font-size: 32px; }
    .btn-takeover { width: 100%; padding: 20px; font-size: 14px; }
}

/* =========================================
   FIX Z-INDEX UNTUK OVERLAY MODAL (TAKEOVER)
   ========================================= */
.promo-modal-overlay, 
.cart-overlay, 
.cart-drawer, 
.preview-overlay {
    z-index: 9999999 !important; /* Gunakan 7 digit angka 9 untuk melampaui Takeover layar */
}

/* Tombol Story Takeover (Transparan) */
.btn-takeover-outline { 
    background: transparent; color: #fff; padding: 20px 50px; 
    font-size: 15px; font-weight: 700; text-transform: uppercase; 
    letter-spacing: 1px; border: 2px solid #fff; cursor: pointer; transition: 0.4s; 
    border-radius: 4px;
}

.btn-takeover-outline:hover { 
    background: #fff; color: #111; transform: translateY(-3px); 
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2); 
}

/* Tambahkan respon HP untuk tombol ini */
@media (max-width: 768px) {
    .btn-takeover-outline { width: 100%; padding: 20px; font-size: 14px; }
}

/* =========================================
   SPESIFIKASI TEKNIS TAKEOVER (INDUSTRIAL LOOK)
   ========================================= */
.takeover-specs {
    display: flex; 
    gap: 12px; 
    justify-content: center; 
    flex-wrap: wrap; 
    margin-bottom: 40px;
}

.spec-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 11px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
}

.spec-item span {
    color: #D4A373;
    font-weight: 700;
    margin-left: 6px;
}

/* =========================================
   PERBAIKAN UI TOMBOL DASHBOARD (MODAL LOGIN)
   ========================================= */
#view-profile .btn-primary {
    background: #4A5D4E !important; /* Warna hijau khas Next Journey */
    color: #fff !important;
    padding: 14px 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(74, 93, 78, 0.2);
    text-decoration: none;
}

#view-profile .btn-primary:hover {
    background: #38473B !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 93, 78, 0.3);
}

#view-profile .btn-primary::after {
    content: "→"; /* Ikon panah simpel */
    font-size: 16px;
    transition: transform 0.3s;
}

#view-profile .btn-primary:hover::after {
    transform: translateX(4px); /* Panah bergerak saat di-hover */
}


/* =========================================
   🔥 EXCLUSIVE CAMPAIGN TAKEOVER (PREMIUM) 🔥
   ========================================= */
#campaign-takeover-wrapper {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 999999;
    color: #fff;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    overflow: hidden; background: #000;
}

.takeover-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    z-index: -2; transform: scale(1.05);
    animation: slowZoom 25s infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

.takeover-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.85) 100%);
    z-index: -1;
}

.takeover-header {
    position: absolute; top: 0; width: 100%; padding: 30px 40px;
    display: flex; justify-content: space-between; align-items: center;
    box-sizing: border-box; z-index: 10;
}

.bypass-link { 
    color: #aaa; text-decoration: none; font-size: 11px; 
    text-transform: uppercase; letter-spacing: 2px; 
    transition: 0.3s; border-bottom: 1px solid transparent; 
}
.bypass-link:hover { color: #fff; border-bottom: 1px solid #fff; }

.takeover-content { 
    text-align: center; z-index: 1; max-width: 900px; 
    padding: 0 20px; width: 100%; margin-top: 40px; 
}

.takeover-title { 
    font-size: 64px; font-weight: 700; line-height: 1.1; 
    margin-bottom: 12px; letter-spacing: -1px; 
}

.takeover-product { 
    font-size: 20px; font-weight: 400; color: #ddd; 
    margin-bottom: 30px; letter-spacing: 1px;
}

/* --- KODE PRODUKSI BARU (Pengganti Spesifikasi Lama) --- */
.nj-code-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #D4A373;
    color: #D4A373;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 30px;
    backdrop-filter: blur(4px);
}

.takeover-countdown { 
    display: flex; gap: 20px; justify-content: center; margin-bottom: 40px; 
}

.t-box { display: flex; flex-direction: column; align-items: center; width: 70px; }
.t-box span { font-size: 48px; font-weight: 300; line-height: 1; margin-bottom: 8px; font-family: 'Helvetica Neue', sans-serif;}
.t-box small { font-size: 10px; color: #D4A373; text-transform: uppercase; letter-spacing: 2px; font-weight: 600;}
.t-colon { font-size: 40px; font-weight: 300; opacity: 0.5; margin-top: -5px; }

/* Tombol */
.btn-takeover { 
    background: #fff; color: #111; padding: 18px 0; 
    font-size: 14px; font-weight: 700; text-transform: uppercase; 
    letter-spacing: 1px; border: none; cursor: pointer; transition: 0.4s; 
    border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.btn-takeover:hover { 
    background: #D4A373; color: #111; transform: translateY(-3px); 
    box-shadow: 0 15px 40px rgba(212, 163, 115, 0.4); 
}

.btn-takeover-outline { 
    background: transparent; color: #fff; padding: 18px 0; 
    font-size: 14px; font-weight: 700; text-transform: uppercase; 
    letter-spacing: 1px; border: 1px solid #fff; cursor: pointer; transition: 0.4s; 
    border-radius: 4px;
}
.btn-takeover-outline:hover { 
    background: #fff; color: #111; transform: translateY(-3px); 
}

/* =========================================
   RESPONSIF MOBILE (FIX PENUMPUKAN/OVERLAP)
   ========================================= */
@media (max-width: 768px) {
    /* Merapatkan header agar tidak menekan konten ke bawah */
    .takeover-header { 
        padding: 20px; 
        flex-direction: column; 
        gap: 12px; 
    }
    
    .logo-takeover img { height: 24px !important; }
    
    /* Mengurangi margin dan ukuran font secara proporsional */
    .takeover-content { margin-top: 30px; }
    .takeover-title { font-size: 40px; margin-bottom: 8px; }
    .takeover-product { font-size: 16px; margin-bottom: 24px; }
    
    /* Box Kode Produksi */
    .nj-code-badge { font-size: 11px; padding: 6px 20px; margin-bottom: 24px; }

    /* Merapatkan Timer */
    .takeover-countdown { gap: 10px; margin-bottom: 30px; }
    .t-box { width: 55px; }
    .t-box span { font-size: 34px; }
    .t-box small { font-size: 9px; }
    .t-colon { font-size: 28px; }

    /* Tombol */
    .btn-takeover, .btn-takeover-outline { 
        padding: 16px 0; 
        font-size: 12px; 
    }
}


/* =========================================
   1. LOGO TEKS FUTURA (BUNGLON EFFECT)
   ========================================= */
.logo-sekunder-futura {
    font-family: 'Futura', 'Tw Cen MT', 'Century Gothic', sans-serif;
    font-size: 24px; 
    font-weight: 600;
    letter-spacing: 2px; 
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    /* Warna transisi mulus */
    transition: color 0.4s ease; 
}
.logo-sekunder-futura span {
    font-weight: 400; 
}

/* Saat di paling atas (Header Transparan) -> Teks Putih */
.main-header .logo-sekunder-futura {
    color: #ffffff;
}

/* Saat di-scroll turun (Header Putih) -> Teks Hitam */
.main-header.scrolled .logo-sekunder-futura {
    color: #111111;
}

/* =========================================
   PERBAIKAN WARNA SIDEBAR MENU MOBILE
   ========================================= */
@media (max-width: 900px) {
    /* Memaksa elemen di dalam sidebar HP agar kebal dari efek transparan header */
    .main-header .desktop-nav {
        background-color: #ffffff !important;
    }
    
    /* Memaksa teks tombol menu tetap HITAM walau di beranda atas */
    .main-header .desktop-nav .nav-pill {
        color: #111111 !important;
        border-color: #dddddd !important;
    }
    
    /* Tombol menu yang aktif (Home) */
    .main-header .desktop-nav .nav-pill.active {
        background-color: #111111 !important;
        color: #ffffff !important;
        border-color: #111111 !important;
    }
    
    /* Menambah padding atas agar daftar menu tidak tertutup header HP */
    .desktop-nav {
        padding-top: 100px !important;
    }
}

/* =========================================
   UI/UX: SPLASH PAGE (INDEX.HTML) 
   ========================================= */
body.splash-page {
    overflow: hidden !important; /* MENGUNCI SCROLL */
    height: 100vh;
    width: 100vw;
    background-color: #000;
    margin: 0;
    padding: 0;
}

body.splash-page #normal-website-wrapper {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
}

/* Memposisikan Header Melayang di atas Gambar */
body.splash-page .main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: transparent !important;
    box-shadow: none !important;
    padding: 30px 50px;
}

/* Kustomisasi Navigasi Teks ala SNS-B */
body.splash-page .nav-pill {
    border: none !important;
    background: transparent !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 8px 12px;
}

body.splash-page .nav-pill:hover,
body.splash-page .nav-pill.active {
    color: #888 !important; 
}

/* Menghilangkan tombol bulat di Search/Cart agar menyatu dengan background */
body.splash-page .icon-btn {
    border: none !important;
    background: transparent !important;
}

/* Memaksa Hero Image memenuhi 100% Layar */
body.splash-page .hero-section {
    margin-top: 0 !important;
    height: 100vh !important;
    height: 100svh !important; 
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

body.splash-page .hero-container {
    height: 100% !important;
    border-radius: 0 !important;
}

body.splash-page .hero-bg {
    object-position: center center; 
}

/* 🔥 REVISI 1: MENGHAPUS TOMBOL PANAH SLIDER 🔥 */
body.splash-page .hero-nav {
    display: none !important;
}

/* 🔥 REVISI 2: TEKS KIRI, TOMBOL KANAN (DESKTOP) 🔥 */
body.splash-page .hero-content {
    bottom: 8% !important;
    left: 5% !important;
    right: 5% !important;
    width: 90% !important;
    transform: none !important;
    flex-direction: row !important; /* Formasi menyamping */
    justify-content: space-between !important; /* Teks didorong ke kiri, tombol mentok ke kanan */
    align-items: flex-end !important; /* Sejajar di garis bawah */
    text-align: left !important; /* Teks rata kiri */
    background: transparent !important;
}

body.splash-page .hero-text-group {
    align-items: flex-start !important;
    margin-bottom: 0 !important;
    max-width: 60%; /* Membatasi lebar agar tidak menabrak tombol */
}

body.splash-page .hero-title {
    font-size: 32px !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0 !important;
}

/* 🔥 REVISI 3: RESPONSIF MOBILE (Sesuai Coretan) 🔥 */
@media (max-width: 768px) {
    body.splash-page .main-header {
        padding: 20px;
    }
    
    /* Mengecilkan & Menumpuk Logo di Mobile */
    body.splash-page .logo-sekunder-futura {
        font-size: 14px !important; 
        line-height: 1.2;
        display: flex;
        flex-direction: column; 
        align-items: center;
        letter-spacing: 3px;
    }
    body.splash-page .logo-sekunder-futura span {
        font-size: 11px !important;
        letter-spacing: 4px;
    }

    /* Mempertahankan Formasi (Teks Kiri, Tombol Kanan) di HP */
    body.splash-page .hero-content {
        bottom: 5% !important;
        flex-direction: row !important; 
        justify-content: space-between !important;
        align-items: flex-end !important;
        gap: 15px !important;
    }
    
    body.splash-page .hero-text-group {
        max-width: 60% !important;
    }
    
    body.splash-page .hero-title {
        font-size: 20px !important; 
        line-height: 1.1 !important;
    }
    
    body.splash-page .hero-subtext {
        font-size: 12px !important;
        margin-bottom: 6px !important;
    }
    
    body.splash-page .hero-cta {
        position: static !important;
        margin: 0 !important;
        flex-shrink: 0; /* Mencegah tombol gepeng */
    }
    
    body.splash-page .hero-cta .btn-shop {
        padding: 10px 18px !important;
        font-size: 12px !important;
    }
}



/* =========================================
   HALAMAN PRODUK PREVIEW (STANDALONE PAGE)
   ========================================= */
.detail-wrapper {
    display: flex;
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px;
    gap: 60px;
}

/* Kolom Kiri: Galeri Foto Vertikal */
.detail-gallery {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    background: #f5f5f5;
}

/* Kolom Kanan: Detail & Aksi (Sticky) */
.detail-info-panel {
    flex: 1;
    position: relative;
}

.sticky-content {
    position: sticky;
    top: 100px; /* Menempel di bawah header */
    padding-bottom: 40px;
}

.breadcrumb {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.breadcrumb a { color: #111; text-decoration: none; font-weight: 600; }

.dtl-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.dtl-price {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 40px;
}

.dtl-qty-box {
    border-color: #111; /* Lebih tegas */
}

.dtl-add-btn {
    padding: 18px; /* Lebih besar */
}

.dtl-buy-btn {
    padding: 18px;
    margin-top: 10px;
}

.dtl-description {
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.dtl-description h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.dtl-description p {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    white-space: pre-line; /* Membaca enter dari database */
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .detail-wrapper {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }
    
    .detail-gallery {
        /* Ubah jadi slider horizontal di HP */
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Sembunyikan scrollbar Firefox */
    }
    
    .detail-gallery::-webkit-scrollbar { display: none; } /* Sembunyikan scrollbar Chrome/Safari */
    
    .detail-gallery img {
        width: 100vw; /* Lebar selebar layar HP */
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .detail-info-panel {
        padding: 30px 20px 100px 20px;
    }

    .sticky-content {
        position: static; /* Hilangkan sticky di HP */
    }
    
    .dtl-title { font-size: 24px; }
}

/* =========================================
   STYLE DETAIL PRODUK (REFERENSI SNS-B)
   ========================================= */

/* Kotak Pilihan Ukuran (Garis Silang jika Habis) */
.size-selector-sns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.size-box {
    border: 1px solid #e0e0e0;
    border-radius: 12px; /* Melengkung mirip tombol Apple */
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    color: #111;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    user-select: none;
    min-width: 60px;
    text-align: center;
}

.size-box:hover { border-color: #111; }
.size-box.active { background: #000; color: #fff; border-color: #000; }

.size-box.disabled {
    color: #aaa;
    border-color: #eee;
    cursor: not-allowed;
    background: #fff;
}

/* Garis Diagonal untuk Size Habis */
.size-box.disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 1px;
    background-color: #ccc;
    transform: translate(-50%, -50%) rotate(-30deg);
}

/* Tombol Aksi */
.action-row-sns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.action-top {
    display: flex;
    gap: 12px;
}

.qty-sns {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
}

.qty-sns button {
    background: none; border: none; padding: 16px 20px;
    font-size: 18px; cursor: pointer; color: #888;
}

.qty-sns button:hover { color: #111; }
.qty-sns input {
    width: 30px; text-align: center; border: none;
    font-size: 16px; pointer-events: none;
    font-family: inherit; font-weight: 500;
}

.btn-black-sns {
    flex: 1;
    background: #000; color: #fff;
    border: 1px solid #000; border-radius: 12px;
    padding: 16px; font-size: 16px; font-weight: 500;
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; gap: 10px;
    transition: all 0.3s ease;
}

.btn-black-sns:hover { background: #333; }
.btn-black-sns.buy-now { width: 100%; }

/* Size Chart Trigger & Specs */
.size-chart-trigger {
    display: flex; align-items: center; gap: 10px;
    background: none; border: none; font-size: 16px;
    font-weight: 500; cursor: pointer; color: #111;
    margin-bottom: 30px; font-family: inherit;
}
.size-chart-trigger:hover { opacity: 0.7; }

.product-specs-sns p {
    font-size: 15px; color: #111; margin-bottom: 12px;
    text-transform: uppercase;
}

/* --- Size Chart Drawer & Expanded Modal --- */
.size-chart-drawer {
    position: fixed; top: 0; right: -500px;
    width: 100%; max-width: 450px; height: 100vh;
    background: #fff; z-index: 100000;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex; flex-direction: column;
}

.size-chart-drawer.open { right: 0; }

/* Saat Mode Expand (Berubah jadi Pop-up Tengah) */
.size-chart-drawer.expanded {
    right: 50% !important;
    top: 50% !important;
    transform: translate(50%, -50%) !important;
    height: 85vh; max-width: 800px;
    border-radius: 12px;
}

.chart-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border-bottom: 2px solid #111;
}

.expand-btn {
    background: #f5f5f5; border: 1px solid #ddd;
    border-radius: 6px; padding: 6px 12px;
    font-size: 12px; cursor: pointer; display: flex;
    align-items: center; gap: 6px; color: #555;
}
.expand-btn:hover { background: #eee; color: #111; }

.chart-content {
    padding: 24px; overflow-y: auto; flex: 1;
    display: flex; justify-content: center;
}
.chart-content img {
    max-width: 100%; height: auto; object-fit: contain;
}

.size-chart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 99999;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.size-chart-overlay.open { opacity: 1; visibility: visible; }

/* =========================================
   DUAL SCROLL DESKTOP (PRODUK PREVIEW)
   ========================================= */
@media (min-width: 901px) {
    .detail-wrapper {
        align-items: flex-start; /* Kunci untuk mengaktifkan posisi sticky */
    }
    
    /* Kolom Foto Kiri */
    .detail-gallery {
        position: sticky;
        top: 85px; /* Jarak dari header kaca */
        height: calc(100vh - 85px); /* Setinggi layar dikurangi header */
        overflow-y: auto; /* Aktifkan scroll sendiri */
        padding-right: 15px; /* Jarak untuk scrollbar */
    }
    
    /* Kolom Info Produk Kanan */
    .detail-info-panel {
        position: sticky;
        top: 85px;
        height: calc(100vh - 85px);
        overflow-y: auto; /* Aktifkan scroll sendiri */
        padding-right: 15px;
        padding-bottom: 40px; /* Ruang napas di bawah */
    }
    
    /* Matikan sticky bawaan karena pembungkusnya sudah sticky */
    .sticky-content {
        position: static !important; 
    }

    /* Mempercantik Scrollbar Dalam (Webkit) */
    .detail-gallery::-webkit-scrollbar,
    .detail-info-panel::-webkit-scrollbar {
        width: 4px;
    }
    .detail-gallery::-webkit-scrollbar-thumb,
    .detail-info-panel::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 4px;
    }
}

/* =========================================
   STYLE PRODUK REKOMENDASI
   ========================================= */
.recommended-section {
    max-width: 1440px;
    margin: 60px auto 100px auto;
    padding: 0 40px;
    border-top: 1px solid #EAE7DF;
    padding-top: 60px;
}

.recommended-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
}

@media (max-width: 768px) {
    .recommended-section { padding: 0 20px; margin-top: 40px; padding-top: 40px; }
    .recommended-title { font-size: 16px; }
}

/* =========================================
   STYLE PRODUK REKOMENDASI (YOU MAY ALSO LIKE)
   ========================================= */
.recommended-section {
    max-width: 1440px;
    margin: 60px auto 100px auto;
    padding: 0 40px;
    border-top: 1px solid #EAE7DF;
    padding-top: 60px;
}

.recommended-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
}

/* Memastikan susunan menjadi Grid 4 Kolom */
#recommended-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

/* Responsif untuk Layar Tablet & Mobile */
@media (max-width: 1024px) {
    #recommended-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .recommended-section {
        padding: 0 20px;
        margin-top: 40px;
        padding-top: 40px;
    }
    
    .recommended-title {
        font-size: 16px;
    }
    
    #recommended-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px; /* Jarak lebih rapat di layar HP */
    }
}

/* =========================================
   PERBAIKAN HEADER & TOMBOL (PRODUK PREVIEW)
   ========================================= */

/* 1. Paksa Header Selalu Berlatar Putih & Teks Hitam (Mencegah Menghilang) */
body.product-detail-page .main-header {
    background-color: #fff !important;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05) !important;
}

body.product-detail-page .main-header .icon-btn,
body.product-detail-page .main-header svg {
    color: #111 !important;
}

/* 2. Paksa Logo Tidak Italic Secara Mutlak */
body.product-detail-page .logo-sekunder-futura,
body.product-detail-page .logo-sekunder-futura span {
    color: #111 !important;
    font-style: normal !important; 
}

/* 3. Style Tombol "Back to Shop" */
.btn-back-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #111;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-back-shop:hover {
    background: #f5f5f5;
}

/* 4. Penataan Kotak (Square) & Hilangkan Teks Saat Mobile */
@media (max-width: 768px) {
    .btn-back-shop {
        padding: 10px;
        border-radius: 8px; /* Menjadi bentuk kotak membulat */
        justify-content: center;
    }
    
    .btn-back-shop .back-text {
        display: none; /* Teks disembunyikan */
    }
}

/* =========================================
   SHOP DROPDOWN NAVIGATION (STREETWEAR STYLE)
   ========================================= */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.shop-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px); /* Posisi awal sedikit ke bawah */
    background: #fff;
    min-width: 200px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2000;
    padding: 12px 0;
    border: 1px solid #f0f0f0;
}

/* Memunculkan dropdown saat area menu di-hover */
.dropdown-wrapper:hover .shop-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px); /* Naik perlahan saat muncul */
}

/* Jembatan tak terlihat agar dropdown tidak hilang saat kursor turun */
.dropdown-wrapper::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px; 
}

.dropdown-item {
    display: block;
    padding: 12px 24px;
    color: #111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    text-align: center;
}

.dropdown-item:hover {
    background: #fafafa;
    color: #888;
    padding-left: 28px; /* Efek teks sedikit bergeser ke kanan */
    padding-right: 20px;
}

/* Responsivitas untuk Mobile (Menu ditumpuk) */
@media (max-width: 768px) {
    .dropdown-wrapper {
        display: block;
        width: 100%;
    }
    .shop-dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        padding: 0;
        margin-top: 10px;
        display: none; /* Sembunyikan default di mobile */
    }
    
    /* Tampilkan dropdown di mobile jika menu aktif */
    .dropdown-wrapper:hover .shop-dropdown {
        display: block;
        transform: none;
    }
    
    .dropdown-item {
        text-align: left;
        padding: 12px 20px 12px 40px;
        font-size: 12px;
        border-left: 2px solid #ddd;
        margin-left: 20px;
    }
}

/* =========================================
   MEGA MENU NAVIGATION (STYLE SNS-B)
   ========================================= */

/* Pastikan elemen parent tidak mengunci posisi agar menu bisa full-width */
.desktop-nav ul li.dropdown-wrapper {
    position: static !important; 
}

/* Pastikan header relatif agar mega menu menempel pas di bawahnya */
.main-header {
    position: sticky; /* atau relative/fixed */
}

.shop-mega-menu {
    position: absolute;
    top: 100%; /* Turun tepat ke batas bawah header */
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    justify-content: flex-start;
    gap: 80px; /* Jarak antar kolom */
    padding: 40px 10%; /* Padding lega ala streetwear */
    
    /* Efek Animasi Muncul */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 999;
}

.dropdown-wrapper:hover .shop-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mega-link {
    text-decoration: none;
    color: #111;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mega-link:hover {
    color: #888;
    padding-left: 5px; /* Efek sentuhan kecil saat hover */
}

/* Teks Spesial (Sale) */
.mega-link.text-green {
    color: #008000;
}
.mega-link.text-green:hover {
    color: #005000;
}

/* Responsivitas Mobile (Ubah Mega Menu jadi Dropdown Standar) */
@media (max-width: 900px) {
    .dropdown-wrapper { position: relative !important; width: 100%; }
    
    .shop-mega-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-top: none;
        padding: 0;
        gap: 20px;
        flex-direction: column;
        display: none;
        margin-top: 15px;
    }
    
    .dropdown-wrapper:hover .shop-mega-menu {
        display: flex;
        transform: none;
    }
    
    .mega-column { gap: 12px; }
    
    .mega-link {
        font-size: 12px;
        padding: 5px 20px;
        border-left: 2px solid #ddd;
        margin-left: 20px;
    }
}

/* =========================================
   COMING SOON PAGE STYLES
   ========================================= */

.cs-hero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    background-color: #111;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: -85px; /* Menyusup ke bawah header */
}

.cs-hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: 1;
}

.cs-hero-content {
    position: relative; z-index: 2;
    padding: 0 20px;
}

.cs-subtitle {
    font-size: 14px;
    letter-spacing: 4px;
    margin-bottom: 15px;
    color: #eaeaea;
}

.cs-title {
    font-size: 5vw;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.1;
    text-transform: uppercase;
}

/* Countdown */
.cs-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.cs-time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 90px;
}

.cs-time-box span {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.cs-time-box small {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ccc;
}

.cs-time-separator {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Editorial Text */
.cs-editorial {
    padding: 100px 20px;
    background: #fff;
    text-align: center;
}

.cs-editorial-container {
    max-width: 800px;
    margin: 0 auto;
}

.cs-editorial h2 {
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.cs-editorial p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    white-space: pre-line;
}

/* Tombol Blocked di Sneak Peek */
.btn-locked {
    background: #f5f5f5;
    color: #888;
    border: 1px solid #ddd;
    width: 100%;
    padding: 15px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: not-allowed;
    border-radius: 8px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .cs-title { font-size: 36px; }
    .cs-time-box { min-width: 70px; padding: 10px; }
    .cs-time-box span { font-size: 24px; }
    .cs-editorial { padding: 60px 20px; }
}

/* =========================================
   PERBAIKAN UKURAN LOGO FOOTER
   ========================================= */
.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 7px; /* Tinggi ideal untuk logo boxy/kotak */
    width: auto;
    max-width: 150px; /* Batas maksimal lebar */
    object-fit: contain;
    display: block;
}

/* Memperbaiki jarak teks di bawah logo agar lebih rapi */
.footer-col.about .footer-desc {
    margin-top: 10px;
}


/* =========================================
   DYNAMIC PRODUCT BADGES (FIX POSISI KIRI)
   ========================================= */
.badges-container {
    position: absolute;
    top: 10px;
    left: 10px; /* 🔥 KUNCI: Dipindah ke kiri agar bebas menyamping 🔥 */
    display: flex;
    flex-direction: row; /* Berbaris menyamping */
    flex-wrap: wrap; /* Turun baris jika kepanjangan */
    justify-content: flex-start; /* Rata Kiri */
    gap: 6px;
    z-index: 10;
    max-width: 90%; 
    pointer-events: none; /* Mencegah badge menghalangi klik pada gambar */
}

.product-badge {
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    white-space: nowrap; /* Mencegah teks dalam satu badge terpotong */
}

.badge-bestseller { background: #D4A373; color: #111; }
.badge-new { background: #4A5D4E; color: #fff; }
.badge-soldout { background: #BC6C6C; color: #fff; }
.badge-comingsoon { 
    background: #111; 
    color: #D4A373; 
    border: 1px solid #D4A373; 
    backdrop-filter: blur(4px);
}

/* =========================================
   COMING SOON UI REVAMP
   ========================================= */
.cs-hero {
    background-attachment: fixed; /* Efek Parallax */
    border-bottom: 1px solid #333;
}

.cs-time-box {
    background: rgba(17, 17, 17, 0.7);
    border: 1px solid rgba(212, 163, 115, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: #fff;
}

.cs-time-box span { color: #fff; }
.cs-time-box small { color: #D4A373; }
.cs-time-separator { color: #D4A373; opacity: 0.7; }

/* =========================================
   🔥 MASTER FIX: OVERRIDE DUPLIKASI & BUG MOBILE 🔥
   ========================================= */

/* 1. MENGEMBALIKAN BADGE KE POSISI YANG BENAR (Membunuh position absolute lama) */
.product-badge {
    position: relative !important; 
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    padding: 6px 10px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    white-space: nowrap !important; 
    display: inline-block !important;
}

/* Memastikan container badge di gambar (grid) rata kiri dan menyamping */
.badges-container {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important; 
    right: auto !important;
    display: flex !important;
    flex-direction: row !important; 
    flex-wrap: wrap !important; 
    justify-content: flex-start !important; 
    gap: 6px !important;
    z-index: 10 !important;
    max-width: 90% !important; 
    pointer-events: none !important; 
}

/* 2. FIX KERANJANG (CART DRAWER) TIDAK BISA SCROLL DI MOBILE */
.cart-drawer {
    height: 100dvh !important; /* 100dvh (Dynamic Viewport) menyesuaikan dinamis dengan UI Browser HP */
    max-height: 100dvh !important;
}

.cart-items-container {
    flex: 1 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important; /* Mencegah body halaman belakang ikut terscroll */
    -webkit-overflow-scrolling: touch !important; /* Mengaktifkan smooth scroll ala iPhone/iOS */
    padding-bottom: 80px !important; /* Memberikan ruang napas ekstra di bawah agar tidak tertutup tombol Checkout */
}   

.dropdown-wrapper::after {
    display: none !important;
    content: none !important;
}

/* 4. Aturan Khusus Desktop */
@media (min-width: 769px) {
    .preview-box {
        height: 600px !important; 
        overflow: hidden !important; 
    }
    .preview-right {
        overflow-y: auto !important; 
        height: 100% !important;
    }
}

/* 5. Aturan Khusus Mobile (HP) */
@media (max-width: 768px) {
    .preview-box {
        flex-direction: column !important;
        padding: 0 !important;
        width: 100% !important;
        
        /* 🔥 PERBAIKAN: Batasi tinggi dan aktifkan Scroll 🔥 */
        max-height: 85vh !important; /* Batasi maksimal 85% dari tinggi layar HP */
        height: auto !important; /* Biarkan tinggi menyesuaikan konten */
        overflow-y: auto !important; /* NYALAKAN SCROLL vertikal di dalam modal */
        overscroll-behavior: contain !important; /* Cegah scroll tembus ke background */
        -webkit-overflow-scrolling: touch !important; /* Efek scroll mulus untuk iOS/Android */
        
        border-radius: 16px !important;
        background: #fff !important;
    }
    
    /* Ubah Galeri Gambar menjadi Swipe Horizontal */
    .preview-left {
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: row !important; /* Gambar berjejer ke samping */
        overflow-x: auto !important; /* Bisa di-swipe ke samping */
        overflow-y: hidden !important; /* Pastikan tidak ada scroll vertikal bocor di gambar */
        scroll-snap-type: x mandatory;
        scrollbar-width: none; 
    }
    
    .preview-left::-webkit-scrollbar { display: none; }
    
    .preview-left img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4/5 !important;
        object-fit: cover !important;
        flex: 0 0 100% !important; /* Lebar gambar pas selebar layar HP */
        scroll-snap-align: start;
    }
    
    /* Biarkan teks leluasa memanjang ke bawah di dalam modal */
    .preview-right {
        padding: 25px !important;
        height: auto !important;
        overflow-y: visible !important; 
        padding-bottom: 40px !important; /* Ruang napas ekstra di bawah tombol */
    }
    
    /* Tombol silang dibuat Absolute menempel di dalam pojok kanan modal */
    .close-preview-btn {
        position: absolute !important; 
        top: 15px !important;
        right: 15px !important;
        background: #ffffff !important;
        color: #111 !important;
        border-radius: 50% !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
        z-index: 10000 !important; 
    }
}