/* ========================================
   PRODUCTS PAGE - SPECIFIC STYLES
   ======================================== */

/* ========================================
   Products Hero
   ======================================== */
.products-hero {
    color: var(--white);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.products-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.products-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.products-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26,26,26,0.88) 0%, rgba(122,172,50,0.75) 100%);
}

.products-hero .container {
    position: relative;
    z-index: 2;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.breadcrumb-link:hover {
    color: var(--white);
}

.breadcrumb-link .svg-icon {
    width: 18px;
    height: 18px;
}

.breadcrumb-arrow {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.breadcrumb-current {
    color: var(--white);
    font-weight: 600;
}

.products-hero-title {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.products-hero-title .highlight {
    color: var(--accent-orange);
    display: inline-block;
}

.products-hero-subtitle {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
}

/* ========================================
   Products Page Section
   ======================================== */
.products-page-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8faf7 50%, #ffffff 100%);
}

.products-page-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
}

/* ========================================
   Sidebar Filters
   ======================================== */
/* Sidebar search exists only inside mobile drawer; desktop has its own
   header search box, so hide the sidebar search at >1024px. */
.products-sidebar .sidebar-search {
    display: none;
}

@media (max-width: 1024px) {
    .products-sidebar .sidebar-search {
        display: block;
    }
}

.products-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-gray);
}

/* Custom scrollbar for sidebar */
.products-sidebar::-webkit-scrollbar {
    width: 6px;
}

.products-sidebar::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.products-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 3px;
}

.products-sidebar::-webkit-scrollbar-thumb:hover {
    background: #5d8a1e;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--light-gray);
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-title .svg-icon {
    width: 28px;
    height: 28px;
    color: var(--primary-green);
}

.filter-reset {
    font-size: 13px;
    color: var(--accent-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-reset:hover {
    color: var(--dark);
}

/* Filter Groups */
.filter-group {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--light-gray);
}

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

.filter-title {
    font-family: var(--font-accent);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark);
    margin-bottom: 20px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Checkboxes */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    border-radius: var(--radius-sm);
}

.filter-checkbox:hover {
    background: var(--light-green);
}

.filter-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-green);
}

.checkbox-label {
    flex: 1;
    font-size: 15px;
    color: var(--dark-gray);
    font-weight: 500;
}

.checkbox-count {
    font-size: 13px;
    color: var(--medium-gray);
}

/* Price Range */
.price-range-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.price-input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.price-separator {
    font-weight: 600;
    color: var(--medium-gray);
}

.price-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--light-gray);
    outline: none;
    -webkit-appearance: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-green);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(122,172,50,0.4);
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-green);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(122,172,50,0.4);
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--medium-gray);
    font-weight: 500;
}

/* ========================================
   Products Main Content
   ======================================== */
.products-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Toolbar */
.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
}

.toolbar-left {
    flex: 1;
}

.products-count {
    font-size: 15px;
    color: var(--dark-gray);
}

.products-count strong {
    color: var(--primary-green);
    font-weight: 700;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* View Mode Toggle */
.view-mode {
    display: flex;
    gap: 8px;
    background: var(--light-gray);
    padding: 6px;
    border-radius: var(--radius-sm);
}

.view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--medium-gray);
    transition: var(--transition);
    cursor: pointer;
}

.view-btn:hover {
    color: var(--primary-green);
}

.view-btn.active {
    background: var(--white);
    color: var(--primary-green);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.view-btn .svg-icon {
    width: 20px;
    height: 20px;
}

/* Sort Select */
.sort-select {
    padding: 10px 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    min-width: 200px;
}

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

.sort-select:hover {
    border-color: var(--primary-green);
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 2px solid var(--light-gray);
    color: var(--dark);
    font-family: var(--font-accent);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-green);
    background: var(--primary-green);
    color: var(--white);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn .svg-icon {
    width: 20px;
    height: 20px;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-number {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 2px solid var(--light-gray);
    color: var(--dark);
    font-family: var(--font-accent);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.pagination-number:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.pagination-number.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

.pagination-dots {
    color: var(--medium-gray);
    font-weight: 700;
    padding: 0 8px;
}

/* ========================================
   Mobile Filter Toggle
   ======================================== */
.mobile-filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-accent);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 24px;
}

.mobile-filter-toggle:hover {
    background: #5d8a1e;
}

.mobile-filter-toggle .svg-icon {
    width: 20px;
    height: 20px;
}

.sidebar-close {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-close:hover {
    background: var(--accent-orange);
    color: var(--white);
}

.sidebar-close .svg-icon {
    width: 18px;
    height: 18px;
}

/* Apply Filters Button (hidden on desktop) */
.apply-filters {
    display: none;
}

/* ========================================
   Products Grid
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
}

.products-grid.list-view .product-image {
    height: 200px;
}

/* Loading Overlay */
.products-main {
    position: relative;
}

.products-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--radius-lg);
    gap: 16px;
}

.products-loading::after {
    content: 'Učitavanje proizvoda...';
    font-size: 14px;
    color: var(--medium-gray);
    font-weight: 500;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.products-grid.loading {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* No Products Message */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--light-gray);
}

.no-products .svg-icon {
    width: 64px;
    height: 64px;
    color: var(--medium-gray);
    margin-bottom: 24px;
}

.no-products h3 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--dark);
}

.no-products p {
    color: var(--medium-gray);
    font-size: 16px;
}

/* Active Filters */
.active-filters {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: var(--light-green);
    border-radius: var(--radius-md);
    border: 1px solid rgba(122, 172, 50, 0.2);
}

.active-filters-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.active-filters-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--white);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--dark);
    border: 1px solid var(--light-gray);
}

.active-filter-tag .remove-filter {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.active-filter-tag .remove-filter:hover {
    background: var(--accent-orange);
    color: var(--white);
}

.clear-all-filters {
    margin-left: auto;
    font-size: 13px;
    color: var(--accent-orange);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
}

.clear-all-filters:hover {
    color: var(--dark);
}

/* WooCommerce Pagination Override */
.products-pagination {
    margin-top: 48px;
}

.products-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.products-pagination .page-numbers li {
    display: inline-block;
}

.products-pagination .page-numbers a,
.products-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 2px solid var(--light-gray);
    color: var(--dark);
    font-family: var(--font-accent);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.products-pagination .page-numbers a:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.products-pagination .page-numbers .current {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

.products-pagination .page-numbers .prev,
.products-pagination .page-numbers .next {
    padding: 0 16px;
}

.products-pagination .page-numbers .svg-icon {
    width: 20px;
    height: 20px;
}

/* WooCommerce Breadcrumb Override */
.woocommerce-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
}

.woocommerce-breadcrumb a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.woocommerce-breadcrumb a:hover {
    color: var(--white);
}

/* Hero Gradient Background */
.hero-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d4a0f 50%, #7cac32 100%);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .products-page-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

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

    .products-sidebar {
        position: fixed !important;
        top: 0 !important;
        right: -110% !important;
        left: auto !important;
        width: min(360px, 88vw) !important;
        max-width: 360px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 999999 !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        padding: 20px 22px 100px !important;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.18);
        background: #fff;
    }

    .products-sidebar.active {
        right: 0 !important;
    }

    .sidebar-close {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #f0f7e8;
        color: var(--primary-green);
        border: 0;
        border-radius: 50%;
        flex-shrink: 0;
        cursor: pointer;
        margin-left: auto;
    }

    .sidebar-close:hover,
    .sidebar-close:active {
        background: var(--primary-green);
        color: #fff;
    }

    .sidebar-close .svg-icon {
        width: 18px;
        height: 18px;
    }

    .products-sidebar .sidebar-header {
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 2;
        padding: 4px 0 14px;
        margin-bottom: 14px;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .products-sidebar .sidebar-title {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--primary-green);
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .products-sidebar .filter-reset {
        font-size: 12px;
        color: #888;
        background: transparent;
        border: 0;
        cursor: pointer;
        text-decoration: underline;
    }

    /* Search bar at top of filter sidebar */
    .products-sidebar .sidebar-search {
        position: relative;
        margin-bottom: 18px;
        padding-bottom: 14px;
        border-bottom: 1px solid #f0f0f0;
    }

    .products-sidebar .sidebar-search-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(calc(-50% - 7px));
        color: #888;
        display: inline-flex;
        pointer-events: none;
    }

    .products-sidebar .sidebar-search-icon .svg-icon {
        width: 16px;
        height: 16px;
    }

    .products-sidebar .sidebar-search-input {
        width: 100%;
        height: 40px;
        padding: 0 16px 0 38px;
        border: 1px solid #e6e6e6;
        border-radius: 10px;
        font-size: 14px;
        background: #fff;
    }

    .products-sidebar .sidebar-search-input:focus {
        outline: none;
        border-color: var(--primary-green);
        box-shadow: 0 0 0 3px rgba(124, 172, 50, 0.12);
    }

    /* Sticky "Primeni filtere" button at the bottom of the drawer */
    .products-sidebar #applyFilters,
    .products-sidebar .apply-filters {
        position: sticky !important;
        bottom: 0 !important;
        left: 0;
        right: 0;
        margin: 24px -22px -24px !important;
        padding: 16px 22px !important;
        width: calc(100% + 44px);
        background: var(--primary-green) !important;
        color: #fff !important;
        border: 0 !important;
        border-radius: 0 !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.08), 0 -1px 0 #f0f0f0;
        z-index: 5;
        display: block !important;
        cursor: pointer;
    }

    .products-sidebar #applyFilters:hover,
    .products-sidebar .apply-filters:hover {
        background: var(--secondary-green) !important;
    }

    /* Make the sidebar bottom padding cooperate with sticky button */
    .products-sidebar {
        padding-bottom: 0 !important;
    }

    .apply-filters {
        display: block;
        margin-top: 24px;
    }

    .products-hero-title {
        font-size: 48px;
    }
}

/* Sidebar Overlay — solid dim, no blur */
body.sidebar-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    transition: opacity 0.25s ease;
}

body.sidebar-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .products-hero {
        padding: 80px 0 60px;
        min-height: 300px;
    }

    .products-hero-title {
        font-size: 36px;
    }

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

    .products-toolbar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .toolbar-left {
        text-align: center;
    }

    .toolbar-right {
        flex-direction: column;
        gap: 12px;
    }

    .sort-select {
        width: 100%;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .products-sidebar {
        padding: 24px;
        max-width: 100%;
    }

    .sidebar-title {
        font-size: 22px;
    }

    .products-hero-title {
        font-size: 28px;
    }

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

    .woocommerce-breadcrumb {
        font-size: 12px;
    }

    .pagination-numbers {
        display: none;
    }
}


/* =====================================================================
   Archive header — clean white card with breadcrumb + title (mfishing-like)
   ===================================================================== */
.archive-header {
    padding: 28px 0 0;
    background: transparent;
}

.archive-header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.archive-header-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.archive-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    line-height: 1.4;
}

.archive-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #999;
    text-decoration: none;
    transition: color 0.15s ease;
}

.archive-breadcrumb-link:hover {
    color: var(--primary-green);
}

.archive-breadcrumb-link .svg-icon {
    width: 12px;
    height: 12px;
}

.archive-breadcrumb-sep {
    color: #ccc;
    font-size: 13px;
    line-height: 1;
}

.archive-breadcrumb-current {
    color: var(--primary-green);
    font-weight: 600;
}

.archive-title {
    font-family: var(--font-accent, var(--font-display));
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    color: var(--dark);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.archive-subtitle {
    margin: 6px 0 0;
    color: #888;
    font-size: 13px;
    line-height: 1.5;
}

/* Reduce excessive padding now that the hero is no longer huge */
.products-page-section {
    padding: 24px 0 60px !important;
}

@media (max-width: 1024px) {
    .archive-header {
        padding: 18px 0 0;
    }

    .archive-header-container {
        padding: 0 16px;
    }

    .archive-header-card {
        padding: 14px 16px;
        border-radius: 12px;
    }

    .archive-title {
        font-size: 22px;
        letter-spacing: 0.5px;
    }

    .archive-subtitle {
        font-size: 12px;
    }

    .archive-breadcrumb {
        font-size: 11px;
        gap: 4px;
        margin-bottom: 6px;
    }

    .products-page-section {
        padding: 14px 0 48px !important;
    }

    .products-page-section .container {
        padding: 0 16px;
    }
}

/* Compact toolbar on mobile */
@media (max-width: 768px) {
    .archive-title {
        font-size: 18px;
    }

    .products-toolbar {
        margin-top: 12px !important;
        padding: 10px 14px !important;
        border-radius: 12px;
        background: #fff;
        border: 1px solid #f0f0f0;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
        gap: 10px !important;
    }

    .products-toolbar .toolbar-left {
        font-size: 13px;
        text-align: left !important;
    }

    .mobile-filter-toggle {
        margin: 14px 0 0 !important;
        padding: 12px 18px !important;
        border-radius: 12px !important;
    }

    .products-grid {
        margin-top: 12px !important;
        gap: 12px !important;
    }
}

/* =====================================================================
   Custom sort dropdown (replaces native <select>)
   ===================================================================== */
.sort-dropdown {
    position: relative;
    width: 100%;
}

.sort-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-family: var(--font-primary, inherit);
    font-size: 14px;
    color: var(--dark, #1f2937);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.2;
    text-align: left;
}

.sort-trigger:hover,
.sort-dropdown.is-open .sort-trigger {
    border-color: var(--primary-green, #7CAC32);
    box-shadow: 0 0 0 3px rgba(124, 172, 50, 0.08);
}

.sort-trigger .sort-label {
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

.sort-trigger .sort-current {
    flex: 1;
    font-weight: 600;
    color: var(--dark, #1f2937);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sort-trigger .sort-chevron {
    width: 16px;
    height: 16px;
    color: #6b7280;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sort-dropdown.is-open .sort-chevron {
    transform: rotate(180deg);
}

.sort-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 50;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.sort-dropdown.is-open .sort-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-option {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--dark, #1f2937);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.sort-option:hover {
    background: #f3f4f6;
}

.sort-option.is-active {
    background: rgba(124, 172, 50, 0.1);
    color: var(--primary-green, #7CAC32);
    font-weight: 600;
}

@media (min-width: 769px) {
    .sort-dropdown {
        min-width: 240px;
        width: auto;
    }
}

/* Force grid layout — list-view is removed */
.products-grid.list-view {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.products-grid.list-view .product-card {
    display: block;
    grid-template-columns: none;
    gap: 0;
}

.products-grid.list-view .product-image {
    height: auto;
}

@media (max-width: 480px) {
    .products-grid.list-view {
        grid-template-columns: 1fr;
    }

    /* Two cards per row on phones — tighten the card so the
       content (price + CTA) fits the ~150px column without
       spilling over and re-triggering horizontal scroll. */
    .products-grid .product-info {
        padding: 14px 12px;
    }

    .products-grid .product-brand {
        font-size: 10px;
    }

    .products-grid .product-name {
        font-size: 13px;
        margin-bottom: 8px;
        letter-spacing: 0.3px;
    }

    .products-grid .product-price {
        gap: 6px;
        margin-bottom: 12px;
        flex-wrap: wrap;
    }

    .products-grid .price-current {
        font-size: 17px;
    }

    .products-grid .price-old {
        font-size: 13px;
    }

    .products-grid .product-info .btn {
        width: 100%;
        padding: 10px 8px;
        font-size: 11px;
        letter-spacing: 0.4px;
        gap: 6px;
    }

    .products-grid .product-info .btn .svg-icon {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }
}
