/* Product Slider Styles */
.products-slider-container {
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.products-slider {
    display: flex;
    gap: 1.5rem;
    animation: slideLeft 60s linear infinite;
    width: max-content;
}

.products-slider:hover {
    animation-play-state: paused;
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.product-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.3;
}

.product-brand {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.product-rating .stars {
    color: #ffd700;
    font-size: 0.9rem;
}

.product-rating .rating-count {
    color: #999;
    font-size: 0.8rem;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-tag {
    background: #f0f0f0;
    color: #666;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    text-transform: capitalize;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-whatsapp-btn {
    flex: 1;
    background: #25d366;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.product-whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.product-wishlist-btn {
    background: transparent;
    border: 2px solid #ddd;
    color: #666;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-wishlist-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.product-wishlist-btn.active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

/* Product badges */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.product-badge.new {
    background: #27ae60;
}

.product-badge.featured {
    background: #f39c12;
}

.product-badge.popular {
    background: #9b59b6;
}

/* Section header improvements */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-all-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Responsive design */
@media (max-width: 768px) {
    .products-slider {
        gap: 1rem;
    }
    
    .product-card {
        flex: 0 0 250px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .view-all-btn {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .product-card {
        flex: 0 0 220px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 1rem;
    }
}

/* Loading animation */
.products-slider.loading {
    animation: none;
}

.product-card.loading {
    background: #f5f5f5;
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Smooth scrolling for touch devices */
@media (hover: none) and (pointer: coarse) {
    .products-slider-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .products-slider-container::-webkit-scrollbar {
        display: none;
    }
    
    .products-slider {
        animation: none;
        padding-bottom: 1rem;
    }
}