/* File: assets/css/main.css */
/* Main CSS for the e-commerce website */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    font-family: 'Poppins', sans-serif;
}


.slider-container {
    scroll-behavior: smooth;
}

.category-slider {
    scroll-behavior: smooth;
}

.product-slider {
    scroll-behavior: smooth;
}

.animate-slide {
    animation: slide 0.5s ease-in-out;
}

@keyframes slide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gradient-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.shadow-3xl {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25);
}

.product-slider {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-slider::-webkit-scrollbar {
    display: none;
}

.product-container {
    background: #fff;
    padding: 0;
    margin-bottom: 0px;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
}

.product-container:hover {
    box-shadow: none;
}

.product-item {
    display: block;
    text-align: left;
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0;
    border: none;
    margin-bottom: 10px;
}

.product-info {
    padding: 0 10px 15px 10px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.current-price {
    font-size: 16px;
    font-weight: bold;
    color: #000;
}

.old-price {
    font-size: 14px;
    color: #666;
    text-decoration: line-through;
}

.discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.campaign-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    color: white;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 2;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.add-to-cart {
    display: none;
}

/* Product card interaction styles */
.product-container {
    position: relative;
}

.product-container .relative {
    position: relative;
}

.product-container .product-buttons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

/* Desktop: Hover effects */
@media (hover: hover) {
    .product-container:hover .product-buttons {
        background: rgba(0, 0, 0, 0.2);
        opacity: 1;
        pointer-events: auto;
    }
    
    .product-info {
        cursor: default;
    }
    
    .product-info:hover {
        background-color: rgba(0, 0, 0, 0.02);
    }
}

/* Mobile: Touch/Click effects */
@media (hover: none) {
    .product-container.active .product-buttons {
        background: rgba(0, 0, 0, 0.2);
        opacity: 1;
        pointer-events: auto;
    }
    
    .product-info {
        cursor: pointer;
        transition: background-color 0.3s ease;
        position: relative;
        z-index: 5;
    }
    
    .product-container.active .product-info {
        background-color: rgba(0, 0, 0, 0.05);
    }
}


@media (max-width: 640px) {
    .product-container {
        width: 200px !important;
    }
}

.scrolling-text {
    animation: scroll-text 20s linear infinite;
    white-space: nowrap;
}

@keyframes scroll-text {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}