/* ==========================================================
   Menta Orgánika — estilos
   ========================================================== */
:root {
  --forest: #16260a;
  --forest-2: #213810;
  --forest-3: #3a6312;
  --mint: #70a519;
  --mint-2: #5a8c10;
  --mint-soft: #e4f1cf;
  --mint-wash: #f1f7e6;
  --lime: #d2f65a;
  --lime-2: #bfe63c;
  --cream: #f7f5ee;
  --sand: #ece8db;
  --white: #fff;
  --ink: #0e1b16;
  --muted: #5c6b64;
  --line: #e2e5dc;
  --coral: #ff5f45;
  --wa: #1fbe5c;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(22, 38, 10, .06), 0 4px 14px rgba(22, 38, 10, .05);
  --shadow: 0 10px 30px -8px rgba(22, 38, 10, .18);
  --shadow-lg: 0 30px 70px -20px rgba(22, 38, 10, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 124px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); color: var(--ink); background: var(--cream);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4, p, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
em { font-style: normal; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--forest); }

svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(1280px, 100% - 40px); margin-inline: auto; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--forest); display: grid; place-content: center; justify-items: center; gap: 10px;
  transition: clip-path .9s var(--ease), visibility 0s .9s; clip-path: inset(0 0 0 0);
}
body:not(.is-loading) .loader { clip-path: inset(0 0 100% 0); visibility: hidden; }
/* respaldo: si el JS tardara o fallara, el loader se retira solo */
.loader { animation: loaderOut .9s 3.5s var(--ease) forwards; }
@keyframes loaderOut { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.loader__mark { width: 110px; height: 110px; animation: pop .8s var(--ease) both; }
.loader__word { height: 84px; width: auto; animation: rise .7s .1s var(--ease) both; }
.loader__bar { width: 140px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--lime); animation: load 1s var(--ease) forwards; transform-origin: left; }
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { transform: scale(.4) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--mint), var(--lime)); transform: scaleX(0); transform-origin: left; z-index: 120; pointer-events: none; }

/* ---------- Topbar ---------- */
.topbar { background: var(--forest); color: #d9efe4; font-size: 13px; overflow: hidden; }
.topbar__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.topbar:hover .topbar__track { animation-play-state: paused; }
.topbar__group { display: flex; flex: none; }
.topbar__group span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 28px; white-space: nowrap; }
.topbar__group svg { width: 16px; height: 16px; color: var(--lime); }
.topbar b { color: var(--lime); letter-spacing: .04em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 90; background: rgba(247, 245, 238, .86); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); transition: box-shadow .3s, background .3s; }
.header.is-scrolled { box-shadow: 0 8px 30px -14px rgba(22, 38, 10, .28); background: rgba(255, 255, 255, .92); }
.header__main { display: flex; align-items: center; gap: 18px; height: 76px; }
.header .header__burger, .header .header__search-toggle { display: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo__mark { width: 56px; height: 56px; transition: transform .8s var(--ease); }
.logo:hover .logo__mark { transform: rotate(40deg) scale(1.05); }
.logo__word { height: 58px; width: auto; }

.search { position: relative; flex: 1; max-width: 560px; margin-inline: auto; display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; height: 48px; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--mint); box-shadow: 0 0 0 5px rgba(112, 165, 25, .16); }
.search > svg { color: var(--muted); width: 20px; height: 20px; }
.search input { flex: 1; border: 0; outline: 0; background: none; padding: 0 12px; min-width: 0; height: 100%; }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { font: 600 12px var(--body); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.search__panel { position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; z-index: 5; max-height: min(70vh, 520px); overflow: auto; animation: drop .25s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.search__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 8px 10px 6px; }
.search__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 8px 8px; }
.search__chips button { background: var(--mint-wash); border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 500; transition: background .2s; }
.search__chips button:hover { background: var(--mint-soft); }
.search__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; width: 100%; text-align: left; }
.search__item:hover, .search__item.is-active { background: var(--mint-wash); }
.search__item img { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.search__item span { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 500; line-height: 1.25; }
.search__item small { display: block; color: var(--muted); font-weight: 400; }
.search__item b { font-family: var(--display); white-space: nowrap; }
.search__item mark { background: var(--lime); color: inherit; border-radius: 3px; }
.search__all { display: flex; justify-content: center; gap: 8px; align-items: center; width: 100%; padding: 12px; margin-top: 4px; border-top: 1px solid var(--line); font-weight: 600; color: var(--forest-3); }
.search__empty { padding: 18px 12px; color: var(--muted); text-align: center; }

.header__actions { display: flex; align-items: center; gap: 6px; flex: none; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; transition: background .2s, transform .2s; }
.icon-btn:hover { background: rgba(22, 38, 10, .07); }
.icon-btn:active { transform: scale(.92); }
.badge { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--coral); color: #fff; font: 700 11px/19px var(--body); text-align: center; font-style: normal; box-shadow: 0 0 0 2px #fff; }
.badge.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); } }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 16px; border-radius: 999px; background: var(--forest); color: #fff; font-weight: 600; transition: transform .2s, background .2s; }
.cart-btn:hover { background: var(--forest-3); transform: translateY(-1px); }
.cart-btn .badge { top: -4px; right: -4px; }
.cart-btn.shake { animation: shake .5s var(--ease); }
@keyframes shake { 25% { transform: rotate(-6deg) scale(1.06); } 60% { transform: rotate(5deg) scale(1.03); } }

.nav { border-top: 1px solid rgba(22, 38, 10, .07); overflow: hidden; max-height: 48px; transition: max-height .35s var(--ease), opacity .3s; }
.header.nav-hidden .nav { max-height: 0; opacity: 0; }
.nav__inner { display: flex; gap: 4px; height: 48px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.nav__inner::-webkit-scrollbar { display: none; }
.nav__inner a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: #24362e; transition: background .2s, color .2s; }
.nav__inner a:hover { background: var(--mint-soft); color: var(--forest); }
.nav__inner a.is-hot { color: var(--coral); font-weight: 700; }
.nav__inner a.nav__right { margin-left: auto; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .25s var(--ease), background .2s, color .2s, box-shadow .25s, border-color .2s; position: relative; overflow: hidden; }
.btn svg { width: 19px; height: 19px; transition: transform .3s var(--ease); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--lg { height: 56px; padding: 0 30px; font-size: 16.5px; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--lime { background: var(--lime); color: var(--forest); box-shadow: 0 8px 24px -8px rgba(190, 230, 60, .7); }
.btn--lime:hover { background: #dcfb72; box-shadow: 0 14px 30px -8px rgba(190, 230, 60, .8); }
.btn--dark { background: var(--forest); color: #fff; }
.btn--dark:hover { background: var(--forest-3); }
.btn--outline { border: 1.5px solid var(--forest); color: var(--forest); }
.btn--outline:hover { background: var(--forest); color: #fff; }
.btn--ghost { border: 1.5px solid rgba(22, 38, 10, .25); }
.btn--ghost:hover { border-color: var(--forest); background: rgba(22, 38, 10, .05); }
.btn--ghost-light { border: 1.5px solid rgba(255, 255, 255, .4); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--forest); border-color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #19a850; }
.btn--text { height: auto; padding: 6px 4px; color: var(--muted); font-size: 14px; }
.btn--text:hover { color: var(--ink); transform: none; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: inline-grid; place-items: center; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .25s var(--ease), background .2s, color .2s, opacity .2s; }
.round-btn:hover { background: var(--forest); color: #fff; transform: scale(1.08); }
.round-btn[disabled] { opacity: 0; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
a:hover > .link-arrow svg, .link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Hero ---------- */
.hero { position: relative; height: clamp(540px, 76vh, 720px); margin: 14px 20px 0; border-radius: 34px; overflow: hidden; background: var(--forest); isolation: isolate; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s; display: flex; align-items: center; }
.slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.slide[data-theme="dark"] { background: var(--forest); color: #fff; }
.slide[data-theme="light"] { background: var(--sand); color: var(--forest); }
.slide[data-theme="mint"] { background: #dcedbd; color: var(--forest); }
.slide__bg { position: absolute; inset: 0; background-size: cover; background-position: 70% center; transform: scale(1.12); transition: transform 7s linear; z-index: -1; }
.slide.is-active .slide__bg { transform: scale(1); }
.slide[data-theme="dark"] .slide__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(18, 32, 8, .96) 0%, rgba(18, 32, 8, .82) 38%, rgba(18, 32, 8, .25) 72%, rgba(18, 32, 8, .1) 100%); }
.slide__bg--right { left: 46%; border-radius: 240px 0 0 240px; background-position: center; }
.slide__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 30px; width: min(1180px, 100% - 80px); }
.slide__copy > * { opacity: 0; transform: translateY(26px); }
.slide.is-active .slide__copy > * { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.slide.is-active .slide__copy > :nth-child(1) { transition-delay: .15s; }
.slide.is-active .slide__copy > :nth-child(2) { transition-delay: .25s; }
.slide.is-active .slide__copy > :nth-child(3) { transition-delay: .35s; }
.slide.is-active .slide__copy > :nth-child(4) { transition-delay: .45s; }
.slide.is-active .slide__copy > :nth-child(5) { transition-delay: .55s; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
.eyebrow svg { width: 16px; height: 16px; color: var(--lime); }
.slide:not([data-theme="dark"]) .eyebrow { background: rgba(22, 38, 10, .09); }
.slide:not([data-theme="dark"]) .eyebrow svg { color: var(--forest-3); }
.slide__title { font-size: clamp(44px, 6.4vw, 92px); font-weight: 800; letter-spacing: -.045em; line-height: .95; margin: 20px 0 18px; }
.slide__title em { color: var(--lime); }
.slide:not([data-theme="dark"]) .slide__title em { color: var(--mint-2); -webkit-text-stroke: 0; }
.slide[data-theme="mint"] .slide__title em { color: var(--forest-3); }
.slide__text { font-size: clamp(16px, 1.35vw, 19px); max-width: 520px; opacity: .88; }
.slide.is-active .slide__copy > .slide__text { opacity: .88; }
.slide__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.slide__points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 14px; color: #cfe6da; }
.slide__points li { display: inline-flex; gap: 6px; align-items: center; }
.slide__points svg { width: 16px; height: 16px; color: var(--lime); stroke-width: 2.6; }
.slide__visual { position: relative; height: 420px; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 20px; padding: 10px 18px 10px 10px; box-shadow: var(--shadow-lg); cursor: pointer; will-change: transform; }
.float-card img { width: 78px; height: 78px; object-fit: contain; border-radius: 14px; background: #fff; }
.float-card small { display: block; color: var(--muted); font-size: 12px; }
.float-card b { font-family: var(--display); font-size: 16px; }
.float-card--a { right: 2%; top: 12%; animation: floaty 6s ease-in-out infinite; }
.float-card--b { right: 30%; bottom: 10%; animation: floaty 7s 1s ease-in-out infinite; }
.float-pill { position: absolute; right: 8%; bottom: 36%; display: inline-flex; gap: 8px; align-items: center; background: var(--lime); color: var(--forest); font-weight: 700; padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow); animation: floaty 5s .5s ease-in-out infinite; }
.float-pill svg { width: 17px; height: 17px; }
@keyframes floaty { 50% { translate: 0 -12px; } }
.hero__controls { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3; display: flex; justify-content: space-between; align-items: center; width: min(1180px, 100% - 80px); margin-inline: auto; pointer-events: none; }
.hero__controls > * { pointer-events: auto; }
.hero__dots { display: flex; gap: 8px; }
.hero__dots button { width: 34px; height: 5px; border-radius: 5px; background: rgba(140, 150, 145, .45); overflow: hidden; position: relative; transition: width .4s var(--ease); }
.hero__dots button.is-active { width: 64px; }
.hero__dots button i { position: absolute; inset: 0; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.hero[data-theme="light"] .hero__dots button i, .hero[data-theme="mint"] .hero__dots button i { background: var(--forest); }
.hero__dots button.is-active i { animation: load var(--hero-time, 6.5s) linear forwards; }
.hero.is-paused .hero__dots button.is-active i { animation-play-state: paused; }
.hero__arrows { display: flex; gap: 8px; }

/* ---------- Perks ---------- */
.perks { padding: 26px 0 6px; }
.perks__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.perk { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.perk:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.perk__ico { width: 48px; height: 48px; border-radius: 15px; background: var(--mint-soft); color: var(--forest-3); display: grid; place-items: center; flex: none; transition: background .3s, transform .5s var(--ease); }
.perk:hover .perk__ico { background: var(--lime); transform: rotate(-8deg); }
.perk b { display: block; font-family: var(--display); font-size: 16.5px; }
.perk small { color: var(--muted); font-size: 13.5px; line-height: 1.3; display: block; }

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
.section--tight { padding: 10px 0 30px; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section h2 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 800; letter-spacing: -.04em; }
.section h2 em { color: var(--mint-2); }
.section__head--light, .section__head--light h2 { color: #fff; }
.section__head--light h2 em { color: var(--lime); }
.kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--mint-2); margin-bottom: 12px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.kicker svg { width: 16px; height: 16px; }
.kicker--lime { color: var(--lime); }
.lead { font-size: 18px; color: var(--muted); max-width: 540px; margin-top: 14px; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Categorías ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; padding: 22px; border-radius: var(--radius); background: var(--c, #fff); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s; isolation: isolate; }
.cat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat::before { content: ""; position: absolute; width: 190px; height: 190px; right: -40px; bottom: -50px; border-radius: 50%; background: rgba(255, 255, 255, .55); z-index: -1; transition: transform .6s var(--ease); }
.cat:hover::before { transform: scale(1.35); }
.cat h3 { font-size: 21px; font-weight: 700; max-width: 9ch; }
.cat small { color: rgba(14, 27, 22, .62); font-size: 13.5px; display: block; margin-top: 4px; }
.cat img { position: absolute; right: 12px; bottom: 12px; width: 128px; height: 128px; object-fit: contain; background: #fff; border-radius: 50%; padding: 18px; transition: transform .6s var(--ease); box-shadow: 0 14px 26px -10px rgba(22, 38, 10, .3); }
.cat:hover img { transform: translateY(-8px) rotate(-6deg) scale(1.08); }
.cat__go { width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; transition: transform .4s var(--ease), background .2s; }
.cat__go svg { width: 18px; height: 18px; }
.cat:hover .cat__go { transform: rotate(-45deg); background: var(--mint-2); }

/* ---------- Rails / carruseles ---------- */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 18px) / 5); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 4px 26px; margin: -6px -4px -26px; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail--sm { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; }
.rail__btn { position: absolute; top: 38%; z-index: 4; }
.rail__btn--prev { left: -22px; }
.rail__btn--next { right: -22px; }

/* ---------- Tarjeta de producto ---------- */
.card { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s; min-width: 0; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 1; background: #fff; cursor: pointer; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.09); }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.tag { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; letter-spacing: .02em; line-height: 1.2; }
.tag--sale { background: var(--coral); color: #fff; }
.tag--new { background: var(--forest); color: var(--lime); }
.tag--top { background: var(--lime); color: var(--forest); }
.card__fav { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--muted); transition: transform .3s var(--ease), color .2s, background .2s; }
.card__fav svg { width: 19px; height: 19px; }
.card__fav:hover { transform: scale(1.14); color: var(--coral); }
.card__fav.is-on, .fav-on { color: var(--coral); }
.card__fav.is-on svg, .fav-on svg { fill: currentColor; animation: heart .5s var(--ease); }
@keyframes heart { 30% { transform: scale(1.5); } 60% { transform: scale(.85); } }
.card__quick { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 40px; border-radius: 999px; background: rgba(22, 38, 10, .92); color: #fff; font-size: 14px; font-weight: 600; display: inline-flex; gap: 7px; align-items: center; justify-content: center; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .4s var(--ease); backdrop-filter: blur(6px); }
.card__quick svg { width: 17px; height: 17px; }
.card:hover .card__quick, .card__quick:focus-visible { opacity: 1; transform: none; }
.card__body { padding: 4px 16px 16px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.card__brand { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--mint-2); }
.card__name { font: 600 15px/1.3 var(--body); letter-spacing: 0; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card__name:hover { color: var(--forest-3); }
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.price { display: flex; flex-direction: column; line-height: 1.1; }
.price s { color: var(--muted); font-size: 13px; }
.price b { font-family: var(--display); font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.price--sale b { color: var(--coral); }
.card__add { width: 44px; height: 44px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; flex: none; transition: transform .35s var(--ease), background .2s; }
.card__add:hover { background: var(--mint-2); transform: rotate(90deg) scale(1.08); }
.card__add.is-done { background: var(--mint-2); transform: none; }
.card.in-cart .card__add { background: var(--mint-2); }
.card__qty { position: absolute; right: 10px; bottom: 50px; background: var(--lime); color: var(--forest); font: 700 11px/1 var(--body); padding: 4px 7px; border-radius: 999px; }
.card--dark { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .1); }
.card--dark .card__media { margin: 8px 8px 0; border-radius: 16px; }
.card--dark .card__body { padding-top: 12px; }
.card--dark .card__brand { color: var(--lime); }
.card--dark .card__name:hover { color: var(--lime); }
.card--dark .price s { color: #9db5aa; }
.card--dark .price--sale b { color: var(--lime); }
.card--dark .card__add { background: var(--lime); color: var(--forest); }
.sale-meter { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .14); overflow: hidden; margin-top: 10px; }
.sale-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), #ffb347); border-radius: 5px; }
.sale-note { font-size: 12px; color: #a9c2b6; margin-top: 5px; }

/* ---------- Flash ---------- */
.flash { background: var(--forest); margin: 0 20px; border-radius: 34px; overflow: hidden; }
.flash__glow { position: absolute; width: 620px; height: 620px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(112, 165, 25, .38), transparent 65%); animation: glow 9s ease-in-out infinite alternate; pointer-events: none; }
@keyframes glow { to { transform: translate(-120px, 80px) scale(1.2); } }
.countdown { display: flex; align-items: center; gap: 8px; color: #fff; }
.countdown div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; width: 76px; padding: 10px 0 8px; text-align: center; }
.countdown b { display: block; font: 800 32px/1 var(--display); color: var(--lime); font-variant-numeric: tabular-nums; }
.countdown small { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #a9c2b6; }
.countdown i { font: 800 26px var(--display); color: rgba(255, 255, 255, .3); font-style: normal; }
.flash .round-btn { border-color: transparent; }

/* ---------- Objetivos ---------- */
.goals__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.goals__media { position: relative; border-radius: 30px; overflow: hidden; min-height: 560px; box-shadow: var(--shadow); }
.goals__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.goals__media:hover > img { transform: scale(1.05); }
.goals__media-card { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-radius: 20px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.goals__media-card > svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--lime); color: var(--forest); }
.goals__media-card div { flex: 1; min-width: 150px; line-height: 1.3; }
.goals__media-card b { font-family: var(--display); display: block; }
.goals__media-card small { color: var(--muted); }
.goal-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 14px; }
.goal-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 600; transition: all .3s var(--ease); }
.goal-tabs button:hover { border-color: var(--forest); transform: translateY(-2px); }
.goal-tabs button.is-active { background: var(--forest); color: #fff; border-color: var(--forest); box-shadow: var(--shadow); }
.goal-desc { color: var(--muted); margin-bottom: 20px; min-height: 3.1em; max-width: 620px; }

/* ---------- Banners ---------- */
.banners { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.banner { position: relative; min-height: 270px; border-radius: 28px; overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; transition: transform .45s var(--ease), box-shadow .45s; }
.banner:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.banner:hover img { transform: scale(1.08); }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.banner--dark { color: #fff; }
.banner--dark::after { background: linear-gradient(20deg, rgba(18, 32, 8, .95) 20%, rgba(18, 32, 8, .35)); }
.banner--mint::after { background: linear-gradient(20deg, rgba(226, 240, 204, .97) 30%, rgba(226, 240, 204, .25)); }
.banner--cream::after { background: linear-gradient(20deg, rgba(247, 245, 238, .97) 30%, rgba(247, 245, 238, .2)); }
.banner__body { padding: 26px; display: grid; gap: 12px; justify-items: start; }
.banner h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; max-width: 14ch; letter-spacing: -.03em; }
.chip { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--forest); }
.chip--lime { background: var(--lime); }
.chip--dark { background: var(--forest); color: var(--lime); }

/* ---------- Catálogo ---------- */
.catalog { background: #fff; border-radius: 34px; margin: 0 20px; }
.catalog__count { color: var(--muted); font-weight: 500; }
.catalog__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 18px; }
.catalog__chips::-webkit-scrollbar { display: none; }
.catalog__chips button { white-space: nowrap; padding: 10px 18px; border-radius: 999px; background: var(--cream); font-weight: 600; font-size: 14.5px; display: inline-flex; gap: 8px; align-items: center; transition: all .25s var(--ease); }
.catalog__chips button small { font-weight: 600; font-size: 12px; opacity: .55; }
.catalog__chips button:hover { background: var(--mint-soft); }
.catalog__chips button.is-active { background: var(--forest); color: #fff; }
.catalog__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; background: var(--cream); border-radius: 20px; margin-bottom: 26px; }
.field { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 0 12px; height: 44px; font-size: 14px; border: 1.5px solid transparent; transition: border-color .2s; }
.field:focus-within { border-color: var(--mint); }
.field > span { color: var(--muted); white-space: nowrap; }
.field b { color: var(--ink); }
.field select, .field input[type="search"] { border: 0; outline: 0; background: none; height: 100%; font-weight: 600; min-width: 0; }
.field select { max-width: 170px; cursor: pointer; }
.field--search { flex: 1; min-width: 200px; }
.field--search svg { width: 18px; height: 18px; color: var(--muted); }
.field--search input { flex: 1; font-weight: 400 !important; }
.field--range input { width: 120px; accent-color: var(--forest-3); }
.toggle { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; cursor: pointer; padding: 0 6px; }
.toggle input { position: absolute; opacity: 0; }
.toggle i { width: 42px; height: 24px; border-radius: 999px; background: #cfd5cb; position: relative; transition: background .25s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.toggle input:checked + i { background: var(--mint-2); }
.toggle input:checked + i::after { transform: translateX(18px); }
.toggle input:focus-visible + i { outline: 3px solid var(--mint); outline-offset: 2px; }
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.grid .card { border: 1px solid var(--line); box-shadow: none; animation: cardIn .6s var(--ease) both; }
.grid .card:hover { box-shadow: var(--shadow); border-color: transparent; }
@keyframes cardIn { from { opacity: 0; transform: translateY(22px) scale(.97); } }
.catalog__more { text-align: center; margin-top: 36px; }
.catalog__empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.catalog__empty > svg { width: 54px; height: 54px; color: var(--mint-2); margin: 0 auto 14px; display: block; }
.catalog__empty h3 { color: var(--ink); font-size: 24px; margin-bottom: 6px; }
.catalog__empty div { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Marcas ---------- */
.brands { overflow: hidden; padding: 44px 0 10px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.brands__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.brands__track span { font: 800 clamp(24px, 3vw, 40px) var(--display); letter-spacing: -.03em; color: rgba(22, 38, 10, .22); padding: 0 26px; white-space: nowrap; display: inline-flex; align-items: center; gap: 52px; transition: color .3s; }
.brands__track span::after { content: "✦"; font-size: .5em; color: var(--mint); }
.brands__track span:hover { color: var(--forest); }

/* ---------- Tienda ---------- */
.store__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.store__list { display: grid; gap: 16px; margin: 28px 0; }
.store__list li { display: flex; gap: 14px; align-items: flex-start; }
.store__list svg { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: var(--mint-soft); color: var(--forest-3); }
.store__list b { display: block; font-family: var(--display); }
.store__list span { color: var(--muted); }
.store__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.store__media { position: relative; padding: 0 0 70px 0; }
.store__media > img { border-radius: 30px; aspect-ratio: 4/3.4; width: 88%; object-fit: cover; box-shadow: var(--shadow); }
.store__map { position: absolute; right: 0; bottom: 0; width: 58%; aspect-ratio: 4/3; border-radius: 24px; overflow: hidden; border: 6px solid var(--cream); box-shadow: var(--shadow-lg); background: var(--sand); }
.store__map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Registro ---------- */
.register { background: var(--forest); color: #fff; margin: 0 20px; border-radius: 34px; overflow: hidden; }
.register::before { content: ""; position: absolute; inset: 0; background: url(../assets/img/gym-wide.webp) center/cover; opacity: .16; }
.register::after { content: ""; position: absolute; width: 700px; height: 700px; left: -260px; bottom: -380px; border-radius: 50%; background: radial-gradient(circle, rgba(210, 246, 90, .28), transparent 62%); pointer-events: none; }
.register__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(28px, 5vw, 80px); align-items: center; }
.register h2 em { color: var(--lime); }
.register .lead { color: #c5ddd1; }
.register__perks { display: grid; gap: 12px; margin-top: 26px; font-weight: 500; }
.register__perks li { display: flex; gap: 12px; align-items: center; }
.register__perks svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--lime); color: var(--forest); stroke-width: 3; }
.register__card { background: #fff; color: var(--ink); border-radius: 28px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-lg); }
.register__card h3 { font-size: 26px; font-weight: 800; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input { display: block; margin-bottom: 14px; }
.input > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.input input, .input select, .input textarea { width: 100%; height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream); padding: 0 16px; outline: 0; transition: border-color .2s, box-shadow .2s, background .2s; }
.input textarea { height: 76px; padding: 12px 16px; resize: vertical; }
.input input:focus, .input select:focus, .input textarea:focus { border-color: var(--mint); background: #fff; box-shadow: 0 0 0 5px rgba(112, 165, 25, .15); }
.input small { display: block; color: var(--coral); font-size: 12.5px; min-height: 0; margin-top: 4px; }
.input.is-error input, .input.is-error select { border-color: var(--coral); animation: nudge .35s; }
@keyframes nudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.pick { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.pick legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.pick label { cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 500; transition: all .25s var(--ease); }
.pick input:checked + span { background: var(--forest); color: #fff; border-color: var(--forest); }
.pick input:focus-visible + span { outline: 3px solid var(--mint); outline-offset: 2px; }
.pick--block label { flex: 1 1 140px; }
.pick--block span { display: block; border-radius: 14px; text-align: center; padding: 12px 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; cursor: pointer; }
.check input { position: absolute; opacity: 0; }
.check i { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #b9c2b7; flex: none; display: grid; place-items: center; transition: all .2s; }
.check input:checked + i { background: var(--mint-2); border-color: var(--mint-2); }
.check input:checked + i::after { content: ""; width: 10px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check input:focus-visible + i { outline: 3px solid var(--mint); outline-offset: 2px; }
.check.is-error i { border-color: var(--coral); animation: nudge .35s; }
.check a, .form-note a { color: var(--forest-3); font-weight: 600; text-decoration: underline; }
.form-note { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.register__done { text-align: center; display: grid; gap: 14px; justify-items: center; animation: cardIn .6s var(--ease); }
.done-ico { width: 68px; height: 68px; border-radius: 50%; background: var(--lime); color: var(--forest); display: grid; place-items: center; animation: pop .6s var(--ease); }
.done-ico svg { width: 34px; height: 34px; stroke-width: 3; }
.register__done h3 { margin: 0; }
.register__done p { color: var(--muted); }
.coupon-ticket { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 16px 20px; border-radius: 16px; border: 2px dashed var(--mint-2); background: var(--mint-wash); transition: background .2s, transform .2s; }
.coupon-ticket:hover { background: var(--mint-soft); transform: scale(1.01); }
.coupon-ticket b { font: 800 24px var(--display); letter-spacing: .06em; color: var(--forest); }
.coupon-ticket span { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 600; color: var(--forest-3); }
.coupon-ticket svg { width: 17px; height: 17px; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq__grid header .btn { margin-top: 24px; }
.faq__list { display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 20px; padding: 0 22px; box-shadow: var(--shadow-sm); transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font: 700 17.5px var(--display); display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 34px; height: 34px; border-radius: 50%; background: var(--mint-soft); display: grid; place-items: center; font: 500 22px/1 var(--body); flex: none; transition: transform .4s var(--ease), background .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--lime); }
.faq details p { padding: 0 0 22px; color: var(--muted); animation: drop .4s var(--ease); }

/* ---------- Footer ---------- */
.footer { background: var(--forest); color: #c5ddd1; margin-top: 20px; border-radius: 34px 34px 0 0; padding-bottom: 20px; }
.footer__cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__cta h2 { color: #fff; font-size: clamp(30px, 4.6vw, 60px); font-weight: 800; letter-spacing: -.04em; max-width: 14ch; }
.footer__cta h2 em { color: var(--lime); }
.footer__cta div { display: flex; gap: 12px; flex-wrap: wrap; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding: 48px 0; }
.footer__brand .logo__mark { width: 64px; height: 64px; }
.footer__brand .logo__word { height: 62px; }
.footer__brand p { margin: 16px 0 20px; max-width: 320px; font-size: 15px; }
.social { display: flex; gap: 8px; }
.social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; transition: background .25s, color .25s, transform .3s var(--ease); }
.social a:hover { background: var(--lime); color: var(--forest); transform: translateY(-4px) rotate(-8deg); }
.social svg { width: 20px; height: 20px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; letter-spacing: 0; }
.footer ul { display: grid; gap: 10px; font-size: 15px; }
.footer ul a { transition: color .2s, padding .3s var(--ease); }
.footer ul a:hover { color: var(--lime); padding-left: 5px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--mint); margin-top: 3px; }
.pay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.pay span { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); color: #8fb0a1; }

/* ---------- Flotantes ---------- */
.fab-wa { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 16px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 700; box-shadow: 0 14px 34px -8px rgba(31, 190, 92, .7); transition: transform .3s var(--ease); }
.fab-wa svg { width: 30px; height: 30px; }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--wa); z-index: -1; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.35, 1.7); opacity: 0; } }
.fab-wa:hover { transform: translateY(-4px) scale(1.04); }
.to-top { position: fixed; right: 28px; bottom: 94px; z-index: 79; width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease), background .2s, color .2s; }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--forest); color: #fff; }
.tabbar { display: none; }

/* ---------- Overlay / drawers ---------- */
.overlay { position: fixed; inset: 0; background: rgba(18, 30, 8, .55); backdrop-filter: blur(4px); z-index: 100; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.overlay.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--cream); z-index: 110; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .55s var(--ease), visibility 0s .55s; visibility: hidden; box-shadow: var(--shadow-lg); border-radius: 28px 0 0 28px; }
.drawer--left { right: auto; left: 0; transform: translateX(-105%); border-radius: 0 28px 28px 0; width: min(360px, 88%); }
.drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; }
.drawer__head h3 { font-size: 22px; display: inline-flex; align-items: center; gap: 10px; }
.drawer__head small { font: 500 14px var(--body); color: var(--muted); letter-spacing: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 4px 22px 18px; overscroll-behavior: contain; }
.drawer__foot { padding: 16px 22px calc(18px + env(safe-area-inset-bottom)); background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -10px 30px -18px rgba(22, 38, 10, .3); display: grid; gap: 12px; }
.drawer__note { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 12.5px; color: var(--muted); }
.drawer__note svg { width: 15px; height: 15px; color: var(--mint-2); }
.ship-bar { margin: 0 22px 12px; padding: 12px 14px; background: #fff; border-radius: 16px; font-size: 13.5px; }
.ship-bar b { color: var(--forest-3); }
.ship-bar__track { height: 7px; border-radius: 7px; background: var(--sand); margin-top: 8px; overflow: hidden; }
.ship-bar__track i { display: block; height: 100%; width: 0; border-radius: 7px; background: linear-gradient(90deg, var(--mint), var(--lime)); transition: width .8s var(--ease); }
.line { display: grid; grid-template-columns: 78px 1fr auto; gap: 12px; align-items: center; padding: 12px; background: #fff; border-radius: 18px; margin-bottom: 10px; animation: cardIn .45s var(--ease) both; }
.line img { width: 78px; height: 78px; object-fit: contain; border-radius: 12px; cursor: pointer; }
.line__name { font-weight: 600; font-size: 14.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.line__meta { font-size: 12.5px; color: var(--muted); margin: 2px 0 8px; }
.line__right { display: grid; justify-items: end; gap: 10px; align-self: stretch; align-content: space-between; }
.line__right b { font-family: var(--display); font-size: 17px; }
.line__del { color: var(--muted); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; transition: background .2s, color .2s; }
.line__del:hover { background: #ffe6e1; color: var(--coral); }
.line__del svg { width: 18px; height: 18px; }
.qty { display: inline-flex; align-items: center; background: var(--cream); border-radius: 999px; padding: 3px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; transition: background .2s, color .2s; box-shadow: var(--shadow-sm); }
.qty button:hover { background: var(--forest); color: #fff; }
.qty button svg { width: 14px; height: 14px; stroke-width: 2.4; }
.qty span { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty--lg { padding: 5px; }
.qty--lg button { width: 42px; height: 42px; }
.qty--lg span { min-width: 44px; font-size: 18px; }
.empty { text-align: center; padding: 50px 16px; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.empty > svg { width: 76px; height: 76px; padding: 20px; border-radius: 50%; background: #fff; color: var(--mint-2); }
.empty h4 { font-size: 21px; color: var(--ink); }
.upsell { margin-top: 18px; }
.upsell h4 { font-size: 15px; margin-bottom: 10px; }
.upsell__row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.upsell__item { flex: 0 0 132px; background: #fff; border-radius: 16px; padding: 10px; font-size: 12.5px; line-height: 1.25; display: grid; gap: 6px; }
.upsell__item img { width: 100%; aspect-ratio: 1; object-fit: contain; cursor: pointer; }
.upsell__item span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; min-height: 2.5em; }
.upsell__item button { background: var(--mint-soft); border-radius: 999px; padding: 6px; font-weight: 700; color: var(--forest); transition: background .2s; }
.upsell__item button:hover { background: var(--lime); }
.coupon { display: flex; align-items: center; gap: 8px; background: var(--cream); border-radius: 999px; padding: 4px 4px 4px 14px; border: 1.5px dashed #c3cbbf; }
.coupon svg { width: 18px; height: 18px; color: var(--muted); }
.coupon input { flex: 1; border: 0; background: none; outline: 0; min-width: 0; text-transform: uppercase; font-weight: 600; letter-spacing: .04em; }
.coupon input::placeholder { text-transform: none; font-weight: 400; letter-spacing: 0; }
.coupon.is-error { border-color: var(--coral); animation: nudge .35s; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--mint-wash); border: 1.5px solid var(--mint); border-radius: 14px; padding: 9px 12px; font-size: 13.5px; }
.coupon-applied b { letter-spacing: .05em; }
.coupon-applied button { color: var(--muted); font-weight: 600; text-decoration: underline; font-size: 13px; }
.totals { display: grid; gap: 6px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt { color: var(--muted); }
.totals .is-disc dd { color: var(--mint-2); font-weight: 600; }
.totals .is-total { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; align-items: baseline; }
.totals .is-total dt { color: var(--ink); font-weight: 700; }
.totals .is-total dd { font: 800 26px var(--display); letter-spacing: -.02em; }
.menu-list { display: grid; gap: 4px; }
.menu-list a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; font-weight: 600; transition: background .2s; }
.menu-list a:hover { background: #fff; }
.menu-list img { width: 42px; height: 42px; object-fit: contain; border-radius: 12px; background: #fff; }
.menu-list--plain a { padding: 11px 12px; font-weight: 500; }
.drawer hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 115; display: grid; place-items: center; padding: 20px; visibility: hidden; pointer-events: none; }
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__box { position: relative; background: #fff; border-radius: 30px; width: min(980px, 100%); max-height: calc(100dvh - 40px); overflow: auto; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(40px) scale(.96); transition: opacity .35s, transform .5s var(--ease); overscroll-behavior: contain; }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__box.is-sm { width: min(520px, 100%); }
.modal__box.is-md { width: min(760px, 100%); }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 3; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm); }

.qv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.qv__media { position: relative; background: #fff; border-right: 1px solid var(--line); display: grid; place-items: center; padding: 30px; overflow: hidden; cursor: zoom-in; min-height: 380px; }
.qv__media img { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: contain; transition: transform .25s ease-out; }
.qv__media .card__badges { top: 20px; left: 20px; }
.qv__body { padding: 40px 34px 30px; display: flex; flex-direction: column; gap: 12px; }
.qv__body h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.qv__crumbs { font-size: 13px; color: var(--muted); }
.qv__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.qv__price b { font: 800 38px var(--display); letter-spacing: -.03em; }
.qv__price s { color: var(--muted); font-size: 18px; }
.qv__price .tag { align-self: center; }
.qv__desc { color: var(--muted); font-size: 15px; }
.qv__feats { display: grid; gap: 7px; font-size: 14px; margin: 4px 0; }
.qv__feats li { display: flex; gap: 8px; align-items: center; }
.qv__feats svg { width: 18px; height: 18px; color: var(--mint-2); }
.qv__buy { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.qv__buy .btn { flex: 1; }
.qv__fav { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; transition: border-color .2s, color .2s; }
.qv__fav:hover { border-color: var(--coral); color: var(--coral); }
.qv__wa { font-size: 14px; color: var(--forest-3); font-weight: 600; display: inline-flex; gap: 7px; align-items: center; margin-top: 4px; }
.qv__wa svg { color: var(--wa); width: 20px; height: 20px; }
.qv__related { grid-column: 1 / -1; padding: 22px 30px 30px; background: var(--cream); }
.qv__related h4 { font-size: 18px; margin-bottom: 14px; }
.qv__related .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.co { padding: clamp(22px, 3vw, 36px); }
.co h2 { font-size: 30px; font-weight: 800; margin-bottom: 4px; }
.co > p { color: var(--muted); margin-bottom: 22px; }
.co__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; align-items: start; }
.co__sum { background: var(--cream); border-radius: 22px; padding: 18px; position: sticky; top: 0; display: grid; gap: 12px; }
.co__sum h4 { font-size: 17px; }
.co__items { display: grid; gap: 8px; max-height: 230px; overflow: auto; font-size: 13.5px; }
.co__items li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; }
.co__items img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 8px; }
.co__items b { white-space: nowrap; }
.co__sum .btn { padding: 0 14px; font-size: 15px; }
.co h5 { font: 700 15px var(--display); margin: 8px 0 10px; }
.success { text-align: center; padding: 44px 30px 34px; display: grid; gap: 14px; justify-items: center; }
.success h2 { font-size: 30px; font-weight: 800; }
.success p { color: var(--muted); max-width: 400px; }
.success .order-id { font: 800 20px var(--display); background: var(--mint-wash); padding: 8px 18px; border-radius: 12px; letter-spacing: .04em; }

.welcome { display: grid; grid-template-columns: .9fr 1.1fr; }
.welcome__img { background: url(../assets/img/hero-shake.webp) center/cover; min-height: 420px; position: relative; }
.welcome__img span { position: absolute; left: 18px; bottom: 18px; background: var(--lime); color: var(--forest); font: 800 44px/1 var(--display); padding: 14px 18px; border-radius: 20px; rotate: -6deg; box-shadow: var(--shadow); }
.welcome__img span small { display: block; font-size: 14px; letter-spacing: .04em; }
.welcome__body { padding: 44px 30px 28px; display: grid; gap: 12px; align-content: center; }
.welcome__body h2 { font-size: 30px; font-weight: 800; }
.welcome__body p { color: var(--muted); }
.welcome__body .input { margin: 0; }
.welcome__skip { font-size: 13px; color: var(--muted); text-decoration: underline; justify-self: center; }
.modal__box.is-welcome { width: min(760px, 100%); overflow: hidden; }
.info { padding: 40px 34px 34px; display: grid; gap: 12px; }
.info h2 { font-size: 28px; font-weight: 800; }
.info p, .info li { color: var(--muted); }
.info ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; }

/* ---------- Toasts / confetti ---------- */
.toasts { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 150; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100% - 30px); }
.toast { display: flex; align-items: center; gap: 12px; background: var(--forest); color: #fff; padding: 10px 18px 10px 10px; border-radius: 999px; box-shadow: var(--shadow-lg); font-size: 14.5px; font-weight: 500; pointer-events: auto; animation: toastIn .5s var(--ease) both; max-width: 100%; }
.toast.is-out { animation: toastOut .4s var(--ease) forwards; }
.toast img { width: 38px; height: 38px; border-radius: 50%; background: #fff; object-fit: contain; flex: none; }
.toast__ico { width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--forest); display: grid; place-items: center; flex: none; }
.toast__ico svg { width: 18px; height: 18px; stroke-width: 2.6; }
.toast.is-error .toast__ico { background: var(--coral); color: #fff; }
.toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast button { color: var(--lime); font-weight: 700; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translateY(24px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(14px) scale(.94); } }
.is-locked .toasts { bottom: auto; top: 14px; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 160; }
.fly { position: fixed; z-index: 170; border-radius: 50%; object-fit: contain; background: #fff; pointer-events: none; box-shadow: var(--shadow); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1180px) {
  .rail { grid-auto-columns: calc((100% - 3 * 18px) / 4); }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail--sm { grid-auto-columns: calc((100% - 16px) / 2); }
  .rail__btn--prev { left: -10px; } .rail__btn--next { right: -10px; }
}
@media (max-width: 980px) {
  :root { --header-h: 70px; }
  .header .header__burger { display: inline-grid; }
  .search { position: fixed; left: 12px; right: 12px; top: 10px; max-width: none; z-index: 95; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; box-shadow: var(--shadow-lg); height: 54px; }
  .search.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .search kbd { display: none; }
  .header .header__search-toggle { display: inline-grid; }
  .header__main { height: 66px; gap: 8px; }
  .header__actions { margin-left: auto; }
  .nav { display: none; }
  .hide-sm { display: none; }
  .cart-btn__total { display: none; }
  .cart-btn { padding: 0; width: 46px; justify-content: center; height: 46px; }
  .hero { height: auto; margin: 8px 12px 0; border-radius: 26px; }
  .hero__slides { display: grid; }
  .slide { position: relative; grid-area: 1 / 1; padding: 44px 0 92px; min-height: 560px; }
  .slide__inner { grid-template-columns: 1fr; width: calc(100% - 44px); }
  .slide__visual { display: none; }
  .slide__bg--right { left: 0; border-radius: 0; opacity: .2; }
  .slide[data-theme="dark"] .slide__bg::after { background: linear-gradient(180deg, rgba(18, 32, 8, .78), rgba(18, 32, 8, .93)); }
  .hero__controls { width: calc(100% - 44px); }
  .perks__grid { grid-template-columns: 1fr 1fr; }
  .cats { grid-template-columns: 1fr 1fr; }
  .rail { grid-auto-columns: calc((100% - 2 * 14px) / 3); gap: 14px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .rail__btn { display: none; }
  .flash, .catalog, .register { margin-inline: 12px; border-radius: 26px; }
  .goals__grid, .store__grid, .register__grid, .faq__grid { grid-template-columns: 1fr; }
  .goals__media { min-height: 360px; }
  .banners { grid-template-columns: 1fr 1fr; }
  .banner:first-child { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .qv, .co__grid { grid-template-columns: minmax(0, 1fr); }
  .qv__media { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; padding: 20px; }
  .qv__media img { max-width: 280px; }
  .qv__body { padding: 24px 22px; }
  .qv__related .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co__sum { position: static; order: -1; }
  .fab-wa { bottom: 84px; right: 14px; padding: 0; width: 56px; justify-content: center; }
  .fab-wa span { display: none; }
  .to-top { bottom: 150px; right: 19px; }
  .toasts { bottom: 84px; }
  body { padding-bottom: 68px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar > * { position: relative; display: grid; justify-items: center; gap: 1px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 5px 0; }
  .tabbar > *:active { color: var(--forest); }
  .tabbar .badge { right: calc(50% - 22px); top: 0; }
  .footer { border-radius: 26px 26px 0 0; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 28px); }
  .logo__mark { width: 42px; height: 42px; }
  .logo__word { height: 42px; }
  .logo { gap: 7px; }
  .slide__title { font-size: clamp(40px, 12.5vw, 60px); }
  .slide__cta .btn { flex: 1 1 100%; }
  .slide__points { display: none; }
  .hero__arrows { display: none; }
  .perk { padding: 14px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .cat { min-height: 170px; padding: 16px; }
  .cat h3 { font-size: 17px; }
  .cat small { max-width: 58%; }
  .qv__buy .btn { padding: 0 12px; font-size: 15px; }
  .qv__buy .btn svg { display: none; }
  .qv__fav { width: 50px; height: 50px; }
  .cat img { width: 92px; height: 92px; padding: 13px; right: 8px; bottom: 8px; }
  .rail { grid-auto-columns: 46%; gap: 12px; }
  .rail--sm { grid-auto-columns: 62%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card__body { padding: 2px 12px 12px; }
  .card__name { font-size: 14px; }
  .price b { font-size: 18px; }
  .card__add { width: 40px; height: 40px; }
  .card__quick { display: none; }
  .countdown div { width: 62px; }
  .countdown b { font-size: 26px; }
  .banners { grid-template-columns: 1fr; }
  .banner { min-height: 220px; }
  .catalog__bar { gap: 8px; }
  .field--search { flex-basis: 100%; }
  .field { flex: 1 1 calc(50% - 8px); }
  .field select { max-width: none; flex: 1; }
  .field--range input { flex: 1; width: auto; }
  .store__media > img { width: 100%; }
  .store__map { position: relative; width: 100%; margin-top: 12px; border: 0; }
  .store__media { padding: 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .drawer, .drawer--left { border-radius: 0; }
  .modal { padding: 0; align-items: end; }
  .modal__box { border-radius: 26px 26px 0 0; max-height: 94dvh; transform: translateY(100%); }
  .welcome { grid-template-columns: 1fr; }
  .welcome__img { min-height: 170px; }
  .welcome__body { padding: 24px 20px; }
  .toast span { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .topbar__track, .brands__track { animation: none; }
}
