/* Updated CSS with brand colors and slider controls */
:root {
    --brand-maroon: #800000;
    --brand-black: #000000;
    --brand-white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #333333;
}

/* Star Rating Styles */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 8px 0;
}

.stars {
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    font-size: 10px;
    line-height: 1;
}

.stars::before {
    content: "★★★★★";
    letter-spacing: 2px;
    background: linear-gradient(90deg,
            var(--brand-maroon) var(--percent),
            #ccc var(--percent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rating-count {
    font-size: 8px;
    color: #666;
}

/* Section Titles */
.section-title {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 8px;
    font-weight: 700;
    color: var(--dark-gray);
    text-transform: uppercase;
    font-size: 14px;
}

.section-title:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--brand-maroon);
}

/* Product Slider Container */
.product-slider-container {
    position: relative;
}

.product-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin: 0 -10px;
    padding: 10px 0;
    scrollbar-width: none;
    /* Firefox */
}

.product-slider::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.product-slider>[class*="col-"] {
    flex: 0 0 auto;
    width: 250px;
    /* Explicit width for horizontal slider items */
    padding: 0 10px;
}

.product-slider-controls {
    position: absolute;
    top: -55px;
    right: 0;
}

.slider-prev,
.slider-next {
    background: var(--brand-white);
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 5px;
    color: var(--dark-gray);
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--brand-maroon);
    color: var(--brand-white);
    border-color: var(--brand-maroon);
}

/* Hero Slider */
.hero-slide {
    height: 340px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: var(--brand-white);
}

.slider-header {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.shop-now-button {
    background: var(--brand-maroon);
    border: none;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.shop-now-button:hover {
    background: var(--brand-black);
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .product-slider>[class*="col-"] {
        width: calc(100% / 4);
    }
}

@media (max-width: 992px) {
    .hero-slide {
        height: 280px;
    }

    .hero-title {
        font-size: 22px;
    }

    .product-slider>[class*="col-"] {
        width: calc(100% / 3);
    }
}

@media (max-width: 768px) {
    .hero-slide {
        height: 240px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 18px;
    }

    .hero-subtitle {
        font-size: 12px;
    }

    .product-slider>[class*="col-"] {
        width: calc(100% / 2);
    }

    .section-title {
        font-size: 20px;
    }

    .product-slider-controls {
        top: -45px;
    }
}

@media (max-width: 576px) {
    .hero-slide {
        height: 200px;
    }

    .hero-title {
        font-size: 16px;
    }

    .product-slider>[class*="col-"] {
        width: 100%;
    }

    .product-name {
        font-size: 13px;
        height: 36px;
    }

    .current-price {
        font-size: 15px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

/* Add delay for each product card */
.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card:nth-child(4) {
    animation-delay: 0.4s;
}

.product-card:nth-child(5) {
    animation-delay: 0.5s;
}

.product-card:nth-child(6) {
    animation-delay: 0.6s;
}

.product-card:nth-child(7) {
    animation-delay: 0.7s;
}

.product-card:nth-child(8) {
    animation-delay: 0.8s;
}