.products-section {
    padding: 4rem 0;
}

.products-section.new-arrivals {
    background: var(--white);
}

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

.products-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.products-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    position: relative;
    scroll-snap-align: start;
    min-width: 280px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

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

.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.badge {
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-sale {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: var(--white);
}

.badge-new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
}

.badge-hot {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
}

.badge-bestseller {
    background: var(--gradient-1);
    color: var(--white);
}

.product-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    z-index: 2;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--gray-600);
    font-size: 1rem;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--gradient-1);
    color: var(--white);
    transform: scale(1.1);
}

.action-btn.wishlist:hover {
    background: var(--gradient-2);
}

.action-btn.wishlist.active {
    background: var(--gradient-2);
    color: var(--white);
    animation: pulse 0.5s;
}

.product-info {
    padding: 1.5rem;
}

.product-shop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.shop-avatar {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--gray-100);
}

.shop-name {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

.product-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--gray-900);
    margin-bottom: 0.625rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
    min-height: 3em;
    transition: var(--transition);
}

.product-title:hover {
    color: var(--primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.stars {
    display: flex;
    gap: 0.125rem;
    color: var(--warning);
    font-size: 0.9rem;
}

.rating-count {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.original-price {
    font-size: 1rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.discount-percent {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    background: rgba(244, 63, 94, 0.1);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
}

.product-footer {
    display: flex;
    gap: 0.625rem;
}

.add-to-cart-btn {
    flex: 1;
    padding: 0.875rem;
    background: var(--gradient-1);
    color: var(--white);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.buy-now-btn {
    padding: 0.875rem 1.25rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.buy-now-btn:hover {
    background: var(--gray-200);
}

.flash-deals-section {
    padding: 4rem 0;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.flash-deals-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.flash-deals-section .section-container {
    position: relative;
    z-index: 1;
}

.flash-deals-section .section-header h2 {
    color: var(--white);
}

.flash-deals-section .section-header h2 i {
    color: var(--warning);
    animation: pulse 1.5s infinite;
}

.flash-deals-section .see-all {
    color: var(--warning);
}

.flash-deals-section .see-all:hover {
    background: rgba(245, 158, 11, 0.1);
}

.flash-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.countdown {
    display: flex;
    gap: 0.5rem;
}

.countdown-item {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: var(--white);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
    min-width: 56px;
    text-align: center;
}

.flash-deals-section .product-card {
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.98);
}

.flash-deals-section .product-card:hover {
    border-color: var(--warning);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--warning);
}

.product-skeleton {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-width: 280px;
}

.skeleton-image {
    height: 280px;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 1.5rem;
}

.skeleton-text {
    height: 18px;
    margin-bottom: 0.875rem;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 3rem 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-card {
        min-width: 200px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 1.125rem;
    }
    
    .product-title {
        font-size: 0.95rem;
        min-height: auto;
    }
    
    .current-price {
        font-size: 1.2rem;
    }
    
    .product-footer {
        flex-direction: column;
    }
    
    .buy-now-btn {
        display: none;
    }
    
    .flash-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .product-card {
        min-width: 160px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-shop {
        display: none;
    }
    
    .product-title {
        font-size: 0.875rem;
        -webkit-line-clamp: 1;
        min-height: auto;
    }
    
    .product-rating {
        margin-bottom: 0.5rem;
    }
    
    .stars {
        font-size: 0.75rem;
    }
    
    .rating-count {
        display: none;
    }
    
    .current-price {
        font-size: 1.1rem;
    }
    
    .original-price {
        font-size: 0.85rem;
    }
    
    .add-to-cart-btn {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}
