/* ==========================================================
   HUANCA · FICHA DE PRODUCTO CON DISEÑO DE SABOR
   Only loaded on products that have a flavour (body.huanca-flavor).
   --hf-bg / --hf-ink come inline from PHP.
   ========================================================== */

@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .45s; }

body.huanca-flavor {
    --hf-bg: #e6c261;
    --hf-ink: #1d2a1a;
    --hf-band: color-mix(in srgb, var(--hf-bg) 86%, #ffffff);
    --hf-soft: color-mix(in srgb, var(--hf-bg) 16%, #ffffff);
}

body.huanca-flavor .huanca-wc-main { overflow-x: clip; }

/* ================= HERO (gallery + buying panel) ================= */
body.huanca-flavor .huanca-product-top {
    position: relative;
    isolation: isolate;
    padding: clamp(18px, 3vw, 40px) 0 clamp(26px, 4vw, 56px);
}

/* the coloured "texture" behind the top of the page */
body.huanca-flavor .huanca-product-top::before {
    content: "";
    position: absolute;
    top: -12px;
    bottom: 0;
    left: 50%;
    z-index: -2;
    width: 100vw;
    transform: translateX(-50%);
    background:
        radial-gradient(60% 70% at 25% 40%, color-mix(in srgb, #fff 32%, transparent), transparent 70%),
        radial-gradient(40% 50% at 90% 90%, color-mix(in srgb, #000 8%, transparent), transparent 70%),
        linear-gradient(180deg, var(--hf-bg), color-mix(in srgb, var(--hf-bg) 92%, #000));
    border-radius: 0 0 clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px);
}

.hf-hero-decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hf-hero-decor__ghost {
    position: absolute;
    right: -2%;
    bottom: 2%;
    color: transparent;
    -webkit-text-stroke: 2px color-mix(in srgb, var(--hf-ink) 18%, transparent);
    font-size: clamp(64px, 11vw, 168px);
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.04em;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
}

.hf-hero-decor__herb {
    position: absolute;
    width: clamp(70px, 8vw, 130px);
    height: auto;
    filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .22));
    animation: hf-herb 8s ease-in-out infinite;
}

/* desktop: herbs sit around the buying panel, in the free space */
.hf-hero-decor__herb--1 { right: 2%; top: 58%; width: clamp(90px, 10vw, 150px); }
.hf-hero-decor__herb--2 { right: 30%; bottom: 6%; animation-delay: -2s; animation-duration: 10s; }
.hf-hero-decor__herb--3 { left: -2%; top: 8%; width: clamp(56px, 6vw, 90px); filter: blur(2px) drop-shadow(0 10px 14px rgba(0, 0, 0, .18)); animation-delay: -5s; }
.hf-hero-decor__herb--4 { right: 18%; top: 72%; width: clamp(50px, 5vw, 80px); filter: blur(1.5px); animation-delay: -7s; animation-duration: 12s; }

@keyframes hf-herb {
    0%, 100% { translate: 0 0; rotate: -10deg; }
    33% { translate: 10px -18px; rotate: 12deg; }
    66% { translate: -8px -6px; rotate: -2deg; }
}

.hf-hero-decor__orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .85), rgba(255, 255, 255, .15) 60%, transparent 70%);
    animation: hf-orb 9s ease-in-out infinite;
}
.hf-hero-decor__orb--a { width: 90px; height: 90px; left: 44%; top: 4%; }
.hf-hero-decor__orb--b { width: 46px; height: 46px; right: 4%; top: 6%; animation-delay: -4s; animation-duration: 11s; }
@keyframes hf-orb { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(10px, -18px, 0); } }

/* Gallery: main photo as a floating 3D card + the usual thumbnails below */
body.huanca-flavor div.product .woocommerce-product-gallery {
    z-index: 1;
    perspective: 1200px;
    background: transparent !important;
}

body.huanca-flavor .woocommerce-product-gallery .flex-viewport,
body.huanca-flavor .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
    overflow: hidden !important;
    border-radius: clamp(20px, 2.4vw, 32px) !important;
    background: #fff !important;
    box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .45), 0 14px 28px -16px rgba(0, 0, 0, .25) !important;
    transform: rotateX(var(--hf-rx, 0deg)) rotateY(var(--hf-ry, 0deg));
    transition: transform .3s ease-out;
    view-transition-name: hf-gallery;
}

body.huanca-flavor .woocommerce-product-gallery__image img { border-radius: 0 !important; }

body.huanca-flavor .woocommerce-product-gallery .flex-control-thumbs { gap: 10px !important; margin-top: 14px !important; }

body.huanca-flavor .woocommerce-product-gallery .flex-control-thumbs li {
    overflow: hidden;
    padding: 0 !important;
    border: 2px solid rgba(255, 255, 255, .7) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .45);
    transition: transform .2s ease, border-color .2s ease;
}

body.huanca-flavor .woocommerce-product-gallery .flex-control-thumbs li:hover { transform: translateY(-3px); }
body.huanca-flavor .woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active) { border-color: var(--hf-ink) !important; }
body.huanca-flavor .woocommerce-product-gallery .flex-control-thumbs img { border-radius: 12px; }

body.huanca-flavor .huanca-gallery-thumbs-nav,
body.huanca-flavor .huanca-gallery-thumbs-nav *:not(img):not(button),
body.huanca-flavor .woocommerce-product-gallery .flex-control-thumbs { background: transparent !important; }

body.huanca-flavor .huanca-gallery-thumbs-nav button {
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .85) !important;
    box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .35);
}

/* Buying area: white glass panel, every existing block keeps its look */
body.huanca-flavor div.product .summary {
    position: relative;
    z-index: 1;
    padding: clamp(18px, 2vw, 28px) !important;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: clamp(20px, 2.2vw, 30px);
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .45);
}

body.huanca-flavor div.product .summary .product_title { view-transition-name: hf-title; }

/* ================= LANDING ================= */
.hf-landing { position: relative; z-index: 1; }

.hf-section-title {
    margin: 0 0 clamp(18px, 3vw, 30px);
    color: #13200f;
    font-size: clamp(28px, 3.6vw, 46px);
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: -.03em;
    text-align: center;
}

/* 1 · El sabor */
.hf-band {
    position: relative;
    isolation: isolate;
    margin: clamp(20px, 4vw, 48px) 0 clamp(36px, 6vw, 80px);
    padding: clamp(28px, 5vw, 72px) 0;
    color: var(--hf-ink);
}

.hf-band::before {
    content: "";
    position: absolute;
    inset: 0;
    left: 50%;
    z-index: -1;
    width: min(100vw, 1600px);
    transform: translateX(-50%);
    border-radius: clamp(28px, 5vw, 64px);
    background: radial-gradient(45% 60% at 80% 30%, rgba(255, 255, 255, .35), transparent 70%), var(--hf-band);
}

.hf-band__inner {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(22px, 5vw, 72px);
    padding: 0 clamp(4px, 2vw, 32px);
}

.hf-band__visual { position: relative; display: grid; place-items: center; perspective: 1100px; }

.hf-band__ring {
    position: absolute;
    width: 92%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .55);
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .5), transparent 65%);
    animation: hf-spin 40s linear infinite;
}
.hf-band__ring::after { content: ""; position: absolute; top: 6%; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .25); }
@keyframes hf-spin { to { rotate: 360deg; } }

.hf-band__card {
    position: relative;
    width: min(88%, 470px);
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 32px;
    transform: rotateX(var(--hf-rx, 0deg)) rotateY(var(--hf-ry, 0deg));
    transition: transform .3s ease-out;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .4);
    animation: hf-float 6s ease-in-out infinite;
}
.hf-band__card img { display: block; width: 100%; height: 100%; object-fit: cover; }
@keyframes hf-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.hf-band__herb {
    position: absolute;
    z-index: 2;
    width: clamp(70px, 9vw, 130px);
    filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .25));
    animation: hf-herb 7s ease-in-out infinite;
}
.hf-band__herb--1 { top: -2%; right: 2%; }
.hf-band__herb--2 { bottom: 0; left: 0; animation-delay: -3s; animation-duration: 9s; }

.hf-band__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.hf-band__eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }

.hf-band__name { margin: 10px 0; color: inherit; font-size: clamp(40px, 6vw, 84px); font-weight: 850; line-height: 1; letter-spacing: -.035em; perspective: 600px; }
.hf-band__name .hf-char { display: inline-block; transform-origin: 50% 100%; }
.hf-band__tagline { max-width: 34ch; margin: 0 0 16px; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.45; opacity: .9; }
.hf-band__notes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hf-band__notes li { padding: 7px 14px; border: 1px solid color-mix(in srgb, var(--hf-ink) 22%, transparent); border-radius: 999px; background: rgba(255, 255, 255, .3); font-size: 13px; font-weight: 700; }

/* 2 · Por qué te va a encantar */
.hf-why { margin: 0 0 clamp(40px, 7vw, 96px); }

.hf-why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(12px, 2vw, 22px); }

.hf-why__card {
    position: relative;
    padding: clamp(20px, 2.4vw, 30px);
    border: 1px solid color-mix(in srgb, var(--hf-bg) 35%, #fff);
    border-radius: 26px;
    background: linear-gradient(160deg, var(--hf-soft), #fff 70%);
    box-shadow: 0 24px 50px -36px rgba(0, 0, 0, .35);
    transition: transform .3s ease, box-shadow .3s ease;
}
.hf-why__card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .4); }

.hf-why__icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--hf-bg);
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .45);
}
.hf-why__icon img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .2)); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.hf-why__card:hover .hf-why__icon img { transform: rotate(25deg) scale(1.12); }
.hf-why__icon span { color: var(--hf-ink); font-size: 26px; font-weight: 900; }
.hf-why__card h3 { margin: 0 0 6px; color: #13200f; font-size: 19px; font-weight: 800; }
.hf-why__card p { margin: 0; color: #4b564d; font-size: 15px; line-height: 1.5; }

/* 3 · Lo que lleva tu taza */
.hf-ingredients { margin: 0 0 clamp(40px, 7vw, 96px); }

.hf-ingredients__list { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 5vw, 70px); margin: 0; padding: 0; list-style: none; }

.hf-ingredients__item { position: relative; display: grid; justify-items: center; gap: 12px; width: clamp(150px, 18vw, 230px); }

.hf-ingredients__halo {
    position: absolute;
    top: 6%;
    width: 86%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--hf-bg) 60%, #fff) 0 55%, transparent 56%);
    border: 2px dashed color-mix(in srgb, var(--hf-bg) 70%, #000 0%);
    animation: hf-spin 30s linear infinite;
}

.hf-ingredients__item img {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .25));
    animation: hf-ingredient 10s ease-in-out infinite;
}
.hf-ingredients__item:nth-child(2) img { animation-delay: -3s; animation-direction: reverse; }
.hf-ingredients__item:nth-child(3) img { animation-delay: -6s; }

@keyframes hf-ingredient {
    0%, 100% { rotate: -14deg; translate: 0 0; }
    50% { rotate: 14deg; translate: 0 -12px; }
}

.hf-ingredients__item strong { position: relative; color: #13200f; font-size: 17px; font-weight: 800; }

/* 4 · Cómo prepararla */
.hf-prep {
    display: grid;
    grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: clamp(20px, 5vw, 70px);
    margin: 0 0 clamp(40px, 7vw, 96px);
    padding: clamp(24px, 4vw, 52px);
    border-radius: clamp(26px, 4vw, 48px);
    background: var(--hf-soft);
}

.hf-prep .hf-section-title { text-align: left; }

.hf-prep__cup svg { display: block; width: 100%; max-width: 300px; margin: 0 auto; overflow: visible; }
.hf-prep__glass { fill: rgba(255, 255, 255, .55); stroke: #13200f; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.hf-prep__glass + .hf-prep__glass { fill: none; }
.hf-prep__tea { fill: var(--hf-bg); transform-box: fill-box; transform: translateY(var(--hf-fill, 100%)); transition: transform .15s linear; }
.hf-prep__steam path { fill: none; stroke: color-mix(in srgb, var(--hf-bg) 70%, #13200f); stroke-width: 4; stroke-linecap: round; opacity: var(--hf-steam, 0); animation: hf-steam 2.4s ease-in-out infinite; }
.hf-prep__steam path:nth-child(2) { animation-delay: -.8s; }
.hf-prep__steam path:nth-child(3) { animation-delay: -1.6s; }
@keyframes hf-steam { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

.hf-prep__steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: none; }

.hf-prep__steps li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    background: #fff;
    color: #1d2a1a;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.4;
    box-shadow: 0 16px 30px -24px rgba(0, 0, 0, .4);
    opacity: .35;
    transform: translateX(14px);
    transition: opacity .4s ease, transform .4s ease, box-shadow .4s ease;
}
.hf-prep__steps li.is-on { opacity: 1; transform: none; box-shadow: 0 20px 36px -22px rgba(0, 0, 0, .45); }

.hf-prep__n { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--hf-bg); color: var(--hf-ink); font-size: 17px; font-weight: 900; }

/* Herbs that follow the scroll */
.hf-follow { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.hf-follow.is-on { opacity: 1; }
.hf-follow__herb { position: absolute; width: clamp(60px, 6vw, 96px); height: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .22)); will-change: transform; }
.hf-follow__herb--1 { left: 1.5%; top: 30%; }
.hf-follow__herb--2 { right: 1.5%; top: 55%; width: clamp(50px, 5vw, 80px); }
.hf-follow__herb--3 { left: 4%; top: 78%; width: clamp(40px, 4vw, 64px); filter: blur(1px) drop-shadow(0 10px 14px rgba(0, 0, 0, .18)); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
    .hf-follow__herb--1 { left: -1%; }
    .hf-follow__herb--2 { right: -1%; }
}

@media (max-width: 900px) {
    .hf-hero-decor__ghost { bottom: auto; top: 38%; font-size: 20vw; }
    .hf-hero-decor__herb--1 { right: -4%; top: 2%; }
    .hf-hero-decor__herb--2 { left: -4%; right: auto; bottom: 38%; }
    .hf-band__inner { grid-template-columns: 1fr; }
    .hf-band__visual { max-width: 420px; margin: 0 auto; width: 100%; }
    .hf-prep { grid-template-columns: 1fr; }
    .hf-prep .hf-section-title { text-align: center; }
    .hf-prep__cup svg { max-width: 200px; }
}

@media (max-width: 600px) {
    body.huanca-flavor .huanca-product-top { padding-top: 12px; }
    body.huanca-flavor div.product .woocommerce-product-gallery { width: auto !important; max-width: none !important; margin: 0 14px !important; background: transparent !important; }
    body.huanca-flavor .woocommerce-product-gallery .flex-viewport { border-radius: 24px !important; }
    body.huanca-flavor div.product .summary { margin-top: 10px !important; padding: 16px !important; border-radius: 22px; }
    .hf-hero-decor__herb { width: 64px; }
    .hf-hero-decor__herb--3, .hf-hero-decor__herb--4 { display: none; }
    .hf-landing { padding: 0 16px; }
    .hf-band::before { border-radius: 28px; width: 100vw; }
    .hf-band__card { border-radius: 24px; }
    .hf-band__herb { width: 64px; }
    .hf-why__card { padding: 18px; display: grid; grid-template-columns: 60px 1fr; column-gap: 14px; align-items: center; }
    .hf-why__icon { width: 60px; height: 60px; margin: 0; grid-row: span 2; }
    .hf-why__icon img { width: 44px; height: 44px; }
    .hf-ingredients__item { width: 42vw; }
    .hf-prep { padding: 20px; }
    .hf-follow__herb { width: 46px; opacity: .85; }
    .hf-follow__herb--1 { left: -14px; }
    .hf-follow__herb--2 { right: -12px; width: 40px; }
    .hf-follow__herb--3 { display: none; }
}

/* Elements revealed on scroll start hidden only when JS + motion are available */
.hf-js [data-hf-reveal],
.hf-js [data-hf-stagger] > * { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
    .hf-hero-decor__herb, .hf-hero-decor__orb, .hf-band__ring, .hf-band__card, .hf-band__herb,
    .hf-ingredients__halo, .hf-ingredients__item img, .hf-prep__steam path { animation: none !important; }
    .hf-js [data-hf-reveal], .hf-js [data-hf-stagger] > * { opacity: 1 !important; }
    .hf-prep__tea { transform: none; }
    .hf-prep__steps li { opacity: 1; transform: none; }
    .hf-follow { display: none; }
    @view-transition { navigation: none; }
}

/* ==========================================================
   1.0.40 · LANDING LARGA (Hojas de Muña) + CELULAR
   ========================================================== */

/* Stats strip */
.hf-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 clamp(40px, 6vw, 80px);
}
.hf-stats__item {
    padding: clamp(16px, 2vw, 24px) 12px;
    border-radius: 22px;
    background: var(--hf-soft);
    text-align: center;
}
.hf-stats__item strong { display: block; color: #13200f; font-size: clamp(30px, 4vw, 48px); font-weight: 850; line-height: 1; letter-spacing: -.03em; }
.hf-stats__item small { display: block; margin-top: 6px; color: #4b564d; font-size: 14px; }

/* Story: producers */
.hf-story,
.hf-scoop {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 70px);
    margin: 0 0 clamp(48px, 8vw, 110px);
}
.hf-story__media,
.hf-scoop__media {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: clamp(24px, 3vw, 40px);
    aspect-ratio: 1 / 1;
    box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .45);
}
.hf-story__media img,
.hf-scoop__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.hf-story__eyebrow { color: #315f26; }
.hf-story__title,
.hf-scoop__title { text-align: left; margin-top: 10px; }
.hf-story__copy p,
.hf-scoop__copy p { margin: 0 0 14px; color: #3f4a41; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; }
.hf-story__points { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.hf-story__points li { padding: 8px 14px 8px 32px; position: relative; border-radius: 999px; background: var(--hf-soft); color: #1d2a1a; font-size: 14px; font-weight: 700; }
.hf-story__points li::before { content: ""; position: absolute; left: 13px; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: #5d8f2f; transform: translateY(-50%); }
.hf-scoop { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* Prep with real photo */
.hf-prep--photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); position: relative; }
.hf-prep__photo { margin: 0; overflow: hidden; border-radius: clamp(20px, 3vw, 34px); aspect-ratio: 1 / 1; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .45); }
.hf-prep__photo img { width: 100%; height: 100%; object-fit: cover; }
.hf-prep--photo .hf-prep__cup {
    position: absolute;
    left: clamp(14px, 3vw, 40px);
    bottom: clamp(14px, 3vw, 40px);
    width: clamp(76px, 9vw, 120px);
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .4);
}
.hf-prep--photo .hf-prep__cup svg { max-width: none; }

/* Moments */
.hf-moments { margin: 0 0 clamp(48px, 8vw, 110px); }
.hf-moments__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.hf-moments__card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 4 / 5;
    box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .45);
    isolation: isolate;
}
.hf-moments__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22, 1, .36, 1); z-index: -1; }
.hf-moments__card:hover img { transform: scale(1.06); }
.hf-moments__card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(10, 20, 8, .78)); z-index: -1; }
.hf-moments__text { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; color: #fff; }
.hf-moments__text h3 { margin: 0 0 4px; color: #fff; font-size: 21px; font-weight: 800; }
.hf-moments__text p { margin: 0; font-size: 14.5px; line-height: 1.45; opacity: .92; }

/* FAQ */
.hf-faq { max-width: 860px; margin: 0 auto clamp(40px, 6vw, 80px); }
.hf-faq__list { display: grid; gap: 10px; }
.hf-faq__item { border: 1px solid #e4e8e2; border-radius: 18px; background: #fff; overflow: hidden; }
.hf-faq__item summary { position: relative; padding: 18px 54px 18px 20px; color: #13200f; font-size: 16.5px; font-weight: 750; cursor: pointer; list-style: none; }
.hf-faq__item summary::-webkit-details-marker { display: none; }
.hf-faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--hf-soft); color: #315f26; font-size: 20px; line-height: 1; transform: translateY(-50%); transition: transform .3s ease; }
.hf-faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.hf-faq__item p { margin: 0; padding: 0 20px 18px; color: #4b564d; font-size: 15.5px; line-height: 1.6; }

.hf-note { max-width: 760px; margin: 0 auto 40px; color: #7a847c; font-size: 13px; line-height: 1.5; text-align: center; }

/* Responsive */
@media (max-width: 900px) {
    .hf-story, .hf-scoop, .hf-prep--photo { grid-template-columns: 1fr; }
    .hf-scoop__media { order: -1; }
    .hf-story__title, .hf-scoop__title { text-align: left; }
    .hf-moments__grid { grid-template-columns: 1fr; }
    .hf-moments__card { aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
    .hf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

    /* Title, price and buy button use the full phone width */
    body.huanca-flavor div.product .summary {
        width: 100% !important;
        margin: 14px 0 0 !important;
        padding: 20px 16px 22px !important;
        border-left: 0;
        border-right: 0;
        border-radius: 26px 26px 0 0;
        box-shadow: 0 -18px 40px -30px rgba(0, 0, 0, .35);
    }

    /* the stacked deck replaces the card gallery on phones */
    body.huanca-flavor .hg-deck { padding: 4px 16px 0; }
    body.huanca-flavor .hg-deck__dots button { background: rgba(0, 0, 0, .2); }
    body.huanca-flavor .hg-deck__dots button.is-on { background: var(--hf-ink); }
}
@media (max-width: 600px) {
    .hf-why__grid { grid-template-columns: 1fr; }
}
/* the small filling cup sits on the photo's top-left corner, never over the steps */
.hf-prep--photo .hf-prep__cup { top: calc(clamp(24px, 4vw, 52px) + 14px); left: calc(clamp(24px, 4vw, 52px) + 14px); bottom: auto; }
@media (max-width: 600px) { .hf-prep--photo .hf-prep__cup { top: 34px; left: 34px; width: 70px; } }
/* Long cut-outs (muña sprig, lemon verbena) stay inside a square box */
.hf-follow__herb,
.hf-hero-decor__herb,
.hf-band__herb,
.hf-why__icon img { aspect-ratio: 1 / 1; height: auto; object-fit: contain; }
@media (max-width: 600px) {
    .hf-follow__herb { width: 52px; opacity: .75; }
    .hf-follow__herb--1 { left: -18px; }
    .hf-follow__herb--2 { right: -18px; width: 44px; }
}
/* The description written in WordPress, below the landing */
body.huanca-flavor .huanca-product-description { max-width: 860px; margin: 0 auto 10px; color: #3f4a41; font-size: 16px; line-height: 1.7; }
@media (max-width: 600px) {
    body.huanca-flavor .huanca-product-description,
    body.huanca-flavor .huanca-product-detail,
    body.huanca-flavor .huanca-reviews-section { padding-left: 16px !important; padding-right: 16px !important; }
}

/* 1.0.43 · on phones the flavour herb peeks from the gallery's corner */
@media (max-width: 600px) {
    body.huanca-flavor .hf-hero-decor { z-index: 3; }
    body.huanca-flavor .hf-hero-decor__ghost,
    body.huanca-flavor .hf-hero-decor__orb,
    body.huanca-flavor .hf-hero-decor__herb--3,
    body.huanca-flavor .hf-hero-decor__herb--4 { display: none; }
    body.huanca-flavor .hf-hero-decor__herb--1 { top: -6px; right: 2px; left: auto; bottom: auto; width: 82px; transform: rotate(18deg); }
    body.huanca-flavor .hf-hero-decor__herb--2 { top: 330px; left: -6px; right: auto; bottom: auto; width: 58px; }
}
