/* Juguetes Agrícolas — tienda en línea.
   Idea: cada juguete en su caja de colección (franja con la marca y la escala en grande), sobre la vitrina verde de la tienda. */
@font-face { font-family: 'Big Shoulders'; src: url(/assets/fonts/bigshoulders-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url(/assets/fonts/publicsans.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --night: #0c3a2f;
  --night-2: #134a3d;
  --mint: #8fe3c4;
  --teal: #13856a;
  --teal-2: #0f6d57;
  --paper: #f3f4f2;
  --ink: #141a18;
  --muted: #59665f;
  --line: #dce2de;
  --red: #b81f2c;
  --wa: #128c4a;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Big Shoulders', 'Arial Narrow', Impact, sans-serif;
  --pad: 18px;
  --max: 1240px;
  --r: 6px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-2); text-underline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .96; letter-spacing: .005em; margin: 0; color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: #fff; padding: 10px 14px; z-index: 50; border-radius: var(--r); }
.skip:focus { top: 8px; }
main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: var(--r); border: 2px solid transparent; font: inherit; font-weight: 650; font-size: 16px; line-height: 1.15; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .1s; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }
.btn--lg { min-height: 54px; padding: 12px 24px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-2); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-2); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { border-color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #0d733c; }
.btn--wa-ghost { background: #fff; color: var(--wa); border-color: #b9dfc8; }
.btn--wa-ghost:hover { border-color: var(--wa); }
.btn--add { background: #fff; color: var(--teal-2); border-color: var(--teal); min-height: 42px; padding: 8px 14px; }
.btn--add:hover, .btn.is-added { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Notice + header ---------- */
.notice { background: var(--teal); color: #e9f6f1; text-align: center; font-size: 14px; padding: 7px var(--pad); line-height: 1.4; }
.notice p { margin: 0; }
.notice a { color: #fff; font-weight: 700; }
.top { background: var(--night); color: #fff; }
.top__in { max-width: var(--max); margin: 0 auto; padding: 10px var(--pad) 12px; display: grid; grid-template-columns: 44px 1fr 44px; grid-template-areas: "menu logo cart" "search search search"; gap: 10px 8px; align-items: center; }
.top__menu { grid-area: menu; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: #fff; cursor: pointer; border-radius: var(--r); }
.top__logo { grid-area: logo; justify-self: center; }
.top__logo img { width: 156px; }
.top__search { grid-area: search; display: flex; align-items: center; background: rgba(255,255,255,.09); border: 1.5px solid rgba(255,255,255,.16); border-radius: var(--r); transition: background-color .15s, border-color .15s; }
.top__search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; padding: 11px 12px; color: #fff; }
.top__search input::placeholder { color: #a9c4ba; }
.top__search input:focus { outline: none; }
.top__search button { border: 0; background: none; color: #fff; padding: 0 14px; height: 44px; cursor: pointer; }
.top__search:focus-within { background: #fff; border-color: #fff; }
.top__search:focus-within input, .top__search:focus-within button { color: var(--ink); }
.top__search:focus-within input::placeholder { color: var(--muted); }
.top__cart { grid-area: cart; position: relative; justify-self: end; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px; color: #fff; text-decoration: none; font-weight: 650; border-radius: var(--r); }
.top__cart-label { display: none; }
.cart-count { position: absolute; top: 2px; right: -4px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12.5px; font-weight: 750; line-height: 21px; text-align: center; box-shadow: 0 0 0 2px var(--night); }
.top__nav { border-top: 1px solid rgba(255,255,255,.1); }
.top__nav-in { max-width: var(--max); margin: 0 auto; }
.top__cats { list-style: none; margin: 0; padding: 0 var(--pad); display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.top__cats::-webkit-scrollbar { display: none; }
.top__cats a, .top__pages a { display: block; white-space: nowrap; color: #fff; text-decoration: none; }
.top__cats a { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .02em; padding: 10px 0 11px; border-bottom: 3px solid transparent; }
.top__cats a:hover { color: var(--mint); }
.top__cats a[aria-current] { border-bottom-color: var(--mint); }
.top__pages { list-style: none; margin: 0; padding: 4px var(--pad) 14px; display: none; }
.top__pages a { padding: 10px 0; font-weight: 600; border-top: 1px solid rgba(255,255,255,.08); }
.top__pages a[aria-current] { color: var(--mint); }
.menu-open .top__pages { display: block; }
@media (min-width: 900px) {
  :root { --pad: 32px; }
  .top { position: sticky; top: 0; z-index: 30; }
  .top__in { grid-template-columns: auto minmax(260px, 560px) auto; grid-template-areas: "logo search cart"; justify-content: space-between; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
  .top__menu { display: none; }
  .top__logo { justify-self: start; }
  .top__logo img { width: 176px; }
  .top__cart { padding: 0 12px; background: rgba(255,255,255,.07); }
  .top__cart:hover { background: rgba(255,255,255,.14); }
  .top__cart-label { display: inline; }
  .cart-count { position: static; box-shadow: none; }
  .top__nav-in { display: flex; align-items: center; justify-content: space-between; }
  .top__cats { flex: 1; min-width: 0; gap: 24px; }
  .top__pages { flex: none; display: flex; gap: 24px; padding: 0 var(--pad); }
  .top__pages a { border: 0; padding: 12px 0; font-size: 15px; color: #cfe5dc; }
  .top__pages a:hover { color: #fff; }
}

/* ---------- Brand bands (the toy-box strip) ---------- */
.band { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; padding: 0 12px; background: var(--b, #39443f); color: #fff; }
.band__brand { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.band__scale { font-family: var(--display); font-weight: 800; font-size: 23px; line-height: 1; letter-spacing: .01em; }
[data-brand="case-ih"], [data-brand="case"] { --b: #ad1a2c; }
[data-brand="new-holland"] { --b: #1c4b98; }
[data-brand="massey-ferguson"] { --b: #4e5559; }
[data-brand="versatile"] { --b: #b8381c; }
[data-brand="gel-blaster"] { --b: #1d2422; }
[data-brand="case"] .band { background: linear-gradient(90deg, #262b29, #3a403d); }

/* ---------- Hero: two toy boxes in the shop window ---------- */
.hero { background: radial-gradient(120% 90% at 78% 40%, #1c6652 0%, var(--night) 58%); color: #fff; overflow: hidden; }
.hero__in { max-width: var(--max); margin: 0 auto; padding: 26px var(--pad) 40px; display: grid; gap: 30px; }
.hero__scales { display: flex; gap: 16px; margin: 0 0 12px; }
.hero__scales a { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 8.6vw, 54px); line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--mint); text-decoration: none; transition: color .15s; }
.hero__scales a:hover { color: var(--mint); }
.hero h1 { color: #fff; font-size: clamp(46px, 12vw, 96px); line-height: .88; max-width: 10.5ch; }
.hero__lead { font-size: 17.5px; line-height: 1.5; color: #d2e6de; margin: 22px 0 24px; max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__note { margin: 18px 0 0; font-size: 14px; color: #9ec2b5; }
.hero__boxes { position: relative; min-height: 380px; }
.box { position: absolute; display: flex; flex-direction: column; width: 82%; background: #fff; color: var(--ink); text-decoration: none; border-radius: var(--r); overflow: hidden; box-shadow: 0 28px 50px -24px rgba(0,0,0,.65), 0 2px 0 rgba(255,255,255,.08) inset; transition: transform .25s; }
.box .band { min-height: 40px; padding: 0 14px; }
.box .band__brand { font-size: 13.5px; }
.box .band__scale { font-size: 34px; }
.box__window { display: block; background: linear-gradient(#fff 40%, #eef1ef); }
.box__window img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 62%; }
.box__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.box__name { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.box__price { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--red); line-height: 1; white-space: nowrap; }
.box--back { left: 0; top: 0; width: 60%; transform: rotate(-4deg); }
.box--front { right: 0; top: 74px; z-index: 2; }
.box:hover { transform: translateY(-4px); }
.box--back:hover { transform: rotate(-4deg) translateY(-4px); }
@media (min-width: 560px) { .hero__boxes { min-height: 470px; } .box--front { width: 72%; } }
@media (min-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 64px; }
  .hero__lead { font-size: 20px; }
  .hero__boxes { min-height: 560px; }
  .box--back { width: 56%; top: 0; left: -2%; }
  .box--front { width: 66%; top: 110px; }
  .hero__lead { margin-top: 26px; }
}

/* ---------- Sections ---------- */
.section { padding: 44px 0; }
.section__in, .page__in, .visit__in, .foot__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section__title { font-size: clamp(36px, 8vw, 54px); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 18px; flex-wrap: wrap; margin-bottom: 22px; }
.section__more { font-weight: 650; }
@media (min-width: 900px) and (max-width: 1279px) { .top__pages { display: none; } }
@media (min-width: 900px) { .section { padding: 72px 0; } }

/* Categories */

/* ---------- Product cards ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: 0 16px 30px -20px rgba(12,58,47,.5); border-color: #c8d3ce; }
.card__link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.card__img { display: block; background: linear-gradient(#fff 45%, #f0f2f1); }
.card__img img, .card__img .noimg { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 62%; transition: transform .3s; }
.card__link:hover .card__img img { transform: scale(1.035); }
.card__name { padding: 10px 12px 0; font-size: 15px; line-height: 1.32; font-weight: 550; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__link:hover .card__name { color: var(--teal-2); }
.card__buy { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px 12px; }
.card__price { margin: 0; line-height: 1; }
.card__price strong { font-family: var(--display); font-weight: 800; font-size: 29px; color: var(--red); letter-spacing: .005em; }
.card__price s { color: var(--muted); font-size: 14px; margin-right: 4px; }
.card__price--ask { font-weight: 650; font-size: 15px; color: var(--teal-2); }
.card--out .band { filter: grayscale(.7); }
.card--out .card__img img { opacity: .55; }
.soldout { display: block; font-size: 14px; font-weight: 650; color: var(--muted); padding: 10px 0 4px; }
.soldout--big { background: #fff; border: 1.5px dashed var(--line); border-radius: var(--r); padding: 14px 16px; color: var(--ink); font-weight: 500; margin: 0 0 12px; }
.noimg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; background: #f6f7f6; }
.noimg img { width: 46%; opacity: .45; filter: grayscale(1); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1080px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .card__buy { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Shelves: one row per type of toy (home) ---------- */
.shelves { padding: 6px 0 18px; }
.shelf-sec { padding: 26px 0 18px; }
.shelf-sec + .shelf-sec { border-top: 1px solid var(--line); }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.shelf-head h2 { font-size: clamp(32px, 7.6vw, 48px); }
.shelf-head h2 a { color: inherit; text-decoration: none; }
.shelf-head h2 a:hover { color: var(--teal-2); }
.shelf-head__more { flex: none; font-weight: 650; font-size: 15px; }
.shelf { list-style: none; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad) 12px; display: grid; grid-auto-flow: column; grid-auto-columns: 45%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
.shelf::-webkit-scrollbar { display: none; }
.shelf > li { scroll-snap-align: start; }
.shelf__end a { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 220px; padding: 16px; border-radius: var(--r); background: var(--night); color: #fff; text-decoration: none; }
.shelf__end a:hover { background: var(--night-2); }
.shelf__end b { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: .9; color: var(--mint); }
.shelf__end-name { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; margin-top: 6px; }
.shelf__end-go { margin-top: 14px; font-weight: 650; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.shelf-foot { display: none; margin: 14px 0 0; }
@media (min-width: 700px) { .shelf { grid-auto-columns: 30%; gap: 14px; } }
@media (min-width: 1080px) {
  .shelf-sec { padding: 40px 0 34px; }
  .shelf { margin: 0; padding: 0; overflow: visible; grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .shelf > li:nth-child(n+5) { display: none; }
}

/* ---------- Full catalog: sections by type ---------- */
.sizes { margin: -8px 0 16px; font-size: 14.5px; color: var(--muted); }
.jump { display: flex; align-items: baseline; gap: 4px 18px; overflow-x: auto; scrollbar-width: none; margin: 0 0 4px; padding: 4px 0 8px; white-space: nowrap; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; font-weight: 700; font-size: 15.5px; color: var(--ink); text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.jump a:hover { color: var(--teal-2); text-decoration-color: currentColor; }
.jump a span { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.group { padding-top: 26px; scroll-margin-top: 12px; }
.group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 14px; padding-top: 16px; border-top: 3px solid var(--night); }
.group__head h2 { font-size: clamp(32px, 7.4vw, 48px); }
.group__head a { font-weight: 650; font-size: 15px; }
@media (min-width: 900px) { .group { scroll-margin-top: 150px; } }

/* ---------- How to buy ---------- */
.how { background: #fff; }
.how__in { display: grid; gap: 34px; }
.how .section__title { margin-bottom: 24px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 20px; }
.steps li { counter-increment: s; position: relative; padding-left: 60px; min-height: 46px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 44px; height: 44px; border-radius: var(--r); background: var(--night); color: #fff; font-family: var(--display); font-weight: 800; font-size: 28px; display: grid; place-items: center; }
.steps h3 { font-size: 26px; margin-bottom: 4px; }
.steps p { margin: 0; color: #36443f; }
.how__more { margin: 24px 0 0; font-weight: 650; }
.chat { width: 100%; max-width: 420px; justify-self: center; background: #efeae2; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(12,58,47,.55); font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
.chat__bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #008069; color: #fff; }
.chat__bar b { display: block; font-size: 15px; }
.chat__bar small { opacity: .85; font-size: 12px; }
.chat__avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; background: #fff url(/assets/img/logo-480.webp) center / 88% no-repeat; }
.chat__msg { position: relative; margin: 16px 14px 18px 38px; padding: 10px 12px 20px; background: #d9fdd3; border-radius: 10px 0 10px 10px; font-size: 14px; line-height: 1.45; color: #111b21; }
.chat__msg p { margin: 0 0 8px; }
.chat__time { position: absolute; right: 10px; bottom: 5px; font-size: 11px; color: #667781; }
@media (min-width: 900px) { .how__in { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 64px; } }

/* ---------- Visit ---------- */
.visit { padding: 0 0 56px; }
.visit__in { display: grid; gap: 22px; }
.visit__photo { margin: 0; border-radius: var(--r); overflow: hidden; }
.visit__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.visit h2 { font-size: clamp(36px, 8vw, 54px); margin-bottom: 10px; }
.visit__lead { font-size: 17.5px; color: #36443f; }
.facts { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts svg { flex: none; color: var(--teal); margin-top: 2px; }
.facts b { display: block; }
.visit__cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .visit { padding: 72px 0; } .visit__in { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 64px; } }

/* ---------- Inner pages ---------- */
.page { padding: 18px 0 64px; }
.crumbs ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: #a7b5af; }
.crumbs a { color: var(--muted); }
.page__head { margin-bottom: 22px; }
.page__head h1, .page__title { font-size: clamp(44px, 10vw, 72px); line-height: .92; }
.page__title { margin-bottom: 20px; }
.page__sub { color: var(--teal); }
.page__lead { font-size: 17.5px; color: #36443f; margin: 12px 0 0; max-width: 62ch; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 22px; }
.chips { display: flex; gap: 8px; overflow-x: auto; width: 100%; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 15px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.chip:hover { border-color: var(--teal); }
.chip[aria-current] { background: var(--night); border-color: var(--night); color: #fff; }
.toolbar__count { margin: 0; color: var(--muted); font-size: 15px; }
.sorter { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.sorter select { font: inherit; font-size: 15px; padding: 8px 10px; border-radius: var(--r); border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.empty { background: #fff; border-radius: var(--r); padding: 22px; border: 1px solid var(--line); }
.more-cats { margin-top: 64px; }
.more-cats h2 { font-size: 36px; margin-bottom: 16px; }
.more-cats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.more-cats a { display: grid; padding: 8px 12px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; }
.more-cats a:hover { border-color: #b7c6bf; }
.more-cats__img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 62%; }
.more-cats small { font-family: var(--body); font-size: 13px; font-weight: 650; color: var(--muted); margin-top: 6px; }
@media (min-width: 900px) { .more-cats ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }

/* ---------- Product page ---------- */
.product { display: grid; gap: 22px; }
.gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.gallery .band { min-height: 44px; padding: 0 16px; }
.gallery .band__brand { font-size: 14px; }
.gallery .band__scale { font-size: 38px; }
.gallery__main { background: linear-gradient(#fff 50%, #eef1ef); }
.gallery__main img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 62%; }
@media (min-width: 900px) { .gallery__main img { aspect-ratio: 1; object-position: 50% 58%; } }
.gallery__thumbs { list-style: none; margin: 0; padding: 10px; display: flex; gap: 8px; border-top: 1px solid var(--line); }
.gallery__thumbs button { width: 70px; padding: 2px; border: 2px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; }
.gallery__thumbs button[aria-current] { border-color: var(--teal); }
.product__name { font-size: clamp(40px, 9vw, 62px); line-height: .92; }
.product__price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 8px; }
.product__price strong { font-family: var(--display); font-weight: 800; font-size: 54px; line-height: .9; color: var(--red); }
.product__price s { color: var(--muted); font-size: 20px; }
.product__price span { color: var(--muted); font-size: 15px; }
.product__stock { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 18px; font-size: 15px; font-weight: 650; }
.product__stock.is-in { color: var(--teal-2); }
.product__stock.is-out { color: var(--red); }
.product__stock span { color: var(--muted); font-weight: 500; }
.buy { display: flex; gap: 10px; margin-bottom: 10px; }
.buy .btn--add-main { flex: 1; }
.qty { display: inline-flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; }
.qty__btn { width: 44px; height: 50px; border: 0; background: #fff; color: var(--ink); font-size: 22px; cursor: pointer; }
.qty__btn:hover { background: var(--paper); }
.qty__input { width: 42px; height: 50px; border: 0; text-align: center; font: inherit; font-size: 18px; font-weight: 700; -moz-appearance: textfield; color: var(--ink); background: #fff; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.perks { list-style: none; margin: 20px 0; padding: 16px; display: grid; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.perks li { display: flex; gap: 12px; font-size: 15px; line-height: 1.45; }
.perks svg { flex: none; color: var(--teal); }
.product__desc h2 { font-size: 28px; margin-bottom: 6px; }
.specs { margin: 18px 0 0; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 650; text-align: right; }
.related { margin-top: 64px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -10px 28px -14px rgba(12,58,47,.45); }
.sticky-buy span { min-width: 0; }
.sticky-buy b { display: block; font-family: var(--display); font-size: 26px; color: var(--red); line-height: 1; }
.sticky-buy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: 13px; }
.sticky-buy .btn { min-width: 132px; }
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .gallery { position: sticky; top: 130px; }
  .sticky-buy { display: none; }
}

/* ---------- Cart ---------- */
.cart { display: grid; gap: 22px; }
.cart__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.line { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; grid-template-areas: "img info info" "img qty sub" "img remove remove"; gap: 6px 12px; align-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.line__img { grid-area: img; align-self: start; background: linear-gradient(#fff 50%, #f0f2f1); border-radius: 4px; }
.line__img img { width: 82px; height: 82px; object-fit: cover; object-position: 50% 62%; }
.line__info { grid-area: info; display: grid; gap: 2px; min-width: 0; }
.line__name { font-weight: 650; color: var(--ink); text-decoration: none; line-height: 1.3; }
.line__name:hover { color: var(--teal-2); }
.line__meta { font-size: 13px; color: var(--muted); }
.line__unit { font-size: 14px; color: var(--muted); }
.line__warn { font-size: 13px; color: var(--red); font-weight: 650; }
.line--out { opacity: .75; }
.line__qty { grid-area: qty; justify-self: start; }
.line__qty .qty__btn { width: 42px; height: 42px; }
.qty__val { min-width: 34px; text-align: center; font-weight: 750; }
.line__sub { grid-area: sub; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; }
.line__remove { grid-area: remove; justify-self: start; padding: 4px 0; background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.cart__summary { align-self: start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.cart__totals { margin: 0; display: grid; gap: 8px; }
.cart__totals div { display: flex; justify-content: space-between; gap: 12px; }
.cart__totals dt { color: var(--muted); }
.cart__totals dd { margin: 0; font-weight: 650; text-align: right; }
.cart__total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); align-items: baseline; }
.cart__total dt { color: var(--ink); font-weight: 750; font-size: 18px; }
.cart__total dd { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--red); }
.cart__iva { margin: 6px 0 16px; font-size: 13px; color: var(--muted); }
.cart__fields { display: grid; gap: 12px; margin: 0 0 16px; padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); }
.cart__fields legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-weight: 750; font-size: 16px; }
.cart__fields legend + * { clear: both; }
.cart__fields legend span { font-weight: 500; color: var(--muted); }
.field { display: grid; gap: 5px; font-size: 14px; color: var(--muted); }
.field input { font: inherit; font-size: 16px; padding: 11px 12px; color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; }
.field input:focus { outline: none; border-color: var(--teal); }
.field--radio { display: grid; gap: 8px; }
.field--radio label { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--r); color: var(--ink); font-size: 15px; cursor: pointer; }
.field--radio label:has(input:checked) { border-color: var(--teal); background: #f1f9f6; }
.field--radio input { width: 18px; height: 18px; accent-color: var(--teal); }
.cart__note { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.cart-empty, .cart-sent { display: grid; gap: 14px; justify-items: start; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.cart-empty p { margin: 0; font-size: 20px; }
.cart-sent { margin-top: 18px; border: 2px solid var(--wa); }
.cart-sent:focus { outline: none; }
.cart-sent h2 { font-size: 34px; }
.cart-sent p { margin: 0; }
.cart-sent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 700px) {
  .line { grid-template-columns: 100px minmax(0, 1fr) auto auto; grid-template-areas: "img info qty sub" "img remove qty sub"; }
  .line__img img { width: 100px; height: 100px; }
  .line__sub { min-width: 96px; text-align: right; }
}
@media (min-width: 1000px) { .cart { grid-template-columns: minmax(0, 1fr) 390px; align-items: start; } .cart__summary { position: sticky; top: 130px; } }

/* ---------- Text pages ---------- */
.how__in--page { display: grid; gap: 30px; margin-bottom: 18px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
@media (min-width: 900px) { .how__in--page { grid-template-columns: 1.05fr 1fr; align-items: center; padding: 40px; } }
.info { display: grid; gap: 12px; }
.info section { padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.info h2 { font-size: 32px; margin-bottom: 8px; }
.info p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .info { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 16px; }
.contact__cards { display: grid; gap: 18px; align-content: start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.contact__wa { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--wa); color: #fff; text-decoration: none; border-radius: var(--r); }
.contact__wa svg { width: 34px; height: 34px; }
.contact__wa b { display: block; font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1; }
.contact__wa small { font-size: 15px; opacity: .92; }
.contact__photo { margin: 0; border-radius: var(--r); overflow: hidden; }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.contact__map { overflow: hidden; border-radius: var(--r); background: #dfe6e2; border: 1px solid var(--line); }
.contact__map iframe { display: block; width: 100%; height: 360px; border: 0; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.25fr; gap: 20px; } .contact__map { grid-column: 1 / -1; } }

/* ---------- Search ---------- */
.bigsearch { display: flex; gap: 10px; max-width: 660px; margin-bottom: 28px; }
.bigsearch input { flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; }
.bigsearch input:focus { outline: none; border-color: var(--teal); }

/* ---------- Footer ---------- */
.foot { background: var(--night); color: #cfe2da; padding: 48px 0 0; }
.foot__in { display: grid; gap: 30px; }
.foot__brand img { width: 172px; margin-bottom: 14px; }
.foot__brand p { max-width: 34ch; }
.foot h2 { color: #fff; font-size: 24px; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot a { color: #fff; }
.foot__contact p { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 11px; }
.foot__contact a { display: flex; gap: 10px; text-decoration: none; }
.foot__contact a:hover span { text-decoration: underline; }
.foot__contact svg { flex: none; margin-top: 2px; color: var(--mint); }
.foot__legal { max-width: var(--max); margin: 34px auto 0; padding: 18px var(--pad) 30px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #9fbfb3; }
.foot__legal p { margin: 0 0 6px; }
@media (min-width: 900px) { .foot__in { grid-template-columns: 1.4fr 1fr 1fr 1.5fr; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 16px; width: min(92vw, 470px); padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 12px; box-shadow: 0 16px 34px -12px rgba(0,0,0,.5); transform: translateX(-50%); animation: toast-in .25s ease-out; }
.toast span { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
.toast b { display: block; color: var(--mint); }
.toast a { color: #fff; font-weight: 750; white-space: nowrap; }
.toast.is-out { opacity: 0; transform: translate(-50%, 8px); transition: opacity .25s, transform .25s; }
.p-product .toast { bottom: 86px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (min-width: 900px) { .p-product .toast { bottom: 24px; } }
