/* --- Hero Carousel Styles --- */

:root {
    --text-dark-blue: #0f1e4f;
    --hot-pink: #db2777;
}

/* Hero Banner */
.hero-banner {
    width: 100%;
    max-width: 1400px;
    aspect-ratio: 1600 / 460;
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f3f4f6;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-banner-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: none;
    cursor: pointer;
    height: 100%;
}

.hero-slide.active {
    display: block;
}

.hero-banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.hero-banner-nav.prev {
    left: 14px;
}

.hero-banner-nav.next {
    right: 14px;
}

.hero-banner-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 2;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.hero-dot.active {
    width: 22px;
    background: #fff;
}

.hero-banner-placeholder {
    color: #666;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
}

/* Main Deals Wrapper */
.deals-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 40px auto;
    background: #fff;
}

.deals-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.deals-title {
    margin: 0;
    color: var(--text-dark-blue);
    font-size: 24px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.deals-title i {
    color: var(--hot-pink);
}

.deals-shop-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.deals-shop-all:hover {
    color: #111827;
    background: #f3f4f6;
    text-decoration: none;
}

/* Carousel Section */
.carousel-container {
    position: relative;
    display: block;
    overflow: visible;
    background: #fff;
}

.trending-products-grid {
    padding-top: 12px;
}

.carousel-track {
    display: flex;
    gap: 15px;
    padding: 20px 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    z-index: 10;
    padding: 15px 12px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    color: #111;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn.prev {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.nav-btn.next {
    right: 0;
    border-radius: 8px 0 0 8px;
}

/* Empty State */
.carousel-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 300px;
    color: #666;
    font-size: 16px;
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
    .deals-wrapper {
        width: calc(100% - 30px);
        max-width: 1400px;
        margin: 0 auto 40px auto;
    }
}

@media (max-width: 900px) {
    .hero-banner {
        width: calc(100% - 30px);
        aspect-ratio: 1200 / 420;
        margin: 15px auto;
        border-radius: 8px;
    }

    .deals-wrapper {
        min-height: auto;
    }

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

    .carousel-track {
        padding: 15px 10px;
    }
}

@media (max-width: 600px) {
    .hero-banner {
        width: calc(100% - 20px);
        aspect-ratio: 750 / 260;
        margin: 10px auto;
    }

    .deals-wrapper {
        width: calc(100% - 20px);
        padding: 12px 10px 0;
    }

    .hero-banner-placeholder {
        font-size: 18px;
    }

    .hero-banner-nav {
        width: 32px;
        height: 32px;
    }

    .deals-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

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

    .deals-shop-all {
        width: 100%;
        justify-content: center;
    }

    .nav-btn {
        font-size: 20px;
        padding: 12px 10px;
    }
}
