/* Archive Page Styles - Updated Design Implementation */

/* Archive Page Header - Overlaid on Hero Section */
body.post-type-archive-product .top-bar,
body.tax-product_cat .top-bar {
    background-color: #0B926A !important;
    color: white !important;
    padding: 8px 0 !important;
    font-size: 14px !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1001 !important;
    display: block !important;
    visibility: visible !important;
}

body.post-type-archive-product .site-header,
body.tax-product_cat .site-header {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    box-shadow: none !important;
    position: absolute !important;
    top: 47px !important;
    /* Account for top bar height */
    width: 100% !important;
    z-index: 1000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 20px 0 !important;
    transition: all 0.3s ease !important;
}

/* Enhanced header integration on scroll (for future JavaScript enhancement) */
body.post-type-archive-product .site-header.scrolled,
body.tax-product_cat .site-header.scrolled {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* Archive Page Header Text White - Same as Homepage */
body.post-type-archive-product .primary-menu li a,
body.tax-product_cat .primary-menu li a {
    color: white !important;
    font-family: sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

body.post-type-archive-product .primary-menu li a:hover,
body.tax-product_cat .primary-menu li a:hover {
    color: #00b894 !important;
}

body.post-type-archive-product .header-actions a,
body.tax-product_cat .header-actions a {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

body.post-type-archive-product .header-actions a:hover,
body.tax-product_cat .header-actions a:hover {
    color: #00b894 !important;
}

body.post-type-archive-product .toggle-menu,
body.tax-product_cat .toggle-menu {
    color: white !important;
}

body.post-type-archive-product .toggle-menu:hover,
body.tax-product_cat .toggle-menu:hover {
    color: #00b894 !important;
}

/* Ensure cart count badge remains visible */
body.post-type-archive-product .cart-count,
body.tax-product_cat .cart-count {
    background-color: #00b894 !important;
    color: white !important;
}

/* Logo styling with enhanced shadow */
body.post-type-archive-product .custom-logo-link img,
body.tax-product_cat .custom-logo-link img {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8)) !important;
}

body.post-type-archive-product .logo-text,
body.tax-product_cat .logo-text {
    color: #00b894 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}



/* Archive Hero Section - Extended for Header Integration */
.archive-hero-section {
    height: 650px;
    /* Increased height to accommodate header */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    margin-top: 0;
    padding-top: 0;
}

/* Enhanced gradient overlay for better header integration */
.archive-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 25%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 6;
    pointer-events: none;
}

/* Old dark overlay - removed in favor of new gradient */

/* Shop Archive - Three Images Layout */
.shop-hero-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.hero-image-item {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.hero-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Category Archive - Single Image Layout */
.category-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.category-hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
    z-index: 6;
    pointer-events: none;
}

.category-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Archive Hero Content - Adjusted for Header Integration */
.archive-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 0 20px;
    margin-top: 60px;
    /* Account for header space */
}

.archive-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: normal;
    font-size: 120px;
    text-align: center;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    position: relative;
    z-index: 15;
}

/* Old Page Header - Hidden */
.page-header {
    display: none;
}

/* Shop Layout - Adjusted spacing for integrated header */
.shop-layout {
    padding: 60px 0 20px 0;
    /* Reduce bottom padding to remove extra space above footer */
    background-color: #f8f9fa;
}

.shop-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    border-radius: 8px;
    padding: 30px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filters-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-style: normal;
    font-size: 25px;
    line-height: 100%;
    letter-spacing: 18%;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 30px;
    border-bottom: 2px solid #1fa857;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters-title::before {
    content: '\f0b0';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 20px;
    color: #333;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
}

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

.filter-option {
    display: block;
}

.filter-link {
    display: block;
    padding: 12px 15px;
    background-color: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-link:hover,
.filter-link.active {
    background-color: #1fa857;
    color: white;
    transform: translateX(5px);
}

/* Price Filter - Removed as per requirements */

/* Products Area */
.products-area {
    background: white;
    border-radius: 8px;
    padding: 30px;
}

/* Products Header - Updated Design */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.products-count {
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

.products-controls {
    display: flex;
    align-items: center;
    gap: 30px;
}

.filters-toggle,
.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-toggle-btn {
    background: transparent;
    border: none;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
}

.filter-toggle-btn:hover {
    color: #1fa857;
}

.sort-dropdown {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    color: #666;
    outline: none;
    cursor: pointer;
    min-width: 180px;
}

.sort-dropdown:focus {
    border-color: #1fa857;
}

.view-controls {
    display: flex;
    gap: 5px;
}

.view-toggle {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.view-toggle.active,
.view-toggle:hover {
    background-color: #1fa857;
    color: white;
    border-color: #1fa857;
}

/* Archive Products Grid - Featured Watches Style */
/* Legacy styles commented out to prioritize global-components.css universal design
.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}
*/

/* List View Styling - Enhanced Design */
.featured-products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 25px;
}

.featured-products-grid.list-view .featured-product-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.featured-products-grid.list-view .featured-product-card:hover {
    transform: translateY(-3px);
    border-color: #e0e0e0;
}

.featured-products-grid.list-view .product-image {
    width: 180px;
    height: 160px;
    margin-right: 25px;
    margin-bottom: 0;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.featured-products-grid.list-view .product-image img {
    width: 180px;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-products-grid.list-view .featured-product-card:hover .product-image img {
    transform: scale(1.05);
}

.featured-products-grid.list-view .product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 160px;
    padding-right: 20px;
}

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

.featured-products-grid.list-view .product-title {
    font-size: 24px;
    font-weight: 400;
    color: #2C2B2B;
    margin-bottom: 8px;
    line-height: 1.3;
    font-family: 'Cormorant Garamond', serif;
    text-transform: uppercase;
}

.featured-products-grid.list-view .product-price {
    font-size: 20px;
    font-weight: 400;
    color: #2C2B2B;
    margin-bottom: 15px;
    font-family: 'Century Gothic', sans-serif;
}

.featured-products-grid.list-view .btn-shop {
    align-self: flex-start;
    margin-top: auto;
}

/* Legacy styles commented out to prioritize global-components.css universal design
.featured-product-card {
    background: transparent;
    border: none;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.featured-product-card:hover {
    transform: translateY(-5px);
}

.featured-product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-product-card>a {
    cursor: pointer;
}

.featured-product-card .product-image {
    margin-bottom: 12px;
    padding: 0;
    background-color: #ffffff;
    width: 298.57px;
    height: 307.36px;
    overflow: hidden;
    cursor: pointer;
}

.featured-product-card .product-image img {
    width: 298.57px;
    height: 307.36px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.featured-product-card>a:hover .product-image img {
    transform: scale(1.05);
}

.featured-product-card .product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 8px;
}

.featured-product-card .product-title {
    font-size: 20.55px;
    font-weight: 400;
    margin-bottom: 5px;
    letter-spacing: 1px;
    font-family: 'Cormorant Garamond', serif;
    text-transform: uppercase;
    color: #2C2B2B;
}

.featured-product-card .product-title a {
    color: #2C2B2B;
    text-decoration: none;
}

.featured-product-card .product-price {
    font-size: 18.93px;
    font-weight: 400;
    color: #2C2B2B;
    margin-bottom: 8px;
    font-family: 'Century Gothic', sans-serif;
}
*/

/* Shop Now Button - Featured Watches Style with Updated Specifications */
/* Legacy styles commented out to prioritize global-components.css universal design
.btn-shop {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 0.75px solid #000000 !important;
    padding: 9.2px 17.31px;
    font-size: 10.44px;
    font-weight: 400;
    letter-spacing: 0%;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-family: 'Century Gothic', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 120%;
    text-decoration: none;
    width: 113.66px;
    height: 33.27px;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 0;
    gap: 5.41px;
    opacity: 1;
}

.btn-shop:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

.btn-shop:hover .shop-icon {
    filter: brightness(1) invert(1) !important;
}

.btn-shop:hover .btn-text {
    color: #ffffff !important;
}

.btn-shop:hover .shop-icon {
    filter: brightness(1) invert(1) !important;
}

.btn-shop .btn-text {
    display: inline-block;
    color: #000000 !important;
    font-family: 'Century Gothic', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 10.44px;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
}

.btn-shop .shop-icon {
    display: inline-block;
    width: 16.23px;
    height: 14.26px;
    background-image: url('../Images/Icons/basket.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    filter: brightness(0) !important;
    opacity: 1;
    position: relative;
    top: 0.98px;
}
*/

/* No Products */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-products h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.no-products p {
    font-size: 16px;
    line-height: 1.6;
}

/* Products Pagination */
.products-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.products-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background-color: #f8f9fa;
    color: #666;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.products-pagination .page-numbers:hover {
    background-color: #1fa857;
    color: white;
    border-color: #1fa857;
    transform: translateY(-2px);
}

.products-pagination .page-numbers.current {
    background-color: #1fa857;
    color: white;
    border-color: #1fa857;
}

.products-pagination .prev,
.products-pagination .next {
    font-size: 14px;
    padding: 0 15px;
    width: auto;
}



/* Responsive Design */
@media (max-width: 1200px) {
    .archive-hero-title {
        font-size: 100px;
    }

    .shop-wrapper {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }

    /* Legacy media query overrides commented out
    .featured-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .featured-product-card .product-image {
        width: 250px;
        height: 257px;
    }

    .featured-product-card .product-image img {
        width: 250px;
        height: 257px;
    }
*/
}

@media (max-width: 992px) {
    .archive-hero-title {
        font-size: 80px;
    }

    .archive-hero-section {
        height: 500px;
        /* Adjusted height for tablet */
    }

    .shop-hero-images {
        flex-direction: column;
    }

    .hero-image-item {
        flex: 1;
    }

    .shop-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .filters-sidebar {
        position: static;
        order: 2;
    }

    .products-area {
        order: 1;
    }

    .products-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .products-controls {
        justify-content: space-between;
    }

    /* Legacy media query overrides commented out
    .featured-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .featured-product-card .product-image {
        width: 220px;
        height: 226px;
    }

    .featured-product-card .product-image img {
        width: 220px;
        height: 226px;
    }
*/

    /* List View Responsive - Tablet */
    .featured-products-grid.list-view .featured-product-card {
        padding: 20px;
    }

    .featured-products-grid.list-view .product-image {
        width: 140px;
        height: 120px;
        margin-right: 20px;
    }

    .featured-products-grid.list-view .product-image img {
        width: 140px;
        height: 120px;
    }

    .featured-products-grid.list-view .product-content {
        height: 120px;
        padding-right: 15px;
    }

    .featured-products-grid.list-view .product-title {
        font-size: 20px;
    }

    .featured-products-grid.list-view .product-price {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .archive-hero-title {
        font-size: 60px;
    }

    .archive-hero-section {
        height: 450px;
        /* Adjusted height for mobile */
    }

    .archive-hero-content {
        margin-top: 40px;
        /* Reduced margin for mobile */
    }

    /* Responsive header positioning for mobile - Non-sticky overlay */
    body.post-type-archive-product .top-bar,
    body.tax-product_cat .top-bar {
        display: none !important;
        /* Hide top bar on mobile for archive pages */
    }

    body.post-type-archive-product .site-header,
    body.tax-product_cat .site-header {
        position: absolute !important;
        /* Keep as overlay, not sticky */
        top: 0 !important;
        /* No offset needed since top bar is hidden */
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        padding: 15px 0 !important;
    }

    .shop-layout {
        padding: 40px 0;
    }

    /* Mobile Filter Sidebar - Hidden by default, collapsible */
    .filters-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        z-index: 1050;
        overflow-y: auto;
        padding: 80px 20px 20px 20px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }

    .filters-sidebar.active {
        display: block;
        animation: slideInFromTop 0.3s ease-out;
    }

    /* Mobile filter backdrop */
    .filter-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1049;
    }

    .filter-backdrop.active {
        display: block;
        animation: fadeIn 0.3s ease-out;
    }

    @keyframes slideInFromTop {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    /* Filter close button for mobile */
    .filters-sidebar::before {
        content: '×';
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 30px;
        cursor: pointer;
        background: #f8f9fa;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        color: #333;
        border: 1px solid #ddd;
        z-index: 1051;
        transition: all 0.3s ease;
    }

    .filters-sidebar::before:hover {
        background: #e9ecef;
        transform: scale(1.1);
    }

    /* Make filter links more touch-friendly on mobile */
    .filter-link {
        padding: 16px 20px !important;
        font-size: 16px !important;
        margin-bottom: 8px;
        border-radius: 8px !important;
        transition: all 0.3s ease;
    }

    .filter-link:hover,
    .filter-link.active {
        background-color: #1fa857 !important;
        color: white !important;
        transform: translateX(5px);
        box-shadow: 0 4px 8px rgba(31, 168, 87, 0.3);
    }

    .filters-title {
        font-size: 24px !important;
        margin-bottom: 25px;
        padding-bottom: 15px;
        text-align: center;
    }

    .filter-group {
        margin-bottom: 25px;
    }

    .filter-label {
        font-size: 18px !important;
        margin-bottom: 15px;
        color: #333;
        font-weight: 600;
    }

    /* Show filter toggle button prominently on mobile */
    .filters-toggle {
        display: flex !important;
        align-items: center;
        gap: 8px;
        font-size: 16px !important;
        font-weight: 600;
        color: #333;
        text-transform: uppercase;
        letter-spacing: 1px;
        background: #f8f9fa;
        padding: 12px 20px;
        border-radius: 8px;
        border: 2px solid #1fa857;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-bottom: 20px;
        justify-content: center;
        width: 100%;
    }

    .filters-toggle:hover {
        background: #1fa857;
        color: white;
    }

    .filter-toggle-btn {
        background: transparent;
        border: none;
        color: inherit;
        font-size: 18px;
        cursor: pointer;
        padding: 0;
    }

    .products-area {
        padding: 20px;
    }

    /* Mobile: Two column grid for product cards */
    /* Legacy media query overrides commented out
    .featured-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .featured-product-card .product-image {
        width: 100%;
        height: 180px;
    }

    .featured-product-card .product-image img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

    .featured-product-card .product-title {
        font-size: 16px;
        line-height: 1.2;
        margin-bottom: 4px;
    }

    .featured-product-card .product-price {
        font-size: 15px;
        margin-bottom: 8px;
    }

    /* Adjust button size for mobile */
    .btn-shop {
        width: 100px;
        height: 30px;
        padding: 6px 12px;
        font-size: 9px;
        gap: 4px;
    }

    .btn-shop .shop-icon {
        width: 12px;
        height: 11px;
    }

    */

    /* Mobile products header adjustments */
    .products-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .products-controls {
        flex-direction: column;
        gap: 15px;
    }

    .sort-controls {
        order: 2;
    }

    .view-controls {
        order: 3;
        align-self: center;
    }



    /* List View Responsive - Mobile */
    .featured-products-grid.list-view {
        grid-template-columns: 1fr;
    }

    .featured-products-grid.list-view .featured-product-card {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .featured-products-grid.list-view .product-image {
        width: 100%;
        height: 200px;
        max-width: 250px;
        margin: 0 auto 15px auto;
    }

    .featured-products-grid.list-view .product-image img {
        width: 100%;
        height: 200px;
        max-width: 250px;
    }

    .featured-products-grid.list-view .product-content {
        height: auto;
        padding-right: 0;
        align-items: center;
        text-align: center;
    }

    .featured-products-grid.list-view .product-title {
        font-size: 18px;
        text-align: center;
    }

    .featured-products-grid.list-view .product-price {
        font-size: 16px;
        text-align: center;
    }

    .featured-products-grid.list-view .btn-shop {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .archive-hero-title {
        font-size: 40px;
        letter-spacing: 1px;
    }

    .archive-hero-section {
        height: 350px;
    }

    .shop-layout {
        padding: 30px 0;
    }

    .filters-sidebar {
        padding: 70px 15px 15px 15px;
    }

    .products-area {
        padding: 15px;
    }

    /* Smaller cards for very small screens */
    .featured-products-grid {
        gap: 12px;
    }

    .featured-product-card {
        padding: 15px;
    }

    .featured-product-card .product-image {
        height: 160px;
    }

    .featured-product-card .product-image img {
        height: 160px;
    }

    .featured-product-card .product-title {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .featured-product-card .product-price {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .btn-shop {
        width: 90px;
        height: 28px;
        padding: 5px 10px;
        font-size: 8px;
        gap: 3px;
    }

    .btn-shop .shop-icon {
        width: 10px;
        height: 9px;
    }

    /* Smaller filter toggle button */
    .filters-toggle {
        padding: 10px 16px;
        font-size: 14px !important;
    }

    /* Products header on very small screens */
    .products-count {
        font-size: 14px;
        text-align: center;
    }

    .sort-dropdown {
        width: 100%;
        min-width: auto;
    }


}

/* Extra small devices - 380px and below */
@media (max-width: 380px) {
    .featured-products-grid {
        gap: 10px;
    }

    .featured-product-card {
        padding: 12px;
    }

    .featured-product-card .product-image {
        height: 140px;
    }

    .featured-product-card .product-image img {
        height: 140px;
    }

    .archive-hero-title {
        font-size: 32px;
    }

    .filters-toggle {
        padding: 8px 14px;
        font-size: 13px !important;
    }
}