/* ==============================================================
   EBOOK CATALOG PAGE STYLES (NLS COMPATIBLE FOR HOME & NAVBAR)
   ============================================================== */

/* --- SYSTEM CONFIGURATION & VARS --- */
html.dark {
    --bg-main: #0A0A0E;
    --bg-soft: #111115;
    --text-dark: #FFFFFF;
    --text-muted: #A0A0A0;
    --border-light: rgba(197, 160, 89, 0.2);
}
body { 
    transition: background-color 0.4s ease, color 0.4s ease; 
    background: var(--bg-main); color: var(--text-dark); margin: 0; 
}

.reveal { opacity: 0; transform: translateY(40px); transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Pembatas Sakral Antar Halaman */
.section-separator {
    width: 90%; height: 1px;
    background: linear-gradient(to right, transparent, var(--border-light), transparent);
    margin: 40px auto;
}

/* --- NAVBAR STYLING (COPY DARI HOME.CSS) --- */
.navbar { position: fixed; top: 0; left: 0; width: 100%; padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-bottom: 1px solid transparent; z-index: 9999; transition: all 0.4s ease; }
.navbar.scrolled { background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid rgba(197, 160, 89, 0.15); padding: 15px 5%; }
html.dark .navbar { background: rgba(10, 10, 14, 0.8); } html.dark .navbar.scrolled { background: rgba(10, 10, 14, 0.98); }
.logo { font-family: var(--font-serif); font-size: 1.6rem; letter-spacing: 2px; font-weight: 700; color: var(--gold-primary); }
.nav-links { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { text-decoration: none; color: var(--text-dark); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.nav-links a:hover { color: var(--gold-primary); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-cart-icon { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(197, 160, 89, 0.1); color: var(--text-dark); transition: 0.3s; }
.nav-cart-icon:hover { background: var(--gold-primary); color: #FFF; }
.cart-badge { position: absolute; top: -2px; right: -2px; background: var(--gold-primary); color: #FFF; font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #FFF; }
html.dark .cart-badge { border-color: #0A0A0E; color: #000; }
.btn-nav-pill { background: var(--text-dark); color: var(--bg-main) !important; padding: 10px 24px; text-decoration: none; border-radius: 50px; font-size: 0.85rem; font-weight: 600; transition: 0.3s; border: 1px solid var(--text-dark); }
.btn-nav-pill:hover { background: var(--gold-primary); border-color: var(--gold-primary); color: #FFF !important; box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3); }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.mobile-menu-btn span { width: 25px; height: 2px; background: var(--text-dark); transition: 0.3s; }

/* --- 1. FEATURED BANNER STYLE --- */
.vault-page-wrapper { padding-top: 100px; min-height: 100vh; }
.featured-banner-section { padding: 30px 5% 0; }
.featured-banner-container { background: #0A0A0E; border-radius: 24px; padding: 60px 80px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; overflow: hidden; position: relative; border: 1px solid rgba(197, 160, 89, 0.3); box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.banner-content { position: relative; z-index: 2; }
.banner-badge { display: inline-block; background: var(--gold-primary); color: #000; padding: 6px 16px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.banner-title { font-family: var(--font-serif); font-size: 2.8rem; color: #FFF; line-height: 1.1; margin-bottom: 20px; }
.banner-desc { font-size: 1rem; color: #CCC; line-height: 1.6; margin-bottom: 35px; max-width: 90%; }
.banner-actions { display: flex; gap: 15px; align-items: center; }

.btn-pay-action { width: 100%; background: var(--gold-primary); color: #111; padding: 16px; border: none; border-radius: 8px; font-weight: 700; font-size: 1rem; text-transform: uppercase; cursor: pointer; transition: 0.3s; text-align: center; }
.btn-pay-action:hover { background: #dcb36a; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3); }
.btn-pay-action.in-cart { background: var(--gold-primary) !important; color: #000 !important; cursor: default; pointer-events: none; }
.btn-outline-gold { background: transparent; color: var(--gold-primary); border: 1px solid var(--gold-primary); padding: 14px 24px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: 0.3s; display: inline-block; }
.btn-outline-gold:hover { background: rgba(197, 160, 89, 0.1); }

.banner-visual { position: relative; display: flex; justify-content: flex-end; align-items: center; }
.banner-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 400px; height: 400px; background: radial-gradient(circle, rgba(197, 160, 89, 0.25) 0%, transparent 60%); border-radius: 50%; z-index: 0; pointer-events: none; }
.banner-cover { position: relative; width: 100%; max-width: 260px; aspect-ratio: 1/1.414; object-fit: cover; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); z-index: 1; border: 1px solid rgba(197, 160, 89, 0.4); transition: opacity 0.5s ease, transform 0.5s ease; }

/* --- 2. SEARCH & FILTER HUB HUB --- */
.filter-hub-section { padding: 10px 5%; }
.filter-hub-container { background: var(--bg-soft); border: 1px solid var(--border-light); border-radius: 16px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); }

/* Baris Search */
.search-bar-wrapper { position: relative; margin-bottom: 25px; }
.search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--gold-primary); pointer-events: none; }
.search-bar-wrapper input { width: 100%; height: 54px; background: var(--bg-main); border: 1px solid var(--border-light); border-radius: 50px; padding: 10px 20px 10px 55px; font-family: var(--font-sans); font-size: 0.95rem; color: var(--text-dark); transition: 0.3s; }
.search-bar-wrapper input:focus { outline: none; border-color: var(--gold-primary); box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1); }

/* Dropdown Filter */
.filter-dropdowns-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.filter-select-group { display: flex; flex-direction: column; gap: 8px; }
.filter-select-group label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.filter-select-group select { height: 46px; background: var(--bg-main); border: 1px solid var(--border-light); border-radius: 8px; padding: 0 15px; font-family: var(--font-sans); font-size: 0.9rem; color: var(--text-dark); cursor: pointer; transition: 0.3s; }
.filter-select-group select:focus { outline: none; border-color: var(--gold-primary); }

/* --- 3. KATALOG GRID (5 KOLOM A4) --- */
.vault-catalog-section { padding: 30px 5% 120px; }
.catalog-header { text-align: center; margin-bottom: 50px; }
.serif-heading { font-family: var(--font-serif); font-size: 2.6rem; color: var(--text-dark); margin-bottom: 10px; }

.nls-vault-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 25px; max-width: 1400px; margin: 0 auto; }
.vault-card { background: var(--bg-main); border: 1px solid var(--border-light); border-radius: 12px; overflow: hidden; position: relative; transition: all 0.4s ease; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03); display: flex; flex-direction: column; }
.vault-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(197, 160, 89, 0.15); border-color: var(--gold-primary); }

.vault-img-container { position: relative; width: 100%; aspect-ratio: 1 / 1.414; background: var(--bg-soft); overflow: hidden; cursor: pointer; }
.vault-cover { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.vault-card:hover .vault-cover { transform: scale(1.05); }

.vault-content { padding: 20px 15px; display: flex; flex-direction: column; flex-grow: 1; }
.vault-badge { position: absolute; top: 10px; left: 10px; background: var(--gold-primary); color: #FFF; font-size: 0.65rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 1px; z-index: 2; }
.vault-title { font-family: var(--font-serif); font-size: 1.2rem; color: var(--text-dark); margin-bottom: 5px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: color 0.3s; }
.vault-title:hover { color: var(--gold-primary); }
.vault-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 15px; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.vault-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-light); padding-top: 15px; margin-top: auto; }
.vault-price { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); }
.btn-cart-action { width: 38px; height: 38px; background: var(--text-dark); color: var(--bg-main); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; padding: 0; }
.btn-cart-action:hover { background: var(--gold-primary); color: #FFF; transform: scale(1.1); box-shadow: 0 4px 12px rgba(197, 160, 89, 0.4); }

/* State In-Cart */
.btn-cart-action.in-cart { background: var(--gold-primary); color: #000; box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4); cursor: default; pointer-events: none; }
.btn-cart-action.in-cart svg { display: none; }
.btn-cart-action.in-cart::after { content: '✓'; font-size: 1.2rem; font-weight: 700; }

/* --- FOOTER & SIDE CART RE-USE SYSTEM --- */
.nls-complex-footer { border-top: 1px solid var(--border-light); background: var(--bg-main); color: var(--text-dark); }
.footer-container-fluid { width: 100%; padding: 80px 5% 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; margin-bottom: 60px; }
.footer-heading-serif { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 600; margin-bottom: 15px; color: var(--text-dark); letter-spacing: -0.5px; }
.footer-text { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 25px; line-height: 1.6; max-width: 90%; }
.newsletter-form { position: relative; max-width: 100%; }
.newsletter-input { width: 100%; height: 50px; border-radius: 50px; border: 1px solid var(--border-light); background: transparent; padding: 10px 60px 10px 20px; font-size: 0.9rem; color: var(--text-dark); transition: 0.3s; }
.newsletter-input:focus { outline: none; border-color: var(--gold-primary); }
.newsletter-btn { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; border-radius: 50%; background: var(--text-dark); color: var(--bg-main); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; }
.newsletter-btn:hover { background: var(--gold-primary); color: #FFF; transform: scale(1.05); }
.footer-heading { font-size: 1.1rem; font-weight: 600; margin-bottom: 25px; color: var(--text-dark); }
.footer-nav { display: flex; flex-direction: column; gap: 15px; }
.footer-nav a, .footer-address p { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; transition: color 0.3s; line-height: 1.5; }
.footer-nav a:hover { color: var(--gold-primary); }
.social-links { display: flex; gap: 12px; margin-bottom: 30px; }
.social-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-light); color: var(--text-muted); transition: 0.3s; text-decoration: none; }
.social-btn:hover { background: var(--gold-primary); color: #FFF; border-color: var(--gold-primary); transform: translateY(-3px); }
.theme-toggle-wrapper { display: flex; align-items: center; gap: 15px; }
.theme-icon { color: var(--text-muted); }
.theme-switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(197, 160, 89, 0.2); transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: var(--gold-primary); transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #111; }
html.dark input:checked + .slider { background-color: var(--gold-primary); }
html.dark input:checked + .slider:before { background-color: #111; }
input:checked + .slider:before { transform: translateX(22px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-light); padding-top: 30px; }
.copyright { color: var(--text-muted); font-size: 0.9rem; }
.legal-nav { display: flex; gap: 30px; }
.legal-link { color: var(--text-muted); font-size: 0.9rem; text-decoration: none; transition: 0.3s; cursor: pointer; }
.legal-link:hover { color: var(--gold-primary); }

/* SIDE CART PANEL */
.side-cart { position: fixed; top: 0; right: -450px; width: 100%; max-width: 400px; height: 100vh; background: var(--bg-main); z-index: 10001; box-shadow: -10px 0 40px rgba(0,0,0,0.15); display: flex; flex-direction: column; transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.side-cart.active { right: 0; }
.side-cart-header { padding: 25px 30px; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; }
.side-cart-header h3 { font-family: var(--font-serif); font-size: 1.4rem; color: var(--text-dark); margin: 0; }
.side-cart-items { padding: 25px 30px; flex-grow: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.side-cart-item { display: flex; gap: 15px; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); }
.side-cart-img { width: 70px; height: 95px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border-light); }
.side-cart-info { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.side-cart-title { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 5px; }
.side-cart-price { font-size: 0.9rem; font-weight: 600; color: var(--gold-primary); margin-bottom: 10px; }
.btn-remove-item { background: transparent; border: none; color: #d9534f; font-size: 0.8rem; font-weight: 600; text-align: left; padding: 0; cursor: pointer; }
.side-cart-footer { padding: 30px; background: var(--bg-soft); border-top: 1px solid var(--border-light); }
.side-cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 1.1rem; color: var(--text-muted); }
.side-cart-total strong { font-size: 1.4rem; color: var(--text-dark); }
.btn-checkout-full { display: block; background: var(--text-dark); color: var(--bg-main); text-align: center; padding: 16px; border-radius: 8px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: 0.3s; border: 1px solid var(--text-dark); }
.btn-checkout-full:hover { background: var(--gold-primary); border-color: var(--gold-primary); color: #FFF; box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2); }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1200px) { .nls-vault-grid-5 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px) { 
    .nav-links { display: none; } .mobile-menu-btn { display: flex; } 
    .featured-banner-container { grid-template-columns: 1fr; text-align: center; padding: 40px; }
    .banner-actions { justify-content: center; } .banner-visual { justify-content: center; margin-top: 30px; }
    .filter-dropdowns-grid { grid-template-columns: repeat(2, 1fr); }
    .nls-vault-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) { .nls-vault-grid-5 { grid-template-columns: repeat(2, 1fr); gap: 15px; } .banner-title { font-size: 2rem; } }
@media (max-width: 600px) { 
    .filter-dropdowns-grid { grid-template-columns: 1fr; }
    .nls-vault-grid-5 { grid-template-columns: 1fr; } .vault-img-container { aspect-ratio: 16/9; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; } .footer-bottom { flex-direction: column; gap: 15px; text-align: center; } 
}

/* Dropdown Filter (Sekarang 5 Kolom) */
.filter-dropdowns-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.filter-select-group { display: flex; flex-direction: column; gap: 8px; }
.filter-select-group label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filter-select-group select { height: 46px; background: var(--bg-main); border: 1px solid var(--border-light); border-radius: 8px; padding: 0 10px; font-family: var(--font-sans); font-size: 0.85rem; color: var(--text-dark); cursor: pointer; transition: 0.3s; }
.filter-select-group select:focus { outline: none; border-color: var(--gold-primary); }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1200px) { 
    .nls-vault-grid-5 { grid-template-columns: repeat(4, 1fr); } 
    .filter-dropdowns-grid { grid-template-columns: repeat(3, 1fr); } /* 3 Kolom di layar medium */
}
@media (max-width: 992px) { 
    .nav-links { display: none; } .mobile-menu-btn { display: flex; } 
    .featured-banner-container { grid-template-columns: 1fr; text-align: center; padding: 40px; }
    .banner-actions { justify-content: center; } .banner-visual { justify-content: center; margin-top: 30px; }
    .nls-vault-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) { 
    .nls-vault-grid-5 { grid-template-columns: repeat(2, 1fr); gap: 15px; } 
    .banner-title { font-size: 2rem; } 
    .filter-dropdowns-grid { grid-template-columns: repeat(2, 1fr); } /* 2 Kolom di Tablet */
}
@media (max-width: 600px) { 
    .filter-dropdowns-grid { grid-template-columns: 1fr; } /* 1 Kolom berderet ke bawah di HP */
    .nls-vault-grid-5 { grid-template-columns: 1fr; } .vault-img-container { aspect-ratio: 16/9; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; } .footer-bottom { flex-direction: column; gap: 15px; text-align: center; } 
}

/* === RESPONSIVE LAYAR MEDIUM / TABLET === */
@media (max-width: 992px) {
    .btn-nav-pill { display: none !important; }
    .mobile-login-icon { display: flex; margin-right: 15px; }
    .mobile-menu-btn { display: flex; }
    
    /* PERBAIKAN MUTLAK DROPDOWN MENU */
    .nav-links { 
        display: flex !important; /* WAJIB ADA: Mencegah menu disembunyikan oleh display:none bawaan */
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: rgba(255, 255, 255, 0.98); 
        backdrop-filter: blur(15px);
        flex-direction: column; 
        align-items: center;
        padding: 30px 5%; 
        border-bottom: 1px solid var(--border-light, #E5E7EB);
        gap: 25px;
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: 0 20px 40px rgba(0,0,0,0.05);
        z-index: 999; /* WAJIB ADA: Memastikan menu berada di lapisan paling atas */
    }
    
    html.dark .nav-links { background: rgba(10, 10, 14, 0.98); }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}