/* ==========================================================================
   HeroBanner Component Styles
   ========================================================================== */

.hero-banner {
    position: relative;
    width: 100%;
    min-height: 650px;
    height: calc(100vh - 120px);
    overflow: hidden;
    background-color: #1a1a1a;
    user-select: none;
}

/* Slide Container & Slide-Over Overlay Transition */
.hero-banner__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.6s ease, visibility 0.9s ease;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-banner__slide.was-active {
    z-index: 2;
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    transition: none;
}

.hero-banner__slide.is-active {
    z-index: 5;
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
}

/* Background Image Layer & Slow Zoom In Animation */
.hero-banner__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1);
    will-change: transform;
}

.hero-banner__slide.is-active .hero-banner__bg {
    animation: heroBgZoomIn 3.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Preserve zoomed-in scale when slide is transitioning out under incoming slide */
.hero-banner__slide.was-active .hero-banner__bg {
    transform: scale(1.08);
    animation: none;
}

@keyframes heroBgZoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

/* --------------------------------------------------------------------------
   Badge Component
   -------------------------------------------------------------------------- */
.hero-banner__badge {
    position: absolute;
    top: 40px;
    right: 50px;
    z-index: 10;
}

.hero-banner__badge-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

/* --------------------------------------------------------------------------
   Left Section Component
   -------------------------------------------------------------------------- */
.hero-banner__left-section {
    position: absolute;
    left: 8%;
    top: 20%;
    max-width: 460px;
    width: 100%;
    z-index: 10;
    color: #ffffff;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Banner Content */
.hero-banner__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

/* Desktop Banner Title: 45px */
.hero-banner__title {
    font-family: "Yrsa", Georgia, serif;
    font-size: 45px;
    font-weight: 500;
    color: #D4D3C2;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

/* Fixed standard height for description to keep CTA and controls fixed */
.hero-banner__description {
    font-family: "Gotham", "Open Sans", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #D4D3C2;
    margin-bottom: 2.5rem;
    font-weight: 300;
    min-height: 85px;
    height: 85px;
    overflow: hidden;
}

/* CTA Button: Left-aligned text, 16% letter spacing, 63% container width */
.hero-banner__cta {
    display: inline-block;
    width: 63%;
    text-align: left;
    background-color: #34352A;
    color: #D4D3C2 !important;
    font-family: "Gotham", "Open Sans", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.16em; /* 16% letter spacing */
    text-transform: uppercase;
    padding: 16px 28px;
    border: none;
    border-radius: 0;
    text-decoration: none !important;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-banner__cta:hover {
    background-color: #26271e;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Carousel Controls Component
   -------------------------------------------------------------------------- */
.hero-banner__carousel-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 3rem;
}

.hero-banner__arrow {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1.5px solid #ffffff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.hero-banner__arrow:hover:not([disabled]) {
    background: rgba(255, 255, 255, 0.15);
}

.hero-banner__arrow[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
}

.hero-banner__thumbnail-list {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    padding: 0 4px;
}

/* Connecting line only between thumbnails */
.hero-banner__thumbnail-list::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 18px;
    right: 18px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1;
    transform: translateY(-50%);
}

.hero-banner__thumbnail {
    position: relative;
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-banner__thumbnail.is-active {
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.hero-banner__thumbnail:hover:not(.is-active) {
    transform: scale(1.1);
}

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

/* --------------------------------------------------------------------------
   Product Detail Overlay Component
   -------------------------------------------------------------------------- */
.hero-banner__product-overlay {
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 10;
    background-color: rgba(52, 53, 42, 0.80); /* #34352A %80 opacity */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 28px 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    color: #D4D3C2;
    width: 530px;
    height: 210px;
    box-sizing: border-box;
    border-radius: 0px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Product Title Exact Styles: Yrsa, 400, regular, 53px, line-height 0.95, 0 letter-spacing, #D4D3C2 */
.hero-banner__product-title {
    font-family: "Yrsa", Georgia, serif;
    font-weight: 400;
    font-style: normal;
    font-size: 53px;
    line-height: 0.95;
    letter-spacing: 0;
    color: #D4D3C2;
    white-space: pre-line;
    width: 230px;
    flex-shrink: 0;
}

.hero-banner__divider {
    width: 1px;
    height: 130px;
    background-color: rgba(212, 211, 194, 0.35);
    flex-shrink: 0;
}

.hero-banner__flavor-notes {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    overflow: hidden;
}

/* NotesTitle: Yrsa serif, #9E9E7D */
.hero-banner__notes-title {
    font-family: "Yrsa", Georgia, serif;
    font-size: 22px;
    color: #9E9E7D;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 4px;
    display: block;
}

.hero-banner__notes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Notes Text: Yrsa/Gotham serif, #D4D3C2 */
.hero-banner__notes-item {
    font-family: "Yrsa", "Gotham", sans-serif;
    font-size: 16px;
    color: #D4D3C2;
    font-weight: 400;
    line-height: 1.3;
}

/* ==========================================================================
   Responsive / Mobile Styles (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .hero-banner {
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .hero-banner__slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 75px 16px 28px 16px;
        box-sizing: border-box;
    }

    /* Top row on mobile: Anchored at fixed top position */
    .hero-banner__top-row-mobile {
        position: absolute;
        top: 75px;
        left: 16px;
        right: 16px;
        width: auto;
        z-index: 10;
    }

    .hero-banner__mobile-overlay-wrapper {
        position: relative;
        width: 82%;
        max-width: 320px;
        margin: 0 auto; /* Horizontally centered on banner */
    }

    .hero-banner__mobile-overlay-wrapper .hero-banner__product-overlay {
        position: relative;
        bottom: auto;
        right: auto;
        padding: 12px 18px;
        width: 100%;
        height: 105px;
        box-sizing: border-box;
        gap: 12px;
        background-color: rgba(52, 53, 42, 0.80);
    }

    .hero-banner__mobile-overlay-wrapper .hero-banner__product-title {
        font-size: 26px;
        line-height: 0.85;
        width: 110px;
    }

    .hero-banner__mobile-overlay-wrapper .hero-banner__divider {
        height: 60px;
    }

    .hero-banner__mobile-overlay-wrapper .hero-banner__notes-title {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .hero-banner__mobile-overlay-wrapper .hero-banner__notes-item {
        font-size: 11px;
    }

    /* Badge on mobile: positioned at bottom-right corner of the centered overlay */
    .hero-banner__mobile-overlay-wrapper .hero-banner__badge {
        position: absolute;
        right: -14px;
        bottom: -22px;
        top: auto;
        z-index: 15;
    }

    .hero-banner__mobile-overlay-wrapper .hero-banner__badge-img {
        width: 64px;
        height: 64px;
        filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
    }

    /* Left Section / Main content on mobile: Anchored at fixed bottom position */
    .hero-banner__left-section {
        position: absolute;
        bottom: 28px;
        left: 16px;
        right: 16px;
        top: auto;
        transform: none;
        max-width: 100%;
        width: auto;
        margin-top: 0;
        padding-top: 0;
        z-index: 10;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    /* Mobile Title: 32px */
    .hero-banner__title {
        font-size: 32px;
        margin-bottom: 0.75rem;
    }

    /* Fixed height for description on mobile to prevent height difference between slides */
    .hero-banner__description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
        min-height: 66px;
        height: 66px;
        overflow: hidden;
    }

    .hero-banner__cta {
        display: block;
        width: 100%;
        text-align: left;
        padding: 16px 20px;
        box-sizing: border-box;
    }

    /* Responsive Carousel Controls on Mobile */
    .hero-banner__carousel-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 1.5rem;
        gap: 12px;
        box-sizing: border-box;
    }

    .hero-banner__arrow {
        width: 44px;
        height: 44px;
        border-width: 1.5px;
        flex-shrink: 0;
    }

    .hero-banner__arrow svg {
        width: 20px;
        height: 20px;
    }

    .hero-banner__thumbnail-list {
        display: inline-flex;
        align-items: center;
        gap: 18px;
        position: relative;
        padding: 0;
        justify-content: center;
    }

    /* Mobile connecting line ONLY between thumbnails */
    .hero-banner__thumbnail-list::before {
        left: 18px;
        right: 18px;
    }

    .hero-banner__thumbnail {
        width: 36px;
        height: 36px;
    }

    .hero-banner__thumbnail.is-active {
        width: 50px;
        height: 50px;
    }
}
