/* ============================================================================
   Bombas Ballester · sistema visual
   Acero oscuro, un solo rojo (el de la marca), tipografía técnica.
   ========================================================================== */
:root {
  --sc-canvas: #04070b;
  --sc-surface: #0b1218;
  --sc-ink: #e9f1f6;
  --sc-ink-soft: #95a8b7;
  --sc-accent: #e0242d;
  --sc-accent-ink: #ffffff;
  --sc-font-display: "Unbounded", system-ui, sans-serif;
  --sc-font-text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sc-font-mono: "Manrope", system-ui, sans-serif;
  --sc-shadow-color: 210 50% 2%;

  --surface-2: #101a22;
  --steel: #1a2731;
  --red-text: #ff7378;      /* mismo rojo, más claro, para texto sobre oscuro */
  --red-deep: #b8141c;
  --line: color-mix(in oklab, var(--sc-ink) 14%, transparent);
  --bar-h: 72px;
  --r: 10px;
}

body { background: var(--sc-canvas); }
html.is-drawer, html.is-menu { overflow: hidden; }

.wrap { width: min(100% - 2 * var(--sc-gutter), var(--sc-maxw)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--sc-font-text); font-weight: 700; font-size: var(--sc-t-xs); letter-spacing: 0.14em; text-transform: uppercase; }

h1, h2, h3 { font-family: var(--sc-font-display); margin: 0; }
.h-xl { font-size: clamp(2.3rem, 1.2rem + 3.4vw, 4.9rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; }
.h-lg { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3.3rem); font-weight: 650; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.h-md { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.9rem); font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.lede { font-size: var(--sc-t-lg); line-height: 1.5; color: var(--sc-ink-soft); max-width: 44ch; text-wrap: pretty; margin: 0; }
p { text-wrap: pretty; }

/* ------------------------------------------------------------- buttons -- */
.btn {
  --b: var(--steel);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0 1.25rem; border-radius: var(--r);
  font: 600 0.98rem/1 var(--sc-font-text); letter-spacing: 0; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; background: var(--b); color: var(--sc-ink); cursor: pointer;
  transition: background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out), color 160ms var(--sc-ease-out);
  box-shadow: var(--sc-edge);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--sc-accent); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), var(--sc-e1); }
.btn--ghost { background: transparent; border-color: var(--sc-hairline-strong); }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; padding: 0 1.6rem; font-size: 1.05rem; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: color-mix(in oklab, var(--b) 80%, white 8%); }
  .btn--primary:hover { background: #e8262f; }
  .btn--ghost:hover { background: color-mix(in oklab, var(--sc-ink) 7%, transparent); border-color: var(--sc-ink-soft); }
}
.btn--add { min-height: 42px; padding: 0 1rem; background: var(--sc-accent); color: #fff; }
.btn--add.is-added { background: #1f7a4a; }
.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); border: 0; background: transparent; color: var(--sc-ink); cursor: pointer; position: relative; }
.iconbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .iconbtn:hover { background: color-mix(in oklab, var(--sc-ink) 8%, transparent); } }
.link { color: var(--red-text); font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; }

/* ------------------------------------------------------------- the bar -- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: var(--sc-z-chrome); height: var(--bar-h);
  display: flex; align-items: center; gap: var(--sc-5);
  padding: 0 var(--sc-gutter);
  transition: background-color 240ms var(--sc-ease-out), box-shadow 240ms var(--sc-ease-out);
}
.is-scrolled .bar, .bar--solid { background: color-mix(in oklab, var(--sc-canvas) 88%, transparent); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--sc-ink); flex: none; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__word { font: 700 0.92rem/0.98 var(--sc-font-display); letter-spacing: -0.01em; text-transform: uppercase; }
.brand__word small { display: block; font-size: 0.74em; font-weight: 600; color: var(--sc-ink-soft); letter-spacing: 0.02em; }
.nav { display: flex; gap: var(--sc-1); margin-left: auto; }
.nav a { padding: 0.55rem 0.8rem; border-radius: 8px; color: var(--sc-ink); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a[aria-current="page"] { color: var(--red-text); }
@media (hover: hover) { .nav a:hover { background: color-mix(in oklab, var(--sc-ink) 8%, transparent); } }
.bar__actions { display: flex; align-items: center; gap: var(--sc-2); }
.bar__tel { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--sc-ink); text-decoration: none; font: 600 0.95rem var(--sc-font-text); font-variant-numeric: tabular-nums; padding: 0.5rem 0.6rem; border-radius: 8px; }
.bar__tel svg { width: 18px; height: 18px; fill: none; stroke: var(--red-text); stroke-width: 2; }
.count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sc-accent); color: #fff; font: 700 11px/18px var(--sc-font-text); text-align: center; transition: transform 160ms var(--sc-ease-out); }
.count[data-empty] { transform: scale(0); }
.menu-btn { display: none; }

@media (max-width: 1080px) {
  .bar__tel span { display: none; }
}
@media (max-width: 900px) {
  :root { --bar-h: 64px; }
  .menu-btn { display: grid; }
  .bar .btn--primary, .bar__tel { display: none; }
  .nav {
    position: fixed; inset: var(--bar-h) 0 0; flex-direction: column; gap: 0; padding: var(--sc-5) var(--sc-gutter);
    background: var(--sc-canvas); transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 200ms var(--sc-ease-out), transform 200ms var(--sc-ease-out), visibility 0s 200ms;
  }
  .nav a { font: 700 1.9rem/1 var(--sc-font-display); padding: 1rem 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .is-menu .nav { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .is-menu .bar { background: var(--sc-canvas); }
}

/* mobile action bar: the three things a phone visitor wants */
.actionbar { display: none; }
@media (max-width: 900px) {
  .actionbar {
    position: fixed; z-index: var(--sc-z-chrome); left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1.25fr auto; gap: 8px; padding: 8px;
    background: color-mix(in oklab, var(--surface-2) 92%, transparent); backdrop-filter: blur(14px);
    border-radius: 14px; box-shadow: var(--sc-e3), var(--sc-edge);
  }
  .actionbar .btn { min-height: 46px; padding: 0 0.8rem; font-size: 0.92rem; }
  .actionbar .iconbtn { width: 46px; height: 46px; background: var(--steel); }
  body { padding-bottom: 84px; }
}

/* ----------------------------------------------------------- 3D stage -- */
#despiece [data-sc-stage] { overflow: hidden; }
.pump-ground {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 62% 52%, #1d222a 0%, transparent 70%),
    radial-gradient(40% 40% at 70% 90%, rgb(214 31 40 / 0.10), transparent 70%),
    var(--sc-canvas);
}
.pump-ground::after {
  content: ""; position: absolute; inset: 0; opacity: calc(0.35 + var(--sc-p, 0) * 0.65);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center;
  mask-image: radial-gradient(75% 70% at 55% 50%, black 10%, transparent 75%);
  opacity: 0.25;
}
#pump-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.no-webgl #pump-canvas { display: none; }
.pump-fallback { display: none; position: absolute; inset: 18% 6% 30% 40%; }
.no-webgl .pump-fallback { display: block; }
.pump-fallback .dib { width: 100%; height: 100%; }

.pump-leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.pump-leaders path { fill: none; stroke: color-mix(in oklab, var(--sc-ink) 55%, transparent); stroke-width: 1; stroke-dasharray: 3 4; }
.pump-leaders circle { fill: var(--sc-canvas); stroke: var(--red-text); stroke-width: 2; }

.pump-labels { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.plabel {
  position: absolute; left: 0; top: 0; width: 14rem; padding: 0.65rem 0.8rem 0.7rem;
  background: color-mix(in oklab, var(--surface-2) 90%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sc-e2), var(--sc-edge);
  opacity: 0; visibility: hidden; transition: opacity 220ms var(--sc-ease-out), visibility 0s 220ms;
  pointer-events: auto;
}
.plabel.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.plabel__n { font-family: var(--sc-font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-text); margin: 0 0 0.2rem; }
.plabel h3 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.plabel p { margin: 0.25rem 0 0.45rem; font-size: 0.8rem; line-height: 1.4; color: var(--sc-ink-soft); }
.plabel a { font-size: 0.86rem; font-weight: 600; color: var(--sc-ink); text-decoration: underline; text-decoration-color: var(--red-text); text-underline-offset: 0.25em; }
@media (hover: hover) { .plabel a:hover { color: var(--red-text); } }

.hero-copy { position: absolute; z-index: 5; left: var(--sc-gutter); bottom: clamp(2.5rem, 9vh, 6rem); width: min(42rem, 47vw); }
.hero-copy .eyebrow { margin: 0 0 var(--sc-4); color: var(--red-text); }
.hero-copy .lede { margin-top: var(--sc-5); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--sc-3); margin-top: var(--sc-6); }
.peak-copy { position: absolute; z-index: 5; left: var(--sc-gutter); top: calc(var(--bar-h) + 3vh); max-width: 34rem; }
.peak-copy p { margin: var(--sc-3) 0 0; color: var(--sc-ink-soft); max-width: 40ch; }

.pump-product {
  position: absolute; z-index: 6; right: var(--sc-gutter); bottom: clamp(1rem, 2.5vh, 2rem);
  display: flex; align-items: center; gap: var(--sc-4); padding: 0.75rem 0.75rem 0.75rem 1.1rem;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sc-e3), var(--sc-edge);
  opacity: 0; transform: translateY(12px); visibility: hidden;
  transition: opacity 260ms var(--sc-ease-out), transform 260ms var(--sc-ease-out), visibility 0s 260ms;
}
.pump-product.is-on { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.pump-product__t { margin: 0; font-size: 0.82rem; color: var(--sc-ink-soft); line-height: 1.3; }
.pump-product__t strong { display: block; color: var(--sc-ink); font-size: 1rem; }
.pump-product__price { font: 700 1.25rem var(--sc-font-display); font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .hero-copy { width: auto; right: var(--sc-gutter); bottom: calc(96px + env(safe-area-inset-bottom)); }
  .hero-ctas .btn--ghost { display: none; }
  .hero-copy .h-xl { font-size: clamp(2.1rem, 9vw, 3rem); }
  .hero-copy .lede { font-size: 1rem; }
  .peak-copy { right: var(--sc-gutter); }
  .peak-copy .h-lg { font-size: 1.9rem; }
  .plabel { width: 12.5rem; padding: 0.6rem 0.7rem; }
  .plabel p { display: none; }
  .pump-product { left: var(--sc-gutter); right: var(--sc-gutter); top: calc(var(--bar-h) + 8px); bottom: auto; justify-content: space-between; gap: var(--sc-3); padding: 0.5rem 0.5rem 0.5rem 0.85rem; }
  .pump-product .btn--ghost { display: none; }
  .pump-product__t { font-size: 0.72rem; }
  .pump-product__t strong { font-size: 0.88rem; }
  .pump-product__price { font-size: 1.05rem; white-space: nowrap; }
}

/* --------------------------------------------------------- sections -- */
.sec { padding-block: var(--sc-section); position: relative; }
.sec--tight-top { padding-top: clamp(3rem, 6vw, 6rem); }
.sec__head { display: grid; gap: var(--sc-4); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); max-width: 46rem; }

/* 1954 */
.origin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem); align-items: end; }
.origin__year { font: 800 clamp(6rem, 1rem + 12.5vw, 15rem)/0.8 var(--sc-font-display); font-stretch: 115%; letter-spacing: -0.06em; color: var(--sc-ink); padding: 0.06em 0 0.08em; margin: 0; font-variant-numeric: tabular-nums; }
.origin__year span { color: var(--sc-accent); }
.origin__text p { color: var(--sc-ink-soft); max-width: 48ch; margin: var(--sc-4) 0 0; }
.origin__text p:first-of-type { color: var(--sc-ink); font-size: var(--sc-t-lg); line-height: 1.45; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(3rem, 6vw, 6rem); margin-bottom: 0; border-top: 1px solid var(--line); }
.facts div { padding: var(--sc-5) var(--sc-5) 0 0; }
.facts dt { color: var(--red-text); margin-bottom: var(--sc-2); }
.facts dd { margin: 0; font: 600 1.05rem/1.35 var(--sc-font-text); }
@media (max-width: 860px) {
  .origin { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}

/* services rail */
#servicios [data-sc-stage] { display: flex; flex-direction: column; justify-content: center; }
.rail { display: flex; gap: var(--sc-4); padding-inline: var(--sc-gutter); align-items: stretch; width: max-content; }
.rail__lead { width: min(30rem, 80vw); flex: none; display: flex; flex-direction: column; justify-content: center; gap: var(--sc-4); padding-right: var(--sc-6); }
.svc {
  flex: none; width: clamp(16rem, 22vw, 20rem); min-height: 22rem; display: flex; flex-direction: column;
  padding: var(--sc-5); border-radius: 14px; background: var(--sc-surface); border: 1px solid var(--line); box-shadow: var(--sc-edge);
}
.svc__icon { width: 52px; height: 52px; color: var(--red-text); margin-bottom: auto; }
.svc__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: 1.5rem; font-weight: 720; letter-spacing: -0.02em; margin-top: var(--sc-7); }
.svc p { color: var(--sc-ink-soft); font-size: 0.95rem; margin: var(--sc-3) 0 var(--sc-5); }
.svc a { margin-top: auto; }
.rail__end { width: min(24rem, 78vw); flex: none; display: flex; flex-direction: column; justify-content: center; gap: var(--sc-4); padding-left: var(--sc-6); }
@media (prefers-reduced-motion: no-preference) {
  #servicios .svc { opacity: clamp(0.55, calc(var(--sc-p, 0) * 6 - var(--i, 0) * 0.5 + 0.6), 1); }
}

/* configurator */
.cfg { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.cfg__opts { display: flex; flex-wrap: wrap; gap: var(--sc-2); margin-top: var(--sc-6); }
.chip {
  min-height: 46px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--sc-hairline-strong);
  background: transparent; color: var(--sc-ink); font: 500 0.98rem var(--sc-font-text); cursor: pointer;
  transition: background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out), color 160ms;
}
.chip[aria-checked="true"] { background: var(--sc-ink); color: var(--sc-canvas); border-color: var(--sc-ink); }
@media (hover: hover) { .chip:hover { border-color: var(--sc-ink-soft); } }
.cfg__out { background: var(--sc-surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--sc-e2), var(--sc-edge); min-height: 26rem; }
.cfg__svc { display: flex; justify-content: space-between; gap: var(--sc-5); align-items: start; padding-bottom: var(--sc-5); border-bottom: 1px solid var(--line); }
.cfg__svc h3 { font-size: 1.4rem; }
.cfg__svc p { margin: var(--sc-2) 0 0; color: var(--sc-ink-soft); max-width: 46ch; font-size: 0.96rem; }
.cfg__list { display: grid; gap: var(--sc-3); margin-top: var(--sc-5); }
.mini { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: var(--sc-4); align-items: center; padding: var(--sc-2); border-radius: 12px; }
.mini:hover { background: color-mix(in oklab, var(--sc-ink) 4%, transparent); }
.mini__media { width: 84px; height: 64px; border-radius: 8px; background: var(--steel); overflow: hidden; display: block; }
.mini__media .dib, .mini__media img { width: 100%; height: 100%; object-fit: contain; }
.mini h4 { margin: 0; font: 600 1rem/1.25 var(--sc-font-text); }
.mini h4 a { color: inherit; text-decoration: none; }
.mini p { margin: 0.15rem 0 0; color: var(--sc-ink-soft); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.cfg__empty { color: var(--sc-ink-soft); margin: var(--sc-5) 0 0; }
.cfg__out[data-swap] { animation: swap 260ms var(--sc-ease-out); }
@keyframes swap { from { opacity: 0.4; transform: translateY(6px); } }
@media (max-width: 860px) { .cfg { grid-template-columns: 1fr; } .cfg__svc { flex-direction: column; } }

/* product cards */
.grid-shop { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--sc-4); }
.grid-shop > .pcard { grid-column: span 6; }
.grid-shop > .pcard--hero { grid-row: span 2; }
.pcard.pcard--row { flex-direction: row; }
.pcard--row .pcard__media { aspect-ratio: auto; flex: 0 0 44%; min-height: 15rem; }
.pcard--row .pcard__body { flex: 1; justify-content: center; }
.pcard { display: flex; flex-direction: column; background: var(--sc-surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--sc-edge); transition: border-color 200ms var(--sc-ease-out); }
@media (hover: hover) { .pcard:hover { border-color: var(--sc-hairline-strong); } }
.pcard__media { display: block; aspect-ratio: 4 / 3; background: radial-gradient(80% 80% at 50% 40%, #232831, #171a20); position: relative; }
.pcard--hero .pcard__media { aspect-ratio: auto; flex: 1; min-height: 20rem; }
.pcard__media .dib, .pcard__media img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.pcard__body { padding: var(--sc-5); display: flex; flex-direction: column; gap: var(--sc-2); }
.pcard__cat { margin: 0; color: var(--sc-ink-soft); font: 700 0.72rem var(--sc-font-text); letter-spacing: 0.14em; text-transform: uppercase; }
.pcard__name { font: 650 1.15rem/1.2 var(--sc-font-text); letter-spacing: -0.01em; }
.pcard--hero .pcard__name { font: 650 1.5rem/1.1 var(--sc-font-display); letter-spacing: -0.02em; }
.pcard__name a { color: inherit; text-decoration: none; }
.pcard__name a::after { content: ""; position: absolute; inset: 0; }
.pcard__body { position: relative; }
.pcard__sum { margin: 0; color: var(--sc-ink-soft); font-size: 0.93rem; line-height: 1.5; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sc-3); margin-top: var(--sc-3); position: relative; z-index: 1; }
.pcard__price { margin: 0; font: 650 1.2rem var(--sc-font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
@media (max-width: 980px) {
  .grid-shop > .pcard { grid-column: span 12; }
  .grid-shop > .pcard--hero { grid-row: auto; }
}
@media (max-width: 600px) { .pcard.pcard--row { flex-direction: column; } .pcard--row .pcard__media { aspect-ratio: 4 / 3; min-height: 0; } }

/* drawings */
.dib { color: var(--sc-ink); }
.dib .dib-grid line { stroke: color-mix(in oklab, var(--sc-ink) 5%, transparent); stroke-width: 1; }
.dib .ln { stroke: color-mix(in oklab, var(--sc-ink) 80%, transparent); stroke-width: 1.6; stroke-linejoin: round; }
.dib .thin { stroke-width: 0.8; stroke: color-mix(in oklab, var(--sc-ink) 40%, transparent); }
.dib .bd { fill: #2c323b; }
.dib .dk { fill: #1a1e24; }
.dib .gl { fill: #3a424d; }
.dib .rd { fill: var(--sc-accent); }
.dib :not(.ln):is(.rd, .bd, .dk, .gl) { stroke: none; }
.dib .dim line { stroke: var(--red-text); stroke-width: 1; opacity: 0.7; }
.dib .water { fill: none; stroke: #6aa7d8; stroke-width: 1.6; opacity: 0.7; }
.dib .lcd { fill: #ff8a8b; font: 600 20px var(--sc-font-mono); }
.dib path:not([class]) { fill: none; }
.dib path.ln:not(.rd):not(.bd):not(.dk):not(.gl) { fill: none; }

/* reviews */
.reviews { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--sc-4); }
.reviews__score { display: flex; align-items: baseline; gap: var(--sc-3); margin-bottom: var(--sc-7); flex-wrap: wrap; }
.reviews__score strong { font: 800 clamp(3rem, 2rem + 4vw, 5rem)/1 var(--sc-font-display); letter-spacing: -0.04em; }
.stars { display: inline-flex; gap: 2px; color: var(--red-text); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.stars .off { color: color-mix(in oklab, var(--sc-ink) 22%, transparent); }
.quote { margin: 0; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 16px; background: var(--sc-surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--sc-4); }
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.quote--big blockquote { font: 600 clamp(1.3rem, 1rem + 1.2vw, 1.9rem)/1.3 var(--sc-font-display); letter-spacing: -0.015em; }
.quote figcaption { color: var(--sc-ink-soft); font-size: 0.9rem; margin-top: auto; }
.reviews__side { display: grid; gap: var(--sc-4); }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* close: red ground, the phone is the button */
#contacto { --sc-ink: #ffffff; --sc-ink-soft: #ffe9e9; color: var(--sc-ink); }
#contacto [data-sc-stage] { background: #b9141d; display: flex; flex-direction: column; overflow: hidden; }
.close { flex: 1; display: grid; align-content: center; gap: var(--sc-5); padding: calc(var(--bar-h) + 2rem) var(--sc-gutter) 2rem; position: relative; }
.close::before { content: ""; position: absolute; right: -8vw; top: 50%; width: 46vw; aspect-ratio: 1; transform: translateY(-50%) rotate(calc(var(--sc-p, 0) * 70deg)); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-100 -100 200 200'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='3'%3E%3Ccircle r='96'/%3E%3Ccircle r='22'/%3E%3Cpath d='M22 0 C 50 10, 70 40, 92 30 M0 22 C -10 50, -40 70, -30 92 M-22 0 C -50 -10, -70 -40, -92 -30 M0 -22 C 10 -50, 40 -70, 30 -92 M15 15 C 40 40, 40 70, 60 72 M-15 15 C -40 40, -70 40, -72 60 M-15 -15 C -40 -40, -40 -70, -60 -72 M15 -15 C 40 -40, 70 -40, 72 -60'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; pointer-events: none; }
.close h2 { max-width: 16ch; }
.close__tel { display: inline-block; font: 700 clamp(2.4rem, 1rem + 6vw, 6.5rem)/0.95 var(--sc-font-display); letter-spacing: -0.045em; color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; width: max-content; max-width: 100%; }
.close__tel:focus-visible { outline-color: #fff; }
.close__row { display: flex; flex-wrap: wrap; gap: var(--sc-3); align-items: center; }
.close .btn--light { background: #fff; color: var(--red-deep); }
.close .btn--outline { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.55); }
@media (hover: hover) { .close .btn--light:hover { background: #ffecec; } .close .btn--outline:hover { background: rgb(255 255 255 / 0.12); } }
.close__info { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--sc-7); margin-top: var(--sc-5); }
.close__info dt { color: var(--sc-ink-soft); margin-bottom: 0.3rem; }
.close__info dd { margin: 0; font-weight: 600; }
.close__info a { color: #fff; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sc-4); padding: var(--sc-5) var(--sc-gutter); border-top: 1px solid rgb(255 255 255 / 0.22); font-size: 0.85rem; color: var(--sc-ink-soft); }
.foot nav { display: flex; gap: var(--sc-5); flex-wrap: wrap; }
.foot a { color: inherit; }
#contacto ::selection { background: #fff; color: var(--red-deep); }
#contacto :focus-visible { outline-color: #fff; }
@media (max-width: 860px) {
  .close__info { grid-template-columns: 1fr; gap: var(--sc-4); }
  .close { padding-bottom: 1rem; }
}

/* plain footer for the inner pages */
.sitefoot { border-top: 1px solid var(--line); padding: var(--sc-8) 0 var(--sc-6); color: var(--sc-ink-soft); font-size: 0.92rem; }
.sitefoot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sc-6); }
.sitefoot h2 { font: 700 0.74rem var(--sc-font-text); text-transform: uppercase; letter-spacing: 0.08em; color: var(--sc-ink); margin-bottom: var(--sc-3); }
.sitefoot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.sitefoot a { color: inherit; text-decoration: none; }
.sitefoot a:hover { color: var(--sc-ink); }
.sitefoot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sc-4); margin-top: var(--sc-8); padding-top: var(--sc-5); border-top: 1px solid var(--line); font-size: 0.82rem; }
@media (max-width: 860px) { .sitefoot__grid { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------ cart drawer -- */
.drawer-scrim { position: fixed; inset: 0; z-index: 80; background: rgb(5 6 8 / 0.6); opacity: 0; transition: opacity 280ms var(--sc-ease-out); }
.is-drawer .drawer-scrim { opacity: 1; }
.drawer {
  position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(28rem, 100%);
  display: flex; flex-direction: column; background: var(--sc-surface); box-shadow: var(--sc-e3);
  transform: translateX(102%); transition: transform 320ms var(--sc-ease-drawer);
}
.is-drawer .drawer { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--sc-4) var(--sc-5); border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.3rem; }
.drawer__lines { flex: 1; overflow: auto; padding: var(--sc-3) var(--sc-5); }
.drawer__empty { display: grid; gap: var(--sc-4); justify-items: start; padding: var(--sc-7) 0; color: var(--sc-ink-soft); }
.drawer__foot { padding: var(--sc-5); border-top: 1px solid var(--line); display: grid; gap: var(--sc-3); }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: var(--sc-4); padding: var(--sc-4) 0; border-bottom: 1px solid var(--line); align-items: start; }
.line__media { width: 72px; height: 58px; border-radius: 8px; background: var(--steel); overflow: hidden; display: block; }
.line__media .dib, .line__media img { width: 100%; height: 100%; object-fit: contain; }
.line__name { margin: 0; font-weight: 600; line-height: 1.3; font-size: 0.96rem; }
.line__unit { margin: 0.15rem 0 0.5rem; color: var(--sc-ink-soft); font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.line__total { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--sc-hairline-strong); border-radius: 8px; }
.qty button { width: 36px; height: 34px; border: 0; background: none; color: var(--sc-ink); cursor: pointer; font-size: 1.1rem; }
.qty output { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.sum { display: flex; justify-content: space-between; margin: 0; font-size: 1.1rem; }
.sum dt { color: var(--sc-ink-soft); }
.sum dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.fine { margin: 0; color: var(--sc-ink-soft); font-size: 0.82rem; line-height: 1.45; }
.ship-meter p { margin: 0 0 0.5rem; font-size: 0.88rem; }
.ship-meter__bar { display: block; height: 6px; border-radius: 3px; background: var(--steel); overflow: hidden; }
.ship-meter__bar i { display: block; height: 100%; background: var(--sc-accent); transform-origin: left; transition: transform 300ms var(--sc-ease-out); }

.toast {
  position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: var(--sc-4); padding: 0.7rem 0.7rem 0.7rem 1.1rem; border-radius: 12px; width: max-content; max-width: calc(100vw - 24px);
  background: var(--sc-ink); color: var(--sc-canvas); box-shadow: var(--sc-e3); font-weight: 500; font-size: 0.95rem;
  transition: opacity 200ms var(--sc-ease-out), transform 200ms var(--sc-ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { flex: none; min-height: 38px; padding: 0 0.9rem; border-radius: 8px; border: 0; background: var(--sc-accent); color: #fff; font-weight: 600; cursor: pointer; }
@media (max-width: 900px) { .toast { bottom: 96px; } }

.modal-scrim { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: var(--sc-4); background: rgb(5 6 8 / 0.7); }
.modal-scrim[hidden] { display: none; }
.modal { width: min(32rem, 100%); max-height: 90vh; overflow: auto; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 16px; background: var(--sc-surface); border: 1px solid var(--line); box-shadow: var(--sc-e3); display: grid; gap: var(--sc-4); }
.modal h2 { font-size: 1.5rem; }
.modal__body p { margin: 0 0 var(--sc-3); color: var(--sc-ink-soft); }
.modal__body strong { color: var(--sc-ink); }
.modal__list { list-style: none; margin: 0 0 var(--sc-4); padding: 0; border-top: 1px solid var(--line); }
.modal__list li { display: flex; justify-content: space-between; gap: var(--sc-4); padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.modal__list .is-total { font-weight: 700; }
code { font-family: var(--sc-font-mono); font-size: 0.88em; background: var(--steel); padding: 0.1em 0.35em; border-radius: 4px; color: var(--sc-ink); }

.demo-badge { position: fixed; z-index: 70; left: 16px; bottom: 16px; padding: 0.4rem 0.7rem; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--sc-ink-soft); font: 500 0.72rem var(--sc-font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.demo-badge { transition: opacity 200ms var(--sc-ease-out); }
.demo-badge.is-away { opacity: 0; pointer-events: none; }
.demo-badge b { color: var(--red-text); font-weight: 600; }
@media (max-width: 900px) { .demo-badge { display: none; } }

/* ----------------------------------------------------------- forms -- */
.form { display: grid; gap: var(--sc-4); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sc-4); }
.field { display: grid; gap: 0.4rem; }
.field label, .field legend { font-size: 0.88rem; font-weight: 600; color: var(--sc-ink); }
.field .opt { color: var(--sc-ink-soft); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; border-radius: var(--r);
  background: var(--sc-canvas); border: 1px solid var(--sc-hairline-strong); color: var(--sc-ink); font-size: 1rem;
  transition: border-color 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.textarea { min-height: 8rem; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--red-text); box-shadow: 0 0 0 3px rgb(214 31 40 / 0.3); }
.input:user-invalid, .textarea:user-invalid { border-color: #ff7a6b; }
.check { display: flex; gap: 0.7rem; align-items: start; font-size: 0.9rem; color: var(--sc-ink-soft); }
.check input { width: 20px; height: 20px; margin-top: 0.1rem; flex: none; }
.radios { display: grid; gap: var(--sc-2); border: 0; padding: 0; margin: 0; }
.radio { display: flex; align-items: center; gap: var(--sc-3); padding: 0.9rem 1rem; border: 1px solid var(--sc-hairline-strong); border-radius: var(--r); cursor: pointer; }
.radio:has(input:checked) { border-color: var(--red-text); background: rgb(214 31 40 / 0.08); }
.radio input { width: 18px; height: 18px; }
.radio span { flex: 1; }
.radio b { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- inner pages -- */
.page { padding-top: calc(var(--bar-h) + clamp(2rem, 5vw, 4rem)); }
.crumbs { display: flex; gap: 0.5rem; color: var(--sc-ink-soft); font-size: 0.86rem; margin-bottom: var(--sc-5); }
.crumbs a { color: inherit; }
.shop-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--sc-5); margin-bottom: var(--sc-6); }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--sc-3); align-items: center; justify-content: space-between; padding: var(--sc-3) 0; margin-bottom: var(--sc-5); border-block: 1px solid var(--line); position: sticky; top: var(--bar-h); z-index: 10; background: var(--sc-canvas); }
.toolbar .chips { display: flex; gap: var(--sc-2); overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.toolbar .chip { min-height: 40px; white-space: nowrap; }
.toolbar__r { display: flex; gap: var(--sc-3); align-items: center; }
.toolbar .input, .toolbar .select { min-height: 42px; width: auto; }
.results { color: var(--sc-ink-soft); font-size: 0.9rem; margin: 0 0 var(--sc-4); }
.grid-cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: var(--sc-4); }

.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.pdp__media { position: sticky; top: calc(var(--bar-h) + 1.5rem); aspect-ratio: 4 / 3; border-radius: 18px; background: radial-gradient(80% 80% at 50% 40%, #252b34, #15181d); border: 1px solid var(--line); overflow: hidden; }
.pdp__media .dib, .pdp__media img { position: absolute; inset: 5%; width: 90%; height: 90%; object-fit: contain; }
.pdp__info { display: grid; gap: var(--sc-4); }
.pdp__price { font: 700 2.2rem var(--sc-font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 0; }
.pdp__tax { color: var(--sc-ink-soft); font-size: 0.88rem; margin: -0.6rem 0 0; }
.pdp__buy { display: flex; gap: var(--sc-3); flex-wrap: wrap; }
.pdp__buy .qty { min-height: 56px; }
.pdp__buy .qty button { height: 54px; width: 44px; }
.pdp__buy .qty input { width: 3ch; background: none; border: 0; text-align: center; font-weight: 700; font-size: 1.05rem; -moz-appearance: textfield; }
.pdp__buy .btn--primary { flex: 1; }
.assure { list-style: none; margin: var(--sc-3) 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.assure li { display: flex; gap: var(--sc-3); padding: var(--sc-4) 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.assure svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--red-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.assure b { display: block; }
.assure span { color: var(--sc-ink-soft); }
.stock { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: #8fe0b0; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } .pdp__media { position: relative; top: 0; } }

.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.checkout h2 { font-size: 1.35rem; margin: var(--sc-6) 0 var(--sc-4); }
.checkout h2:first-child { margin-top: 0; }
.summary { position: sticky; top: calc(var(--bar-h) + 1.5rem); padding: clamp(1.25rem, 3vw, 2rem); border-radius: 18px; background: var(--sc-surface); border: 1px solid var(--line); }
.summary .line:last-of-type { border-bottom: 0; }
.totals { display: grid; gap: 0.5rem; margin: var(--sc-4) 0; padding-top: var(--sc-4); border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; }
.totals dt { color: var(--sc-ink-soft); }
.totals dd { margin: 0; }
.totals .is-total { font-size: 1.3rem; font-weight: 700; padding-top: 0.5rem; }
.totals .is-total dt { color: var(--sc-ink); }
.demo-note { display: flex; gap: var(--sc-3); padding: var(--sc-4); border-radius: 12px; background: rgb(214 31 40 / 0.1); border: 1px solid rgb(255 93 95 / 0.35); font-size: 0.92rem; margin-bottom: var(--sc-5); }
.demo-note[hidden] { display: none; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { position: relative; top: 0; order: -1; } }

/* skip link */
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 0.7rem 1rem; background: var(--sc-ink); color: var(--sc-canvas); border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

[hidden] { display: none !important; }

/* ------------------------------------------------------- scroll hint -- */
.scroll-hint {
  position: absolute; z-index: 6; left: 50%; bottom: clamp(1.5rem, 4vh, 2.5rem); translate: -50% 0;
  display: flex; align-items: center; gap: 0.8rem; color: var(--sc-ink-soft); white-space: nowrap;
  font: 500 0.78rem var(--sc-font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  opacity: calc(1 - var(--sc-p, 0) * 14); pointer-events: none;
}
.scroll-hint__track { position: relative; width: 22px; height: 36px; border: 1.5px solid color-mix(in oklab, var(--sc-ink) 45%, transparent); border-radius: 12px; }
.scroll-hint__track::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--red-text); animation: hint 1.6s var(--sc-ease-in-out) infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint__track::after { animation: none; opacity: 1; } }
.scroll-hint--inline { display: none; position: static; opacity: 1; translate: none; }
@media (max-width: 860px) {
  .scroll-hint { display: none; }
  .scroll-hint--inline { display: flex; align-self: center; margin-left: var(--sc-2); font-size: 0.7rem; }
  .scroll-hint__track { width: 18px; height: 30px; }
}

/* -------------------------------------------------------------- chat -- */
.chat-fab {
  position: fixed; z-index: 75; right: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 0.55rem; height: 54px; padding: 0 1.15rem 0 1rem; border: 0; border-radius: 27px;
  background: var(--sc-ink); color: var(--sc-canvas); font: 600 0.95rem var(--sc-font-text); cursor: pointer;
  box-shadow: var(--sc-e3); transition: transform 160ms var(--sc-ease-out), opacity 200ms var(--sc-ease-out);
}
.chat-fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chat-fab:active { transform: scale(0.96); }
@media (hover: hover) { .chat-fab:hover { transform: translateY(-2px); } }
.is-chat .chat-fab { opacity: 0; pointer-events: none; }
.chat {
  position: fixed; z-index: 76; right: 20px; bottom: 20px; width: min(25rem, calc(100vw - 24px)); height: min(38rem, calc(100dvh - 110px));
  display: flex; flex-direction: column; background: var(--sc-surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sc-e3), var(--sc-edge);
  opacity: 0; transform: translateY(14px) scale(0.98); transform-origin: bottom right; visibility: hidden;
  transition: opacity 220ms var(--sc-ease-out), transform 220ms var(--sc-ease-out), visibility 0s 220ms;
}
.is-chat .chat { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.chat__head { display: flex; align-items: center; gap: var(--sc-3); padding: var(--sc-3) var(--sc-3) var(--sc-3) var(--sc-4); border-bottom: 1px solid var(--line); }
.chat__avatar svg { width: 38px; height: 38px; display: block; }
.chat__head div { flex: 1; min-width: 0; }
.chat__head h2 { font: 650 1rem/1.2 var(--sc-font-text); letter-spacing: 0; }
.chat__head p { margin: 0.1rem 0 0; font-size: 0.78rem; color: var(--sc-ink-soft); }
.chat__log { flex: 1; overflow-y: auto; padding: var(--sc-4); display: flex; flex-direction: column; gap: var(--sc-3); overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 0.65rem 0.85rem; border-radius: 14px; font-size: 0.92rem; line-height: 1.5; }
.msg--bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg--me { align-self: flex-end; background: var(--sc-accent); color: #fff; border-bottom-right-radius: 4px; }
.msg ul { margin: 0.4rem 0; padding-left: 1.1rem; }
.msg__actions { display: flex; flex-wrap: wrap; gap: var(--sc-2); margin-top: var(--sc-3); }
.msg__actions .btn { min-height: 38px; padding: 0 0.85rem; font-size: 0.86rem; }
.msg__prods { display: grid; gap: 2px; margin: var(--sc-3) 0; }
.msg .mini { grid-template-columns: 52px minmax(0, 1fr) auto; gap: var(--sc-3); padding: 4px; }
.msg .mini__media { width: 52px; height: 42px; }
.msg .mini h4 { font-size: 0.86rem; }
.msg .mini p { font-size: 0.8rem; }
.msg .btn--add { min-height: 34px; padding: 0 0.7rem; font-size: 0.82rem; }
.msg--typing { display: flex; gap: 4px; padding: 0.85rem 1rem; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--sc-ink-soft); animation: dot 1s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat__quick { display: flex; gap: var(--sc-2); overflow-x: auto; padding: 0 var(--sc-4) var(--sc-3); scrollbar-width: none; }
.chat__quick .chip { min-height: 36px; padding: 0 0.85rem; font-size: 0.85rem; white-space: nowrap; flex: none; }
.chat__form { display: flex; gap: var(--sc-2); padding: var(--sc-3); border-top: 1px solid var(--line); }
.chat__form .input { min-height: 46px; }
.chat__form .btn { min-height: 46px; width: 46px; padding: 0; flex: none; }
@media (max-width: 900px) {
  .chat-fab { right: 14px; bottom: calc(92px + env(safe-area-inset-bottom)); height: 50px; width: 50px; padding: 0; justify-content: center; }
  .chat-fab span { display: none; }
  .chat { right: 8px; left: 8px; width: auto; bottom: 8px; top: calc(var(--bar-h) + 8px); height: auto; }
}

/* mobile shop toolbar + quote page order */
@media (max-width: 700px) {
  .toolbar { top: var(--bar-h); }
  .toolbar .chips { width: 100%; }
  .toolbar__r { width: 100%; }
  .toolbar__r .input { flex: 1; min-width: 0; }
  .toolbar__r .select { width: 9.5rem; flex: none; }
}
@media (max-width: 900px) { .summary--after { order: 0; } }

/* phone: two-column shop grids */
@media (max-width: 600px) {
  .grid-cat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .grid-cat .pcard { border-radius: 12px; }
  .grid-cat .pcard__body { padding: 0.7rem; gap: 0.25rem; }
  .grid-cat .pcard__cat { font-size: 0.6rem; letter-spacing: 0.1em; }
  .grid-cat .pcard__name { font-size: 0.86rem; line-height: 1.25; }
  .grid-cat .pcard__sum { display: none; }
  .grid-cat .pcard__foot { flex-direction: column; align-items: stretch; gap: 0.4rem; margin-top: 0.3rem; }
  .grid-cat .pcard__price { font-size: 1rem; }
  .grid-cat .btn--add { width: 100%; min-height: 38px; }
  .toolbar .chips { flex-wrap: nowrap; }
}
