.nav-active {
    color: var(--orange) !important;
    font-weight: 600;
}

.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1a2a7a 60%, #0d1a63 100%);
    padding: calc(var(--nav-height) + 2.5rem) 2rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(246,128,72,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1rem;
}

.breadcrumb-nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-nav a:hover { color: var(--orange); }

.breadcrumb-nav i { font-size: 0.7rem; }

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: white;
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
}

.shop-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

.sidebar {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--cream);
}

.sidebar-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-header h3 i { color: var(--orange); }

.clear-filters-btn {
    background: none;
    border: none;
    color: var(--orange);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.clear-filters-btn:hover {
    background: rgba(246,128,72,0.1);
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.9rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0;
    cursor: pointer;
    color: var(--dark-gray);
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-option:hover { color: var(--orange); }

.filter-option input[type="radio"] {
    accent-color: var(--orange);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Price slider */
.price-range-wrap { padding: 0.2rem 0; }

.price-slider {
    width: 100%;
    accent-color: var(--orange);
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
}

/* Sort */
.sort-select {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--dark-gray);
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:focus {
    outline: none;
    border-color: var(--orange);
}

/* Tag buttons */
.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-btn {
    padding: 0.35rem 0.9rem;
    border: 2px solid #e8e8e8;
    border-radius: 30px;
    background: white;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.tag-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.tag-btn.active {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--navy);
}

.products-main {
    min-width: 0;
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 14px;
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.results-info {
    font-size: 0.9rem;
    color: #666;
}

.results-info span {
    font-weight: 700;
    color: var(--navy);
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.mobile-filter-toggle {
    display: none;
    align-items: center;
    gap: 0.4rem;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.mobile-filter-toggle:hover { background: var(--orange); color: var(--navy); }

.view-toggle {
    display: flex;
    gap: 0.3rem;
    background: var(--cream);
    padding: 0.3rem;
    border-radius: 10px;
}

.view-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: #999;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.view-btn.active {
    background: white;
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    border-radius: 16px;
    align-items: center;
    overflow: hidden;
}

.products-grid.list-view .product-image {
    height: 100%;
    min-height: 160px;
    border-radius: 0;
}

.products-grid.list-view .product-badge {
    top: 0.75rem;
    left: 0.75rem;
}

.products-grid.list-view .product-overlay {
    border-radius: 16px 0 0 16px;
}

.products-grid.list-view .product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.2rem 1.5rem;
    gap: 0.3rem;
}

.products-grid.list-view .product-title {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.products-grid.list-view .product-price {
    margin-bottom: 0;
}

.products-grid.list-view .current-price {
    font-size: 1.2rem;
}

.products-grid.list-view .add-to-cart {
    width: auto;
    white-space: nowrap;
    margin-right: 1.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    font-size: 0.88rem;
    align-self: center;
}

.no-results-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
}

.no-results-state i {
    font-size: 4rem;
    color: #ddd;
    display: block;
    margin-bottom: 1rem;
}

.no-results-state h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.no-results-state p {
    color: #888;
    margin-bottom: 1.5rem;
}

.btn-reset {
    background: var(--orange);
    color: var(--navy);
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.btn-reset:hover { background: var(--navy); color: white; }

/* mobile sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 500;
}

.sidebar-overlay.active { display: block; }


@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 230px 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr; /* sidebar chnages to drawer */
        padding: 1rem;
        gap: 1rem;
    }


    .sidebar {
        position: fixed;
        top: var(--nav-height);
        left: -310px;
        width: 290px;
        height: calc(100dvh - var(--nav-height));
        overflow-y: auto;
        border-radius: 0 16px 16px 0;
        z-index: 600;
        transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
    }
    .sidebar.mobile-open {
        left: 0;
        box-shadow: 4px 0 24px rgba(0,0,0,0.2);
    }


    .mobile-filter-toggle { display: flex; }


    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* List view */
    .products-grid.list-view { grid-template-columns: 1fr; }
    .products-grid.list-view .product-card { grid-template-columns: 140px 1fr auto; }
    .products-grid.list-view .product-image { height: 100%; min-height: 140px; border-radius: 0; }
    .products-grid.list-view .product-info { padding: 1rem 1rem 1rem 1.2rem; }
    .products-grid.list-view .add-to-cart { margin-right: 1rem; padding: 0.6rem 1rem; font-size: 0.82rem; }


    .products-toolbar { padding: 0.75rem 1rem; }

    .page-hero { padding: calc(var(--nav-height) + 1.5rem) 1.2rem 2rem; }
    .page-hero h1 { font-size: 1.9rem; }
}


@media (max-width: 560px) {
    .shop-layout { padding: 0.75rem; gap: 0.75rem; }

    .sidebar { width: 270px; }

    .products-toolbar { padding: 0.65rem 0.75rem; gap: 0.5rem; }
    .results-info { font-size: 0.8rem; }
    .mobile-filter-toggle { padding: 0.45rem 0.7rem; font-size: 0.8rem; }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }

    .products-grid.list-view .product-card { grid-template-columns: 130px 1fr; grid-template-rows: auto auto; }
    .products-grid.list-view .product-image { height: 100%; min-height: 130px; border-radius: 0; }
    .products-grid.list-view .add-to-cart { grid-column: 2; margin-right: 0; margin-top: 0; width: 100%; padding: 0.55rem 1rem; }

    .page-hero { padding: calc(var(--nav-height) + 1rem) 1rem 1.5rem; }
    .page-hero h1 { font-size: 1.5rem; }
    .page-hero p { font-size: 0.85rem; }
    .breadcrumb-nav { font-size: 0.78rem; }

    .no-results-state { padding: 2.5rem 1rem; }
    .no-results-state i { font-size: 3rem; }
}

@media (max-width: 380px) {
    .products-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .products-grid.list-view .product-card { grid-template-columns: 110px 1fr; }
    .products-grid.list-view .product-image { height: 100%; min-height: 110px; border-radius: 0; }
    .products-grid.list-view .add-to-cart { grid-column: 2; width: 100%; }
}