/* =====================================================================
   MERCAVIA · UI v20 — estética de la primera vista previa, pulida.
   Cabecera blanca, franja verde con las promesas, verde y rojo de la
   bandera, tarjetas blancas con borde, precio en verde y botón verde.
   Mobile first. Rojo: ofertas, descuentos y el botón del banner.
   ===================================================================== */
:root {
  --bg: #f7f7f5; --surface: #fff; --surface-2: #f5f6f4;
  --ink: #202321; --ink-2: #3d433f; --muted: #646a66; --line: #e5e7e5; --line-2: #cfd5d1;
  --brand: #004d35; --brand-2: #00704e;
  --cta: #006847; --cta-2: #004d35; --cta-soft: #eaf4ee;
  --red: #ce1126; --red-2: #ad0e20; --ok: #006847; --wa: #25d366; --wa-btn: #0f7a40;
  --gutter: 14px; --hdrA: 62px; --hdrB: 56px; --hdrN: 43px;   /* logo · buscador · menú */
  --bottom-ui: 0px;
  --r: 12px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-2: 0 10px 30px rgba(16, 24, 40, .16);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Fuente propia (OFL, alojada en la tienda; sin servicios externos). */
@font-face { font-family: "Plus Jakarta Sans"; src: url("../assets/fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.4 var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; padding-bottom: var(--bottom-ui); }
body.locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 6px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
#main { outline: none; min-height: 60vh; }
.noscript { padding: 24px; text-align: center; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic--sm { width: 16px; height: 16px; stroke-width: 2.1; }
.ic--wa { fill: currentColor; stroke: none; }
.muted { color: var(--muted); font-size: 13px; }
.pending { background: #fff3c4; border: 1px dashed #c08a00; color: #5c4208; padding: 0 5px; border-radius: 4px; font-size: .92em; }
.draft { background: #fff7dc; border-left: 3px solid #c08a00; padding: 10px 12px; border-radius: 0 8px 8px 0; font-size: 13px; color: #5c4208; margin-bottom: 10px; }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.link { color: var(--cta); font-weight: 600; }

/* ---------- botones, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 8px; border: 1.5px solid var(--cta); background: var(--cta); color: #fff; font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover, .btn:active { background: var(--cta-2); border-color: var(--cta-2); }
.btn--line { background: #fff; color: var(--cta); }
.btn--line:hover, .btn--line:active { background: var(--cta-soft); border-color: var(--cta); }
.btn--wa { background: var(--wa-btn); border-color: var(--wa-btn); }
.btn--sm { height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn .ic--wa { width: 20px; height: 20px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); }
.icon-btn:active { background: var(--surface-2); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .ic { width: 15px; height: 15px; color: var(--muted); }

/* ---------- aviso de vista previa (discreto y se puede cerrar) ---------- */
.demo { display: flex; align-items: center; justify-content: center; gap: 6px; height: 26px; background: #fff3c4; color: #6b4f0e; font-size: 11px; font-weight: 500; }
.demo button { display: grid; place-items: center; width: 26px; height: 26px; color: inherit; }
.demo .ic { width: 13px; height: 13px; stroke-width: 2.4; }

/* ---------- franja verde con las promesas ---------- */
.topbar { background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 600; }
.topbar__in { display: flex; align-items: center; justify-content: center; gap: 18px; height: 32px; white-space: nowrap; overflow: hidden; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .ic { width: 15px; height: 15px; color: #8fdcb8; }
.topbar span:nth-child(2) { display: none; }   /* en celular caben dos; la garantía va en los beneficios */

/* ---------- cabecera blanca: la fila del logo se va al bajar; buscador y menú se quedan ---------- */
.hdr { position: sticky; top: calc(-1 * var(--hdrA)); z-index: 40; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.hdr__row { height: var(--hdrA); display: flex; align-items: center; gap: 2px; }
.logo { display: flex; align-items: center; gap: 7px; margin-right: auto; color: var(--brand); }
.logo__mark { width: 34px; height: 36px; flex: none; }
.logo__txt { display: flex; flex-direction: column; }
.logo__word { font-size: 27px; font-weight: 800; letter-spacing: -.055em; line-height: 1; color: var(--brand); }
.logo__word em { font-style: normal; color: var(--red); }
.logo__tag { margin-top: 3px; font-size: 9.5px; font-weight: 500; color: #3a3f3c; }
.hbtn { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 50px; height: 50px; border-radius: 10px; color: var(--brand); font-size: 11px; font-weight: 700; }
.hbtn .ic { width: 23px; height: 23px; }
.hbtn:active { background: var(--cta-soft); }
.count { position: absolute; top: 0; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.hsearch { display: none; }
.hdr__search { height: var(--hdrB); padding-bottom: 10px; }
.msearch { width: 100%; height: 46px; display: flex; align-items: center; gap: 10px; padding-left: 13px; border: 1px solid #c9ceca; border-radius: 9px; overflow: hidden; background: #fafafa; color: #767c78; font-size: 14.5px; text-align: left; }
.msearch > span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msearch__go { align-self: stretch; width: 50px; display: grid; place-items: center; background: var(--cta); color: #fff; }
.msearch__go .ic { width: 20px; height: 20px; stroke-width: 2.2; }
/* menú: fila deslizable en celular */
.dnav { border-top: 1px solid #eef0ee; background: #fff; position: relative; }
.dnav__list { display: flex; align-items: center; gap: 2px; height: 42px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; margin-inline: calc(-1 * var(--gutter)); padding-inline: calc(var(--gutter) - 8px); }
.dnav__list::-webkit-scrollbar { display: none; }
.dnav__link { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px; border-radius: 8px; font-size: 13.5px; font-weight: 700; color: #222; }
.dnav__link .ic { width: 16px; height: 16px; color: var(--cta); }
.dnav__link .ic:last-child:not(:first-child) { color: var(--muted); }
.dnav__offer, .dnav__offer .ic { color: var(--red) !important; }
.dnav__link[aria-current="page"] { background: var(--cta-soft); color: var(--brand); }
.dnav__desk, .mega { display: none; }

/* ---------- portada ---------- */
.hometop { padding-top: 12px; }
.hero__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 14px; }
.hero__track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; position: relative; display: flex; min-height: 262px; overflow: hidden; isolation: isolate; background: linear-gradient(105deg, #004d35, #00704e); color: #fff; }
.slide__copy { position: relative; z-index: 2; width: 62%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 22px 0 22px 20px; }
.slide__tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #c9eedc; }
.slide__title { font-size: 25px; line-height: 1.06; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.slide__text { font-size: 13.5px; line-height: 1.35; color: #e3f3ea; }
.slide__cta { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 8px; background: var(--red); color: #fff; font-size: 13.5px; font-weight: 700; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.slide__cta .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.slide__photo { position: absolute; z-index: 1; inset: 0 0 0 40%; }
.slide__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 35% center; }
.slide__photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #004d35 0%, rgba(0, 77, 53, .55) 25%, rgba(0, 77, 53, 0) 60%); }
.slide__art { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 34%; aspect-ratio: 1; display: grid; place-items: center; padding: 10px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.slide__art img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.slide .is-gone { display: none; }
.hero__dots { display: flex; justify-content: center; gap: 2px; padding-top: 4px; }
.hero__dots button { width: 20px; height: 18px; display: grid; place-items: center; }
.hero__dots button::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: #c4cac6; transition: width .2s, background .2s; }
.hero__dots button[aria-current="true"]::before { width: 16px; background: var(--brand); }
.sc__ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--cta-soft); color: var(--brand); }
.sc__ic .ic { width: 23px; height: 23px; stroke-width: 1.7; }

/* beneficios: 4 promesas en una caja blanca */
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; margin-top: 10px; padding: 12px 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.benefit { display: flex; align-items: center; gap: 8px; min-width: 0; }
.benefit > .ic { width: 26px; height: 26px; color: var(--cta); }
.benefit strong { display: block; font-size: 12px; font-weight: 700; line-height: 1.2; }
.benefit small { display: block; font-size: 10.5px; line-height: 1.25; color: var(--muted); }

/* secciones */
.sec { margin-top: 26px; }
.sec__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec__title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: #202321; }
.sec__more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--red); white-space: nowrap; padding: 6px 0; }
.more { margin-top: 14px; }

/* categorías con foto */
.cattiles__shell { position: relative; }
.cattiles { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scroll-padding-inline: var(--gutter); }
.cattiles::-webkit-scrollbar { display: none; }
.cattiles > * { scroll-snap-align: start; }
.cattiles__nav { display: none; }
.cattile { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13px; font-weight: 700; color: #252525; text-align: center; transition: transform .15s, border-color .15s; }
.cattile__img { position: relative; display: grid; place-items: center; aspect-ratio: 1.25; background: #fff; }
/* La foto va encima de la caja (no la estira): todas las tarjetas miden igual y los nombres quedan alineados. */
.cattile__img img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cattile__img > .ic { position: absolute; width: 30px; height: 30px; color: var(--cta); }
.cattile__img:has(img.is-loaded) > .ic { display: none; }
.cattile__img .is-gone { display: none; }
.cattile__name { padding: 9px 4px 11px; line-height: 1.25; text-wrap: balance; overflow-wrap: anywhere; }
.cattile:hover { border-color: var(--cta); transform: translateY(-2px); }
.cattile--sofas { border-color: #9bc8af; background: #f5faf6; }
.cattile--sofas .cattile__name { color: #225b3e; }
.sofas-listing-hint { display: flex; align-items: center; gap: 6px; color: #35664b; font-size: 12px; line-height: 1.4; }
.sofas-listing-hint { padding-block: 10px; }
.sofas-listing-hint .ic { width: 15px; height: 15px; flex: none; }

/* carriles y grillas */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 2px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.bestsellers__shell { position: relative; }
.bestsellers__nav { display: none; }
.bestsellers__foot { display: flex; justify-content: center; margin-top: 14px; }
.bestsellers__more { width: 100%; max-width: 320px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* tarjeta de producto: foto, nombre, precio en verde, botón verde */
.pc { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; padding: 8px; }
.pc__media { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #fff; }
.pc__media img, .gal__slide img, .cline__img img, .ss__row img, .sg__img img, .co__thumb img, .addon img, .colcard__imgs img, .cattile__img img { opacity: 0; transition: opacity .25s; animation: imgShow 0s 3s forwards; }
.pc__media img { width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
img.is-loaded { opacity: 1 !important; }
@keyframes imgShow { to { opacity: 1; } }
.pc__off { position: absolute; left: 5px; top: 5px; z-index: 2; padding: 3px 7px; border-radius: 6px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; }
.pc__pill { position: absolute; right: 5px; top: 5px; z-index: 2; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 8px; border-radius: 6px; background: var(--cta-soft); color: var(--brand); font-size: 9.5px; font-weight: 700; }
.pc__tag { position: absolute; left: 5px; bottom: 5px; z-index: 2; padding: 3px 7px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 600; }
.pc__body { display: flex; flex-direction: column; gap: 4px; padding: 8px 2px; flex: 1; }
.pc__title { font-size: 13.5px; line-height: 1.3; font-weight: 600; color: var(--ink); min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc__price { margin-top: auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; }
.pc__price small { font-size: 11px; color: var(--muted); font-weight: 500; }
.pc__old { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.promo-hint { display: flex; align-items: center; gap: 6px; padding-block: 10px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.promo-hint .ic { width: 16px; height: 16px; color: var(--red); }
.promo-hint strong { color: var(--red); }
.pr { font-size: 17px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.pc__price .pr { font-size: 19px; font-weight: 800; color: var(--cta); }
.pr__dec { font-size: .62em; vertical-align: .48em; letter-spacing: 0; margin-left: 1px; }
.pc__cta { width: 100%; height: 38px; padding: 0 6px; gap: 4px; font-size: 12.5px; }
.pc__cta .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.pc__add.is-added { background: var(--brand); border-color: var(--brand); }

/* compra a tu manera */
.trustbox { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 28px; padding: 20px; background: #e7f1eb; border: 1px solid #d4e4d9; border-radius: 14px; }
.trustbox h2 { font-size: 20px; font-weight: 800; color: var(--brand); margin-bottom: 4px; }
.trustbox p { font-size: 14px; color: #395449; }
.trustbox__groups { display: grid; gap: 14px; width: 100%; }
.tgroup h3 { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.tgroup h3 .ic { width: 16px; height: 16px; color: var(--cta); }
.tgroup + .tgroup { padding-top: 14px; border-top: 1px solid #cfe0d5; }
.fcol__h2 { margin-top: 16px; }
.tgroup .carriers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 320px; }

/* logos de paqueterías */
.carriers { display: flex; flex-wrap: wrap; gap: 6px; }
.carrier { display: inline-grid; place-items: center; height: 34px; padding: 0 10px; border-radius: 6px; background: #fff; border: 1px solid #e2e2e2; }
.clogo { display: block; width: auto; height: 15px; }
.clogo--estafeta { height: 11px; } .clogo--dhl { height: 14px; } .clogo--fedex { height: 14px; } .clogo--paquetexpress { height: 14px; }
.sheet__text + .carriers, .pg__card .carriers { margin: 4px 0 14px; }

/* colecciones: lista limpia con 3 fotos */
.collist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.colcard { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; background: #fff; border-radius: var(--r); }
.colcard__imgs { display: flex; flex: none; }
.colcard__imgs span { width: 46px; height: 46px; border-radius: 10px; background: var(--surface-2); overflow: hidden; border: 2px solid #fff; }
.colcard__imgs span + span { margin-left: -14px; }
.colcard__imgs img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.colcard__imgs .is-gone { display: none; }
.colcard__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.colcard__txt strong { font-size: 15px; font-weight: 600; }
.colcard__txt small { font-size: 12.5px; color: var(--muted); }
.colcard > .ic { width: 18px; height: 18px; color: #a1a6ae; }

/* ---------- encabezado de página / listados ---------- */
.ph { background: #fff; padding: 8px 0 10px; }
.ph__top { display: flex; align-items: center; gap: 6px; min-height: 40px; }
.ph__back { width: 38px; height: 38px; margin-left: -10px; display: grid; place-items: center; border-radius: 50%; flex: none; }
.ph__back:active { background: var(--surface-2); }
.ph h1 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.ph__count { font-size: 13px; color: var(--muted); }
.ph .chips { margin: 8px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); }
.lbar { position: sticky; top: calc(var(--hdrB) + var(--hdrN)); z-index: 30; display: flex; align-items: center; gap: 4px; height: 46px; padding: 0 var(--gutter); background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lbar__n { margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }
.lbar button { flex: none; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 359px) { .lbar .ic { display: none; } }
.lbar button:active { background: var(--surface-2); }
.lbar .ic { width: 17px; height: 17px; }
.lbar b { min-width: 18px; height: 18px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; display: grid; place-items: center; }
.lgrid { padding-top: 10px; }
.lgroup { margin-top: 20px; }
.lgroup__t { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.empty { margin-top: 12px; padding: 28px 16px; text-align: center; background: #fff; border-radius: var(--r); }
.empty .ic { width: 36px; height: 36px; color: var(--muted); margin: 0 auto 10px; stroke-width: 1.5; }
.empty h2 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.empty p { font-size: 13.5px; color: var(--muted); }
.empty__actions { display: grid; gap: 8px; margin-top: 16px; }

/* categorías */
.catlist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 10px; }
.catrow { min-width: 0; background: #fff; border-radius: var(--r); padding: 10px 12px 12px; }
.catrow__head { display: flex; align-items: center; gap: 12px; }
.catrow__head .sc__ic { width: 42px; height: 42px; background: var(--surface-2); }
.catrow__head .sc__ic .ic { width: 20px; height: 20px; }
.catrow__head strong { flex: 1; font-size: 16px; font-weight: 600; }
.catrow__head small { font-size: 13px; color: var(--muted); }
.catrow__head > .ic { width: 18px; height: 18px; color: #a1a6ae; }
.catrow .chips { margin: 10px -12px 0; padding: 0 12px; }

/* hojas: ordenar y filtrar */
.opt { width: 100%; display: flex; align-items: center; justify-content: space-between; height: 52px; font-size: 15px; border-bottom: 1px solid var(--line); text-align: left; }
.opt:last-child { border-bottom: 0; }
.opt[aria-pressed="true"] { font-weight: 600; color: var(--cta-2); }
.opt .ic { color: var(--cta); }
.fgroup + .fgroup { margin-top: 18px; }
.fgroup h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.fgroup .chips { flex-wrap: wrap; }
.sheet__foot { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 20px; }
.sheet__text { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin-bottom: 16px; }
.sheet__text p + p { margin-top: 10px; }

/* ---------- ficha de producto ---------- */
.gal { position: relative; background: #fff; }
.gal__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; aspect-ratio: 1; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.gal__track::-webkit-scrollbar { display: none; }
/* La foto va encima del cuadro (no lo estira): las fotos altas se ven completas. */
.gal__slide { scroll-snap-align: center; position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.gal__slide img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; cursor: zoom-in; }
.gal__back { position: absolute; left: 10px; top: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-1); }
.gal__count { position: absolute; right: 12px; bottom: 12px; padding: 3px 9px; border-radius: 99px; background: rgba(17, 19, 24, .66); color: #fff; font-size: 12px; font-weight: 500; }
.gal__tag { position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 600; }
.gal__thumbs { display: none; }
.pblk { background: #fff; padding: 14px var(--gutter) 18px; margin-top: 8px; }
.pinfo { margin-top: 0; }
.pblk h2 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.pinfo__title { font-size: 16px; line-height: 1.35; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.pprice { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.pprice .pr { font-size: 26px; }
.pprice small { font-size: 13px; color: var(--muted); }
.pprice__off { font-size: 15px; font-weight: 600; color: var(--red); }
.pprice__note { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pwhy { display: flex; gap: 8px; margin-top: 12px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.pwhy .ic { width: 18px; height: 18px; color: var(--cta); stroke-width: 2.4; margin-top: 1px; }
.pnote { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fff6dd; font-size: 13px; line-height: 1.4; color: #5c4208; }
.pver { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.pver span { color: var(--muted); }
.pver b { font-weight: 600; text-align: right; }
.sofa-protection { margin-top: 16px; padding: 13px; border: 1px solid #bdd8ca; border-radius: 12px; background: #f3faf6; }
.sofa-protection strong { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1.3; color: #225b3e; }
.sofa-protection strong .ic { width: 18px; height: 18px; }
.sofa-protection p { margin: 7px 0 0; color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.pcolors { margin-top: 16px; }
.pcolors > p { font-size: 13px; color: var(--ink-2); }
.pcolors__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pcolors__option { display: grid; justify-items: center; gap: 4px; min-width: 47px; padding: 5px 4px; border: 1px solid var(--line-2); border-radius: 9px; color: var(--ink-2); text-transform: capitalize; }
.pcolors__option[aria-current="true"] { border-color: var(--cta); box-shadow: 0 0 0 1px var(--cta); color: var(--cta); }
.pcolors__option:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }
.pcolors__option small { font-size: 10px; }
.pcolors__dot { width: 24px; height: 24px; border: 1px solid #bbb; border-radius: 50%; }
.pcolors__dot--naranja { background: #f28020; }
.pcolors__dot--rojo { background: #a3172c; }
.pcolors__dot--verde { background: #8acb18; }
.pcolors__dot--blanco { background: #fff; }
.pcolors__dot--violeta { background: #813783; }
/* En el celular la cantidad se ajusta en el carrito (menos ruido en la ficha); en escritorio se muestra. */
.pqty { display: none; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; }
.qty button { width: 40px; height: 38px; display: grid; place-items: center; color: var(--cta); }
.qty button .ic { width: 17px; height: 17px; stroke-width: 2.3; }
.qty input, .qty span { width: 36px; text-align: center; border: 0; background: transparent; font-size: 15px; font-weight: 600; color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { display: none; }
.pcta { display: none; }
.pvariant { margin-top: 14px; }
.pvariant p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 10px; }
.prows { background: #fff; margin-top: 8px; }
.prow { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px var(--gutter); text-align: left; font-size: 14px; line-height: 1.35; color: var(--ink); }
.prow + .prow { border-top: 1px solid var(--line); }
.prow > .ic:first-child { width: 20px; height: 20px; color: var(--ink-2); }
.prow span { flex: 1; min-width: 0; }
.prow > .ic:last-child { width: 17px; height: 17px; color: #a1a6ae; }
.pdesc { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.pdesc--care { margin-top: 12px; }
.specs { display: grid; margin-top: 12px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 42% 1fr; gap: 10px; padding: 9px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { color: var(--ink); }
.specs div.full { grid-template-columns: 1fr; }
.review { margin-top: 12px; padding: 10px 12px; border: 2px dashed #c08a00; border-radius: 10px; background: #fff9e8; font-size: 12.5px; }
.review p { margin-top: 4px; }
.review a { color: var(--cta); font-weight: 600; text-decoration: underline; }
.psec { margin-top: 24px; }
.buybar { display: none; }

/* ---------- carrito (pantalla completa en móvil) ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(15, 18, 24, .5); opacity: 0; transition: opacity .25s; }
.scrim.open { opacity: 1; }
.drawer { position: fixed; inset: 0; z-index: 61; display: flex; flex-direction: column; background: var(--bg); transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.drawer.open { transform: none; }
.dhead { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 58px; padding: 0 6px 0 var(--gutter); background: #fff; border-bottom: 1px solid var(--line); }
.dhead h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; color: var(--brand); outline: none; }
.dhead h2 .ic { width: 22px; height: 22px; color: var(--cta); }
.dhead h2 span { color: var(--muted); font-weight: 500; }
.dhead__x { background: var(--surface-2); }
.dbody { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 10px var(--gutter) 16px; }
.dfoot { background: #fff; padding: 12px var(--gutter) calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(16, 24, 40, .06); display: grid; gap: 8px; }
.dempty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 16px; }
.dempty .ic { width: 48px; height: 48px; color: var(--muted); stroke-width: 1.4; }
.dempty h3 { font-size: 17px; font-weight: 600; }
.dempty p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.dempty .btn { width: 100%; max-width: 320px; }
.freeship { background: #e7f1eb; border: 1px solid #d4e4d9; border-radius: 12px; padding: 12px; margin-bottom: 10px; font-size: 13.5px; }
.freeship p { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--ink-2); }
.freeship .ic { width: 19px; height: 19px; color: var(--cta); }
.freeship--ok p { margin: 0; color: var(--ok); font-weight: 600; }
.freeship progress { appearance: none; -webkit-appearance: none; width: 100%; height: 6px; border: 0; border-radius: 99px; background: #fff; overflow: hidden; display: block; }
.freeship progress::-webkit-progress-bar { background: #fff; }
.freeship progress::-webkit-progress-value { background: var(--cta); border-radius: 99px; }
.freeship progress::-moz-progress-bar { background: var(--cta); border-radius: 99px; }
.clines { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.cline { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 12px; }
.cline + .cline { border-top: 1px solid var(--line); }
.cline__img { width: 80px; height: 80px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.cline__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
.cline__main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cline__name { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cline__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.cline__price { font-size: 17px; font-weight: 800; color: var(--cta); }
.cline__old { font-size: 12px; font-weight: 500; color: var(--muted); }
.cline__protect { display: inline-flex; align-items: center; gap: 5px; color: #35664b; font-size: 12px; font-weight: 600; }
.cline__protect .ic { width: 15px; height: 15px; }
.cline .qty { height: 34px; }
.cline .qty button { width: 34px; height: 32px; }
.cline__rm { width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); border-radius: 8px; }
.cline__rm .ic { width: 18px; height: 18px; }
.addons { margin-top: 18px; }
.addons h3 { font-size: 16px; font-weight: 800; color: #202321; margin-bottom: 10px; }
.addons__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.addon { display: flex; flex-direction: column; gap: 4px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.addon__img { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #fff; }
.addon__name { font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--ink); min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.addon img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.addon__price { font-size: 14px; font-weight: 800; color: var(--cta); }
.addon__add { display: inline-flex; align-items: center; justify-content: center; gap: 3px; height: 32px; margin-top: 2px; border-radius: 7px; border: 1.5px solid var(--cta); color: var(--cta); font-size: 12px; font-weight: 700; }
.addon__add:active { background: var(--cta-soft); }
.addon__add .ic { width: 15px; height: 15px; stroke-width: 2.5; }
.totals { display: grid; gap: 4px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt { color: var(--muted); }
.totals dd { font-weight: 500; }
.totals .free { color: var(--ok); font-weight: 600; }
.totals__grand { font-size: 17px; padding-top: 6px; margin-top: 2px; border-top: 1px solid var(--line); }
.totals__grand dt { color: var(--ink); font-weight: 600; }
.totals__grand dd { font-weight: 700; }
.totals small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.dlink { justify-self: center; font-size: 14px; font-weight: 600; color: var(--cta); padding: 6px 8px; }
.dfoot__more { justify-self: center; padding: 4px 10px; font-size: 14px; font-weight: 700; color: var(--cta); }

/* ---------- hojas inferiores (modal en escritorio) ---------- */
.overlay { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: rgba(15, 18, 24, .5); opacity: 0; transition: opacity .2s; }
.overlay.open { opacity: 1; }
.modal { position: relative; width: 100%; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 18px 18px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); transform: translateY(30px); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.overlay.open .modal { transform: none; }
.modal::before { content: ""; display: block; width: 38px; height: 4px; margin: 2px auto 12px; border-radius: 2px; background: #d6d9df; }
.modal__close { position: absolute; top: 8px; right: 8px; }
.modal__title { font-size: 17px; font-weight: 600; margin: 0 44px 10px 0; }
.zoom img { width: 100%; max-height: 74vh; object-fit: contain; }

/* ---------- búsqueda a pantalla completa ---------- */
.search-screen { position: fixed; inset: 0; z-index: 65; display: flex; flex-direction: column; background: #fff; opacity: 0; transform: translateY(10px); transition: opacity .18s, transform .18s; }
.search-screen.open { opacity: 1; transform: none; }
.ss__bar { display: flex; align-items: center; gap: 4px; padding: 8px 8px 10px 4px; background: var(--brand); }
.ss__bar input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: #fff; font-size: 16px; outline: none; }
.ss__bar input::-webkit-search-cancel-button { display: none; }
.ss__btn { width: 40px; height: 44px; display: grid; place-items: center; color: #fff; flex: none; }
.ss__body { flex: 1; overflow-y: auto; padding: 12px var(--gutter) 28px; }
.ss__h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); margin: 6px 0 10px; }
.ss__h button { font-size: 13px; font-weight: 600; color: var(--cta); }
.ss__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ss__row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.ss__row + .ss__row { border-top: 1px solid var(--line); }
.ss__row img { width: 50px; height: 50px; object-fit: contain; border-radius: 8px; background: #fff; flex: none; }
.ss__row .sc__ic { width: 50px; height: 50px; flex: none; background: var(--surface-2); }
.ss__row span { flex: 1; min-width: 0; }
.ss__row strong { display: block; font-size: 14px; font-weight: 400; line-height: 1.3; }
.ss__row small { display: block; font-size: 13.5px; font-weight: 600; }
.ss__row small.k { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.ss__all { display: flex; align-items: center; justify-content: center; gap: 4px; height: 46px; margin-top: 12px; border-radius: 10px; background: var(--cta-soft); color: var(--cta-2); font-weight: 600; }
.ss__none { padding: 28px 8px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- checkout en 3 pasos (pantalla sin distracciones) ---------- */
.co { min-height: 100vh; padding-bottom: 24px; }
.co__bar { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 56px; padding: 0 6px; background: #fff; border-bottom: 1px solid var(--line); }
.co__bar .logo { justify-self: center; margin: 0; color: var(--brand); }
.co__bar .logo__mark { width: 26px; height: 27px; }
.co__bar .logo__word { font-size: 21px; }
.co__bar .logo__word em { color: #ce1126; }
.co__lock { display: grid; place-items: center; color: var(--muted); }
.co__lock .ic { width: 19px; height: 19px; }
.co__wrap { padding-top: 16px; }
.co__steps { display: flex; margin: 0 0 16px; }
.co__steps li { position: relative; flex: 1; display: flex; justify-content: center; }
.co__steps li:not(:first-child)::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--line-2); }
.co__steps li.is-done:not(:first-child)::before, .co__steps li.is-cur:not(:first-child)::before { background: var(--cta); }
.co__steps button { display: block; }
.co__step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--muted); }
.co__dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-2); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.co__dot .ic { width: 14px; height: 14px; stroke-width: 3; }
.co__steps .is-cur .co__dot { background: var(--cta); border-color: var(--cta); color: #fff; box-shadow: 0 0 0 4px var(--cta-soft); }
.co__steps .is-done .co__dot { background: var(--cta); border-color: var(--cta); color: #fff; }
.co__steps .is-cur .co__step { color: var(--ink); font-weight: 600; }
.co__steps .is-done .co__step { color: var(--ink-2); }
.co__sum { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; }
.co__sum summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 50px; padding: 0 14px; cursor: pointer; }
.co__sum summary::-webkit-details-marker { display: none; }
.co__sumlbl { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--cta-2); }
.co__sumlbl .ic { width: 18px; height: 18px; }
.co__sumlbl .ic:last-child { width: 16px; height: 16px; transition: transform .2s; }
.co__sum[open] .co__sumlbl .ic:last-child { transform: rotate(180deg); }
.co__sum summary strong { font-size: 16px; font-weight: 700; }
.co__sumbody { padding: 0 14px 14px; border-top: 1px solid var(--line); }
.co__lines { display: grid; gap: 10px; padding: 12px 0; }
.co__lines li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.co__thumb { position: relative; width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.co__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; border-radius: 8px; }
.co__thumb b { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 4px; }
.co__name { line-height: 1.3; color: var(--ink-2); }
.co__name small { display: block; margin-top: 3px; color: var(--cta); font-size: 11px; font-weight: 600; }
.co__sofa-note { margin: 10px 0; padding: 10px 12px; border: 1px solid #c9dfd0; border-radius: 10px; background: #f4faf6; color: #365846; font-size: 12px; line-height: 1.45; }
.co__price { font-weight: 600; white-space: nowrap; }
.co__main > form, .co__main > .notice { background: #fff; border-radius: var(--r); padding: 18px 14px 8px; }
.co__h { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
.co__h2 { font-size: 15px; font-weight: 600; margin: 10px 0; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
/* campos con etiqueta flotante */
.fl { position: relative; margin-bottom: 12px; min-width: 0; }
.fl input, .fl select { display: block; width: 100%; height: 56px; padding: 22px 14px 6px; border: 1px solid var(--line-2); border-radius: 10px; background-color: #fff; font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.fl select { padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b717b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.fl label { position: absolute; left: 15px; top: 18px; max-width: calc(100% - 30px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; color: var(--muted); pointer-events: none; transition: top .15s, font-size .15s, color .15s; }
.fl input:focus + label, .fl input:not(:placeholder-shown) + label, .fl--select label { top: 8px; font-size: 11.5px; }
.fl input:focus, .fl select:focus { outline: none; border-color: var(--cta); box-shadow: 0 0 0 3px rgba(0, 135, 90, .15); }
.fl input:focus + label, .fl select:focus + label { color: var(--cta-2); }
.fl [aria-invalid="true"] { border-color: var(--red); background-color: #fff8f8; }
.fl [aria-invalid="true"] + label { color: var(--red); }
.fgrid .fl label { font-size: 14px; }
.fgrid .fl input:focus + label, .fgrid .fl input:not(:placeholder-shown) + label { font-size: 11.5px; }
.fl select.is-auto { animation: autofill 1.2s ease-out; }
@keyframes autofill { from { background-color: var(--cta-soft); border-color: var(--cta); } }
.co__note { display: flex; align-items: center; gap: 6px; margin: 2px 0 14px; font-size: 12.5px; color: var(--muted); }
.co__note .ic { width: 15px; height: 15px; }
.field__err { font-size: 12.5px; color: var(--red); margin-top: 5px; }
.field__hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 2px 0 14px; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--cta); }
.co__demo { text-align: center; font-size: 12.5px; color: var(--muted); padding: 4px 0 8px; }
/* tarjetas de opción (envío y pago) */
.opt-card { display: flex; align-items: center; gap: 12px; padding: 14px 12px; margin-bottom: 10px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; }
.opt-card:has(input:checked) { border-color: var(--cta); background: #f3faf6; }
.opt-card input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--cta); }
.opt-card__txt { flex: 1; min-width: 0; }
.opt-card__txt strong { display: block; font-size: 14.5px; font-weight: 600; }
.opt-card__txt small { display: block; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.opt-card > b { font-size: 14px; font-weight: 700; white-space: nowrap; }
.opt-card.is-off { opacity: .5; cursor: not-allowed; }
/* revisión antes de pagar */
.rev { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; }
.rev__row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px; font-size: 13.5px; }
.rev__row + .rev__row { border-top: 1px solid var(--line); }
.rev__l { color: var(--muted); }
.rev__v { color: var(--ink); line-height: 1.4; overflow-wrap: anywhere; }
.rev .link { font-size: 13px; }
.guarantee { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 8px 0 12px; border-radius: 12px; background: var(--cta-soft); color: #0c4a35; }
.guarantee > .ic { width: 30px; height: 30px; color: var(--cta); flex: none; }
.guarantee strong { display: block; font-size: 14.5px; }
.guarantee span { font-size: 13px; }
.co__trust, .promises { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.co__trust i, .promises i { display: none !important; }   /* los íconos ya separan; sin "·" colgando al partir la línea */
.co__trust { margin-top: 16px; }
.co__trust > span, .promises > span { display: inline-flex; align-items: center; white-space: nowrap; }
.co__trust .ic, .promises .ic { width: 14px; height: 14px; color: var(--cta); margin-right: 2px; }
.co__trust i, .promises i { font-style: normal; margin: 0 4px; color: var(--line-2); }
.next { display: grid; gap: 10px; padding: 4px 0 14px; counter-reset: n; }
.next li { display: grid; grid-template-columns: 24px 1fr; gap: 1px 10px; font-size: 13px; counter-increment: n; }
.next li::before { content: counter(n); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--cta-soft); color: var(--cta-2); font-size: 12px; font-weight: 600; }
.next strong { font-size: 14px; font-weight: 600; }
.next span { color: var(--muted); }
.co__legal { font-size: 12px; color: var(--muted); text-align: center; padding: 6px 4px 12px; }
.co__legal a { color: var(--cta); text-decoration: underline; }
.cobar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 16px rgba(16, 24, 40, .08); }
.cobar__total { font-size: 11.5px; color: var(--muted); line-height: 1.2; white-space: nowrap; }
.cobar__total strong { display: block; font-size: 17px; font-weight: 700; color: var(--ink); }
.cobar .btn { flex: 1; }
.cobar .btn .ic { width: 16px; height: 16px; }
.notice { display: flex; gap: 10px; padding: 12px; border-radius: 10px; background: #fff6dd; font-size: 13.5px; line-height: 1.4; color: #5c4208; margin-bottom: 12px; }
.notice strong { display: block; }
.paylogos { display: inline-flex; gap: 6px; align-items: center; }
.paylogo { display: block; width: auto; height: 28px; flex: none; border-radius: 6px; }
.paylogo--spei { padding: 6px 8px; background: #fff; border: 1px solid #e2e2e2; }   /* logo sin fondo: va sobre una ficha blanca */

/* pedido */
.order { padding-top: 20px; padding-bottom: 8px; }
.order__ok { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--cta); color: #fff; }
.order__ok .ic { width: 28px; height: 28px; stroke-width: 3; }
.order__head { text-align: center; margin-bottom: 14px; }
.order__head h1 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.order__head p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.order__num { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 8px; background: #fff; font-weight: 600; font-size: 14px; }
.badge-pend { display: inline-block; padding: 3px 8px; border-radius: 6px; background: #fff0c2; color: #7a5200; font-size: 12px; font-weight: 600; margin-left: 4px; }
.refbox { padding: 14px; border-radius: 10px; background: var(--surface-2); margin: 10px 0; }
.refbox small { display: block; font-size: 12px; color: var(--muted); }
.refbox code { display: block; margin-top: 4px; font-size: 19px; font-weight: 700; letter-spacing: .06em; background: none; padding: 0; word-break: break-all; }

/* datos para pagar (CLABE / referencia) con botón de copiar */
.tag-reco { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 5px; background: var(--cta-soft); color: var(--brand); font-size: 10.5px; font-style: normal; font-weight: 700; vertical-align: 1px; }
.paycard__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pg__card .paycard__head h2 { margin: 0; }
.paydata { display: grid; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.payrow { padding: 10px 12px; }
.payrow + .payrow { border-top: 1px solid var(--line); }
.payrow dt { font-size: 12px; color: var(--muted); }
.payrow dd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.payrow__v { min-width: 0; overflow-wrap: anywhere; font-size: 15px; font-weight: 600; user-select: all; }
.payrow--main { background: var(--cta-soft); }
.payrow--main .payrow__v { font-size: 18px; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.payrow__copy { flex: none; height: 36px; padding: 0 14px; border: 1.5px solid var(--cta); border-radius: 8px; background: #fff; color: var(--cta); font-size: 13px; font-weight: 700; }
.payrow__copy:active { background: var(--cta-soft); }
.barcode { margin: 0 auto 12px; max-width: 100%; }
.pg__card ol.paysteps { margin-bottom: 14px; }

/* ---------- páginas ---------- */
.pg { padding-top: 10px; padding-bottom: 16px; }
.pg__card { background: #fff; border-radius: var(--r); padding: 16px 14px; margin-bottom: 8px; }
.pg__card h2 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.pg__card p, .pg__card li { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.pg__card p + p { margin-top: 8px; }
.pg__card .lead { font-size: 15px; color: var(--ink); }
.pg__card ol.plain { list-style: decimal; padding-left: 20px; }
.pg__card ol.plain li + li { margin-top: 4px; }
.numlist { display: grid; gap: 14px; }
.numlist li { display: flex; gap: 12px; }
.numlist .ic { width: 20px; height: 20px; color: var(--cta); margin-top: 2px; }
.numlist strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.timeline { display: grid; }
.timeline li { position: relative; display: flex; align-items: center; gap: 12px; padding-bottom: 14px; font-size: 14px; color: var(--ink); }
.timeline li::before { content: attr(data-n); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--cta-soft); color: var(--cta-2); font-size: 12.5px; font-weight: 600; z-index: 1; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.dl { display: grid; }
.dl div { display: grid; grid-template-columns: 38% 1fr; gap: 8px; padding: 10px 0; font-size: 13.5px; }
.dl div + div { border-top: 1px solid var(--line); }
.dl dt { color: var(--muted); }
.pg__cta { display: grid; gap: 8px; margin-top: 4px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; font-size: 14.5px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 0 14px; }
.faq a { color: var(--cta); text-decoration: underline; }

/* ---------- pie verde (estilo de la primera vista previa) ---------- */
.foot { margin-top: 36px; padding: 30px 0 22px; background: var(--brand); color: #fff; }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.fcol--brand { grid-column: 1 / -1; }
.fcol--brand .logo { color: #fff; margin-bottom: 8px; }
.fcol--brand .logo__word { color: #fff; }
.fcol--brand .logo__word em { color: #ff8d96; }
.fcol h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.fcol p { font-size: 13px; color: #d6e5dc; margin-top: 4px; }
.fcol p.foot__tag { color: #fff; font-weight: 600; }
.fcol a:not(.logo) { display: block; padding: 5px 0; font-size: 13.5px; color: #e8f2ed; }
.fcol a:not(.logo):hover { color: #fff; text-decoration: underline; }
.fcol .paylogos { margin-bottom: 8px; }
.foot__legal { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 11.5px; line-height: 1.6; color: #d6e5dc; }
.foot__legal a { color: #fff; text-decoration: underline; }

/* ---------- paquetería en el checkout ---------- */
.co__shiphead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 10px; }
.co__shiphead .co__h2 { margin: 0; }
.co__shiphead b { font-size: 14px; }
.co__shiphead b.free { color: var(--ok); }
.ctiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ctile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 78px; padding: 10px 8px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; text-align: center; }
.ctile__logo { height: 24px; display: flex; align-items: center; }
.ctile .clogo--estafeta { height: 14px; } .ctile .clogo--dhl { height: 19px; } .ctile .clogo--fedex { height: 18px; } .ctile .clogo--paquetexpress { height: 18px; }
.ctile__name { font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--ink-2); }
.ctile__name small { display: block; font-weight: 400; color: var(--muted); }
.ctile__ok { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; display: none; place-items: center; background: var(--cta); color: #fff; }
.ctile__ok .ic { width: 12px; height: 12px; stroke-width: 3; }
.ctile:has(input:checked) { border-color: var(--cta); background: #f3faf6; box-shadow: inset 0 0 0 1px var(--cta); }
.ctile:has(input:checked) .ctile__ok { display: grid; }
.ctile:has(input:focus-visible) { outline: 2px solid var(--cta); outline-offset: 2px; }
.rev__carrier { display: inline-flex; vertical-align: -2px; margin-right: 6px; }
.rev__carrier .clogo { height: 13px; }
/* ---------- WhatsApp, toast ---------- */
.fab-wa { position: fixed; right: 12px; bottom: calc(var(--bottom-ui) + 12px); z-index: 44; display: flex; align-items: center; gap: 8px; }
.fab-wa__btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.fab-wa__btn .ic { width: 28px; height: 28px; }
.fab-wa__tip { padding: 8px 12px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow-2); transition: opacity .3s, transform .3s; }
.fab-wa.is-compact .fab-wa__tip { opacity: 0; transform: translateX(10px); pointer-events: none; }
.toast { position: fixed; left: 50%; bottom: calc(var(--bottom-ui) + 14px); z-index: 80; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 24px); padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: var(--shadow-2); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { color: #6ee7b7; font-weight: 600; white-space: nowrap; }

/* vistas donde la barra inferior estorba */
body[data-view="product"] { --bottom-ui: calc(68px + env(safe-area-inset-bottom)); }
body[data-view="checkout"] { --bottom-ui: calc(70px + env(safe-area-inset-bottom)); }
body[data-view="order"] { --bottom-ui: 0px; }
/* Checkout cerrado: sin cabecera de tienda, sin aviso, sin WhatsApp flotante (hay barra propia). */
body[data-view="checkout"] .fab-wa, body[data-view="checkout"] .hdr, body[data-view="checkout"] .demo { display: none; }
body[data-view="order"] .fab-wa { display: none; }   /* la confirmación ya tiene su botón de WhatsApp */
body[data-view="checkout"] .foot, body[data-view="order"] .foot { display: none; }
.buybar:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; align-items: center; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 16px rgba(16, 24, 40, .08); }
.buybar .btn { flex: 1; height: 46px; padding: 0 10px; }
.buybar__cart { position: relative; flex: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink); }
.buybar__cart .count { box-shadow: 0 0 0 2px #fff; top: -6px; right: -6px; }

/* ---------- pantallas medianas ---------- */
@media (min-width: 600px) {
  .grid2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail { grid-auto-columns: 28%; }
  .collist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- escritorio ---------- */
@media (min-width: 900px) {
  :root { --gutter: 24px; --bottom-ui: 0px; }
  body { padding-bottom: 0; }
  .topbar { font-size: 12.5px; }
  .topbar__in { gap: 36px; height: 36px; }
  .topbar span:nth-child(2) { display: inline-flex; }
  .hdr { top: 0; }
  .hdr__row { height: 82px; gap: 28px; }
  .logo { margin-right: 0; }
  .logo__mark { width: 44px; height: 47px; }
  .logo__word { font-size: 33px; }
  .logo__tag { font-size: 10.5px; }
  .hsearch { position: relative; display: flex; align-items: stretch; flex: 1; max-width: 680px; height: 46px; border: 1px solid #c9ceca; border-radius: 9px; background: #fafafa; }
  .hsearch:focus-within { border-color: var(--cta); box-shadow: 0 0 0 3px rgba(0, 104, 71, .12); }
  .hsearch input { flex: 1; min-width: 0; padding: 0 14px; border: 0; border-radius: 9px 0 0 9px; background: transparent; font-size: 15px; outline: none; }
  .hsearch input::-webkit-search-cancel-button { display: none; }
  .hsearch__go { width: 56px; display: grid; place-items: center; border-radius: 0 8px 8px 0; background: var(--cta); color: #fff; }
  .hsearch__go:hover { background: var(--cta-2); }
  .hdr__icons { margin-left: auto; display: flex; gap: 10px; }
  .hbtn { min-width: 60px; font-size: 13px; }
  .hdr__search { display: none; }
  .dnav__list { gap: 22px; height: 48px; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .dnav__desk { display: inline-flex; }
  .dnav__mob { display: none; }
  .dnav__item--end { margin-left: auto; }
  .dnav__link { padding: 0 2px; font-size: 14.5px; }
  .dnav__link:hover, .has-mega:hover > .dnav__link { color: var(--cta); }
  .dnav__link[aria-current="page"] { background: none; color: var(--cta); box-shadow: inset 0 -2px 0 var(--cta); border-radius: 0; }
  .has-mega { position: static; }
  .mega { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 55; padding: 24px 0 28px; background: #fff; color: var(--ink); box-shadow: var(--shadow-2); }
  .has-mega:hover .mega, .has-mega:focus-within .mega { display: block; }
  .has-mega.is-closed .mega { display: none !important; }
  .mega { max-height: calc(100vh - 190px); overflow-y: auto; white-space: normal; }   /* sin heredar el "nowrap" del menú */
  .mega__grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; align-items: start; }
  .mega__cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 24px; align-items: start; }
  .mega__title { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 8px; }
  .mega li a { display: block; padding: 5px 0; font-size: 14px; color: var(--muted); }
  .mega li a:hover, a.mega__title:hover { color: var(--cta); }
  .mega__cols { background: var(--surface-2); border-radius: var(--r); padding: 14px 16px; }
  .suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; max-height: min(70vh, 560px); overflow-y: auto; padding: 6px; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: var(--shadow-2); }
  .sg { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; }
  .sg:hover, .sg:focus-visible { background: var(--cta-soft); }
  .sg strong { display: block; font-size: 14px; font-weight: 400; }
  .sg small { font-size: 13px; font-weight: 600; }
  .sg small.k { font-weight: 400; color: var(--muted); }
  .sg__img { width: 44px; height: 44px; flex: none; border-radius: 6px; overflow: hidden; background: #fff; }
  .sg__img img { width: 100%; height: 100%; object-fit: contain; }
  .sg > .ic { color: var(--cta); }
  .sg__all { display: block; padding: 11px; margin-top: 4px; border-top: 1px solid var(--line); text-align: center; font-weight: 600; color: var(--cta); }
  .hometop { padding-top: 18px; }
  .slide { min-height: 345px; }
  .slide__copy { width: 54%; padding: 40px 0 40px 46px; gap: 12px; }
  .slide__tag { font-size: 12px; }
  .slide__title { font-size: clamp(34px, 3.6vw, 52px); }
  .slide__text { font-size: 18px; }
  .slide__cta { height: 46px; padding: 0 20px; font-size: 15px; }
  .slide__photo { inset: 0 0 0 46%; }
  .slide__photo::before { background: linear-gradient(90deg, #004d35 0%, rgba(0, 77, 53, 0) 30%); }
  .slide__art { right: 7%; width: 270px; }
  .benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; padding: 17px 14px; }
  .benefit { justify-content: center; gap: 10px; }
  .benefit > .ic { width: 32px; height: 32px; }
  .benefit strong { font-size: 14px; }
  .benefit small { font-size: 12px; }
  .sc__ic { width: 62px; height: 62px; }
  .sec { margin-top: 36px; }
  .sec__title { font-size: 25px; }
  .sec__more { font-size: 14px; }
  /* Todas las categorías en una fila centrada; si no caben, la fila se desliza y aparecen las flechas. */
  .cattiles { grid-auto-columns: minmax(150px, 1fr); gap: 14px; margin-inline: 0; padding: 2px 0 4px; scroll-padding-inline: 0; }
  .cattiles__nav { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transform: translateY(-50%); }
  .cattiles__nav--prev { left: 8px; }
  .cattiles__nav--next { right: 8px; }
  .cattiles__nav:disabled { visibility: hidden; }
  .cattiles__nav .ic { width: 19px; height: 19px; }
  .cattile { font-size: 14.5px; }
  .cattile__img { aspect-ratio: 1; }
  .cattile__img img { padding: 10px; }
  .cattile__name { padding: 10px 6px 12px; }
  .rail { margin-inline: 0; padding-inline: 0; grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; overflow: visible; }
  .rail > :nth-child(n+5) { display: none; }
  .bestsellers__rail { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: clamp(210px, 22%, 260px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 0 2px 4px; }
  .bestsellers__rail > :nth-child(n+5) { display: flex; }
  .bestsellers__nav { position: absolute; z-index: 2; top: 42%; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transform: translateY(-50%); }
  .bestsellers__nav[hidden] { display: none; }
  .bestsellers__nav:disabled { visibility: hidden; }
  .bestsellers__nav--prev { left: -16px; }
  .bestsellers__nav--next { right: -16px; }
  .bestsellers__nav .ic { width: 20px; height: 20px; }
  .bestsellers__more { width: auto; min-width: 190px; }
  .grid2, .lgrid .grid2 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .pc { padding: 12px; }
  .pc__title { font-size: 15.5px; }
  .pc__price .pr { font-size: 22px; }
  .pc__cta { height: 42px; font-size: 14px; }
  .trustbox { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding: 25px 28px; }
  .trustbox__groups { width: auto; grid-auto-flow: column; gap: 32px; }
  .tgroup .carriers { display: flex; max-width: none; }
  .tgroup + .tgroup { padding: 0 0 0 32px; border-top: 0; border-left: 1px solid #cfe0d5; }
  .trustbox h2 { font-size: 22px; }
  .collist { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .ph { padding: 16px 0; }
  .ph h1 { font-size: 24px; }
  .ph__back { display: none; }
  .lbar { position: static; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); background: transparent; border: 0; height: 52px; }
  .catlist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  /* ficha */
  .pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: start; max-width: 1200px; margin-inline: auto; padding: 20px var(--gutter) 0; }
  .gal { border-radius: 16px; overflow: hidden; position: sticky; top: 130px; }
  .gal__back { display: none; }
  .gal__thumbs { display: flex; gap: 8px; padding: 0 16px 16px; overflow-x: auto; }
  .gal__thumbs button { flex: none; width: 60px; height: 60px; border-radius: 8px; border: 2px solid var(--line); padding: 3px; background: #fff; }
  .gal__thumbs button[aria-current="true"] { border-color: var(--cta); }
  .gal__thumbs img { width: 100%; height: 100%; object-fit: contain; }
  .pdp__side .pblk, .pdp__side .prows { border-radius: 14px; }
  .pdp__side > :first-child { margin-top: 0; }
  .pblk { padding: 20px 22px; }
  .prow { padding: 0 22px; }
  .pinfo__title { font-size: 21px; }
  .pprice .pr { font-size: 32px; color: var(--cta); }
  .pqty { display: flex; }
  .pcta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
  .buybar:not([hidden]) { display: none; }
  body[data-view="product"] { --bottom-ui: 0px; }
  /* capas */
  .drawer { left: auto; width: 440px; transform: translateX(100%); box-shadow: var(--shadow-2); }
  .overlay { align-items: center; padding: 24px; }
  .modal { max-width: 520px; border-radius: 18px; padding: 22px; transform: translateY(12px); }
  .modal::before { display: none; }
  .modal--wide { max-width: 920px; }
  .search-screen { display: none !important; }
  /* checkout */
  .co__wrap { max-width: 1040px; padding-top: 24px; }
  .co__steps { max-width: 560px; margin-inline: auto; }
  .co__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
  .co__aside { position: sticky; top: 80px; order: 2; }
  .co__sum summary { pointer-events: none; }
  .co__sumlbl .ic:last-child { display: none; }
  .co__main > form { padding: 24px 22px 12px; }
  .cobar { position: static; box-shadow: none; background: transparent; padding: 14px 0 0; }
  .cobar__total { display: none; }
  .cobar .btn { height: 52px; }
  .order { max-width: 720px; }
  .order__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .pg { max-width: 860px; }
  /* páginas de texto: el título arranca donde arranca el contenido */
  body[data-view="page"] .ph .wrap, body[data-view="404"] .ph .wrap { max-width: 860px; }
  /* con mouse no hay deslizar: los filtros bajan de línea para que se vean todos */
  .ph .chips, .catrow .chips { flex-wrap: wrap; }
  /* con decenas de filtros, una sola fila con barra visible: no empuja los productos hacia abajo */
  .ph .chips--many { flex-wrap: nowrap; scrollbar-width: thin; padding-bottom: 8px; }
  /* pie */
  .foot { padding-top: 28px; }
  .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 32px; }
  .fcol--brand { grid-column: auto; }
  .fab-wa { right: 20px; bottom: 20px; }
}
/* pantallas anchas: las cinco tarjetas de la portada caben juntas */
@media (min-width: 1200px) {
  .rail.picks__rail { grid-auto-columns: calc((100% - 68px) / 5); }
}
/* escritorio angosto: el menú completo cabe sin desbordar */
@media (min-width: 900px) and (max-width: 1099px) {
  .dnav__list { gap: 12px; }
  .dnav__link { gap: 4px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce){ *, *::before, *::after { transition: none !important; animation-duration: 0s !important; scroll-behavior: auto !important; } }
