.category-products-grid {
    margin-top: 20px;
}
/* --- FOUNDATION & RESET --- */
:root { 
    /* Rebrand to brown + white (Amazon-inspired) */
    --primary-purple: #8B5E3C; /* primary brown */
    --secondary-purple: #C49A6C; /* lighter brown */
    --background-white: #f7f7f7;
    --text-dark: #1d1d1f;
    --christmas-red: #DC2626;
    --christmas-green: #059669;
    font-size: 16px; 
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}
body.no-glow * { box-shadow: none !important; text-shadow: none !important; }

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

/* --- HEADER --- */
.header {
    width: 100%;
    background: #232F3E; /* Amazon-style dark header */
    padding: 15px 0;
    min-height: 70px;
}

/* Welcome banner */
.welcome-banner {
    background: #FFF7ED; /* light orange tint */
    border-bottom: 1px solid #FDE68A;
}

.welcome-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 20px;
}

.welcome-text {
    color: #92400E;
    font-weight: 600;
    font-size: 0.95rem;
}

.welcome-dismiss {
    background: transparent;
    border: none;
    color: #92400E;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 6px;
    border-radius: 6px;
}

.welcome-dismiss:hover { background: #FDE68A; }

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo { height: 40px; border-radius: 6px; }

.site-name {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); 
}

/* Search Bar Styling */
.search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 4px 10px;
    max-width: 450px;
    flex-grow: 1;
}

.search-input {
    border: none;
    outline: none;
    padding: 8px;
    flex-grow: 1;
    font-size: 1rem;
}

.search-btn {
    background: var(--primary-purple);
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.search-btn svg { stroke: white; }

.search-btn:hover { background: #6D28D9; }

/* Category Filter Styling */
.filter-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid white;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

.filter-select option { color: var(--text-dark); }


/* --- HERO VIDEO SECTION REMOVED --- */

/* --- STORE FILTER OPTIONS --- */
.store-filter-section {
    padding: 30px 0;
    text-align: center;
}

/* Seasonal controls */
.seasonal-controls {
    padding: 10px 0 5px;
    text-align: center;
}

.season-chips {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.season-chip {
    background: white;
    border: 2px solid #e5e7eb;
    color: #111827;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.season-chip::before {
    content: attr(data-season);
    position: absolute;
    top: -6px;
    left: 12px;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #9CA3AF;
    display: none;
}

.season-chip:hover {
    border-color: #FF9900;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.season-chip.active {
    background: linear-gradient(135deg,#FF9900 0%,#F59E0B 100%);
    color: #fff;
    border-color: #FF9900;
    box-shadow: 0 6px 20px rgba(255,153,0,.35);
}

.season-chip.active::before { display: none; }

.season-chip[data-season="blackfriday"]::after {
    content: "🔥";
    font-size: 1rem;
}

.season-chip[data-season="christmas"]::after {
    content: "🎄";
    font-size: 1rem;
}

@media (max-width: 640px) {
    .season-chip { padding: 8px 14px; font-size: .75rem; }
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* View sections wrapper to keep spacing consistent */
.view-section {
    margin-top: 20px;
}

.store-options-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.store-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.store-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 5px;
}

.store-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    margin-bottom: 3px;
}

.store-logo {
    width: 28px;
    height: 18px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    max-width: 80%;
    max-height: 80%;
}

.store-fallback {
    font-size: 1.5rem;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.store-option-btn:hover .store-logo,
.store-option-btn.active .store-logo,
.store-option-btn:hover .store-fallback,
.store-option-btn.active .store-fallback {
    filter: grayscale(0%);
}

.store-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: #4b5563;
    text-align: center;
    line-height: 1.1;
    margin-top: 2px;
}

.store-option-btn:hover,
.store-option-btn.active {
    border-color: var(--primary-purple);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    transform: translateY(-4px);
}

.store-option-btn.active .store-name {
    color: var(--primary-purple);
}

/* --- MAIN BODY & GRID --- */
.main { 
    padding: 20px 0 20px;
    min-height: calc(100vh - 400px);
}

.main-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

.products-grid {
    display: none !important; /* Force hidden by default */
    grid-template-columns: repeat(5, 1fr); 
    gap: 12px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    padding: 10px;
    min-height: 160px; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    position: relative; /* ESSENTIAL for discount badge */
}

.product-card:hover {
    transform: translateY(-4px);
}
.product-image-wrapper {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.product-main-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-name {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-dark);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-store {
    display: inline-block;
    padding: 2px 6px;
    margin-bottom: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #374151;
    background: #e5e7eb;
    border-radius: 4px;
}

/* --- NEW PRICING & DISCOUNT BADGE STYLES --- */
.discount-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #EF4444; 
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.product-price {
    margin: 6px 0 8px 0;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
}

.sale-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-purple); 
    line-height: 1;
}

.original-price {
    font-size: 0.7rem;
    color: #9CA3AF; 
    text-decoration: line-through; 
    font-weight: 400;
}

.product-btn {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 6px;
}

.product-btn:hover {
    background: #6D28D9;
    transform: translateY(-2px);
}

/* --- PAGINATION --- */
.pagination {
    display: none !important; /* Force hidden by default */
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.pagination-btn {
    padding: 10px 20px;
    background: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover:not(.disabled) {
    background: #6D28D9;
}

.pagination-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* --- FOOTER & COOKIE BANNER --- */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-links a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    opacity: 0.8;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1d1d1f 0%, #2d2d2f 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* --- REFRESH BUTTON STYLING --- */
.refresh-section {
    display: flex;
    align-items: center;
}

.refresh-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.refresh-btn:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.refresh-btn.spinning {
    animation: spin 1s linear infinite;
}

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

/* --- CATEGORY SECTIONS --- */
#categoryView, #productView { min-height: 400px; }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    margin: 20px 0 40px 0;
}

.category-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.category-card:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #FF9900;
}

.category-circle {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f8fafc;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-icon {
    font-size: 2rem;
    line-height: 1;
}

.category-label {
    font-size: 1rem;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.35;
    margin-bottom: 4px;
    word-wrap: break-word;
    max-width: 100%;
}

.category-item-count {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.back-to-stores-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.back-to-stores-btn:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(102, 51, 153, 0.3);
}

.back-to-stores-btn svg {
    transition: transform 0.3s ease;
}

.back-to-stores-btn:hover svg {
    transform: translateX(-3px);
}

/* --- ENHANCED PRODUCT CARDS --- */
.product-card {
    position: relative;
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.wishlist-btn:hover {
    background: white;
    border-color: var(--primary-purple);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.wishlist-btn svg {
    stroke: #6b7280;
    transition: all 0.3s ease;
}

.wishlist-btn:hover svg {
    stroke: var(--primary-purple);
}

.wishlist-btn.active {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
}

.wishlist-btn.active svg {
    fill: white;
    stroke: white;
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.condition-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    background: white;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.condition-new {
    background: #10b981;
    color: white;
}

.condition-used {
    background: #f59e0b;
    color: white;
}

.condition-refurbished {
    background: #3b82f6;
    color: white;
}

.shipping-badge {
    position: absolute;
    top: 55px;
    left: 15px;
    padding: 6px 12px;
    background: #10b981;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.deal-badge {
    position: absolute;
    top: 95px;
    left: 15px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(238, 90, 36, 0.3);
    animation: glow 1.5s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 2px 8px rgba(238, 90, 36, 0.3); }
    50% { box-shadow: 0 4px 16px rgba(238, 90, 36, 0.6); }
}

.seller-rating {
    font-size: 13px;
    color: #f59e0b;
    font-weight: 600;
    margin: 8px 0;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.quick-view-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .quick-view-overlay {
    opacity: 1;
}

.quick-view-btn {
    padding: 12px 24px;
    background: white;
    color: var(--text-dark);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.quick-view-btn:hover {
    background: var(--primary-purple);
    color: white;
    transform: scale(1.05);
}

/* --- QUICK VIEW MODAL --- */
.quick-view-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-view-modal.active {
    opacity: 1;
}

.quick-view-content {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.quick-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.quick-view-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.quick-view-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.quick-view-store {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-purple);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    margin-bottom: 15px;
}

.quick-view-condition {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
    font-weight: 600;
}

.quick-view-description {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
}

.quick-view-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.quick-view-sale {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-purple);
}

.quick-view-original {
    font-size: 20px;
    color: #9ca3af;
    text-decoration: line-through;
}

.quick-view-savings {
    padding: 4px 10px;
    background: #10b981;
    color: white;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
}

.quick-view-shipping {
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
    margin-bottom: 25px;
}

.quick-view-btn {
    display: inline-block;
    padding: 16px 32px;
    background: var(--primary-purple);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-view-btn:hover {
    background: var(--secondary-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

/* --- NOTIFICATION TOAST --- */
.notification-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--text-dark);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.notification-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quick-view-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px;
    }
    
    .quick-view-info h2 {
        font-size: 22px;
    }
    
    .quick-view-sale {
        font-size: 26px;
    }
    
    .notification-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
    }
}
/* (Removed Advanced Filters UI styles) */

/* --- VIEW CONTROLS & GRID LAYOUTS --- */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Grid view controls removed */

/* Grid Layout Variants */
.products-grid.grid-2-col {
    grid-template-columns: repeat(2, 1fr);
}

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

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

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

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 250px 1fr auto;
    gap: 25px;
    align-items: center;
}

.products-grid.list-view .product-image-wrapper {
    width: 250px;
    height: 250px;
}

.products-grid.list-view .product-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.products-grid.list-view .product-btn {
    width: auto;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .products-grid.grid-4-col {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid.grid-3-col,
    .products-grid.grid-4-col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid.list-view .product-card {
        grid-template-columns: 1fr;
    }
    
    .grid-size-controls {
        order: -1;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .products-grid.grid-2-col,
    .products-grid.grid-3-col,
    .products-grid.grid-4-col {
        grid-template-columns: 1fr;
    }
}

/* --- LOADING SKELETONS & ANIMATIONS --- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.product-card-skeleton {
    padding: 20px;
    background: white;
    border-radius: 12px;
}

.skeleton-image {
    width: 100%;
    height: 250px;
    margin-bottom: 15px;
}

.skeleton-title {
    height: 20px;
    width: 80%;
    margin-bottom: 10px;
}

.skeleton-store {
    height: 16px;
    width: 40%;
    margin-bottom: 10px;
}

.skeleton-price {
    height: 24px;
    width: 60%;
    margin-bottom: 15px;
}

.skeleton-button {
    height: 45px;
    width: 100%;
}

/* Fade-in animation for products */
.product-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }
.product-card:nth-child(9) { animation-delay: 0.45s; }

/* Hover lift animation */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Parallax effect for hero video removed */

/* Smooth transitions for filters */
.filter-select,
.search-input {
    transition: all 0.3s ease;
}

.filter-select:focus,
.search-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

/* (Removed old stats banner and trust badges styles) */

/* --- CATEGORY SECTIONS (legacy circular styles removed to avoid conflicts) --- */

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

@media (max-width: 1200px) {
    .products-grid,
    .category-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .products-grid,
    .category-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .category-card {
        padding: 24px 16px;
    }
    
    .category-circle {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }
    
    .category-label {
        font-size: 0.85rem;
    }
    
    .category-item-count {
        font-size: 0.75rem;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .category-header-left {
        flex-direction: column;
    }
    
    .category-info h2 {
        font-size: 1.4rem;
    }
    
    .category-emoji {
        font-size: 3rem;
    }
    
    .category-name {
        font-size: 0.9rem;
    }
}

/* Mobile fixes: stack header, make search full-width, tighten paddings and improve grid spacing */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .logo-section {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
    }

    .logo { height: 34px; }

    .site-name { font-size: 1.25rem; }

    .search-container {
        max-width: 100%;
        width: 100%;
    }

    .filter-select {
        width: 100%;
        margin-top: 6px;
    }

    .season-chips { gap: 10px; }

    .categories-grid { gap: 14px; }

    .category-card { padding: 18px 12px; }

    .category-label { font-size: 0.95rem; }

    .category-circle { width: 64px; height: 64px; }

    .product-card { padding: 10px; min-height: 140px; }

    .product-image-wrapper { height: 80px; }

    .product-main-image { max-height: 80px; }

    .product-name { font-size: 0.78rem; }

    .product-btn { padding: 8px 10px; font-size: 0.78rem; }
}

@media (max-width: 480px) {
    .header { padding: 10px 0; }
    .site-name { font-size: 1rem; }
    .logo { height: 30px; }
    .season-chip { padding: 8px 10px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-circle { width: 56px; height: 56px; }
    .product-image-wrapper { height: 68px; }
    .product-main-image { max-height: 68px; }
    .quick-view-btn { padding: 10px 18px; font-size: 13px; }
}

@media (max-width: 480px) {
    .products-grid,
    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
