/* 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: 1rem;
    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;
    -webkit-text-fill-color: transparent;
}

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

/* Product Card Styles */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--brand-white);
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: var(--light-gray);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.03);
    transition: background 0.3s ease;
}

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

.product-card:hover .image-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.product-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--brand-maroon);
    color: var(--brand-white);
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
    text-transform: uppercase;
}

.quick-view-btn {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    background: var(--brand-black);
    color: var(--brand-white);
    border: none;
    padding: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 2;
}

.product-card:hover .quick-view-btn {
    bottom: 0;
    opacity: 1;
}

.quick-view-btn:hover {
    background: var(--brand-maroon);
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-gray);
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.current-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-maroon);
}

.original-price {
    font-size: 13px;
    text-decoration: line-through;
    color: #999;
}

.discount-percent {
    font-size: 12px;
    background: #ffecec;
    color: var(--brand-maroon);
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 600;
}

.shop-info {
    padding: 10px 15px;
    border-top: 1px solid #eee;
    background: var(--light-gray);
}

.shop-avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
}

.shop-name {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

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

.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: calc(100% / 6);
    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: 500px;
    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: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 25px;
    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: 12px 30px;
    font-weight: 600;
    letter-spacing: 1px;
    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: 400px;
    }

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

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

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

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

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

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

    .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: 300px;
    }

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

    .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;
}
