:root {
  /* Black Laser showroom — Laser Import, Asunción */
  --void: #070708;
  --ink: #ece7df;
  --ink-soft: #c7c0b4;
  --muted: #8f8779;
  --line: rgba(231, 197, 106, 0.14);
  --line-strong: rgba(231, 197, 106, 0.34);
  --row-line: rgba(255, 255, 255, 0.06);
  --stage: #0e0e10;
  --panel: #131315;
  --shelf: #1b1b1e;
  --black: #050505;
  --gold: #e7c56a;
  --gold-soft: #f3dc9a;
  --gold-deep: #a57a28;
  --blue: #1f6bb5;
  --blue-soft: #7eb4e8;
  --red: #ff4d57;
  --ok: #3ecf8e;
  --warn: #f0b429;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --font-display: "Syne", "Avenir Next", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.563rem;
  --text-2xl: 1.953rem;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-laser: 0 0 0 1px var(--line), 0 18px 48px rgba(0, 0, 0, 0.45);
  --bar-h: 64px;
  --stack-h: 190px;
  --wide: 1240px;

  color: var(--ink);
  background: var(--void);
  font-family: var(--font-body);
  font-size: var(--text);
  line-height: 1.5;
  scrollbar-color: var(--gold-deep) var(--stage);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { overflow-x: clip; scroll-padding-top: var(--stack-h); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(900px 360px at 10% -12%, rgba(231, 197, 106, 0.045), transparent 58%),
    linear-gradient(180deg, #0a0a0c 0%, var(--void) 48%, #080809 100%);
  background-attachment: fixed;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue-soft); text-underline-offset: 0.18em; }
::selection { background: rgba(231, 197, 106, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
img { max-width: 100%; }
button:disabled { opacity: 0.35; cursor: not-allowed; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* —— Sticky logo bar —— */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 5, 6, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-bar::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, rgba(231, 197, 106, 0.55) 28%, rgba(231, 197, 106, 0.28) 62%, transparent 96%);
  pointer-events: none;
}
.top-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: var(--wide);
  margin: 0 auto;
  padding: 10px var(--space-4);
}
.brand-lock {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  flex-shrink: 0;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: block;
  flex-shrink: 0;
  background: var(--void);
  box-shadow: inset 0 0 0 1px rgba(231, 197, 106, 0.14);
}
.brand-word {
  display: grid;
  gap: 3px;
  line-height: 1;
  min-width: 0;
}
.brand-word strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-word em {
  font-style: italic;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.brand-word small {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-soft);
  font-weight: 700;
  white-space: nowrap;
}
.brand-logos {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
}
.logo-img {
  height: 30px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}
.logo-word {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--row-line);
  background: rgba(255, 255, 255, 0.03);
}
.logo-ufesa { color: #ff6a6a; font-style: italic; text-transform: lowercase; letter-spacing: 0; font-size: 1.05rem; }
.logo-bosch { color: #f2f2f2; text-transform: uppercase; }

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(231, 197, 106, 0.08);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  flex-shrink: 0;
}
.brand-logos:empty + .cart-btn, .top-inner > .brand-lock + .cart-btn { margin-left: auto; }
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}
.cart-sum { color: var(--gold-soft); font-variant-numeric: tabular-nums; font-size: var(--text-sm); }
.cart-sum:empty { display: none; }
.cart-btn.marked::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid var(--gold);
  animation: showroom-edge 900ms var(--ease) forwards;
}
@keyframes showroom-edge {
  from { opacity: 1; transform: scale(0.96); }
  to { opacity: 0; transform: scale(1.12); }
}

/* —— Masthead (scrolls away) —— */
.mast {
  max-width: var(--wide);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-4);
}
.mast-kicker {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-soft);
  font-weight: 700;
}
.mast-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.mast-title span {
  font-style: italic;
  color: var(--gold);
}
.mast-copy {
  margin: var(--space-3) 0 0;
  max-width: 44rem;
  color: var(--ink-soft);
}
.mast-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-4) 0 0;
}
.mast-stats div { display: grid; }
.mast-stats dt { font-size: var(--text-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.mast-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* —— Sticky toolbar —— */
.toolbar {
  position: sticky;
  top: var(--bar-h);
  z-index: 30;
  background: rgba(8, 8, 9, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: var(--space-3) max(var(--space-4), calc((100% - var(--wide)) / 2 + var(--space-4))) var(--space-2);
  display: grid;
  gap: var(--space-2);
}
.tool-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}
.switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--row-line);
  flex-shrink: 0;
}
.switch button {
  border: 0;
  background: none;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: var(--text-sm);
  white-space: nowrap;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.switch button[aria-selected="true"] { background: var(--gold); color: #111; }
.switch.brands button[aria-selected="true"] { background: #f2f2f2; color: #111; }
.switch.brands { margin-left: auto; }

.search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  min-height: 42px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--row-line);
  color: var(--muted);
}
.search:focus-within { border-color: var(--gold); color: var(--gold); }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  color: var(--ink);
  min-height: 40px;
}
.search input::placeholder { color: var(--muted); }
.sort select {
  min-height: 42px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--row-line);
  padding: 0 10px;
  max-width: 220px;
}
.only-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--row-line);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.only-stock input { accent-color: var(--ok); width: 16px; height: 16px; }
.ghost {
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  font-size: var(--text-sm);
}

.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 4px;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 24px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--row-line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-soft);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease);
}
.chips button:hover { border-color: var(--line-strong); color: var(--ink); }
.chips button[aria-current="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: #111;
}
.chips button[aria-current="true"] .chip-n {
  color: #1a150c;
  background: rgba(0, 0, 0, 0.16);
}
.chip-n {
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 999px;
}
.chip-top { color: var(--gold) !important; }

/* —— Content —— */
main {
  max-width: var(--wide);
  margin: 0 auto;
  padding: var(--space-3) var(--space-4) var(--space-7);
}
.status:empty, .count:empty { display: none; }
.status { color: var(--warn); margin: 0 0 var(--space-2); }
.count { color: var(--muted); font-size: var(--text-sm); margin: 0 0 var(--space-2); }

.brand-band {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-7) 0 var(--space-3);
  scroll-margin-top: calc(var(--stack-h) + 8px);
}
.brand-band:first-child { margin-top: var(--space-4); }
.band-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.band-ufesa .band-name { color: #ff6a6a; text-transform: lowercase; font-style: italic; }
.band-herramientas .band-name { color: var(--blue-soft); }
.band-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.6;
}

.psec {
  margin: 0 0 var(--space-6);
  scroll-margin-top: calc(var(--stack-h) + 8px);
}
.sec-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-3);
}
.sec-title { display: grid; gap: 2px; }
.sec-page {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.sec-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.sec-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--muted);
}
.sec-meta span {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--row-line);
}
.sec-meta .hot { color: var(--gold-soft); border-color: var(--line-strong); }

/* —— Product tables —— */
.table-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: clip;
}
.ptable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-sm);
}
.ptable th {
  position: sticky;
  top: var(--stack-h);
  z-index: 5;
  background: #121214;
  border-bottom: 1px solid var(--line-strong);
  text-align: left;
  padding: 0;
  font-weight: 700;
}
.th-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  border: 0;
  background: none;
  padding: 10px 12px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  text-align: inherit;
}
.num .th-btn { justify-content: flex-end; }
.th-btn:hover, th[aria-sort] .th-btn { color: var(--gold); }
.arrow { font-size: 0.85rem; }
.ptable td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--row-line);
  vertical-align: middle;
}
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable tbody tr { transition: background 140ms var(--ease); }
.ptable tbody tr:hover { background: rgba(231, 197, 106, 0.05); }
.ptable tbody tr:nth-child(even) { background-color: rgba(255, 255, 255, 0.015); }
.ptable tbody tr.in-cart { background: rgba(231, 197, 106, 0.09); }
.ptable tbody tr.in-cart td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.c-name { min-width: 240px; }
.name-btn {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}
.name-btn:hover { color: var(--gold-soft); text-decoration: underline; text-decoration-color: var(--line-strong); }
.sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 3px;
  font-size: var(--text-xs);
  color: var(--muted);
}
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.02em; }
.mob-brand { display: none; }
.tag {
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.68rem;
}
.tag-top { background: rgba(31, 107, 181, 0.22); color: var(--blue-soft); }
.gift {
  margin-top: 4px;
  font-size: var(--text-xs);
  color: var(--gold-soft);
}
.gift::before { content: "🎁 "; }

.brand-tag {
  font-weight: 800;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}
.brand-ufesa { color: #ff7b7b; font-style: italic; }
.brand-bosch { color: #f2f2f2; text-transform: uppercase; }

.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--text-xs);
}
.pill-ok { color: var(--ok); background: rgba(62, 207, 142, 0.12); }
.pill-low { color: var(--warn); background: rgba(240, 180, 41, 0.14); }
.pill-out { color: var(--red); background: rgba(255, 77, 87, 0.12); }
.pill-none { color: var(--muted); background: rgba(255, 255, 255, 0.05); }

.c-list s { color: #7b7368; }
.disc {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: #111;
  font-weight: 800;
  font-size: var(--text-xs);
}
.net {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-soft);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.net-label { display: none; }
.c-pvp { color: var(--ink-soft); }
.m-pct { display: block; font-weight: 700; color: var(--ok); }
.m-gs { color: var(--muted); font-size: 0.7rem; }

.c-qty { width: 1%; }
.stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--black);
  overflow: hidden;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.stepper.has { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(231, 197, 106, 0.14); }
.stepper button {
  width: 38px;
  height: 38px;
  border: 0;
  background: none;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  display: grid;
  place-items: center;
}
.stepper button:hover:not(:disabled) { background: rgba(231, 197, 106, 0.12); }
.stepper input {
  width: 44px;
  height: 38px;
  border: 0;
  background: none;
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  outline: none;
}
.stepper input:focus { background: rgba(231, 197, 106, 0.12); }
.stepper.tick input { animation: tick 320ms var(--ease); }
@keyframes tick {
  from { color: var(--gold); transform: scale(1.25); }
  to { transform: scale(1); }
}

.pdf-link { margin: var(--space-5) 0 0; }
.pdf-link a { color: var(--gold); font-weight: 700; }
.empty {
  padding: var(--space-6) var(--space-2);
  color: var(--muted);
  max-width: 42rem;
}

/* Floating order dock (phones) */
.dock-cart {
  position: fixed;
  z-index: 35;
  left: var(--space-3);
  right: var(--space-3);
  bottom: max(var(--space-3), env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  gap: var(--space-3);
  min-height: 54px;
  padding: 0 var(--space-4);
  border-radius: 999px;
  border: 0;
  background: linear-gradient(100deg, var(--gold-deep), var(--gold));
  color: #111;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  animation: panel-in 300ms var(--ease);
}
.dock-cart strong { font-variant-numeric: tabular-nums; }
.dock-go { margin-left: auto; }
.dock-go::after { content: " →"; }

/* —— Dialogs —— */
dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  width: min(560px, calc(100% - 24px));
}
dialog::backdrop { background: rgba(4, 4, 5, 0.72); backdrop-filter: blur(4px); }
.sheet-card, .cart-card {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  max-height: min(88vh, 820px);
  overflow: auto;
  box-shadow: var(--shadow-laser);
}
.sheet-hero {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--shelf);
  border-radius: var(--radius);
  margin-top: var(--space-3);
}
.sheet-kicker { margin: 0; font-size: var(--text-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.sheet-card h2, .cart-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 2px 0 0;
  font-size: clamp(1.1rem, 4.2vw, 1.5rem);
  line-height: 1.15;
}
.meta { display: grid; gap: 0; margin: var(--space-4) 0; }
.meta div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  border-bottom: 1px solid var(--row-line);
  padding: 8px 0;
}
.meta dt { color: var(--muted); }
.meta dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.meta .strong dd { color: var(--gold); font-size: var(--text-lg); }
.sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.sheet-actions a { color: var(--gold); font-weight: 700; }
.cart-head { display: flex; justify-content: space-between; align-items: start; gap: var(--space-3); }
.icon-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--row-line);
  background: var(--shelf);
  font-size: 1.4rem;
  line-height: 1;
}
.cart-note { color: var(--muted); font-size: var(--text-sm); }
.line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--row-line);
}
.line p { margin: 0; overflow-wrap: anywhere; }
.line .pvp { color: var(--muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.gone { color: var(--red); font-size: var(--text-sm); }
.cart-foot { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
#cart-totals {
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--shelf);
  font-size: var(--text-lg);
  font-variant-numeric: tabular-nums;
}
#cart-totals.sealed { background: rgba(231, 197, 106, 0.14); color: var(--gold); }
.solid {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font-weight: 800;
  padding: 0 var(--space-5);
}
.text-btn { background: none; border: 0; color: var(--muted); padding: var(--space-2); min-height: 44px; }
.text-btn:hover { color: var(--ink); }
.link-btn { display: inline-grid; place-items: center; text-decoration: none; }
.share-box { display: grid; gap: 6px; font-size: var(--text-sm); color: var(--muted); }
.share-box input {
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--black);
  padding: 0 10px;
}
.share-status { color: var(--ink-soft); font-size: var(--text-sm); margin: 0; }
.share-status:empty { display: none; }

.foot {
  max-width: var(--wide);
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-7);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-sm);
}
.foot a { color: var(--gold); }
.foot p { overflow-wrap: anywhere; margin: 0 0 var(--space-2); }
.foot p:empty { display: none; }

.guide { max-width: 720px; color: var(--ink-soft); }
.guide h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.1;
  color: var(--ink);
}
.guide li { margin-bottom: var(--space-2); }

.arrive { animation: panel-in 320ms var(--ease); }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* —— Medium screens: drop secondary columns —— */
@media (max-width: 1100px) {
  .c-margin, .c-brand { display: none; }
  .mob-brand { display: inline; font-weight: 700; color: var(--ink-soft); }
}

/* —— Phones and tablets: every row becomes a tappable table card —— */
@media (max-width: 820px) {
  .brand-logos { gap: 6px; }
  .logo-word { font-size: 0.78rem; padding: 3px 8px; }
  .logo-ufesa { font-size: 0.85rem; }
  .logo-img { height: 22px; max-width: 72px; }
  .brand-word strong { font-size: 0.98rem; }
  .cart-btn { margin-left: 0; padding: 0 10px; }
  .ptable td.c-brand { display: none; }
  .top-bar { background: #060607; }
  .toolbar { transition: transform 220ms var(--ease); }
  body.scroll-down .toolbar { transform: translateY(calc(-1 * var(--views-h, 52px))); }
  body.scroll-down .tool-row.views { visibility: hidden; }
  .ptable th, .psec, .brand-band { transition: top 220ms var(--ease); }
  .search-row { flex-wrap: nowrap !important; }
  .search { flex-basis: auto; }
  .sort { flex: 0 0 46px; position: relative; }
  .sort select {
    width: 46px;
    padding: 0;
    color: transparent;
    background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23e7c56a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 4v16M3 16l4 4 4-4M17 20V4M13 8l4-4 4 4'/%3E%3C/svg%3E") center / 20px no-repeat;
    appearance: none;
    -webkit-appearance: none;
  }
  .sort select option { color: var(--ink); background: var(--panel); }
  .only-stock { padding: 0 10px; }
  .cart-sum { display: none; }
  .tool-row { flex-wrap: wrap; }
  .switch.brands {
    margin-left: 0;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tool-row:first-child { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tool-row:first-child::-webkit-scrollbar { display: none; }
  #refresh { display: none; }
  .ptable thead { display: none; }
  .ptable, .ptable tbody { display: block; }
  .ptable tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--row-line);
  }
  .ptable tbody tr:last-child { border-bottom: 0; }
  .ptable td { display: block; padding: 0; border: 0; }
  .ptable tbody tr.in-cart td:first-child { box-shadow: none; }
  .ptable tbody tr.in-cart { box-shadow: inset 3px 0 0 var(--gold); }
  .c-name { order: 1; flex: 1 0 100%; min-width: 0; }
  .c-net { order: 2; flex: 1 1 auto; text-align: left; }
  .c-qty { order: 2; flex: 0 0 auto; width: auto; }
  .c-disc { order: 2; flex: 0 0 auto; }
  .c-stock, .c-list, .c-pvp, .c-margin {
    order: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--muted);
  }
  .c-margin { display: inline-flex; }
  .c-stock::before, .c-pvp::before, .c-margin::before { content: attr(data-label); margin-right: 4px; }
  .c-margin .m-pct { display: inline; font-size: var(--text-xs); }
  .c-margin .m-gs { display: none; }
  .net { font-size: 1.15rem; }
  .net-label { display: block; font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
  .stepper button { width: 44px; height: 44px; }
  .stepper input { height: 44px; width: 46px; font-size: 1rem; }
  .dock-cart:not([hidden]) { display: flex; }
  body.has-cart main { padding-bottom: 96px; }
  .mast { padding-top: var(--space-5); }
}

@media (max-width: 480px) {
  .brand-word small { display: none; }
  .cart-label { display: none; }
  .only-stock span { font-size: var(--text-xs); }
  .brand-word strong { font-size: 0.8rem; }
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
  .logo-word { font-size: 0.7rem; padding: 2px 7px; }
  .logo-ufesa { font-size: 0.78rem; }
  .brand-logos { margin-left: auto; overflow: visible; flex-shrink: 0; gap: 4px; }
  .brand-lock { flex-shrink: 1; gap: 8px; }
  .brand-word { min-width: 0; }
  .brand-word strong { white-space: nowrap; overflow: hidden; text-overflow: clip; }
  .top-inner { padding: 8px var(--space-3); gap: var(--space-2); }
  .toolbar { padding-left: var(--space-3); padding-right: var(--space-3); }
  main { padding-left: var(--space-3); padding-right: var(--space-3); }
  .switch button { padding: 0 11px; }
  .sec-meta { font-size: var(--text-xs); }
}

@media (prefers-reduced-motion: reduce) {
  .cart-btn.marked::after { animation: none; opacity: 0; }
  .stepper.tick input, .arrive, .dock-cart { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 380px) {
  .brand-word { display: none; }
}

/* ===================== Delight layer ===================== */

/* Masthead: calm stage (no drifting grid / shimmer) */
.mast { position: relative; isolation: isolate; }
.mast::before {
  content: "";
  position: absolute;
  inset: -24px -12vw 20%;
  z-index: -1;
  background: radial-gradient(55% 70% at 22% 18%, rgba(231, 197, 106, 0.05), transparent 72%);
  pointer-events: none;
}
.mast-stats div {
  padding: 10px 16px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--row-line);
  background: rgba(255, 255, 255, 0.02);
}

/* Section reveal */
body.can-reveal #tables .psec .sec-head,
body.can-reveal #tables .brand-band { opacity: 0; transform: translateY(14px); }
body.can-reveal #tables .psec tbody tr { opacity: 0; transform: translateY(10px); }
body.can-reveal #tables .psec.in .sec-head,
body.can-reveal #tables .brand-band.in,
#tables .psec.in .sec-head,
#tables .brand-band.in {
  opacity: 1;
  transform: none;
  transition: opacity 480ms var(--ease), transform 480ms var(--ease);
}
body.can-reveal #tables .psec.in tbody tr,
#tables .psec.in tbody tr {
  opacity: 1;
  transform: none;
  transition: opacity 420ms var(--ease), transform 420ms var(--ease), background 140ms var(--ease);
  transition-delay: calc(var(--i, 0) * 35ms), calc(var(--i, 0) * 35ms), 0ms;
}
.brand-band .band-line { transform-origin: left; transform: scaleX(0); }
.brand-band.in .band-line { transform: scaleX(1); transition: transform 900ms var(--ease) 150ms; }
.sec-head h2 { position: relative; }
.psec .sec-title::after {
  content: "";
  display: block;
  height: 2px;
  width: 64px;
  margin-top: 6px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform-origin: left;
  transform: scaleX(0);
}
.psec.in .sec-title::after { transform: scaleX(1); transition: transform 700ms var(--ease) 120ms; }

/* Clickable rows */
.ptable tbody tr { cursor: pointer; position: relative; outline: none; }
.ptable tbody tr:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); }
.ptable tbody tr:hover .name-btn { color: var(--gold-soft); }
.ptable tbody tr:hover .net { color: #fff3c7; }
.ptable tbody tr:active { background: rgba(231, 197, 106, 0.08); }
.c-name .name-btn::after {
  content: "›";
  display: inline-block;
  margin-left: 6px;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}
.ptable tbody tr:hover .name-btn::after { opacity: 1; transform: none; }
.stepper button { transition: background 140ms var(--ease), transform 120ms var(--ease); }
.stepper button:active:not(:disabled) { transform: scale(0.86); }

/* Chips: active = solid gold (contrast over glow) */
.chips button[aria-current="true"] { box-shadow: none; }

/* Fly-to-cart + bump */
.fly-dot {
  position: fixed;
  z-index: 100;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.cart-btn.bump, .dock-cart.bump { animation: bump 420ms var(--ease); }
@keyframes bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Toast */
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(520px, calc(100% - 24px));
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.94);
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  font-size: var(--text-sm);
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity 220ms var(--ease), transform 260ms var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.toast strong { color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
  .toast { display: none; }
}

/* Product sheet: compact, balanced card */
#sheet { width: min(500px, calc(100% - 24px)); }
.sheet-card {
  padding: 0;
  overflow: hidden auto;
  background: var(--panel);
}
#sheet-body { padding: var(--space-5); display: grid; gap: var(--space-4); }
#sheet-body.slide-l { animation: slide-l 280ms var(--ease); }
#sheet-body.slide-r { animation: slide-r 280ms var(--ease); }
@keyframes slide-l { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes slide-r { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.sheet-head { display: flex; justify-content: space-between; align-items: start; gap: var(--space-3); }
.sheet-titles { min-width: 0; }
.sheet-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: var(--text-xs);
}
.sheet-card h2 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 6px 0 2px;
}
.sheet-code { margin: 0; color: var(--muted); font-size: var(--text-xs); font-family: ui-monospace, Menlo, monospace; }
.sheet-hero { margin: 0; aspect-ratio: 16 / 10; }
.sheet-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(231, 197, 106, 0.08);
  border: 1px solid var(--line-strong);
}
.price-main { display: grid; gap: 2px; }
.price-big {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gold-soft);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.price-was { color: #7b7368; font-size: var(--text-xs); }
.price-disc {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: #111;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: none;
}
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--row-line);
  min-width: 0;
}
.tile-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.tile-value { font-size: 0.92rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile-ok .tile-value { color: var(--ok); }
.tile-pill-low .tile-value { color: var(--warn); }
.tile-pill-out .tile-value { color: var(--red); }
.tile-pill-ok .tile-value { color: var(--ok); }
.sheet-gift {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  color: var(--gold-soft);
  font-size: var(--text-sm);
}
.sheet-gift::before { content: "🎁 "; }
#sheet-body .meta { margin: 0; }
.sheet-actions { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.sheet-line { margin: 0; color: var(--ink-soft); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.sheet-links { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: -8px; }
.sheet-links .text-btn { padding-left: 0; color: var(--gold); font-weight: 700; }
.sheet-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin: 0 calc(-1 * var(--space-5)) calc(-1 * var(--space-5));
  padding: 10px var(--space-4);
  border-top: 1px solid var(--row-line);
  background: rgba(0, 0, 0, 0.25);
}
.nav-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--row-line);
  background: none;
  color: var(--ink);
  font-weight: 700;
  font-size: var(--text-sm);
}
.nav-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.nav-pos { color: var(--muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  #sheet-body { padding: var(--space-4); }
  .sheet-nav { margin: 0 calc(-1 * var(--space-4)) calc(-1 * var(--space-4)); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .tile { padding: 8px 10px; }
  .tile-value { font-size: 0.8rem; }
  .price-big { font-size: 1.45rem; }
}
@media (max-width: 820px) {
  #sheet[open] { margin-bottom: 0; width: 100%; max-width: 100%; }
  #sheet .sheet-card { border-radius: 20px 20px 0 0; max-height: 90vh; }
  #sheet .sheet-card.arrive { animation: sheet-up 340ms var(--ease); }
}
@keyframes sheet-up { from { transform: translateY(60%); opacity: 0.4; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  body.can-reveal #tables .psec .sec-head,
  body.can-reveal #tables .brand-band,
  body.can-reveal #tables .psec tbody tr { opacity: 1; transform: none; }
  #sheet-body.slide-l, #sheet-body.slide-r, #sheet .sheet-card.arrive { animation: none; }
  .toast { transition: none; }
}


/* ===================== Calm layout: 5 clear columns ===================== */
.mob-brand { display: inline !important; font-weight: 700; color: var(--ink-soft); }
.c-net .was {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 0.72rem;
}
.c-net .was s { color: #6f675c; }
.c-net .disc { padding: 1px 6px; font-size: 0.68rem; border-radius: 5px; }
@media (min-width: 821px) {
  .ptable td { padding-top: 12px; padding-bottom: 12px; }
}
.c-pvp { color: var(--muted); }
.c-stock .pill { font-weight: 600; }
.sec-meta span { padding: 0; border: 0; background: none; }
.sec-meta span + span::before { content: "·"; margin-right: 6px; color: var(--muted); }
.sec-meta .hot { color: var(--gold-soft); }
.mast::before { opacity: 1; }
@media (max-width: 820px) {
  .c-net .was { justify-content: flex-start; }
  .c-net .net-label { display: none; }
}
