﻿/* General section styling */
.best-sellers-section {
    padding: 40px 0;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

/* Section title */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-subtitle {

    text-align: center;
}
/* Carousel container */
#discounted-products-carousel {
   
    max-width: 1200px;
    margin: 0 auto;
}

/* Carousel indicators */
.carousel-indicators {
   
    display: none;
}

    .carousel-indicators button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
      
        border: none;
        margin: 0 6px;
        
    }

   

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {

    width: 5%;
    background: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        opacity: 1;
    }

.carousel-control-prev-icon,
.carousel-control-next-icon {
  
    border-radius: 50%;
    padding: 10px;
}

/* Product card */
.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

/* Product image */
.product-image {
    position: relative;
    overflow: hidden;
}

    .product-image img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Discount badge */
.discount-badge {
    position: absolute;
    top: 1px;
    
    background-color: #dc3545;
    color: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Product info */
.product-info {
    padding: 15px;
    text-align: center;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  
}
.view-product {
    text-decoration: none;
}

.product-price {
    font-size: 1.1rem;
   
    margin-bottom: 5px;
}

.discount-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 5px;
}

.discount-percent {
    display: inline-block;
    background-color: #28a745;
    color: #fff;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .product-image img {
        height: 150px;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-price,
    .discount-price {
        font-size: 1rem;
    }
}
