.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #e8f1e7;
}

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slider-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/*
 * The genuine sliding track: all 8 articles (2 boundary clones + 6 real
 * slides) sit side by side in one flex row, each exactly one viewport
 * width wide, and the whole row moves as a single unit via transform on
 * this element. Navigation never repositions individual slides.
 */
.hero-slider-track {
    display: flex;
    width: 100%;
    transition: transform 720ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.hero-slide {
    --hero-slide-accent: #2f6b3b;
    --hero-slide-soft: #e8f1e7;
    --hero-slide-glow: rgba(63, 125, 70, .3);
    --hero-slide-shadow: rgba(47, 107, 59, .22);
    flex: 0 0 100%;
    width: 100%;
    min-height: clamp(560px, 46vw, 660px);
    padding: clamp(34px, 4vw, 58px) max(24px, calc((100vw - 1240px) / 2)) 86px;
    background:
        radial-gradient(circle at 18% 26%, var(--hero-slide-glow), transparent 40%),
        linear-gradient(112deg, var(--hero-slide-soft) 0%, #fffaf0 56%, var(--hero-slide-soft) 100%);
}

.hero-slide--turmeric {
    --hero-slide-accent: #b97808;
    --hero-slide-soft: #fff1c6;
    --hero-slide-glow: rgba(224, 165, 26, .34);
    --hero-slide-shadow: rgba(185, 120, 8, .24);
}

.hero-slide--berry {
    --hero-slide-accent: #96384a;
    --hero-slide-soft: #f8e1e6;
    --hero-slide-glow: rgba(185, 71, 91, .28);
    --hero-slide-shadow: rgba(150, 56, 74, .22);
}

.hero-slide--oat {
    --hero-slide-accent: #8d6945;
    --hero-slide-soft: #f0e5d5;
    --hero-slide-glow: rgba(197, 166, 121, .34);
    --hero-slide-shadow: rgba(141, 105, 69, .23);
}

.hero-slide--cocoa {
    --hero-slide-accent: #684235;
    --hero-slide-soft: #eadbd4;
    --hero-slide-glow: rgba(128, 85, 72, .3);
    --hero-slide-shadow: rgba(104, 66, 53, .24);
}

.hero-slide--leafy {
    --hero-slide-accent: #477a37;
    --hero-slide-soft: #e3efdc;
    --hero-slide-glow: rgba(95, 147, 75, .3);
    --hero-slide-shadow: rgba(71, 122, 55, .23);
}

.hero-slide-inner {
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
    gap: clamp(38px, 5vw, 76px);
    align-items: center;
    width: 100%;
    max-width: 1240px;
    min-height: 470px;
    margin-inline: auto;
}

.hero-slide-media,
.hero-slide-content {
    min-width: 0;
}

.hero-slide-media {
    position: relative;
}

/*
 * A subtle, purely decorative layered shape behind the product image -
 * always aria-hidden in the markup, so it never reaches assistive tech.
 */
.hero-slide-product-glow {
    position: absolute;
    inset: -6%;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--hero-slide-glow), transparent 68%);
    filter: blur(2px);
    pointer-events: none;
}

.hero-slide-image {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 490px);
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, .48);
    box-shadow: 0 24px 54px var(--hero-slide-shadow);
}

.hero-slide-image img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: cover;
}

/*
 * A small, restrained product-identity caption overlaid on the image's
 * lower edge. It sits outside the .hero-slide-image link (so the DOM
 * never nests an interactive element inside another) but visually reads
 * as part of the same clickable composition - pointer-events: none lets
 * a click here fall through to the link beneath it.
 */
.hero-slide-product-tag {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    max-width: calc(100% - 32px);
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 252, 240, .94);
    box-shadow: 0 4px 14px rgba(20, 40, 20, .14);
    text-align: center;
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-slide-product-name {
    max-width: 100%;
    overflow: hidden;
    color: #172117;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-slide-product-brand {
    color: var(--hero-slide-accent);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hero-slide-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: calc(100% - 24px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-slide-badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid color-mix(in srgb, var(--hero-slide-accent) 28%, transparent);
    border-radius: 999px;
    background: rgba(255, 252, 240, .96);
    box-shadow: 0 2px 7px rgba(20, 40, 20, .12);
    color: var(--hero-slide-accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.hero-slide-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-slide-tagline {
    margin: 0 0 10px;
    color: var(--hero-slide-accent);
    font-size: clamp(14px, 1.2vw, 17px);
    font-weight: 750;
    letter-spacing: .02em;
}

.hero-title {
    max-width: 720px;
    margin: 0 0 18px;
    color: #172117;
    font-size: clamp(38px, 4.2vw, 60px);
    line-height: 1.04;
    letter-spacing: -.04em;
}

.hero-slide-image:focus-visible,
.hero-slide-actions .btn:focus-visible,
.hero-slider-prev:focus-visible,
.hero-slider-next:focus-visible,
.hero-slider-pause:focus-visible,
.hero-slider-dot:focus-visible {
    outline: 3px solid var(--hero-slide-accent, var(--color-brand-primary));
    outline-offset: 3px;
}

.hero-slide-description {
    display: -webkit-box;
    max-width: 620px;
    margin: 0;
    overflow: hidden;
    color: #4b584c;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.hero-slide-trust {
    max-width: 560px;
    margin: 8px 0 0;
    color: var(--hero-slide-accent);
    font-size: clamp(13px, 1.05vw, 15px);
    font-weight: 650;
    line-height: 1.5;
}

.hero-slide-actions {
    display: grid;
    grid-template-columns: minmax(150px, .75fr) minmax(290px, 1.25fr);
    gap: 12px;
    width: 100%;
    max-width: 650px;
    margin-top: 20px;
}

.hero-slide-actions > .btn {
    background: var(--hero-slide-accent);
    border-color: var(--hero-slide-accent);
    color: #fff;
}

.hero-slide-browse-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hero-slide-actions .btn {
    min-height: 48px;
    padding-inline: 16px;
    white-space: nowrap;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.hero-benefit {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #2d382e;
    font-size: 12px;
    font-weight: 650;
}

.hero-benefit-icon {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .58);
    color: var(--hero-slide-accent);
}

.hero-benefit-icon svg {
    width: 13px;
    height: 13px;
}

.hero-slider-controls {
    position: absolute;
    z-index: 4;
    bottom: 22px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    transform: translateX(-50%);
}

.hero-slider-prev,
.hero-slider-next,
.hero-slider-pause {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid rgba(33, 54, 34, .18);
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    color: #243026;
    cursor: pointer;
}

.hero-slider-prev svg,
.hero-slider-next svg,
.hero-slider-pause svg {
    width: 15px;
    height: 15px;
}

.hero-slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(35, 54, 36, .22);
    cursor: pointer;
    transition: background-color 240ms cubic-bezier(.22, .61, .36, 1);
}

.hero-slider-dot[aria-selected="true"] {
    background: #2f6b3b;
}

.hero-slider-dot:nth-child(2)[aria-selected="true"] {
    background: #b97808;
}

.hero-slider-dot:nth-child(3)[aria-selected="true"] {
    background: #96384a;
}

.hero-slider-dot:nth-child(4)[aria-selected="true"] {
    background: #8d6945;
}

.hero-slider-dot:nth-child(5)[aria-selected="true"] {
    background: #684235;
}

.hero-slider-dot:nth-child(6)[aria-selected="true"] {
    background: #477a37;
}

.hero-slider .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .hero-slide {
        min-height: 540px;
        padding-inline: clamp(24px, 4vw, 42px);
    }

    .hero-slide-inner {
        grid-template-columns: minmax(0, 42%) minmax(0, 58%);
        gap: 36px;
        min-height: 430px;
    }

    .hero-title {
        font-size: clamp(34px, 4.7vw, 48px);
    }

    .hero-slide-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .hero-slide {
        min-height: 0;
        padding: 32px max(20px, 6vw) 30px;
    }

    .hero-slide-inner {
        display: flex;
        min-height: 0;
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
    }

    .hero-slide-content {
        display: contents;
    }

    .hero-slide-tagline {
        order: 1;
        margin: 0;
    }

    .hero-title {
        order: 2;
        margin: -12px 0 0;
        font-size: clamp(34px, 10vw, 46px);
    }

    .hero-slide-description {
        order: 3;
        margin: -14px 0 0;
    }

    /*
     * Mobile priority (Part 13): eyebrow, headline, description, product
     * image, product name/brand, CTAs, then the trust line - the trust
     * line moves after the actions here so the product and CTAs stay
     * closer to the description on small screens.
     */
    .hero-slide-media {
        order: 4;
    }

    .hero-slide-actions {
        order: 5;
        grid-template-columns: 1fr;
        max-width: none;
        margin: 0;
    }

    .hero-slide-browse-actions {
        grid-template-columns: 1fr;
    }

    .hero-slide-actions .btn {
        width: 100%;
    }

    .hero-slide-trust {
        order: 6;
        margin: 10px 0 0;
    }

    .hero-benefits {
        order: 7;
        margin: 0;
    }

    .hero-slider-controls {
        position: relative;
        bottom: auto;
        left: auto;
        padding: 14px 18px 18px;
        background: #fffaf0;
        transform: none;
    }
}

@media (max-width: 420px) {
    .hero-slide {
        padding-inline: 16px;
    }

    .hero-benefits {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider-track,
    .hero-slider-dot {
        transition: none;
    }
}
