/* UEBOS — yeezy-radical · monospace · brutalist minimal */

:root {
  --bg: #f4f3ee;
  --bg-2: #ebeae3;
  --ink: #0a0a0a;
  --ink-2: #2a2a28;
  --muted: #6b6a64;
  --line: #cfcdc3;
  --line-2: #b8b6ac;
  --accent: oklch(0.55 0.18 25);
  --accent-ink: #f4f3ee;
  --black-bg: #0a0a0a;
  --black-ink: #e8e7e0;
  /* product swatches */
  --c-hueso: #ece7d8;
  --c-negro: #14140f;
  --c-azul: #1a2a3f;
  --c-marino: #0f1a2d;
  --c-arena: #c9b58e;
  --c-gris: #989389;
  --c-verde-militar: #4a4f31;
  --c-verde-oscuro: #2a3a2a;
  --c-guindo: #5a1a1f;
  --c-beige: #d6c6a3;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

html, body {
  /* el contenido nunca puede generar scroll horizontal */
  max-width: 100vw;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  /* permite scroll vertical + pinch-zoom, pero NO pan horizontal con el dedo */
  touch-action: pan-y pinch-zoom;
}

/* romper SOLO en lugares donde se necesita (URLs, códigos largos, etc.),
   no globalmente — si lo aplicamos a todo, los chips y headings se rompen
   letra por letra cuando su contenedor es chico */
.foot-col a, .field-help a, .pdp-cat, .csum-img + div { overflow-wrap: anywhere; }

/* todo respeta el ancho del viewport para que el zoom no descuadre nada */
img, video, iframe, table { max-width: 100%; }
.app { max-width: 100vw; overflow-x: clip; }

/* doble-tap zoom suele "descuadrar" la página: lo neutralizamos en elementos
   interactivos. el pinch-zoom intencional sigue funcionando porque sólo afecta
   gestos sobre el elemento específico, no la página entera. */
a, button, .chip, .swatch, .size-btn, .add-btn, .checkout-submit,
.cart-check-btn, .card, .color-cell { touch-action: manipulation; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  letter-spacing: inherit;
}

input, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  outline: 0;
}

img { display: block; max-width: 100%; }

/* ============ layout ============ */

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

.page-pad { padding: 0 22px; }

.h-line { border-top: 1px solid var(--line); }
.h-line-2 { border-top: 1px solid var(--ink); }

/* ============ header ============ */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--ink);
}

.hdr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  gap: 24px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.hdr-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
}

.hdr-brand .egg {
  font-size: 13px;
  display: inline-block;
  transform: translateY(1px);
  filter: grayscale(1) contrast(1.2);
}

.hdr-brand .meta {
  font-weight: 400;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hdr-nav {
  display: flex;
  gap: 22px;
  text-transform: lowercase;
}

.hdr-nav .active {
  border-bottom: 1px solid var(--ink);
}

.hdr-right {
  display: flex;
  gap: 16px;
  align-items: center;
  text-transform: lowercase;
}

.hdr-cart-count {
  display: inline-block;
  min-width: 18px;
  padding: 0 4px;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  font-size: 10px;
  line-height: 16px;
  margin-left: 4px;
}

.hdr-ticker {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 22px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  color: var(--ink-2);
  background: var(--bg);
}

.hdr-ticker span { white-space: nowrap; }

/* ============ home ============ */

.hero {
  position: relative;
  border-bottom: 1px solid var(--ink);
  background: var(--bg);
  padding: 26px 22px 18px;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 26px;
}

.hero-meta > :last-child { text-align: right; }
.hero-meta > :nth-child(2) { text-align: center; }

.hero-mark {
  font-size: clamp(90px, 22vw, 320px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.82;
  text-transform: lowercase;
  color: var(--ink);
}

.hero-mark .star {
  display: inline-block;
  font-size: 0.32em;
  vertical-align: top;
  transform: translateY(0.5em);
  font-weight: 400;
  letter-spacing: 0;
}

.hero-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  align-items: end;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
  margin-top: 18px;
}

.hero-tag {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  max-width: 28ch;
}

.hero-tag em { font-style: italic; color: var(--muted); }

.hero-defs {
  font-size: 11px;
  color: var(--ink-2);
}

.hero-defs dt {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-size: 9px;
  margin-top: 8px;
}

.hero-defs dd { font-size: 12px; }

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 11px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ink);
  padding: 10px 16px;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  background: var(--bg);
  transition: background 0.12s, color 0.12s;
}
.btn-link:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.btn-link.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-link.dark:hover { background: var(--accent); border-color: var(--accent); }

.btn-link.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.btn-arrow::after { content: "→"; font-weight: 400; }

/* manifest grid */

.manifest {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-bottom: 1px solid var(--ink);
}

.manifest-head {
  grid-column: 1 / -1;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.manifest-item {
  grid-column: span 3;
  padding: 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
}

.manifest-item:nth-child(4n) { border-right: 0; }
.manifest-item:nth-child(n+6):nth-child(-n+9) { border-top: 1px solid var(--line); }

.manifest-num {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.manifest-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}

.manifest-body {
  font-size: 11px;
  color: var(--ink-2);
  margin-top: auto;
  max-width: 28ch;
}

/* featured drop */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px;
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-head .title {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--ink);
}

.section-head .link { color: var(--ink-2); }

.drop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--ink);
}

.card {
  border-right: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:nth-child(4n) { border-right: 0; }

.card-img {
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-meta {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.card-meta .top {
  display: flex;
  justify-content: space-between;
}

.card-name {
  font-weight: 500;
  text-transform: lowercase;
  font-size: 12px;
}

.card-price { font-weight: 500; }

.card-sub {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  padding: 3px 6px;
}

.card-tag.accent { background: var(--accent); }

.card:hover .card-img img { transform: scale(1.02); }
.card-img img { transition: transform 0.3s ease; }

/* color story strip */

.color-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border-bottom: 1px solid var(--ink);
}

.color-cell {
  aspect-ratio: 1;
  position: relative;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.color-cell:last-child { border-right: 0; }
.color-cell .num {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 9px;
  letter-spacing: 0.18em;
  opacity: 0.6;
}

.color-cell[data-dark] { color: var(--bg); }
.color-cell[data-dark] .num { opacity: 0.65; }

/* origen split */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--ink);
}

.split > div { padding: 38px 28px; }
.split > div + div { border-left: 1px solid var(--ink); }

.split .label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.split h2 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.0;
  text-transform: lowercase;
  margin-bottom: 18px;
}

.split p { font-size: 13px; max-width: 56ch; margin-bottom: 12px; color: var(--ink-2); }

.split.dark { background: var(--black-bg); color: var(--black-ink); }
.split.dark .label { color: #888; }
.split.dark p { color: #c8c7c0; }
.split.dark .btn-link { background: var(--black-bg); color: var(--black-ink); border-color: var(--black-ink); }
.split.dark .btn-link:hover { background: var(--black-ink); color: var(--black-bg); }

/* ============ shop ============ */

.shop-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: 30px 22px 22px;
  border-bottom: 1px solid var(--ink);
  gap: 24px;
}

.shop-head h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.85;
  text-transform: lowercase;
}

.shop-head .count {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-filters {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--ink);
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.filter-group {
  display: flex;
  gap: 14px;
  align-items: center;
}

.filter-group .lbl {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip {
  border: 1px solid var(--line-2);
  padding: 4px 10px;
  font-size: 11px;
  text-transform: lowercase;
  background: var(--bg);
  cursor: pointer;
}

.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.sort-select { font-size: 11px; text-transform: lowercase; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--ink);
}

.shop-grid .card { border-bottom: 1px solid var(--line); }
.shop-grid .card:nth-last-child(-n+4) { border-bottom: 0; }

.shop-empty {
  padding: 80px 22px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
}

/* ============ product detail ============ */

.pdp {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  border-bottom: 1px solid var(--ink);
  min-height: 80vh;
}

.pdp-gallery {
  border-right: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pdp-gallery.single {
  grid-template-columns: 1fr;
}

.pdp-gallery.single .slot.featured {
  aspect-ratio: auto;
  min-height: calc(100vh - 64px);
}

.pdp-gallery .slot {
  aspect-ratio: 4 / 5;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.pdp-gallery .slot:nth-child(2n) { border-right: 0; }
.pdp-gallery .slot:nth-last-child(-n+2) { border-bottom: 0; }
.pdp-gallery .slot img { width: 100%; height: 100%; object-fit: cover; }
.pdp-gallery .slot.featured {
  grid-column: 1 / -1;
  aspect-ratio: 2 / 1.1;
}

.pdp-info {
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 64px;
  align-self: start;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.pdp-info::-webkit-scrollbar { width: 4px; }
.pdp-info::-webkit-scrollbar-thumb { background: var(--line-2); }

.pdp-cat {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.pdp-name {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  line-height: 1;
}

.pdp-price {
  font-size: 18px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pdp-price .unit { font-size: 12px; color: var(--muted); }

.pdp-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.pdp-row .lbl {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.swatch-row { display: flex; gap: 8px; flex-wrap: wrap; }

.swatch {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-2);
  cursor: pointer;
  position: relative;
  outline-offset: 2px;
}
.swatch:hover { outline: 1px solid var(--ink); }
.swatch[aria-pressed="true"] { outline: 1px solid var(--ink); outline-offset: 3px; }
.swatch[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid var(--ink);
}

.size-row { display: flex; gap: 6px; }
.size-btn {
  min-width: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--bg);
}
.size-btn:hover { border-color: var(--ink); }
.size-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.size-btn[disabled] { color: var(--line-2); cursor: not-allowed; text-decoration: line-through; }

.add-btn {
  width: 100%;
  padding: 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.12s;
}
.add-btn:hover { background: var(--accent); }
.add-btn[disabled] { background: var(--line-2); cursor: not-allowed; }

.add-btn.added { background: var(--accent); }

.pdp-desc {
  font-size: 12px;
  color: var(--ink-2);
  max-width: 50ch;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.spec-table th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.spec-table tr:last-child td, .spec-table tr:last-child th { border-bottom: 0; }

/* ============ pdp editorial slots ============ */

.slot.editorial {
  background: var(--bg-2);
  position: relative;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.slot.editorial[data-tone="dark"] {
  background: var(--ink);
  color: var(--bg);
}

.slot.editorial[data-tone="accent"] {
  background: var(--bg);
  color: var(--ink);
}

.slot-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.slot.editorial[data-tone="dark"] .slot-eyebrow { color: #888; }

.slot-big {
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.88;
  text-transform: lowercase;
}

.slot-body {
  font-size: 12px;
  max-width: 32ch;
  line-height: 1.5;
}

.slot.editorial[data-tone="dark"] .slot-body { color: #c8c7c0; }

.slot-spec-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}

.slot-spec {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 14px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 11px;
}

.slot.editorial[data-tone="dark"] .slot-spec { border-color: #2a2a25; }

.slot-spec .n {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.slot.editorial[data-tone="dark"] .slot-spec .n { color: #888; }

.slot-spec .v {
  font-weight: 500;
  text-transform: lowercase;
}

.slot-egg {
  font-size: clamp(180px, 26vw, 360px);
  line-height: 0.8;
  text-align: center;
  align-self: center;
  margin: auto 0;
  opacity: 0.95;
  filter: grayscale(1) contrast(1.15);
}

.slot-defn {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slot-defn .word {
  font-size: clamp(56px, 7vw, 112px);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  line-height: 0.85;
}

.slot-defn .pron { font-size: 12px; font-style: italic; color: #c8c7c0; }
.slot-defn .pos {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #888;
}
.slot-defn .def {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 14px;
  max-width: 30ch;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.5);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cart-backdrop.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 460px;
  max-width: 92vw;
  height: 100vh;
  background: var(--bg);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  border-left: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-head h3 {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

.cart-close {
  font-size: 14px;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.cart-item-img {
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
}

.cart-item-name {
  font-size: 12px;
  font-weight: 500;
  text-transform: lowercase;
}

.cart-item-attr {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  width: max-content;
  margin-top: 4px;
}
.qty-ctrl button {
  width: 22px;
  height: 22px;
  line-height: 1;
  font-size: 12px;
}
.qty-ctrl button:hover { background: var(--line); }
.qty-ctrl .qty {
  min-width: 26px;
  text-align: center;
  font-size: 11px;
  border-left: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  padding: 0 4px;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 12px;
}

.cart-item-remove {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-item-remove:hover { color: var(--accent); }

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px;
  text-align: center;
}

.cart-empty .big {
  font-size: 60px;
  filter: grayscale(1) contrast(1.2);
  opacity: 0.4;
}

.cart-foot {
  border-top: 1px solid var(--ink);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
}

.cart-row-flex {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.cart-total {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.cart-check-btn {
  width: 100%;
  padding: 16px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.12s;
}
.cart-check-btn:hover { background: var(--accent); }
.cart-check-btn[disabled] { background: var(--line-2); cursor: not-allowed; }

/* ============ checkout ============ */

.checkout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  border-bottom: 1px solid var(--ink);
  min-height: 80vh;
}

.checkout-form {
  padding: 38px 36px;
  border-right: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.checkout-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.checkout-head .step {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-head h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-transform: lowercase;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-lbl {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-lbl .req { color: var(--accent); }

.field input, .field textarea {
  padding: 12px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 16px;
  letter-spacing: 0.02em;
  font-family: inherit;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field textarea { resize: vertical; min-height: 90px; }

.field-help {
  font-size: 11px;
  color: var(--muted);
}
.field-help a { text-decoration: underline; text-underline-offset: 3px; }

.field-err {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.checkout-submit {
  margin-top: 8px;
  padding: 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}
.checkout-submit:hover { background: var(--accent); }
.checkout-submit[disabled] { background: var(--line-2); cursor: not-allowed; }

.checkout-summary {
  padding: 38px 32px;
  background: var(--bg);
  position: sticky;
  top: 64px;
  align-self: start;
}

.checkout-summary h3 {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.csum-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.csum-img {
  aspect-ratio: 4/5;
  background: var(--bg-2);
  overflow: hidden;
}
.csum-img img { width: 100%; height: 100%; object-fit: cover; }

.csum-totals {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.csum-totals .grand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 6px;
}

/* checkout success */

.check-success {
  padding: 100px 22px;
  text-align: center;
  border-bottom: 1px solid var(--ink);
}
.check-success .big {
  font-size: 80px;
  margin-bottom: 14px;
  filter: grayscale(1) contrast(1.2);
}
.check-success h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  margin-bottom: 14px;
}
.check-success p {
  font-size: 12px;
  color: var(--ink-2);
  max-width: 50ch;
  margin: 0 auto 8px;
}
.check-success .code {
  display: inline-block;
  margin-top: 22px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: 0.2em;
}

/* ============ content pages (origen / manufactura / info) ============ */

.content-head {
  padding: 60px 22px 30px;
  border-bottom: 1px solid var(--ink);
}

.content-head .crumb {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.content-head h1 {
  font-size: clamp(56px, 10vw, 140px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.86;
  text-transform: lowercase;
}

.content-head .sub {
  margin-top: 22px;
  font-size: 14px;
  max-width: 60ch;
}

/* origen specific */

.def-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--ink);
}

.def-block .left {
  padding: 50px 28px;
  border-right: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.def-block .right {
  padding: 50px 28px;
}

.dict-entry {
  font-family: inherit;
}

.dict-word {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  line-height: 1;
}

.dict-pron {
  font-size: 13px;
  font-style: italic;
  color: #888;
  margin-top: 8px;
}

.dict-pos {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 26px;
  color: #888;
}

.dict-def {
  font-size: 20px;
  margin-top: 12px;
  line-height: 1.4;
}

.dict-ex {
  font-size: 12px;
  font-style: italic;
  margin-top: 22px;
  color: #c8c7c0;
  max-width: 40ch;
}

.dict-etym {
  font-size: 11px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid #333;
  color: #888;
  max-width: 38ch;
}

.def-block .right h3 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.def-block .right p {
  font-size: 14px;
  margin-bottom: 14px;
  max-width: 52ch;
}

/* manufactura grid */

.proc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--ink);
}

.proc-cell {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.proc-cell:nth-child(4n) { border-right: 0; }

.proc-img {
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
}

.proc-body {
  padding: 16px 18px 22px;
  border-top: 1px solid var(--line);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proc-num {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.proc-title {
  font-size: 16px;
  font-weight: 600;
  text-transform: lowercase;
}

.proc-desc {
  font-size: 11px;
  color: var(--ink-2);
  max-width: 30ch;
}

/* info / contact */

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--ink);
}

.info-block {
  padding: 40px 28px;
  border-right: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.info-block:nth-child(2n) { border-right: 0; }
.info-block:nth-child(n+3) { border-top: 1px solid var(--ink); }

.info-block .lbl {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-block .big {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}

.info-block p {
  font-size: 12px;
  color: var(--ink-2);
  max-width: 40ch;
}

/* ============ placeholder image ============ */

.ph {
  width: 100%; height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  background:
    repeating-linear-gradient(
      135deg,
      var(--bg-2) 0px,
      var(--bg-2) 14px,
      var(--bg) 14px,
      var(--bg) 15px
    );
  overflow: hidden;
}

.ph[data-tone="dark"] {
  background:
    repeating-linear-gradient(
      135deg,
      #1d1d18 0px,
      #1d1d18 14px,
      #141410 14px,
      #141410 15px
    );
  color: #888;
}

.ph[data-color] { /* product placeholder backgrounds set inline */ }

.ph-label {
  padding: 10px 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.ph[data-tone="dark"] .ph-label {
  background: #0f0f0a;
  color: #888;
  border-color: #2a2a25;
}

.ph-product {
  position: absolute;
  inset: 18% 22% 22% 22%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ footer ============ */

.foot {
  background: var(--ink);
  color: var(--black-ink);
  padding: 60px 22px 22px;
  border-top: 1px solid var(--ink);
}

.foot-mark {
  font-size: clamp(60px, 14vw, 220px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.85;
  text-transform: lowercase;
  padding-bottom: 30px;
  border-bottom: 1px solid #2a2a28;
  margin-bottom: 30px;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-bottom: 40px;
}

.foot-col h4 {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 14px;
}

.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.foot-col a, .foot-col li { font-size: 12px; }

.foot-bot {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  padding-top: 16px;
  border-top: 1px solid #2a2a28;
}

/* ============ responsive ============ */

@media (max-width: 1000px) {
  .hero-row { grid-template-columns: 1fr; gap: 20px; }
  .hero-cta { align-items: flex-start; }
  .manifest-item { grid-column: span 6; }
  .manifest-item:nth-child(2n) { border-right: 0; }
  .manifest-item:nth-child(2n+1) { border-right: 1px solid var(--line); }
  .drop-grid, .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid .card:nth-child(2n) { border-right: 0; }
  .drop-grid .card:nth-child(2n) { border-right: 0; }
  .color-strip { grid-template-columns: repeat(4, 1fr); }
  .color-cell:nth-child(4n) { border-right: 0; }
  .pdp, .checkout, .split, .def-block, .info-grid { grid-template-columns: 1fr; }
  .pdp-gallery, .checkout-form, .def-block .left, .info-block { border-right: 0; border-bottom: 1px solid var(--ink); }
  .pdp-info, .checkout-summary { position: static; max-height: none; }
  .proc-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-cell:nth-child(2n) { border-right: 0; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hdr-nav { display: none; }
  .hero-mark { font-size: clamp(72px, 28vw, 140px); }
  .manifest-item { grid-column: 1 / -1; border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .color-strip { grid-template-columns: repeat(2, 1fr); }
  .color-cell:nth-child(2n) { border-right: 0; }
  .pdp-gallery { grid-template-columns: 1fr; }
  .pdp-gallery .slot { border-right: 0; }
  .shop-grid, .drop-grid { grid-template-columns: 1fr; }
  .shop-grid .card, .drop-grid .card { border-right: 0; }
  .foot-cols { grid-template-columns: 1fr; }
}

/* ============ hamburger menu (mobile only) ============ */

.hdr-burger {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.hdr-burger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.15s ease, top 0.22s ease;
}
.hdr-burger span:nth-child(1) { top: 15px; }
.hdr-burger span:nth-child(2) { top: 21px; }
.hdr-burger span:nth-child(3) { top: 27px; }
.hdr-burger span.open:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hdr-burger span.open:nth-child(2) { opacity: 0; }
.hdr-burger span.open:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.hdr-mobile-panel {
  display: none;
}

.hdr-mobile-nav a {
  display: block;
  padding: 18px 22px;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.hdr-mobile-nav a.active { font-weight: 600; }

/* ============ mobile-only refinements (≤700px) ============ */

@media (max-width: 700px) {
  /* header layout — estilo minimal: nav visible, sin hamburger */
  .hdr-burger { display: none; }
  .hdr-mobile-panel { display: none !important; }
  .hdr-ticker { display: none; }
  .hdr-row {
    padding: 10px 14px 6px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .hdr-brand { font-size: 13px; letter-spacing: 0.12em; order: 1; }
  .hdr-brand .meta { display: none; }
  .hdr-right { gap: 12px; font-size: 10px; order: 2; }
  .hdr-ig { display: none; }
  .hdr-nav {
    display: flex;
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    gap: 14px;
    padding: 6px 0 4px;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  .hdr-nav a.active { border-bottom: 1px solid var(--ink); padding-bottom: 1px; }

  /* mobile menu panel */
  .hdr-mobile-panel {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 49;
    transform: translateY(-100%);
    transition: transform 0.28s ease;
    padding-top: 84px; /* leave the header visible above */
    overflow-y: auto;
  }
  .hdr-mobile-panel.open { transform: translateY(0); }

  /* generic content padding */
  .hero { padding: 28px 14px 36px; }
  .section-head { padding: 14px 14px; }
  .split { padding: 0; }
  .split > div { padding: 26px 14px; }
  .split.dark > div { padding: 26px 14px; }
  .info-grid { padding: 0; }
  .info-block { padding: 22px 14px; }
  .manifest-head { padding: 12px 14px; }
  .manifest-item { padding: 18px 14px; }
  .content-head { padding: 28px 14px 22px; }
  .def-block { padding: 0; }
  .def-block .left, .def-block .right { padding: 26px 14px; }
  .proc-cell .proc-body { padding: 20px 14px; }
  .shop-head { padding: 18px 14px 8px; }
  .shop-head h1 { font-size: clamp(40px, 13vw, 64px); }
  .shop-empty { padding: 40px 14px; }

  /* tienda mobile: filtros tipo "tabs" en una fila scrolleable horizontal,
     chips minimal sin background, estilo yeezy */
  .shop-filters {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    padding: 8px 14px 14px;
    align-items: stretch;
    gap: 10px;
  }
  .filter-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 14px;
    align-items: center;
    justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .filter-group::-webkit-scrollbar { display: none; }
  .filter-group .lbl {
    flex-shrink: 0;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .filter-group .chip {
    flex-shrink: 0;
    white-space: nowrap;
    background: transparent;
    border: 0;
    padding: 4px 0;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-2);
    border-bottom: 1px solid transparent;
    border-radius: 0;
    min-width: 0;
  }
  .filter-group .chip[aria-pressed="true"] {
    color: var(--ink);
    border-bottom-color: var(--ink);
    background: transparent;
  }
  .sort-select.chip {
    flex-shrink: 0;
    background: transparent;
    border: 0;
    padding-left: 0;
  }

  /* tienda mobile: grid 3 cols estilo home/yeezy */
  .shop-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0;
    padding: 4px 0 30px;
  }
  .shop-grid .card {
    border: 0 !important;
    padding: 8px 6px 14px;
    min-width: 0;
    overflow: hidden;
  }
  .shop-grid .card-img { aspect-ratio: 3 / 4; }
  .shop-grid .card-meta { padding: 8px 0 0; gap: 2px; }
  .shop-grid .card-meta .top {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .shop-grid .card-name {
    display: none; /* yeezy-style: solo código + variante */
  }
  .shop-grid .card-price {
    display: none; /* yeezy-style: precio se ve en el PDP, no en el grid */
  }
  .shop-grid .card-sub-desktop { display: none; }
  .shop-grid .card-sub-mobile {
    display: block;
    font-size: 9.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: var(--ink);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }
  .shop-grid .card-tag {
    font-size: 8px;
    padding: 2px 4px;
  }

  /* product detail: image first, info below */
  .pdp { display: block; }
  .pdp-gallery.single { min-height: 0; }
  .pdp-gallery.single .slot.featured { height: 78vh; max-height: 560px; }
  .pdp-info { padding: 22px 14px; gap: 18px; }
  .pdp-name { font-size: clamp(28px, 9vw, 44px); line-height: 1; }
  .pdp-price { font-size: 22px; }

  /* swatch + size touch targets */
  .swatch { width: 30px; height: 30px; }
  .size-btn { min-width: 44px; min-height: 44px; padding: 0 12px; }
  .add-btn { padding: 16px; font-size: 12px; min-height: 52px; }

  /* cart drawer becomes near-fullscreen */
  .cart-drawer { width: 100vw; max-width: 100vw; }
  .cart-item { grid-template-columns: 64px 1fr auto; gap: 10px; padding: 14px; }
  .cart-item-img { width: 64px; height: 64px; }

  /* checkout: stack and pad inputs */
  .checkout { display: block; }
  .checkout-form { padding: 22px 14px; gap: 18px; }
  .checkout-summary { padding: 22px 14px; border-top: 1px solid var(--ink); }
  .checkout-head h1 { font-size: clamp(32px, 10vw, 48px); }
  .field input, .field textarea {
    font-size: 16px; /* prevents iOS auto-zoom on focus */
    padding: 14px;
    min-height: 48px;
  }
  .field textarea { min-height: 96px; }
  .checkout-submit { padding: 18px; font-size: 12px; min-height: 56px; }

  /* footer */
  .foot { padding: 30px 14px 20px; }
  .foot-mark { font-size: 64px; line-height: 0.9; }
  .foot-bot { flex-direction: column; gap: 8px; text-align: left; padding-top: 18px; }

  /* hero defs/cta stack nicely */
  .hero-defs { grid-template-columns: 1fr; gap: 6px 14px; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* drop grid card images keep a sensible aspect on phones */
  .card-img { aspect-ratio: 4 / 5; }

  /* big titles cap so they don't overflow viewport */
  .split h2 { font-size: clamp(36px, 12vw, 72px); line-height: 0.95; }
  .content-head h1 { font-size: clamp(48px, 16vw, 96px); line-height: 0.92; }

  /* spec table scrollable horizontally if cramped */
  .spec-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ============ ultra-narrow (≤380px, e.g. iPhone SE) ============ */
@media (max-width: 380px) {
  .hdr-brand { font-size: 12px; letter-spacing: 0.08em; }
  .hdr-right { gap: 6px; font-size: 10px; }
  .hero-mark { font-size: clamp(56px, 24vw, 110px); }
  .pdp-gallery.single .slot.featured { height: 70vh; }
}

/* ============ HOME + SHOP minimal en mobile ============ */

/* por defecto el grid mobile está oculto (desktop usa el drop-grid normal) */
.home-mobile-grid { display: none; }

/* en desktop solo se ve el card-sub original (color · sizes), no el mobile */
.card-sub-mobile { display: none; }

@media (max-width: 700px) {
  /* HOME — hero compacto: solo el uebos 🥚 grande, sin meta/defs/cta */
  .home-hero { padding: 30px 14px 8px; text-align: center; }
  .home-hero .hero-meta { display: none; }
  .home-hero .hero-row { display: none; }
  .home-hero .hero-mark {
    font-size: clamp(64px, 22vw, 110px);
    line-height: 0.95;
    margin: 0;
    text-align: center;
  }

  /* ocultar todo lo que no es hero + grid mobile en el home */
  .home-drop-head,
  .home-drop,
  .home-origen,
  .home-color-head,
  .home-color,
  .home-manifest,
  .home-mfg,
  .home-info {
    display: none;
  }

  /* mostrar el grid yeezy-style */
  .home-mobile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 14px 0 30px;
    background: var(--bg);
  }

  .hmg-cell {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    padding: 8px 6px 14px;
    min-width: 0;  /* fix: evita que el contenido fuerce expansión del grid */
    overflow: hidden;
  }

  .hmg-img {
    aspect-ratio: 3 / 4;
    background: var(--bg);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hmg-img > * { width: 100%; height: 100%; }
  .hmg-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .hmg-img .ph { position: absolute; inset: 0; }

  .hmg-code {
    margin-top: 8px;
    font-size: 9.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: var(--ink);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
