/* Modern Apple Minimalist CSS */
:root {
    --bg-color: #ffffff;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --border-color: rgba(0, 0, 0, 0.08);
    --primary: #091F92; /* Indigo Dye */
    --primary-hover: #051359;
    --primary-light: #eef2fc;
    --radius: 12px;
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Montserrat", "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 16px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

img, svg, video, canvas {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px !important;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6, .hero-title, .section-title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Montserrat", "Segoe UI", sans-serif;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}
.btn:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}

/* Global body top spacing for fixed header (Slim navbar: 52px + 14px breathing room) */
body {
    padding-top: 66px;
}
body.has-hero {
    padding-top: 0 !important;
}
body.no-header {
    padding-top: 0 !important;
}
@media (max-width: 768px) {
    body {
        padding-top: 62px;
    }
    body.no-header {
        padding-top: 0 !important;
    }
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 52px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Transparent Header (on top of Hero) */
.main-header.transparent-header {
    background-color: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.15);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0.9rem 0;
}
.main-header.transparent-header .logo-img {
    filter: brightness(0) invert(1);
}
.main-header.transparent-header .nav-links a {
    color: rgba(255, 255, 255, 0.9) !important;
}
.main-header.transparent-header .nav-links a:hover {
    color: #ffffff !important;
}
.main-header.transparent-header .search-container {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}
.main-header.transparent-header .search-input {
    color: #ffffff;
}
.main-header.transparent-header .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.main-header.transparent-header .search-btn {
    color: rgba(255, 255, 255, 0.7);
}
.main-header.transparent-header .btn-cart {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}
.main-header.transparent-header .btn-cart:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}
.main-header.transparent-header #loginBtn {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}
.main-header.transparent-header #loginBtn:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 50px;
    width: auto;
    display: block;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.search-container {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.25rem 0.5rem;
    background-color: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
}
.search-input {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-main);
    outline: none;
    width: 120px;
    transition: width 0.25s ease;
}
.search-input:focus {
    width: 170px;
}
.search-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.search-btn:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    padding: 9rem 0 6rem 0;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('/gambar/luxury_hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
    color: #ffffff;
}
.hero-title {
    font-size: 2.8rem;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}
.hero-cta .btn {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    padding: 0.75rem 2.25rem;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}
.hero-cta .btn:hover {
    background: #ffffff;
    color: var(--primary);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

/* Section */
.section {
    margin-bottom: 4rem;
}
.section-title {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Grid Cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 0.75rem;
}
.grid-cards.list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}
.card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: #bbbbbb;
}

/* Card Image/Icon Area */
.card-image-wrapper {
    background: #f8f9fa;
    height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}
.card:hover .card-image-wrapper {
    background-color: #f1f3f5;
}
.card-icon-emoji {
    font-size: 2.2rem;
    transition: transform 0.2s ease;
}
.card:hover .card-icon-emoji {
    transform: scale(1.08);
}

/* Badges */
.badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.2px;
}
.badge-promo { background: #ff4d4f; }
.badge-popular { background: #fa8c16; }
.badge-instant { background: #52c41a; }
.badge-secure { background: #1890ff; }
.badge-dev { background: #d97706; color: #ffffff !important; }
.badge-manual { background: #475569; color: #ffffff !important; }

.tag-dev-notice {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #9a3412;
    background: #ffedd5;
    border: 1px solid #fed7aa;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
    width: fit-content;
}

/* Card Body */
.card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.3;
}
.card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    margin-bottom: 12px;
}
.stars {
    color: #fadb14;
}
.sold-count {
    color: var(--text-muted);
    border-left: 1px solid var(--border-color);
    padding-left: 6px;
}

/* Product Footer & Price */
.product-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
}
.price-container {
    display: flex;
    flex-direction: column;
}
.price-label {
    font-size: 0.68rem;
    color: var(--text-muted);
}
.price-value {
    font-size: 1rem;
    font-weight: 700;
    color: #e03131;
}
.btn-buy {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius);
    background: var(--primary);
    color: #ffffff !important;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: background-color 0.2s;
}
.btn-buy:hover {
    background: #333333;
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

/* Responsive Mobile Polish */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px; /* Spacing for bottom nav */
    }
    /* Prevent auto-zoom on iOS when tapping inputs */
    input[type="text"], input[type="number"], input[type="email"], input[type="password"], select, textarea {
        font-size: 16px !important;
    }
    .main-header {
        padding: 0.45rem 0;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    .header-container {
        padding: 0 0.75rem;
    }
    .container {
        padding: 0 1rem;
    }
    .hero {
        padding: 5.5rem 1rem 2.5rem 1rem !important;
        text-align: center;
    }
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.75rem !important;
    }
    .hero-subtitle {
        font-size: 0.88rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.25rem !important;
    }
    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    .hero-cta .btn {
        width: 100%;
        margin-left: 0 !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }
    .grid-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        padding: 0;
    }
    .product-card {
        border-radius: 14px !important;
        overflow: hidden;
        border: 1px solid rgba(0,0,0,0.08) !important;
        box-shadow: 0 4px 14px rgba(0,0,0,0.04) !important;
        background: #ffffff;
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    }
    .product-card:active {
        transform: scale(0.97);
    }
    .card-image-wrapper {
        height: 130px !important;
        border-top-left-radius: 14px;
        border-top-right-radius: 14px;
        overflow: hidden;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .card-image-wrapper img {
        object-fit: contain;
        padding: 6px;
        width: 100%;
        height: 100%;
        transition: transform 0.3s ease;
    }
    .card-body {
        padding: 0.75rem 0.65rem !important;
    }
    .card-title {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        margin-bottom: 4px !important;
        line-height: 1.25 !important;
    }
    .card-desc {
        font-size: 0.72rem !important;
        margin-bottom: 8px !important;
        color: var(--text-muted);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .product-footer {
        padding-top: 6px !important;
        border-top: 1px solid #f1f3f5;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .price-value {
        font-size: 0.9rem !important;
        font-weight: 800 !important;
        color: #e03131 !important;
    }
    .btn-buy {
        padding: 7px 14px !important;
        font-size: 0.75rem !important;
        border-radius: 20px !important;
        font-weight: 700 !important;
        background: var(--primary) !important;
        color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    .category-filter-container {
        padding: 0.5rem 0.75rem 1rem 0.75rem;
        margin-bottom: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .filter-btn {
        scroll-snap-align: start;
        padding: 0.55rem 1.1rem;
        font-size: 0.82rem;
        border-radius: 25px;
        font-weight: 600;
        flex-shrink: 0;
    }
}

/* Category Filter Bar */
.category-filter-container {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0 1.25rem 0;
    margin-bottom: 1.5rem;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}
.category-filter-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}
.filter-btn {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    padding: 0.55rem 1.15rem;
    border-radius: 980px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.filter-btn:hover {
    background: #f1f5f9 !important;
    border-color: #091F92 !important;
    color: #091F92 !important;
}
.filter-btn.active {
    background: #091F92 !important;
    color: #ffffff !important;
    border-color: #091F92 !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(9, 31, 146, 0.35) !important;
}
.filter-btn .filter-icon {
    fill: currentColor !important;
    color: currentColor !important;
}
.filter-btn.active .filter-icon {
    fill: #ffffff !important;
    color: #ffffff !important;
}

/* Dark Mode High Contrast Filter Buttons */
html[data-theme="dark"] .filter-btn {
    background: #14171f !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .filter-btn:hover {
    background: #1e293b !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
}
html[data-theme="dark"] .filter-btn.active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45) !important;
}

/* Modal Overlay & Container */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-container {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}
.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.15s;
}
.modal-close-btn:hover {
    color: var(--primary);
}
.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}
.modal-product-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary);
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
.form-select, .form-input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-select:focus, .form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}
.form-help {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.price-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff5f5;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border: 1px solid #ffc9c9;
}
.price-summary span:first-child {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}
.price-summary .price-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #e03131;
}
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: #fafafa;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.modal-footer .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 6px;
}
.btn-secondary {
    background: #f1f3f5;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: #e9ecef;
    color: var(--text-main);
}
.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border: none;
}
.btn-primary:hover {
    background: #333333;
}

/* QRIS Payment Section */
.qris-payment-area {
    margin-top: 1.5rem;
    padding-top: 1rem;
}
.payment-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    margin: 1rem 0;
}
.qris-code-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.qris-code-wrapper img {
    width: 200px;
    height: 200px;
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 8px;
    background: white;
}
.payment-instructions {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}
.qris-status-box {
    background: #e8f9ee;
    color: #2b8a3e;
    border: 1px solid #c3fae8;
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.qris-status-box.pending {
    background: #fff9db;
    color: #f08c00;
    border-color: #ffe066;
}
.btn-check-status {
    width: 100%;
    padding: 0.65rem;
    font-size: 0.85rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================================================
   NAV SEARCH FILTER BUTTON & DROPDOWN STYLES (EASYMALL / MALL-CONNECT)
   ========================================================================== */
.nav-search-actions-group {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    flex-shrink: 0;
}
.nav-search-divider {
    width: 1px;
    height: 18px;
    background: #dee2e6;
    margin: 0 2px;
    display: inline-block;
}
.nav-filter-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #1e293b !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
    white-space: nowrap !important;
    user-select: none !important;
    line-height: 1 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.nav-filter-btn:hover {
    background: #e2e8f0 !important;
    color: #0071e3 !important;
    border-color: #0071e3 !important;
}
.nav-filter-btn.active {
    background: rgba(0, 113, 227, 0.12) !important;
    color: #0071e3 !important;
    border-color: rgba(0, 113, 227, 0.4) !important;
}
.nav-filter-badge-count {
    background: #0071e3 !important;
    color: #ffffff !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    padding: 0 5px !important;
    border-radius: 9999px !important;
    height: 16px !important;
    line-height: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.nav-filter-chevron {
    transition: transform 0.2s ease;
}
.nav-filter-btn.open .nav-filter-chevron {
    transform: rotate(180deg);
}

.nav-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
    z-index: 10001;
    max-height: 82vh;
    overflow-y: auto;
    padding: 1.25rem;
    animation: navFilterFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}
@keyframes navFilterFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.nav-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f3f5;
    margin-bottom: 1rem;
}
.nav-filter-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1d1d1f;
}
.nav-filter-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: #0071e3;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s;
}
.nav-filter-reset-btn:hover {
    background: rgba(0, 113, 227, 0.08);
}
.nav-filter-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #334155;
}
.filter-icon {
    font-size: 0.85rem;
}
.filter-hint {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: normal;
    margin-left: auto;
}
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.filter-pill {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    font-size: 0.76rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.filter-pill:hover {
    border-color: #adb5bd;
    background: #e9ecef;
    color: #212529;
}
.filter-pill.active {
    background: #0071e3 !important;
    border-color: #0071e3 !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 113, 227, 0.25);
}
.filter-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.price-input-wrapper {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.25rem 0.55rem;
    flex: 1;
}
.price-currency {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6c757d;
    margin-right: 4px;
}
.filter-price-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.82rem;
    width: 100%;
    color: inherit;
}
.price-range-sep {
    color: #94a3b8;
    font-weight: bold;
}
.filter-pill-mini {
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    color: #495057;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
}
.filter-pill-mini:hover {
    background: #e2e8f0;
}
.nav-filter-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 1.25rem;
    padding-top: 0.9rem;
    border-top: 1px solid #dee2e6;
}
.btn-filter-secondary {
    background: #e9ecef;
    border: none;
    color: #495057;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
}
.btn-filter-primary {
    background: linear-gradient(135deg, #0071e3, #005bb5) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    padding: 7px 16px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25) !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
}
.btn-filter-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.35) !important;
}

/* Dark Mode */
html[data-theme="dark"] .nav-filter-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .nav-filter-btn:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #f8fafc !important;
}
html[data-theme="dark"] .nav-filter-btn.active {
    background: rgba(41, 151, 255, 0.2) !important;
    color: #70b7ff !important;
    border-color: rgba(41, 151, 255, 0.4) !important;
}
html[data-theme="dark"] .nav-filter-dropdown {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    color: #f8fafc;
}
html[data-theme="dark"] .nav-filter-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] .nav-filter-title {
    color: #f8fafc;
}
html[data-theme="dark"] .filter-label {
    color: #cbd5e1;
}
html[data-theme="dark"] .filter-pill {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
}
html[data-theme="dark"] .filter-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
html[data-theme="dark"] .filter-pill.active {
    background: #0071e3 !important;
    border-color: #0071e3 !important;
    color: #ffffff !important;
}
html[data-theme="dark"] .price-input-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}
html[data-theme="dark"] .filter-pill-mini {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}
html[data-theme="dark"] .nav-filter-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] .btn-filter-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}
