/* ============================================================
   ETERNAL — sistema visual (neutro)
   Referencias medidas con /taste:
   · Arkad: títulos de producto 12px / 700 / MAYÚSCULAS / #0b0b0b,
     grilla a sangre con 1px entre columnas, sin bordes redondeados.
   · Undergold: fondo #efefef detrás de cada prenda, precio en gris #737373.
   · Mattelsa: navegación en grotesca negrita MAYÚSCULAS, colecciones en
     recuadros, logo animado al cambiar de sección.
   Lo propio de Eternal: wordmark en serif de alto contraste (Bodoni),
   la etiqueta 1/1 y el monograma que se dibuja al cambiar de colección.
   ============================================================ */

@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/BodoniModa.ttf") format("truetype");
  font-weight: 400 900; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo.ttf") format("truetype");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
}

:root {
  --ink: #0b0b0b;
  --paper: #ffffff;
  --tile: #efefef;
  --line: #e2e2e2;
  --muted: #737373;
  --wa: #1f7a4d;
  --danger: #c4231b;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(14px, 2.2vw, 28px);
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Bodoni Moda", "Bodoni MT", Didot, Georgia, serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: var(--header-h, 64px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

button, a, [role="button"], summary { touch-action: manipulation; }
button, [role="button"], summary { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 100; text-decoration: none; }
.skip:focus { top: 8px; }

.section-label, .nav a, .cart-btn, .chip, .card__name, .hero__meta, .modal__col, .notice {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
}
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ============ Aviso fijo (sin movimiento) ============ */
.notice {
  margin: 0; background: var(--ink); color: var(--paper);
  font-size: 11px; letter-spacing: 0.08em; text-align: center;
  padding: 8px var(--gutter);
}
.notice span + span::before { content: "·"; margin: 0 10px; opacity: 0.5; }
@media (max-width: 520px) { .notice .notice__extra { display: none; } }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 12px var(--gutter);
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; gap: 22px; font-size: 12px; }
.nav a { text-decoration: none; position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .nav a:hover::after { transform: scaleX(1); } }
@media (max-width: 640px) { .nav__hide-sm { display: none; } .nav { gap: 14px; font-size: 11px; } }

.wordmark {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(20px, 2.4vw, 26px); line-height: 1;
  letter-spacing: 0.32em; margin-right: -0.32em; /* compensa el espaciado de la última letra */
  text-decoration: none; text-transform: uppercase;
}
.cart-btn {
  justify-self: end; position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-right: -8px;
  background: none; border: none; padding: 0;
  transition: transform 160ms var(--ease-out);
}
.cart-btn__icon { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn__icon circle { fill: var(--ink); stroke: none; }
.cart-btn .cart-btn__count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; font-size: 10px; border-radius: 9px; }
.cart-btn .cart-btn__count:empty, .cart-btn .cart-btn__count[data-n="0"] { display: none; }
.cart-btn:active { transform: scale(0.96); }
.cart-btn__count {
  min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center;
  background: var(--ink); color: var(--paper); font-size: 11px; font-variant-numeric: tabular-nums;
}
.cart-btn__count.bump { animation: bump 300ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.2); } }

/* ============ Portada ============ */
/* Portada en negro, ETERNAL en blanco: un bloque tipográfico de impacto */
.hero {
  background: var(--ink); color: var(--paper);
  padding: clamp(40px, 9vw, 140px) var(--gutter) 0;
  display: flex; flex-direction: column; justify-content: flex-end;
}
/* Bodoni a tamaño gigante: se fija el tamaño óptico en un valor de texto ("opsz" 18)
   para que las líneas finas tengan cuerpo y no desaparezcan (sobre todo en la N y la A). */
.hero__word, .footer__word, .about__text, .morph__e, .tile__mark, .ph {
  font-optical-sizing: none; font-variation-settings: "opsz" 18;
}
.hero__word {
  font-family: var(--serif); font-weight: 600; color: var(--paper);
  /* "ETERNAL" mide ≈ 4,75 veces su tamaño de letra: así ocupa todo el ancho en cualquier pantalla */
  font-size: min(calc((100vw - 2 * var(--gutter)) / 5.02), 400px); line-height: 0.82;
  letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap;
  margin: auto 0 0 -0.03em; padding-bottom: 0.06em;
}
.hero__cols {
  list-style: none; margin: clamp(28px, 4vw, 56px) calc(var(--gutter) * -1) 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgb(255 255 255 / 0.28);
}
.hero__cols li + li { border-left: 1px solid rgb(255 255 255 / 0.28); }
.hero__cols a {
  display: flex; align-items: center; gap: 10px;
  padding: 16px var(--gutter); text-decoration: none;
  font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: clamp(12px, 1.2vw, 15px);
  transition: background-color 180ms ease, color 180ms ease;
}
.hero__cols a span:first-child { margin-right: auto; }
.hero__cols a span:last-child { font-weight: 500; font-stretch: 100%; font-size: 12px; color: #9a9a9a; transition: color 180ms ease; }
.hero__cols a::after { content: "→"; }
@media (hover: hover) and (pointer: fine) {
  .hero__cols a:hover { background: var(--paper); color: var(--ink); }
  .hero__cols a:hover span:last-child { color: var(--muted); }
}
@media (max-width: 640px) {
  .hero__cols { grid-template-columns: 1fr; }
  .hero__cols li + li { border-left: none; border-top: 1px solid rgb(255 255 255 / 0.28); }
  .hero__cols a { padding: 14px var(--gutter); }
}

/* ============ Etiquetas de sección ============ */
.section-label { font-size: 12px; letter-spacing: 0.08em; }

/* ============ Colecciones ============ */
.collections { padding: 48px var(--gutter) 56px; }
.collections .section-label { margin-bottom: 16px; }
.collections__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
@media (max-width: 760px) { .collections__grid { grid-template-columns: 1fr; } }
.tile {
  width: 100%; border: none; padding: 20px; text-align: left;
  height: clamp(220px, 26vw, 380px); background: var(--tile); color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.tile:active { transform: scale(0.985); }
.tile__top { display: flex; justify-content: space-between; font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; position: relative; z-index: 1; }
.tile__name {
  margin: 0; position: relative; z-index: 1;
  font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(30px, 4vw, 58px); line-height: 0.88; letter-spacing: -0.02em;
}
.tile__mark {
  position: absolute; right: 0.04em; bottom: -0.2em;
  font-family: var(--serif); font-size: clamp(170px, 20vw, 300px); line-height: 1;
  color: var(--ink); opacity: 0.06; pointer-events: none;
  transition: opacity 200ms ease, color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover { background: var(--ink); color: var(--paper); }
  .tile:hover .tile__mark { color: var(--paper); opacity: 0.1; }
}
@media (max-width: 760px) { .tile { height: 168px; } }

/* ============ Tienda ============ */
.shop { padding-bottom: 96px; }
.shop__bar {
  position: sticky; top: var(--header-h, 61px); z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--gutter);
  background: var(--paper); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
}
.shop__count { color: var(--muted); font-weight: 500; }
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  padding: 0 14px; min-height: 36px; font-size: 11px; letter-spacing: 0.05em;
  transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-pressed="true"]):hover { background: var(--tile); } }
@media (max-width: 640px) { .filters { width: 100%; } }

/* Grilla a sangre, fotos grandes: 3 columnas en escritorio, 2 en celular */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 1px;
}
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 1px; } }

.card { display: block; width: 100%; padding: 0; border: none; background: none; text-align: left; }
.card__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile);
  transition: transform 160ms var(--ease-out);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .card:hover .card__media img { transform: scale(1.03); } }
.card:active .card__media { transform: scale(0.99); }

.badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: var(--ink); color: var(--paper);
  padding: 4px 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.badge--sold { background: var(--paper); color: var(--ink); }
.card__info { padding: 12px 14px 0; }
.card__name { margin: 0; font-size: 13px; letter-spacing: 0.01em; }
.card__price { margin: 3px 0 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.card--sold .card__media img, .card--sold .ph { opacity: 0.45; }

/* Recuadro provisorio (hasta que lleguen las fotos) */
.ph {
  width: 100%; height: 100%; display: grid; place-items: center; position: relative;
  color: #d9d9d9; font-family: var(--serif); font-size: clamp(80px, 12vw, 170px); line-height: 1; user-select: none;
}
.ph__num {
  position: absolute; right: 12px; bottom: 12px;
  font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted);
}

/* Entrada del catálogo: una sola ola corta */
.grid > li { animation: rise 420ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .grid > li { animation: fade 200ms ease both; animation-delay: 0ms; } }

/* ============ Transición de colección: monograma que se dibuja (1 s) ============
   0–150ms   el velo aparece (ease-out)
   0–700ms   el anillo se dibuja alrededor de la E (ease-in-out: movimiento en pantalla)
   60–460ms  la E entra: opacidad + escala 0.96→1 + desenfoque 4px→0 (ease-out)
   ~450ms    la grilla cambia por debajo
   800–1000  el velo se va (200ms, más rápido que la entrada) */
.morph {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-content: center; justify-items: center; gap: 16px;
  background: rgb(255 255 255 / 0.96);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}
.morph.on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 150ms var(--ease-out), visibility 0s; }
.morph__svg { overflow: visible; }
.morph__ring {
  fill: none; stroke: var(--ink); stroke-width: 1.2;
  stroke-dasharray: 553; stroke-dashoffset: 553;     /* 2π · 88 ≈ 553 */
  transform: rotate(-90deg); transform-origin: 100px 100px;
}
.morph__ring--in { stroke: var(--ink); stroke-width: 0.6; stroke-dasharray: 490; stroke-dashoffset: 490; }
.morph__e { font-family: var(--serif); font-weight: 400; font-size: 118px; fill: var(--ink); opacity: 0; transform-origin: 100px 100px; }
.morph.on .morph__ring { animation: draw 700ms var(--ease-in-out) forwards; }
.morph.on .morph__ring--in { animation: draw 700ms var(--ease-in-out) 80ms forwards; }
.morph.on .morph__e { animation: mono-in 400ms var(--ease-out) 60ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes mono-in {
  from { opacity: 0; transform: scale(0.96); filter: blur(4px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}
.morph__label { margin: 0; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 0.24em; opacity: 0; }
.morph.on .morph__label { animation: fade-in 300ms ease 220ms forwards; }
@keyframes fade-in { to { opacity: 1; } }

/* ============ Nosotros / Contacto ============ */
.about, .contact { padding: 18px var(--gutter) 80px; border-top: 1px solid var(--ink); }
.about__text {
  margin: 28px 0 0; max-width: 20ch;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 5.4vw, 80px); line-height: 1; letter-spacing: -0.01em;
}
.placeholder-note { margin: 16px 0 0; font-size: 12px; color: var(--danger); }
.contact__list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; max-width: 720px; }
.contact__list a {
  display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0;
  border-bottom: 1px solid var(--line); text-decoration: none;
  font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: clamp(18px, 2.2vw, 28px);
}
.contact__list a span { font-weight: 500; font-stretch: 100%; font-size: 13px; text-transform: none; color: var(--muted); }
.privacy { max-width: 70ch; color: var(--muted); font-size: 13px; }
.privacy summary { cursor: pointer; padding: 8px 0; font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; }

/* ============ Footer ============ */
.footer { background: var(--ink); color: var(--paper); overflow: hidden; padding: 28px var(--gutter) 18px; }
.footer__word {
  margin: 0; font-family: var(--serif); font-weight: 400; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(56px, 16.4vw, 320px); line-height: 0.9; letter-spacing: 0.01em; text-align: center;
}
.footer__legal { margin: 18px 0 0; font-size: 11px; color: #9a9a9a; text-align: center; padding-bottom: env(safe-area-inset-bottom, 0px); }

/* ============ Botones ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: none;
  font-size: 13px; font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--whatsapp { background: var(--wa); color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:not([disabled]):hover { background: #2b2b2b; }
  .btn--whatsapp:hover { background: #18663f; }
}
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border: none; background: none; font-size: 16px;
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.icon-btn:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--tile); } }

/* ============ Modal de producto ============ */
dialog { color: var(--ink); }
dialog::backdrop { background: rgb(11 11 11 / 0.5); }
.modal {
  width: min(1040px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: none; background: var(--paper); overflow: auto;
  opacity: 1; transform: scale(1);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), overlay 220ms allow-discrete, display 220ms allow-discrete;
}
.modal:not([open]) { opacity: 0; transform: scale(0.96); transition-duration: 150ms; }
@starting-style { .modal[open] { opacity: 0; transform: scale(0.96); } }
.modal::backdrop { transition: background-color 220ms ease, overlay 220ms allow-discrete, display 220ms allow-discrete; }
@starting-style { .modal[open]::backdrop { background: rgb(11 11 11 / 0); } }
.modal__close-form { position: absolute; top: 6px; right: 6px; z-index: 2; margin: 0; }
.modal__body { display: grid; grid-template-columns: 1.15fr 1fr; }
@media (max-width: 720px) { .modal__body { grid-template-columns: 1fr; } }
.modal__media { aspect-ratio: 4 / 5; background: var(--tile); position: relative; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__info { padding: clamp(22px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.modal__col { margin: 0; align-self: flex-start; font-size: 11px; letter-spacing: 0.06em; background: var(--ink); color: var(--paper); padding: 5px 8px; }
.modal__info h3 { font-weight: 900; font-stretch: 112%; text-transform: uppercase; font-size: clamp(24px, 2.8vw, 34px); line-height: 0.98; letter-spacing: -0.01em; }
.price { font-size: 18px; font-weight: 600; margin: 0; font-variant-numeric: tabular-nums; }
.modal__info .muted { margin: 0; }
.modal__info .muted:empty { display: none; }
.modal__note { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }

.sizes { border: none; padding: 0; margin: 6px 0 0; }
.sizes legend { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; padding: 0; }
.sizes__list { display: flex; flex-wrap: wrap; gap: 6px; }
.size {
  min-width: 52px; min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); background: transparent;
  font-weight: 700; font-size: 13px;
  transition: background-color 120ms ease, color 120ms ease, transform 160ms var(--ease-out);
}
.size:active { transform: scale(0.95); }
.size[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.size:disabled { color: #a9a9a9; border-color: var(--line); text-decoration: line-through; cursor: not-allowed; }

.qty[hidden] { display: none; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ink); width: max-content; }
.qty__btn { width: 44px; height: 44px; border: none; background: none; font-size: 18px; transition: transform 160ms var(--ease-out); }
.qty__btn:active { transform: scale(0.9); }
.qty output { min-width: 32px; text-align: center; font-variant-numeric: tabular-nums; }

.form-error { color: var(--danger); font-size: 13px; margin: 0; }
.form-error:empty { display: none; }

/* ============ Carrito (drawer) ============ */
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(460px, 100%); max-width: 100%;
  padding: 0; border: none; background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(0);
  transition: transform 420ms var(--ease-drawer), overlay 420ms allow-discrete, display 420ms allow-discrete;
}
.drawer:not([open]) { transform: translateX(100%); transition-duration: 260ms; display: none; }
@starting-style { .drawer[open] { transform: translateX(100%); } }
.drawer::backdrop { transition: background-color 300ms ease, overlay 300ms allow-discrete, display 300ms allow-discrete; }
@starting-style { .drawer[open]::backdrop { background: rgb(11 11 11 / 0); } }
@media (prefers-reduced-motion: reduce) {
  .drawer, .modal { transition-property: opacity, overlay, display; }
  .drawer:not([open]), .modal:not([open]) { transform: none; opacity: 0; }
  @starting-style { .drawer[open], .modal[open] { transform: none; opacity: 0; } }
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--ink); }
.drawer__head h2 { font-weight: 900; font-stretch: 112%; text-transform: uppercase; font-size: 20px; }
.drawer__scroll { flex: 1; overflow-y: auto; padding: 6px 18px 20px; overscroll-behavior: contain; }
.drawer__foot { border-top: 1px solid var(--ink); padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; }
.drawer__foot .muted { margin: 0; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; text-transform: uppercase; font-size: 15px; }
.total strong { font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); padding: 32px 0; text-align: center; margin: 0; }
.empty[hidden] { display: none; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item__media { width: 64px; aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; }
.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__media .ph { font-size: 30px; }
.cart-item__media .ph__num { display: none; }
.cart-item__name { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.cart-item__meta { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.cart-item .qty__btn { width: 32px; height: 32px; font-size: 15px; }
.cart-item .qty output { min-width: 24px; font-size: 14px; }
.cart-item__right { display: grid; justify-items: end; gap: 6px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.link-btn { background: none; border: none; padding: 4px 0; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.checkout { margin-top: 22px; display: grid; gap: 12px; }
.checkout[hidden] { display: none; }
.checkout h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.checkout label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.checkout input, .checkout textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px; border: 1px solid var(--line); border-radius: 0; background: #fff;
  transition: border-color 150ms ease;
}
.checkout input:focus, .checkout textarea:focus { border-color: var(--ink); outline: none; }
.checkout [aria-invalid="true"] { border-color: var(--danger); }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: transform 400ms ease, opacity 400ms ease;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .toast { transform: translate(-50%, 0); } }
