/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Tema claro MUGRE — inspirado en ironscaferacer.com: fondo crudo/crema,
     tinta casi negra, acento latón/bronce cálido. */
  --bg:        #F1EEE6;
  --bg-2:      #E9E2D3;
  --card-bg:   #FFFFFF;
  --ink:       #17140F;
  --ink-dim:   #4A4438;
  --ink-mute:  #7A7468;
  --accent:    #97723A;
  --accent-2:  #AC8A4E;
  --olive:     #5B6254;
  --cream:     #E5DFD2;
  --line:      rgba(23,20,15,0.12);
  --line-strong: rgba(23,20,15,0.22);

  /* "Chrome oscuro" — reservado para el nav persistente y los momentos
     fotográficos de máxima atmósfera (Hero, Comunidad), que se mantienen
     en negro carbón con tinta clara aunque el resto de la web sea clara. */
  --dark-bg:          #111111;
  --dark-bg-2:        #171716;
  --dark-ink:         #F1EEE6;
  --dark-ink-dim:     #B8B2A4;
  --dark-ink-mute:    #77736B;
  --dark-line:        rgba(241,238,230,0.13);
  --dark-line-strong: rgba(241,238,230,0.26);

  --display: "Anton", "Arial Narrow", sans-serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", "IBM Plex Mono", monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --container: 1200px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 {
  text-wrap: balance;
  line-height: 0.98;
  letter-spacing: 0.01em;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
}
::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 4px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Grain overlay — full page */
.grain {
  position: fixed; inset: 0; z-index: 500;
  pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}
/* The shop section spans much more of a big screen than the 1200px reading column
   (which left the 4-up grid boxed in the middle with ~400px of empty page each side
   at 1920px). Same side padding rhythm, just a wider cap. */
.container-wide {
  max-width: 1840px;
  padding-inline: clamp(1.25rem, 3.2vw, 3.75rem);
}
.accent { color: var(--accent); }
.dot { color: var(--accent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  color: var(--ink-mute);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 14px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* =============================================================
   4. Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark-bg);
  color: var(--dark-ink);
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(17,17,17, 0.97);
  border-color: var(--dark-line);
}
.nav-inner {
  /* Overrides .container's max-width — the bar itself should reach the
     true edges of the screen, not just the site's normal reading-width
     column, so the tabs sit at the real left edge and MUGRE centers on
     the full viewport, not on a narrower centered block. */
  max-width: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.15rem;
}
.nav-logo {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav-links {
  display: none;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}
.nav-links a { position: relative; padding: 0.3rem 0; transition: color .25s var(--ease-out); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-item-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font: inherit; color: inherit;
  position: relative; padding: 0.3rem 0;
  transition: color .25s var(--ease-out);
}
.nav-dropdown-trigger::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-dropdown-trigger:hover::after,
.nav-dropdown-trigger[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav-dropdown-caret { width: 9px; height: 9px; flex-shrink: 0; transition: transform .25s var(--ease-out); }
.nav-dropdown-trigger[aria-expanded="true"] .nav-dropdown-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 1.1rem); left: 50%;
  transform: translateX(-50%);
  min-width: 10rem; padding: 0.4rem;
  display: flex; flex-direction: column;
  background: var(--dark-bg-2);
  border: 1px solid var(--dark-line-strong);
  border-radius: 10px;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.55);
}
.nav-dropdown-menu[hidden] { display: none; }
.nav-dropdown-menu a {
  padding: 0.6rem 0.8rem; border-radius: 6px;
  font-size: 0.85rem; color: var(--dark-ink-dim);
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.nav-dropdown-menu a:hover { background: rgba(241,238,230,0.07); color: var(--dark-ink); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.cart-toggle {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; color: var(--dark-ink);
}
.cart-icon { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: 1px; right: 0;
  min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 999px;
  background: var(--accent); color: var(--bg);
  font-family: var(--mono); font-size: 0.6rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.cart-count[hidden] { display: none; }
.cart-toggle.is-bumped .cart-icon { animation: cartBump .45s var(--ease-soft); }
@keyframes cartBump {
  0%   { transform: scale(1) rotate(0deg); }
  30%  { transform: scale(1.25) rotate(-8deg); }
  60%  { transform: scale(0.95) rotate(6deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.nav-toggle {
  display: grid; gap: 5px; width: 28px; padding: 0.5rem 0;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--dark-ink); transition: transform .3s var(--ease-out), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 95;
  background: var(--dark-bg);
  color: var(--dark-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile::before {
  content: "MUGRE";
  position: absolute; top: 1.7rem; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.4em; color: var(--dark-ink-mute);
}
.nav-mobile a {
  font-family: var(--display);
  font-size: 2rem;
  text-transform: uppercase;
  transition: color .2s var(--ease-out);
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile-cta {
  margin-top: 0.75rem;
  font-family: var(--sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600;
  color: var(--accent) !important;
  letter-spacing: 0.02em;
  border: 1px solid var(--accent);
  padding: 0.85rem 1.6rem;
  text-transform: none !important;
}

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.9rem;
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft), background .3s, color .3s;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 20px 40px -10px rgba(151,114,58,0.45); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-lg { padding: 1.15rem 2.4rem; font-size: 0.95rem; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .35s var(--ease-out);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
}
/* The collection filter (main.js) hides non-matching cards by setting
   the `hidden` attribute — but `display:flex` above outranks the
   browser's built-in `[hidden]{display:none}` UA rule, so without this
   the cards were toggled "hidden" yet stayed visible in the grid. */
.card[hidden] { display: none; }
.card-swatch {
  position: relative;
  aspect-ratio: 4 / 5;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-2);
}
/* Rider (the 220g premium tier) gets a thin gold frame on its photo —
   an at-a-glance premium cue, always on, not tied to hover — inset so
   it never affects layout/sizing. */
.card.is-rider .card-swatch { box-shadow: inset 0 0 0 1px var(--accent); }
.card-swatch img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .8s var(--ease-soft), opacity .5s var(--ease-out);
}
/* The "elevation" lives entirely in the photo itself growing inside its
   frame — no separate box lifting/casting a shadow, which read as a
   panel floating rather than the product photo coming forward. */
.card:hover .card-swatch img { transform: scale(1.08); }
/* The photo is a link to the product page: it fills the swatch, the badge and
   the flip button sit above it. */
.card-media { position: absolute; inset: 0; display: block; }
.card-badge { pointer-events: none; }
.card-img-alt { opacity: 0; }
.card:hover .card-img-alt,
.card-swatch.is-flipped .card-img-alt { opacity: 1; }
.card-badge {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--bg); background: var(--accent);
  padding: 0.35rem 0.65rem;
}
.card-flip {
  position: absolute; bottom: 0.8rem; right: 0.8rem; z-index: 2;
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(241,238,230,0.85); color: var(--ink);
  opacity: 0; transform: scale(0.85);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), background .2s var(--ease-out), color .2s var(--ease-out);
}
.card-flip svg { width: 1.05rem; height: 1.05rem; }
.card:hover .card-flip,
.card-swatch.is-flipped .card-flip { opacity: 1; transform: scale(1); }
.card-swatch.is-flipped .card-flip { background: var(--accent); color: var(--ink); }
@media (hover: none) {
  /* No hover on touch — show the hint so the flip is discoverable at all. */
  .card-flip { opacity: 1; transform: scale(1); background: rgba(241,238,230,0.92); }
}
.card-swatch::after {
  content: ""; position: absolute; inset: 0; opacity: 0.1; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 0.75rem 0 0; }
.card-heading {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem;
  margin-bottom: 0.9rem;
}
.card-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; min-height: 2.6rem; }
/* On narrow 2-column phones a long name ("BOTELLA MUGRE RACING") wraps onto two
   lines; reserving both keeps price, sizes and CTA level across the whole row. */
@media (max-width: 440px) {
  .card-name-row { min-height: 3rem; }
}
.card-heading h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: 0.01em; line-height: 1.3; }
.card-heading h3 a { transition: color .2s var(--ease-out); }
.card-heading h3 a:hover { color: var(--accent); }
.card-fit-chip {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.2em 0.55em; border-radius: 2px; border: 1px solid currentColor;
  flex-shrink: 0;
}
.card-fit-lite { color: var(--ink-mute); }
.card-fit-rider { color: var(--accent); }
.card-price { font-family: var(--mono); color: var(--ink); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; }
.card-order { font-family: var(--sans); font-size: 0.76rem; color: var(--ink-mute); }
.card-sizes { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0.4rem; min-height: 4.8rem; margin-bottom: 0.8rem; }
/* From tablet width up the six sizes fit on one row, so reserve just that — and spread
   them evenly across the card so the row lines up with the photo and the button. */
@media (min-width: 900px) {
  .card-sizes { min-height: 2.2rem; flex-wrap: nowrap; }
  .card-sizes .size-btn { flex: 1 1 0; min-width: 0; padding: 0; }
  .card-sizes .size-btn:only-child { flex: 0 0 auto; min-width: 4.5rem; padding: 0 1rem; }   /* "Única" */
}
/* Shown when "Añadir al carrito" is pressed with no size chosen. */
.is-nudge { animation: sizeNudge .5s var(--ease-soft); }
.is-nudge .size-btn:not(.is-selected) { border-color: var(--accent); color: var(--ink); }
@keyframes sizeNudge {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.size-btn {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  min-width: 2.2rem; height: 2.2rem;
  border: 1px solid var(--line); padding: 0 0.4rem;
  color: var(--ink-dim); background: transparent;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out), color .2s var(--ease-out), transform .2s var(--ease-out);
}
.size-btn:hover { border-color: var(--line-strong); color: var(--ink); transform: translateY(-1px); }
.size-btn.is-selected { background: var(--accent); border-color: var(--accent); color: var(--bg); }
/* − 1 + quantity selector: what stands in for the size picker on products sold by the unit
   (stickers). Same border, height and mono type as the size buttons. On a card it spans the
   card's width, like the size row it replaces. */
.qty { display: inline-flex; align-items: stretch; height: 2.2rem; border: 1px solid var(--line); }
.qty-btn {
  width: 2.8rem; display: grid; place-items: center; padding: 0 0 0.12rem;
  font-family: var(--mono); font-size: 1.05rem; line-height: 1; color: var(--ink-dim); background: transparent;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.qty-btn:hover { background: var(--ink); color: var(--bg); }
.qty-val {
  min-width: 3rem; display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600; color: var(--ink);
  border-inline: 1px solid var(--line);
}
.card-qty .qty { flex: 1 1 auto; }
.card-qty .qty-val { flex: 1 1 auto; }

.section-sub-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.size-guide-link, .faq-inline-link {
  font-family: var(--sans); font-weight: 600; font-size: 0.85rem;
  color: var(--ink); border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.15rem; flex-shrink: 0;
  transition: border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.size-guide-link:hover, .faq-inline-link:hover { color: var(--accent); border-color: var(--accent); }
.faq-inline-link { font-size: inherit; font-weight: 600; display: inline; }
.card-cta { display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem; margin-top: auto; }
/* Full-width "AÑADIR AL CARRITO": always visible and always live (pressing it
   without a size picks nothing and nudges the size row instead). */
.btn-add {
  width: 100%;
  font-family: var(--sans); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  padding: 0.8rem 0.75rem; border-radius: 2px;
  background: var(--accent); border: 1px solid var(--accent); color: var(--ink);
  transition: background .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out), opacity .2s;
}
@media (max-width: 380px) { .btn-add { font-size: 0.66rem; letter-spacing: 0.05em; } }
.btn-add:hover { background: var(--ink); border-color: var(--accent); color: var(--accent); }
.btn-add.is-added { background: var(--accent); border-color: var(--accent); color: var(--bg); }
/* Big screens: the shop grid now spans the page (.container-wide), so cards are wider —
   scale their text and controls up a little to keep the proportion with the photo. */
@media (min-width: 1500px) {
  .card-heading h3 { font-size: 1.35rem; }
  .card-price { font-size: 1.05rem; }
  .card-fit-chip { font-size: 0.68rem; }
  .card-badge { font-size: 0.72rem; padding: 0.4rem 0.75rem; }
  .size-btn { min-width: 2.6rem; height: 2.6rem; font-size: 0.8rem; }
  .qty { height: 2.6rem; }
  .qty-val { font-size: 0.86rem; }
  .card-sizes { gap: 0.5rem; min-height: 2.6rem; }
  .btn-add { font-size: 0.78rem; padding: 1rem 0.75rem; }
}

/* =============================================================
   6. Sections
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(6.25rem, 19vh, 10rem);
  padding-bottom: clamp(3rem, 8vw, 4rem);
  overflow: clip;
}
@media (min-width: 960px) {
  .hero { padding-top: clamp(6rem, 13vh, 8.5rem); }
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
}
.hero-bg picture { display: block; width: 100%; height: 100%; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transform: scale(1.06);
  animation: heroKenBurns 22s var(--ease-out) forwards;
}
@media (min-width: 960px) {
  .hero-bg img { object-position: center 48%; }
}
@keyframes heroKenBurns {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(17,17,17,0.4) 0%, rgba(17,17,17,0.1) 30%, rgba(17,17,17,0.2) 65%, rgba(17,17,17,0.55) 100%),
    /* Now that the blurred forest margin is lighter/more detailed (real
       trees, not a near-black fade), this needs to work harder to keep
       the headline readable — dark and solid through the whole text
       column, then clears by ~60% so the rider's side stays untouched. */
    linear-gradient(90deg, rgba(17,17,17,0.85) 0%, rgba(17,17,17,0.72) 28%, rgba(17,17,17,0.3) 46%, rgba(17,17,17,0.02) 62%);
}
.hero-grid {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% -40% -10%;
  z-index: -1;
  background: radial-gradient(45% 40% at 60% 20%, rgba(151,114,58,0.28), transparent 70%),
              radial-gradient(35% 30% at 15% 85%, rgba(151,114,58,0.16), transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero-lines {
  position: absolute; inset: 0; color: var(--line-strong);
  pointer-events: none;
}
.hero-lines svg { width: 100%; height: 100%; opacity: 0.5; }
.hero-lines-2 { color: var(--line); }
.hero-inner { position: relative; max-width: 46rem; }
@media (min-width: 960px) {
  .hero-inner {
    max-width: 32rem;
    margin-inline: 0;
    padding-inline: clamp(2rem, 6vw, 5.5rem) 0;
  }
}
.hero .eyebrow { color: var(--dark-ink-mute); }
.hero-title {
  position: relative;
  isolation: isolate;
  color: var(--dark-ink);
  font-size: clamp(2.35rem, 9vw, 6rem);
  display: flex;
  flex-direction: column;
  gap: 0.02em;
  margin-bottom: 1.1rem;
  text-shadow: 0 4px 28px rgba(0,0,0,0.55);
}
.hero-title::before {
  content: "";
  position: absolute; inset: -1.25rem -2rem;
  z-index: -1;
  background: radial-gradient(60% 65% at 32% 50%, rgba(255,255,255,0.4), transparent 72%);
  filter: blur(12px);
  pointer-events: none;
}
.hero-cta {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.hero-cta-link {
  font-family: var(--sans); font-weight: 600; font-size: 0.9rem;
  color: var(--dark-ink-dim);
  border-bottom: 1px solid var(--dark-line-strong);
  padding-bottom: 0.3rem;
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.hero-cta-link:hover { color: var(--dark-ink); border-color: var(--dark-ink); }
.hero-scroll {
  position: relative;
  margin-top: auto;
  padding-top: clamp(3rem, 8vw, 5rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-ink-mute);
}
.hero-scroll span {
  display: block; width: 1px; height: 28px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.marquee { overflow: hidden; position: relative; border-block: 1px solid var(--line); background: var(--bg-2); }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--bg-2), transparent); }
.marquee-track {
  display: inline-flex; white-space: nowrap; will-change: transform;
  padding-block: 0.9rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.section { padding-block: clamp(5rem, 10vw, 8.5rem); position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(2rem, 5vw, 3rem); }
.section-sub { color: var(--ink-dim); max-width: 42ch; margin-top: 0.85rem; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.collection-filters {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 clamp(2rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}
.filter-tab {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-bottom: 0.85rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.filter-tab:hover { color: var(--ink); }
.filter-tab.is-active { color: var(--ink); border-color: var(--accent); }
.collection-toggle {
  display: block;
  margin: 3rem auto 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  padding: 0.75rem 1.75rem;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.collection-toggle:hover { background: var(--accent); color: var(--ink); }
.collection-toggle[hidden] { display: none; }

.blueprint-inner { text-align: center; margin-top: clamp(3.5rem, 9vw, 6.5rem); }
.blueprint-title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  max-width: 22ch;
  margin-inline: auto;
}
.blueprint-figure {
  position: relative;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  max-width: 1120px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.7s var(--ease-soft);
}
.blueprint-figure.is-revealed { clip-path: inset(0 0 0 0); }
.blueprint-figure img { width: 100%; display: block; }
.blueprint-wipe {
  position: absolute; top: 0; bottom: 0; left: 0; width: 3px;
  background: linear-gradient(var(--accent), transparent);
  box-shadow: 0 0 24px 3px var(--accent);
  opacity: 0;
}
.blueprint-figure.is-revealed .blueprint-wipe {
  animation: blueprintWipe 1.7s var(--ease-soft) forwards;
}
@keyframes blueprintWipe {
  0%   { left: 0%;   opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
/* Corner brackets — reinforce the "technical instrument" read of the plane */
.blueprint-frame-corner {
  position: absolute; width: 22px; height: 22px; pointer-events: none; z-index: 2;
  border: 2px solid var(--accent);
  opacity: 0;
  transition: opacity .5s var(--ease-out) 1.1s;
}
.blueprint-figure.is-revealed .blueprint-frame-corner { opacity: .85; }
.blueprint-frame-corner-tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.blueprint-frame-corner-br { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.manifesto-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 420px;
}
.manifesto-figure { border-radius: 16px; overflow: hidden; }
.manifesto-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.manifesto-figure-a { aspect-ratio: 3 / 4.4; align-self: start; }
.manifesto-figure-b { aspect-ratio: 3 / 4.4; align-self: end; margin-top: 2.25rem; }
.manifesto-num {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--line-strong);
  line-height: 0.8;
}
.manifesto-title { font-size: clamp(2.1rem, 6.5vw, 3.6rem); margin-bottom: 1.75rem; }
.manifesto-line {
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* Shop grid: 2 columns on phones, 3 on tablets / small laptops, 4 on desktop.
   The collapsed "Todo" view (main.js) folds everything after two full rows via
   .is-folded, so there is never an orphan card whatever the column count. */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
  margin-top: 2.75rem;
}
@media (min-width: 600px) {
  .grid { gap: 2.25rem 1.25rem; }
}
@media (min-width: 900px) {
  /* more air between products than on a phone: the gap grows with the screen */
  .grid { grid-template-columns: repeat(3, 1fr); gap: 3rem clamp(1.5rem, 2.6vw, 3rem); }
}
@media (min-width: 1180px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
.grid[data-collapsed="true"][data-filter="all"] .card.is-folded { display: none; }

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

/* Cards are all the same size now (Deus Ex Machina–style uniform grid) —
   "001" no longer spans extra columns or gets a bigger swatch/heading. */

.comunidad { text-align: center; overflow: clip; position: relative; }
.comunidad-bg { position: absolute; inset: 0; z-index: 0; }
.comunidad-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 65%;
  filter: grayscale(1) contrast(1.05) brightness(0.5);
}
.comunidad-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--dark-bg-2) 0%, rgba(19,19,20,0.55) 25%, rgba(19,19,20,0.55) 75%, var(--dark-bg-2) 100%);
}
.comunidad-inner { position: relative; z-index: 1; }
.comunidad .eyebrow { color: var(--dark-ink-mute); }
.comunidad-quote {
  color: var(--dark-ink);
  font-family: var(--display);
  font-size: clamp(1.6rem, 5vw, 2.75rem);
  text-transform: none;
  max-width: 26ch;
  margin-inline: auto;
  line-height: 1.15;
  text-shadow: 0 4px 24px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.8);
}
.comunidad-sub {
  margin-top: 1rem;
  color: var(--dark-ink-dim);
  max-width: 32ch;
  margin-inline: auto;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin: 2.5rem 0 0;
}
@media (min-width: 640px) {
  /* Editorial mix instead of a flat uniform grid — a wide photo up
     front, a true-square one for the sticker sign so it doesn't get
     cropped into a portrait it was never shot as, the rest upright. */
  .community-grid { grid-template-columns: repeat(3, 1fr); }
  .community-cell-wide { grid-column: span 2; }
}
.community-cell {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--dark-bg-2);
}
.community-cell-wide { aspect-ratio: 16 / 10; }
.community-cell-square { aspect-ratio: 1 / 1; }
.community-cell-media { position: absolute; inset: 0; overflow: hidden; }
.community-cell-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-soft);
}
.community-cell:hover .community-cell-media img { transform: scale(1.05); }

/* Real-product tag on a lifestyle photo — same "dot + label" language as
   the blueprint callouts, pointing at an actual item in the shop. */
.photo-tag {
  position: absolute;
  left: var(--x); top: var(--y);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0;
  transition: opacity .6s var(--ease-out) .5s;
}
.community-grid.is-visible .photo-tag,
.blueprint-figure.is-revealed .photo-tag { opacity: 1; }
.photo-tag-on-blueprint { transition-delay: 1.3s; }
.photo-tag::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 5px rgba(172,138,78,0.3), 0 1px 6px rgba(0,0,0,.5);
  animation: photoTagPulse 2.4s ease-in-out infinite;
}
@keyframes photoTagPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(172,138,78,0.3), 0 1px 6px rgba(0,0,0,.5); }
  50% { box-shadow: 0 0 0 8px rgba(172,138,78,0.12), 0 1px 6px rgba(0,0,0,.5); }
}
.photo-tag em {
  margin-top: 0.5rem;
  font-style: normal; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.04em; text-transform: uppercase; color: #F1EEE6;
  background: rgba(17,17,17,0.78); border: 1px solid rgba(172,138,78,0.55);
  padding: 0.4em 0.6em;
  max-width: 8rem; text-align: center; white-space: normal; line-height: 1.35;
  display: block;
}
.photo-tag em span { display: block; color: var(--accent-2); font-weight: 600; margin-top: 0.15em; }
.photo-tag:hover em, .photo-tag:focus-visible em { border-color: var(--accent-2); }

.instagram-link {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.2rem;
  transition: border-color .25s var(--ease-out), color .25s var(--ease-out);
}
.instagram-link:hover { color: var(--accent); border-color: var(--accent); }
.comunidad-inner .instagram-link {
  display: inline-block;
  color: var(--dark-ink); border-color: var(--dark-line-strong);
}
.social-links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 1.5rem; margin-top: 5.5rem;
}

/* ---------- Colaboradores ---------- */
/* Slim, dark trust-signal band — same dark palette as the Hero/Comunidad,
   deliberately not a full section since it only carries one logo for now.
   .collab-wordmark is a plain type lockup standing in for the real
   Scriders logo until we have the actual file to place here instead. */
.colaboradores { padding-block: clamp(3.5rem, 7vw, 5rem); background: var(--dark-bg); text-align: center; }
.colaboradores .eyebrow { color: var(--dark-ink-mute); }
.collab-logo { margin-top: 1.5rem; }
.collab-logo img { width: clamp(220px, 30vw, 340px); height: auto; margin-inline: auto; }

/* ---------- Editorial / lifestyle grid ---------- */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-top: 2.75rem;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  max-width: var(--container);
  margin-inline: auto;
}
.editorial-cell {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-2);
}
.editorial-cell img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-soft);
}
.editorial-cell:hover img { transform: scale(1.045); }
@media (min-width: 720px) {
  .editorial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .editorial-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 24rem 18rem;
  }
  .editorial-cell { aspect-ratio: auto; height: 100%; }
  .editorial-cell-tall { grid-column: 1; grid-row: 1 / span 2; }
  .editorial-cell-wide { grid-column: 2 / -1; grid-row: 2; }
}

.faq-list { max-width: 46rem; margin-top: 2.5rem; }
.faq-item {
  border-top: 1px solid var(--line);
  padding-block: 1.25rem;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--sans); font-weight: 400; font-size: 1.4rem;
  color: var(--accent); flex-shrink: 0;
  transition: transform .3s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--ink-dim); font-size: 0.92rem; line-height: 1.65;
  margin-top: 0.9rem; max-width: 56ch;
}
.faq { padding-block: clamp(3rem, 6vw, 4.5rem); }
.faq .section-title { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }

.pedido-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pedido-statement {
  font-size: clamp(1.8rem, 5vw, 3rem);
  max-width: 20ch;
}
.pedido-meta {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.footer { padding-top: clamp(3rem, 7vw, 4.5rem); border-top: 1px solid var(--line); }
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding-bottom: 2.5rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a, .footer-static {
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.footer-col a { transition: color .25s var(--ease-out); width: fit-content; }
.footer-col a:hover { color: var(--ink); }
.footer-heading {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.35rem;
}
.footer-brand { font-family: var(--display); font-size: 1.5rem; color: var(--ink); text-transform: uppercase; }
.footer-tagline { margin-top: 0.75rem; color: var(--ink-dim); font-size: 0.9rem; line-height: 1.6; font-weight: 600; }
.footer-motto {
  margin-top: 1rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-mute); line-height: 1.7;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.footer-legal-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.footer-legal-links a, .footer-legal-links button {
  font: inherit; color: inherit; letter-spacing: inherit;
  text-decoration: underline; text-underline-offset: 2px;
  background: none; border: none; padding: 0; cursor: pointer;
}
.footer-legal-links a:hover, .footer-legal-links button:hover { color: var(--ink); }

/* =============================================================
   6.35 Cookie consent banner
   ============================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0; z-index: 260;
  background: var(--dark-bg);
  color: var(--dark-ink);
  border-top: 1px solid var(--dark-line-strong);
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  transform: translateY(100%);
  transition: transform .5s var(--ease-out);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1 1 26rem; font-size: 0.85rem; line-height: 1.6; color: var(--dark-ink-dim); }
.cookie-banner-text a { color: var(--dark-ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 0.85rem; flex-shrink: 0; }
.cookie-banner .btn-ghost { border-color: var(--dark-line-strong); color: var(--dark-ink); }
.cookie-banner .btn-ghost:hover { background: var(--dark-ink); color: var(--dark-bg); border-color: var(--dark-ink); }

/* =============================================================
   6.4 Generic modal (size guide)
   ============================================================= */
.modal-scrim {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(6,6,7,0.66);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.modal-scrim.is-open { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed; top: 50%; left: 50%; z-index: 211;
  width: min(420px, calc(100vw - 2.5rem));
  max-height: min(640px, 86vh);
  overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line-strong);
  padding: 2rem 1.75rem;
  opacity: 0; pointer-events: none;
  transform: translate(-50%, -48%) scale(0.97);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-soft);
}
.modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 30px; height: 30px; display: grid; place-items: center;
  color: var(--ink-dim); transition: color .2s var(--ease-out);
}
.modal-close:hover { color: var(--accent); }
.modal-title { font-size: 1.6rem; margin: 0.4rem 0 1rem; }
.modal-text { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.6; margin-bottom: 0.9rem; }
.modal-text strong { color: var(--ink); font-weight: 600; }
.modal-text-muted { font-size: 0.85rem; color: var(--ink-mute); }
.modal .btn { margin-top: 0.5rem; }
.size-table-wrap { margin-bottom: 1.1rem; }
.size-table-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.size-table-scroll { overflow-x: auto; }
.size-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.82rem;
}
.size-table th, .size-table td {
  padding: 0.45rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.size-table th {
  color: var(--ink-mute);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.size-table td:first-child, .size-table th:first-child { color: var(--ink); font-weight: 600; }
.size-table tbody tr:last-child td { border-bottom: none; }

/* =============================================================
   6.5 Cart drawer
   ============================================================= */
.cart-scrim {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,6,7,0.66);
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease-out);
}
.cart-scrim.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(430px, 100vw);
  z-index: 201;
  background: var(--bg-2);
  border-left: 1px solid var(--line-strong);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .5s var(--ease-soft);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-head {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.cart-title { font-family: var(--display); font-size: 1.15rem; text-transform: uppercase; flex: 1; }
.cart-back, .cart-close {
  width: 30px; height: 30px; display: grid; place-items: center;
  color: var(--ink-dim); font-size: 1rem; flex-shrink: 0;
  transition: color .2s var(--ease-out);
}
.cart-back[hidden] { display: none; }
.cart-back:hover, .cart-close:hover { color: var(--accent); }

.cart-view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cart-view[hidden] { display: none; }

.cart-items { flex: 1; overflow-y: auto; padding: 0.25rem 1.5rem; }
.cart-empty { color: var(--ink-mute); font-size: 0.88rem; line-height: 1.6; padding-block: 2.5rem; text-align: center; }

.cart-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 0.9rem;
  align-items: center;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 56px; height: 70px; object-fit: cover; }
.cart-item-name { font-family: var(--display); font-size: 0.92rem; text-transform: uppercase; }
.cart-item-meta { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-mute); margin-top: 0.25rem; }
.cart-item-price { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); margin-top: 0.3rem; }
.cart-item-remove { color: var(--ink-mute); font-size: 0.95rem; padding: 0.4rem; flex-shrink: 0; }
.cart-item-remove:hover { color: var(--accent); }

.cart-foot { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--line); flex-shrink: 0; }
.cart-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 0.9rem; margin-bottom: 1.1rem;
  color: var(--ink-dim);
}
.cart-total-row span:last-child { color: var(--accent); font-size: 1.05rem; }
.cart-note { margin-top: 0.9rem; font-size: 0.74rem; color: var(--ink-mute); line-height: 1.55; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

.cart-form { padding: 1.5rem; gap: 1rem; overflow-y: auto; }
.cart-form .field { display: flex; flex-direction: column; gap: 0.4rem; }
.cart-form .field span {
  font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-mute);
}
.cart-form input, .cart-form textarea {
  background: var(--card-bg); border: 1px solid var(--line-strong); color: var(--ink);
  padding: 0.8rem 0.95rem; font-family: var(--sans); font-size: 0.92rem;
  border-radius: 2px;
}
.cart-form input:focus, .cart-form textarea:focus { outline: none; border-color: var(--accent); }
.cart-form textarea { resize: vertical; }
.field-heading {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--line);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.cart-form-submit { margin-top: 0.5rem; }

/* "Casi listo": the order is shown ready to send (mail app / Gmail / Outlook / copy) — see main.js buildOrder. */
.cart-done {
  padding: 1.75rem 1.5rem 2rem; text-align: center; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1rem; align-items: stretch;
}
.cart-done-icon { font-size: 2rem; color: var(--accent); line-height: 1; }
.cart-done-title { font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.cart-done-sub { color: var(--ink-mute); font-size: 0.9rem; line-height: 1.6; }
.cart-done-sub strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.order-send { display: grid; gap: 0.6rem; }
.order-send .btn { text-align: center; }
.order-hint {
  text-align: left; font-size: 0.82rem; line-height: 1.55; color: var(--ink-dim);
  background: var(--bg-2); border-left: 3px solid var(--accent); padding: 0.75rem 0.9rem;
}
.order-details { text-align: left; }
.order-details summary {
  cursor: pointer; padding: 0.25rem 0;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute);
}
.order-details textarea {
  width: 100%; margin-top: 0.5rem; padding: 0.7rem 0.8rem; resize: vertical;
  font: 0.74rem/1.55 var(--mono); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line);
}
.order-back {
  align-self: center; padding: 0.4rem; color: var(--ink-mute);
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.order-back:hover { color: var(--accent); }

.cart-item-name a:hover { color: var(--accent); }

/* =============================================================
   6.6 Product page — producto/<slug>.html
   Gallery on the left (thumbnails + big 4:5 frame, same frame as the mockups
   so switching image never makes the page jump), buy box on the right.
   ============================================================= */
.pdp { padding-block: clamp(1.5rem, 3.5vw, 2.75rem) clamp(4rem, 8vw, 6.5rem); }
.pdp-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute);
}
.pdp-crumbs a { transition: color .2s var(--ease-out); }
.pdp-crumbs a:hover { color: var(--accent); }
.pdp-crumbs [aria-current] { color: var(--ink); }
.pdp-crumbs [aria-hidden] { color: var(--line-strong); }

.pdp-layout { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
@media (min-width: 900px) {
  .pdp-layout { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); }
  .pdp-info { position: sticky; top: 6rem; }
}

/* ----- gallery ----- */
.pdp-gallery { display: grid; gap: 0.75rem; min-width: 0; }
.pdp-stage {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--bg-2); touch-action: pan-y;
}
.pdp-slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease-out), visibility 0s linear .45s;
}
.pdp-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.pdp-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Small tag on the photos that are not the plain mockup */
.pdp-slide[data-label]::before {
  content: attr(data-label);
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--bg); background: rgba(23,20,15,0.78); padding: 0.35rem 0.65rem;
}
/* Photos of people come from other shoots (street, garage, studio…). A light warm
   grade + a cream multiply layer bring their colour temperature and highlights
   towards the beige mockups so switching between them doesn't jar. Close-ups
   (.is-detail) are left untouched. */
.pdp-slide.is-model img { filter: sepia(0.18) saturate(0.88) brightness(1.01); }
/* Black-and-white shoots get a clearer warm tone so they read as part of the cream palette. */
.pdp-slide.is-model.is-bw img { filter: sepia(0.42) saturate(0.95) contrast(0.98) brightness(1.03); }
.pdp-slide.is-model::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--bg-2); mix-blend-mode: multiply; opacity: 0.3;
}
.pdp-arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%;
  background: rgba(241,238,230,0.9); color: var(--ink); font-size: 1.5rem; line-height: 1; padding-bottom: 0.15rem;
  opacity: 0; transition: opacity .25s var(--ease-out), background .2s var(--ease-out), color .2s var(--ease-out);
}
.pdp-prev { left: 0.75rem; }
.pdp-next { right: 0.75rem; }
.pdp-stage:hover .pdp-arrow, .pdp-arrow:focus-visible { opacity: 1; }
.pdp-arrow:hover { background: var(--accent); color: var(--bg); }
@media (hover: none) { .pdp-arrow { opacity: 1; } }
.pdp-counter {
  position: absolute; bottom: 0.9rem; right: 0.9rem; z-index: 3;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  color: var(--dark-ink); background: rgba(23,20,15,0.72); padding: 0.3rem 0.6rem;
}
.pdp-thumbs {
  display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none;
}
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb {
  position: relative; flex: 0 0 auto; width: 4.4rem; aspect-ratio: 4 / 5; padding: 0; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line); opacity: 0.72;
  transition: opacity .2s var(--ease-out), border-color .2s var(--ease-out);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb:hover { opacity: 1; }
.pdp-thumb.is-active { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
@media (min-width: 900px) {
  .pdp-gallery { grid-template-columns: 4.6rem minmax(0, 1fr); gap: 0.9rem; }
  .pdp-thumbs { order: -1; flex-direction: column; overflow: visible; }
  .pdp-thumb { width: 100%; }
  /* A piece with a single photo has no thumbnail column: the photo takes the whole width
     (without this it fell into the narrow thumbnail column and rendered ~74px wide). */
  .pdp-stage:only-child { grid-column: 1 / -1; }
}

/* ----- buy box ----- */
.pdp-name { font-size: clamp(2.3rem, 5.2vw, 3.5rem); line-height: 0.95; margin-bottom: 0.9rem; }
.pdp-price-row { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.pdp-price { font-family: var(--mono); font-size: clamp(1.3rem, 2.4vw, 1.55rem); font-weight: 600; letter-spacing: 0.01em; }
.pdp-badge {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--bg); background: var(--accent); padding: 0.35rem 0.65rem;
}
.pdp-lead { color: var(--ink-dim); max-width: 46ch; margin-bottom: 1.75rem; }
.pdp-size-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute);
}
.pdp-sizes { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.25rem; }
.pdp-sizes .size-btn { min-width: 3.2rem; height: 3.2rem; font-size: 0.82rem; padding: 0 0.6rem; }
@media (max-width: 420px) {
  /* all six sizes on one row on a phone */
  .pdp-sizes { gap: 0.45rem; }
  .pdp-sizes .size-btn { min-width: 2.85rem; height: 3rem; padding: 0 0.3rem; }
}
/* Product sold by the unit (stickers): the quantity selector sits where the sizes would. */
.pdp-qty .qty { height: 3.2rem; }
.pdp-qty .qty-btn { width: 3.2rem; font-size: 1.2rem; }
.pdp-qty .qty-val { min-width: 3.8rem; font-size: 0.9rem; }
/* Plain spec rows (material, measures) under the description — stickers. */
.pdp-specs { margin: 0 0 1.75rem; max-width: 46ch; border-top: 1px solid var(--line); }
.pdp-specs > div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.pdp-specs dt { padding-top: 0.2rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.pdp-specs dd { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink); }
.pdp-add { width: 100%; padding: 1.2rem 1.5rem; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.pdp-add.is-added { background: var(--ink); color: var(--accent); }
.pdp-notes { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.5rem; font-size: 0.86rem; color: var(--ink-dim); }
.pdp-notes li { display: flex; gap: 0.65rem; align-items: flex-start; line-height: 1.5; }
.pdp-notes li::before { content: ""; width: 5px; height: 5px; margin-top: 0.62em; flex-shrink: 0; background: var(--accent); }
.pdp-accs { margin-top: 2.25rem; }
.pdp-acc ul { margin: 0.9rem 0 0; padding-left: 1.1rem; color: var(--ink-dim); font-size: 0.92rem; line-height: 1.65; max-width: 56ch; }
.pdp-acc li { margin-bottom: 0.4rem; }
.pdp-acc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* =============================================================
   7. Effects (reveal on scroll)
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
/* Compact the hero text block on phones/small tablets so it — plus the
   CTA row — clears the rider photo's headroom with margin to spare;
   the image itself now does most of the work (zoomed out, padded), this
   just trims a bit more slack so it's never a near thing. */
@media (max-width: 959px) {
  .hero-title { margin-bottom: 0.65rem; }
  .hero .eyebrow { margin-bottom: 0.65rem; }
  .hero-cta {
    flex-wrap: nowrap;
    margin-top: 0.9rem;
    gap: 0.9rem;
  }
  .hero-cta .btn {
    padding: 0.7rem 1.1rem;
    font-size: 0.78rem;
  }
  .hero-cta-link { font-size: 0.78rem; }
}
@media (min-width: 540px) {
  .hero-cta { flex-wrap: nowrap; }
}

@media (min-width: 720px) {
  .manifesto-grid { grid-template-columns: 140px 1fr; gap: 2.5rem; }
  .footer-top { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
  /* Logo centered and given real presence, independent of how wide the
     tabs or the cart icon are — it's taken out of the flex flow and
     pinned to the exact middle of the bar, so the tabs (now the only
     flex children) land at the true left/right edges via
     justify-content: space-between on .nav-inner, instead of stretching
     toward the logo. */
  .nav-logo {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.9rem;
  }
  .manifesto-grid {
    grid-template-columns: 140px 1fr 340px;
    grid-template-areas: "num body figure";
    align-items: start;
  }
  .manifesto-num { grid-area: num; }
  .manifesto-body { grid-area: body; }
  .manifesto-photos { grid-area: figure; max-width: none; }
}

@media (min-width: 1280px) {
  .manifesto-grid { grid-template-columns: 200px 1fr 340px; }
}

/* =============================================================
   9. Reduced-motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll span { animation: none; }
  .hero-bg img { animation: none; transform: none; }
  .grain { display: none; }
  .blueprint-figure { transition-duration: .01s; }
  .blueprint-figure.is-revealed .blueprint-wipe { display: none; }
}
