/* All Products Page Styles */

/* Font Awesome font-display override for better performance */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: local('Font Awesome 6 Free');
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Font Awesome 6 Brands');
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #2D2D2D;
    background-color: #FEFEFE;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Category Filter Pills */
.category-filter {
    padding: 40px 0 40px;
    background: #FEFEFE;
    margin-top: 120px; /* Account for fixed header */
}

.filter__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #F8F9FA;
    border: 2px solid #E9ECEF;
    border-radius: 50px;
    color: #6C757D;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.pill:hover {
    background: #2DBEC1;
    border-color: #2DBEC1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 190, 193, 0.25);
}

.pill--active {
    background: #2DBEC1;
    border-color: #2DBEC1;
    color: white;
    box-shadow: 0 4px 15px rgba(45, 190, 193, 0.25);
}

.pill i {
    font-size: 0.85rem;
}

/* Category Hero Section */
.category-hero {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(45, 190, 193, 0.1);
    text-align: center;
    transition: all 0.4s ease;
}

.category-hero__content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-hero__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.category-hero__icon i {
    font-size: 3rem;
    color: #2DBEC1;
    background: linear-gradient(135deg, #2DBEC1 0%, #1ea6a9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(45, 190, 193, 0.2));
}

.category-hero__title {
    font-family: 'Cormorant', serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: #2D2D2D;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.category-hero__subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #2DBEC1;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.category-hero__description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #6C757D;
    line-height: 1.7;
    margin-bottom: 16px;
    font-weight: 400;
}

.category-hero__tagline {
    font-family: 'Cormorant', serif;
    font-size: 1.2rem;
    color: #2D2D2D;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 0;
}

/* Responsive adjustments for category hero */
@media (max-width: 768px) {
    .category-hero {
        padding: 30px 0;
    }
    
    .category-hero__icon i {
        font-size: 2.5rem;
    }
    
    .category-hero__title {
        font-size: 2rem;
    }
    
    .category-hero__subtitle {
        font-size: 0.9rem;
    }
    
    .category-hero__description {
        font-size: 1rem;
    }
    
    .category-hero__tagline {
        font-size: 1.1rem;
    }
}

/* Products Section */
.products {
    padding: 20px 0 60px;
}

/* Products Grid */
.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
    margin-top: 20px;
    justify-items: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    /* CRITICAL FIX: Reserve space to prevent footer jumping */
    min-height: 600px;
}

/* Product Cards - Enhanced Design */
.product-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.05), 
        0 2px 12px rgba(0, 0, 0, 0.03),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    width: 100%;
    max-width: 310px;
    height: 420px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    will-change: transform;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 20px 50px rgba(45, 190, 193, 0.1), 
        0 10px 25px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(45, 190, 193, 0.15);
    border-color: rgba(45, 190, 193, 0.25);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, 
        rgba(45, 190, 193, 0.03) 0%, 
        rgba(26, 154, 157, 0.06) 50%,
        rgba(244, 231, 214, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    border-radius: 24px;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 50%, #f4e7d6 100%);
    border-radius: 24px 24px 0 0;
    z-index: 2;
    /* Reserve space to prevent layout shift during image loading */
    aspect-ratio: 1 / 1;
    contain: layout style paint;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    /* Improve image rendering performance */
    content-visibility: auto;
}

.product-card:hover .product-card__image img {
    transform: scale(1.05) translateZ(0);
}

/* Enhanced Badges System */
.product-card__badges {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
}

.product-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.3);
    will-change: transform;
}

.product-card:hover .product-card__badge {
    transform: translateY(-2px) scale(1.05);
}

/* Size/Weight badge - Warm Sand */
.product-card__badge--size {
    background: linear-gradient(135deg, 
        rgba(200, 168, 130, 0.95), 
        rgba(190, 158, 120, 0.9));
    color: #2D2D2D;
    border-color: rgba(200, 168, 130, 0.8);
    box-shadow: 
        0 4px 16px rgba(200, 168, 130, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

/* Category badge - Turquoise */
.product-card__badge--category {
    background: linear-gradient(135deg, 
        rgba(45, 190, 193, 0.95), 
        rgba(35, 180, 183, 0.9));
    color: #FFFFFF;
    border-color: rgba(45, 190, 193, 0.8);
    box-shadow: 
        0 4px 16px rgba(45, 190, 193, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

/* Quality badge - Fresh Green */
.product-card__badge--quality {
    background: linear-gradient(135deg, 
        rgba(32, 201, 151, 0.95), 
        rgba(25, 190, 140, 0.9));
    color: #FFFFFF;
    border-color: rgba(32, 201, 151, 0.8);
    box-shadow: 
        0 4px 16px rgba(32, 201, 151, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

/* Stock Coming badge - Warning */
.product-card__badge--stock {
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.95), 
        rgba(255, 171, 0, 0.9));
    color: #212529;
    border-color: rgba(255, 193, 7, 0.8);
    box-shadow: 
        0 4px 16px rgba(255, 193, 7, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
    font-weight: 600;
}

/* Special badge for premium/limited items */
.product-card__badge--premium {
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.95), 
        rgba(123, 31, 162, 0.9));
    color: #FFFFFF;
    border-color: rgba(138, 43, 226, 0.8);
    box-shadow: 
        0 4px 16px rgba(138, 43, 226, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

/* Shipping/Delivery badge - Ocean Turquoise */
.product-card__badge--shipping {
    background: linear-gradient(135deg, 
        rgba(23, 162, 184, 0.95), 
        rgba(20, 150, 170, 0.9));
    color: #FFFFFF;
    border-color: rgba(23, 162, 184, 0.8);
    box-shadow: 
        0 4px 16px rgba(23, 162, 184, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

/* Handmade badge - Warm Terracotta */
.product-card__badge--handmade {
    background: linear-gradient(135deg, 
        rgba(230, 126, 34, 0.95), 
        rgba(220, 116, 24, 0.9));
    color: #FFFFFF;
    border-color: rgba(230, 126, 34, 0.8);
    box-shadow: 
        0 4px 16px rgba(230, 126, 34, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

/* Plant-based badge - Rich Plant Green */
.product-card__badge--plant-based {
    background: linear-gradient(135deg, 
        rgba(40, 167, 69, 0.95), 
        rgba(35, 150, 60, 0.9));
    color: #FFFFFF;
    border-color: rgba(40, 167, 69, 0.8);
    box-shadow: 
        0 4px 16px rgba(40, 167, 69, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

/* Location badge - Cornwall Turquoise Gradient */
.product-card__badge--location {
    background: linear-gradient(135deg, 
        rgba(23, 162, 184, 0.95), 
        rgba(32, 201, 151, 0.9));
    color: #FFFFFF;
    border-color: rgba(23, 162, 184, 0.8);
    box-shadow: 
        0 4px 16px rgba(23, 162, 184, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

/* Sustainability badge - Earth Green */
.product-card__badge--sustainability {
    background: linear-gradient(135deg, 
        rgba(25, 135, 84, 0.95), 
        rgba(20, 125, 75, 0.9));
    color: #FFFFFF;
    border-color: rgba(25, 135, 84, 0.8);
    box-shadow: 
        0 4px 16px rgba(25, 135, 84, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

/* Beeswax badge - Honey Golden */
.product-card__badge--beeswax {
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.95), 
        rgba(255, 171, 0, 0.9));
    color: #212529;
    border-color: rgba(255, 193, 7, 0.8);
    box-shadow: 
        0 4px 16px rgba(255, 193, 7, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
    font-weight: 600;
}

/* Badge icon spacing */
.product-card__badge i {
    margin-right: 4px;
    font-size: 10px;
}

/* Legacy stock badge for compatibility */
.product-card__stock-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.95), 
        rgba(255, 171, 0, 0.9));
    color: #212529;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 5;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.product-card__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6C757D;
    background: linear-gradient(145deg, #F4E7D6 0%, #E8DCC0 50%, #f0e3cc 100%);
    position: relative;
    overflow: hidden;
}

.product-card__placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.product-card__placeholder i {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.8;
    z-index: 2;
    position: relative;
    color: #2DBEC1;
    text-shadow: 0 2px 8px rgba(45, 190, 193, 0.2);
}

.product-card__placeholder span {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 0 20px;
    z-index: 2;
    position: relative;
    color: #2D2D2D;
}

.product-card__content {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    height: 200px;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
}

.product-card__name {
    font-family: 'Cormorant', serif;
    font-size: 1.45rem;
    font-weight: 500;
    color: #2D2D2D;
    line-height: 1.2;
    margin: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.product-card:hover .product-card__name {
    color: #2DBEC1;
    transform: translateY(-1px);
    text-shadow: 0 2px 8px rgba(45, 190, 193, 0.2);
}



.product-card__subtitle {
    color: #8B9DC3;
    font-size: 0.81rem;
    font-weight: 500;
    margin: -5px 0 -15px 0;
    opacity: 0.9;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}


.product-card:hover .product-card__subtitle {
    color: #6C84B8;
    opacity: 1;
    transform: translateY(-0.5px);
}

.product-card__description {
    color: #6C757D;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-weight: 400;
    flex-grow: 1;
}

.product-card:hover .product-card__description {
    opacity: 1;
    transform: translateY(-1px);
    color: #5A6269;
}

.product-card__price-row {
    margin: 8px 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 32px;
}

.product-card__price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2DBEC1;
    margin: 0;
    text-shadow: 0 2px 6px rgba(45, 190, 193, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.1;
}

.product-card:hover .product-card__price {
    transform: translateY(-1px) scale(1.01);
    text-shadow: 0 4px 12px rgba(45, 190, 193, 0.3);
    color: #1a9a9d;
}

.product-card__add-to-cart {
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, #2DBEC1 0%, #1a9a9d 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    box-shadow: 
        0 6px 20px rgba(45, 190, 193, 0.3),
        0 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: auto;
    flex-shrink: 0;
}

.product-card__add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.6s ease;
}

.product-card:hover .product-card__add-to-cart::before {
    left: 100%;
}

.product-card:hover .product-card__add-to-cart {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 
        0 10px 28px rgba(45, 190, 193, 0.35),
        0 5px 14px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #35c8cb 0%, #209ea1 100%);
}

.product-card__add-to-cart:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Out of Stock Product Card Styling */
.product-card--out-of-stock {
    opacity: 0.65;
    filter: grayscale(30%);
}

.product-card--out-of-stock:hover {
    transform: translateY(-2px) scale(1.005) !important;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.08), 
        0 4px 10px rgba(0, 0, 0, 0.04) !important;
}

.product-card--out-of-stock .product-card__image img {
    opacity: 0.7;
}

.product-card--out-of-stock::before {
    opacity: 0 !important;
}

.product-card__add-to-cart:disabled,
.product-card__add-to-cart.out-of-stock {
    background: #dc3545 !important;
    color: white !important;
    cursor: not-allowed !important;
    box-shadow: 
        0 4px 12px rgba(220, 53, 69, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.05) !important;
    opacity: 0.9 !important;
}

.product-card__add-to-cart:disabled:hover,
.product-card__add-to-cart.out-of-stock:hover {
    transform: none !important;
    background: #c82333 !important;
    box-shadow: 
        0 4px 12px rgba(220, 53, 69, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

.product-card__add-to-cart i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__add-to-cart i {
    transform: scale(1.1);
}

/* Loading States */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn--primary {
    background: #2DBEC1;
    color: white;
}

.btn--primary:hover {
    background: #1a9a9d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 190, 193, 0.3);
}

.btn--secondary {
    background: white;
    color: #2DBEC1;
    border: 2px solid #2DBEC1;
}

.btn--secondary:hover {
    background: #2DBEC1;
    color: white;
}

/* Error/No Results States */
.error-state,
.no-results__content,
.no-products-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #6C757D;
}

.error-state i,
.no-results__content i,
.no-products-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #E9ECEF;
}

.error-state h3,
.no-results__content h3,
.no-products-state h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #495057;
}

.error-state p,
.no-results__content p,
.no-products-state p {
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    line-height: 1.6;
    text-align: center;
}

.no-results__content h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #495057;
    display: block;
    text-align: center;
    width: 100%;
}

.no-results {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    text-align: center;
}

.no-results__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-filter {
        padding: 30px 0 40px;
        margin-top: 140px; /* Account for fixed header on tablet */
    }
    
    .filter__pills {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 20px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .pill {
        flex-shrink: 0;
        padding: 16px 20px;
        font-size: 0.9rem;
        font-weight: 600;
        text-align: center;
        justify-content: center;
        border-radius: 16px;
        min-height: 56px;
        display: flex;
        align-items: center;
    }
    
    .pill i {
        font-size: 1rem;
        margin-right: 4px;
    }
    
    .results-info {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .products__grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 24px;
        padding: 0 16px;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .product-card {
        width: 100%;
        max-width: 350px;
        height: 450px;
        margin: 0 auto;
        border-radius: 20px;
    }
    
    .product-card__image {
        height: 220px;
    }
    
    .product-card__badges {
        top: 16px;
        left: 16px;
        right: 16px;
        gap: 8px;
    }
    
    .product-card__badge {
        padding: 6px 12px;
        font-size: 10px;
        font-weight: 600;
    }
    
    .product-card__content {
        padding: 20px 18px 18px;
        gap: 10px;
        height: 230px;
    }
    
    .product-card__name {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .product-card__subtitle {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .product-card__description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .product-card__price {
        font-size: 1.5rem;
        font-weight: 600;
    }
    
    .product-card__add-to-cart {
        padding: 16px 20px;
        font-size: 0.95rem;
        height: 52px;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .category-filter {
        padding: 20px 0 30px;
        margin-top: 130px; /* Account for fixed header on mobile */
    }
    
    .filter__pills {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 0 16px;
        max-width: 100%;
    }
    
    .pill {
        padding: 14px 16px;
        font-size: 0.85rem;
        font-weight: 600;
        min-height: 52px;
        border-radius: 14px;
    }
    
    .pill i {
        font-size: 0.9rem;
        margin-right: 4px;
    }
    
    .products__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .product-card {
        width: 100%;
        max-width: 100%;
        height: 420px;
        border-radius: 18px;
    }
    
    .product-card__image {
        height: 200px;
    }
    
    .product-card__badges {
        top: 12px;
        left: 12px;
        right: 12px;
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .product-card__badge {
        padding: 5px 10px;
        font-size: 9px;
        border-radius: 12px;
        font-weight: 600;
    }
    
    .product-card__content {
        padding: 16px 14px 14px;
        gap: 6px;
        height: 180px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .category-filter,
    .products {
        padding-left: 0;
        padding-right: 0;
    }
    
    .pill {
        padding: 8px 16px;
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .product-card__name {
        font-size: 1.4rem;
    }
    
    .product-card__subtitle {
        font-size: 0.8rem;
        margin: -6px 0 2px 0;
    }
    
    .product-card__description {
        font-size: 0.82rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .product-card__price {
        font-size: 1.4rem;
    }
    
    .product-card__add-to-cart {
        padding: 10px 14px;
        font-size: 0.8rem;
        height: 40px;
        border-radius: 12px;
    }
    
    .product-card__add-to-cart i {
        font-size: 0.9rem;
    }
}

/* Tablet Landscape Optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .products__grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 22px;
    }
    
    .product-card {
        max-width: 300px;
    }
}

/* Large Desktop Optimization */
@media (min-width: 1400px) {
    .products__grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 28px;
    }
    
    .product-card {
        max-width: 330px;
        height: 440px;
    }
    
    .product-card__image {
        height: 240px;
    }
    
    .product-card__content {
        height: 200px;
        padding: 24px 22px 22px;
    }
    
    .product-card__name {
        font-size: 1.4rem;
    }
    
    .product-card__description {
        font-size: 0.92rem;
    }
    
    .product-card__add-to-cart {
        height: 48px;
        padding: 16px 20px;
        font-size: 0.95rem;
    }
}
