/* =========================================
   STYLE KHUSUS HALAMAN SHOP (ARCHIVE)
   ========================================= */

/* Hero Banner Dinamis dari Database */
.shop-header-section {
    width: 100%;
    
    /* 🔥 KUNCI 1: Tarik ke atas menyusup ke bawah Header Kaca 🔥 */
    margin-top: -85px !important; 
    
    /* 🔥 KUNCI 2: Tinggi disesuaikan (Tidak perlu 100vh agar pembeli cepat melihat produk) 🔥 */
    height: calc(60vh + 85px); 
    min-height: 350px;
    
    background-color: #111;
    background-size: cover;
    background-position: center 25%; /* Fokus gambar agak ke atas, mirip halaman depan */
    background-repeat: no-repeat;
    position: relative; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.shop-header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.shop-header-content {
    position: relative;
    z-index: 2;
}

.shop-header-content h1 {
    font-size: 48px;
    color: #ffffff; /* Pastikan putih bersih */
    font-family: 'Playfair Display', serif;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.shop-header-content p {
    font-size: 15px;
    color: #dddddd;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   TOP CONTROL BAR (ALA SNS-B)
   ========================================= */
.shop-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 5%;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    
    /* 🔥 KUNCI 3: Menyesuaikan jarak tempel agar antre pas di bawah Header putih saat discroll 🔥 */
    top: 85px; 
    
    z-index: 80;
}

.shop-top-bar h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.shop-top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    cursor: pointer;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

/* =========================================
   FILTER & SORT DRAWER (LACI SAMPING)
   ========================================= */

.filter-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-overlay.open {
    display: block;
    opacity: 1;
}

.filter-drawer {
    position: fixed;
    top: 0; right: 0; /* Diposisikan mepet kanan */
    width: 100%;
    max-width: 360px;
    height: 100%;
    background: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    
    /* 🔥 PERBAIKAN: Geser keluar layar sebesar 105% (agar bayangannya ikut sembunyi) 🔥 */
    transform: translateX(105%); 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Animasi lebih mulus */
}

.filter-drawer.open {
    /* 🔥 PERBAIKAN: Kembalikan laci ke posisi normal saat dibuka 🔥 */
    transform: translateX(0);
}


.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #eee;
}

.filter-header h2 {
    font-size: 20px;
    margin: 0;
}

.filter-content {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.filter-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Kustomisasi Radio Button */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: color 0.2s;
}

.radio-group label:hover {
    color: #111;
}

.radio-group input[type="radio"] {
    appearance: none;
    background-color: #fff;
    margin: 0 10px 0 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 1px solid #ccc;
    border-radius: 50%;
    display: grid;
    place-content: center;
}

.radio-group input[type="radio"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: #111; /* Lingkaran hitam saat dipilih */
}

.radio-group input[type="radio"]:checked::before {
    transform: scale(1);
}

.radio-group input[type="radio"]:checked {
    border-color: #111;
}

.radio-group input[type="radio"]:checked + span {
    font-weight: 600;
    color: #111;
}

.filter-footer {
    padding: 20px 24px;
    border-top: 1px solid #eee;
    background: #fff;
}

/* =========================================
   RESPONSIVITAS MOBILE (HP)
   ========================================= */
@media (max-width: 768px) {
    .shop-header-section {
        /* 🔥 KUNCI MOBILE: Tetap ditarik ke atas dan amankan dari URL Bar HP (svh) 🔥 */
        margin-top: -85px !important;
        height: calc(45svh + 85px) !important; 
        padding: 40px 20px;
    }
    
    .shop-header-content h1 {
        font-size: 32px;
    }

    .shop-top-bar {
        padding: 16px 20px;
        /* Di HP, header sedikit lebih tipis, kita sesuaikan jarak tempelnya */
        top: 70px; 
    }

    .shop-top-bar h2 {
        font-size: 16px;
    }

    .filter-drawer {
        max-width: 100%; /* Penuhi layar saat di HP */
    }
}