/* --- Hero Carousel & Category Sidebar --- */

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

.home-hero-shell {
    width: 100%;
    max-width: 1400px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.hero-category-sidebar {
    min-width: 0;
    border: 1px solid #e3e7ee;
    border-radius: 8px;
    background: #fff;
    position: relative;
    z-index: 20;
}

.hero-category-heading {
    height: 44px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid #e8ebf0;
    color: #0f1e4f;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-category-heading i {
    color: #3467ce;
    font-size: 14px;
}

.hero-category-list {
    height: calc(100% - 44px);
    display: flex;
    flex-direction: column;
}

.hero-category-item {
    flex: 1 1 0;
    min-height: 42px;
    position: static;
    display: flex;
}

.hero-category-link {
    width: 100%;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #202938;
    text-decoration: none;
    border-bottom: 1px solid #f0f2f5;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.14s ease, background-color 0.14s ease;
}

.hero-category-item:last-child .hero-category-link {
    border-bottom: 0;
}

.hero-category-link-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-category-link-main > i {
    width: 17px;
    flex: 0 0 17px;
    text-align: center;
    color: #344054;
    font-size: 13px;
}

.hero-category-link-main > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-category-chevron {
    color: #98a2b3;
    font-size: 9px;
}

.hero-category-item:hover .hero-category-link,
.hero-category-item:focus-within .hero-category-link {
    color: #2559b9;
    background: #f6f8fc;
}

.hero-category-item:hover .hero-category-link-main > i,
.hero-category-item:focus-within .hero-category-link-main > i {
    color: #3467ce;
}

.hero-subcategory-flyout {
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: calc(100% + 1px);
    width: min(360px, 34vw);
    padding: 20px;
    border: 1px solid #dfe4ec;
    border-left-color: #eef1f5;
    border-radius: 0 8px 8px 0;
    background: #fff;
    display: none;
    z-index: 30;
}

.hero-category-item:hover .hero-subcategory-flyout,
.hero-category-item:focus-within .hero-subcategory-flyout {
    display: flex;
    flex-direction: column;
}

.hero-subcategory-title {
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e7eaf0;
    color: #0f1e4f;
    font-size: 15px;
    font-weight: 800;
}

.hero-subcategory-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 16px;
}

.hero-subcategory-links a {
    color: #4b5565;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
}

.hero-subcategory-links a:hover {
    color: #2559b9;
    text-decoration: underline;
}

.hero-subcategory-view-all {
    margin-top: auto;
    padding-top: 16px;
    color: #2559b9;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.hero-subcategory-view-all i {
    margin-left: 5px;
    font-size: 9px;
}

.hero-banner {
    width: 100%;
    max-width: none;
    aspect-ratio: 1600 / 460;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f3f4f6;
}

.hero-banner img,
.hero-banner-track,
.hero-slide {
    width: 100%;
    height: 100%;
}

.hero-banner img {
    object-fit: cover;
    display: block;
}

.hero-banner-track {
    position: relative;
}

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

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

.hero-banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 1px solid rgba(15, 30, 79, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    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 {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
}

.hero-banner-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
}

.deals-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 40px;
    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); }

/* Text link, not a boxed button. */
.deals-shop-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--hot-pink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    transition: color 0.16s ease;
}

.deals-shop-all span {
    border-bottom: 1px solid transparent;
    transition: border-color 0.16s ease;
}

.deals-shop-all i {
    font-size: 11px;
    transition: transform 0.18s ease;
}

.deals-shop-all:hover {
    color: #be185d;
}

.deals-shop-all:hover span {
    border-bottom-color: currentColor;
}

.deals-shop-all:hover i {
    transform: translateX(4px);
}

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

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

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

.carousel-empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

@media (prefers-reduced-motion: reduce) {
    .deals-shop-all i { transition: none; }
    .deals-shop-all:hover i { transform: none; }
}

@media (min-width: 901px) and (max-width: 1400px) {
    .home-hero-shell,
    .deals-wrapper {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .home-hero-shell,
    .deals-wrapper {
        width: calc(100% - 30px);
    }

    .home-hero-shell {
        grid-template-columns: 225px minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .home-hero-shell {
        display: block;
        margin: 15px auto;
    }

    .hero-category-sidebar {
        margin-bottom: 10px;
        overflow: hidden;
    }

    .hero-category-heading {
        display: none;
    }

    .hero-category-list {
        height: auto;
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .hero-category-list::-webkit-scrollbar { display: none; }

    .hero-category-item {
        flex: 0 0 auto;
        min-height: 38px;
    }

    .hero-category-link {
        width: auto;
        padding: 9px 12px;
        border-right: 1px solid #edf0f4;
        border-bottom: 0;
        white-space: nowrap;
    }

    .hero-category-chevron,
    .hero-subcategory-flyout {
        display: none !important;
    }

    .hero-banner {
        aspect-ratio: 1200 / 420;
    }

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

@media (max-width: 600px) {
    .home-hero-shell,
    .deals-wrapper {
        width: calc(100% - 20px);
    }

    .home-hero-shell { margin: 10px auto; }

    .hero-category-link-main > i { display: none; }

    .hero-banner {
        aspect-ratio: 750 / 260;
    }

    .deals-wrapper {
        padding: 12px 0 0;
        margin-bottom: 26px;
    }

    .deals-header {
        align-items: center;
    }

    .deals-title { font-size: 18px; }
    .deals-shop-all { font-size: 11.5px; }
    .hero-banner-placeholder { font-size: 18px; }
    .hero-banner-nav { width: 32px; height: 32px; }
}
