/* Detroit Sneakers — negro, rojo grafiti y la corona */
:root {
  --bg: #060606;
  --bg-2: #0d0d0e;
  --bg-3: #151517;
  --ink: #f4f0e9;
  --ink-2: #c9c4bb;
  --muted: #8a8681;
  --red: #ff2412;
  --red-2: #ff4a2e;
  --red-deep: #9e0d04;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --radius: 22px;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --marker: "Permanent Marker", "Comic Sans MS", cursive;
  --pad: clamp(16px, 4.5vw, 56px);
  --notice-h: 34px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html, body { overflow-x: clip; }
.flag { display: inline-block; width: .9em; height: .6em; vertical-align: .08em; border-radius: .06em; }
/* Grano de pintura en aerosol sobre todo */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 90;
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; border-radius: 8px; }
svg { flex: none; }

/* ---------- Aviso que corre ---------- */
.notice {
  position: relative; z-index: 40;
  height: var(--notice-h);
  background: var(--red);
  color: #fff;
  overflow: hidden;
  display: flex; align-items: center;
  font: 700 12px/1 var(--body);
  letter-spacing: .14em; text-transform: uppercase;
}
.notice__track {
  display: flex; gap: 48px; white-space: nowrap;
  padding-left: 48px;
  animation: marquee 28s linear infinite;
}
.notice__track span::before { content: "👑"; margin-right: 48px; font-size: 11px; }

/* ---------- Barra con el logo flotando ---------- */
.topbar {
  position: fixed; z-index: 50;
  top: calc(var(--notice-h) + 14px); left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  pointer-events: none;
  transition: top .35s ease;
}
.topbar.is-scrolled { top: 12px; }
.topbar > * { pointer-events: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 18px;
  border-radius: 999px;
  background: rgba(14, 14, 15, .72);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  text-decoration: none; font-weight: 700; font-size: 14px;
  cursor: pointer;
  transition: border-color .2s, transform .2s, background .2s;
}
.pill:hover { border-color: var(--red); transform: translateY(-1px); }
.pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.pill--cart { position: relative; padding: 0 14px; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--red); color: #fff;
  display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 800;
}
.cart-count.is-bump { animation: bump .45s ease; }

.brand {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .65));
}
/* Corona chica: 3D girando 360° sobre su eje (crown3d.js). Sin WebGL, gira la plana. */
.brand__crown {
  position: relative; display: block;
  width: 64px; height: 64px; color: var(--red);
  filter: drop-shadow(0 0 16px rgba(255, 36, 18, .55));
  perspective: 300px;
}
.brand__fallback { position: absolute; inset: 9px 10px; width: 44px; height: 46px; animation: spinY 6s linear infinite; transition: opacity .4s; }
.brand__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s; }
.brand__crown.is-3d .brand__canvas { opacity: 1; }
.brand__crown.is-3d .brand__fallback { opacity: 0; animation: none; }

/* ---------- Portada ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--notice-h));
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 110px var(--pad) 84px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 120%;
  z-index: -2;
  background:
    radial-gradient(42% 38% at 50% 34%, rgba(255, 36, 18, .34), transparent 70%),
    radial-gradient(30% 26% at 50% 36%, rgba(255, 74, 46, .22), transparent 72%),
    radial-gradient(80% 60% at 50% 110%, rgba(158, 13, 4, .32), transparent 70%);
  animation: glow 6s ease-in-out infinite;
}
.hero__giant {
  position: absolute; z-index: -1;
  left: 50%; top: 48%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font: 400 clamp(150px, 31vw, 520px)/.8 var(--display);
  letter-spacing: -.01em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .07);
  white-space: nowrap;
  user-select: none;
}
.hero__stage {
  position: relative;
  width: min(100%, 760px);
  height: clamp(300px, 47svh, 520px);
  margin-bottom: -18px;
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; transition: opacity 1s ease .1s;
  touch-action: pan-y;
}
.hero__fallback {
  position: absolute; left: 50%; top: 50%;
  width: min(62%, 340px); height: auto; aspect-ratio: 432 / 500;
  transform: translate(-50%, -50%);
  color: var(--red);
  filter: drop-shadow(0 0 40px rgba(255, 36, 18, .5));
  animation: floatBig 5s ease-in-out infinite;
  transition: opacity .6s ease;
}
.hero__stage.is-3d .hero__canvas { opacity: 1; }
.hero__stage.is-3d .hero__fallback { opacity: 0; }

.hero__copy { position: relative; max-width: 820px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255, 36, 18, .7); animation: ping 1.8s infinite; }
.hero__title {
  margin: 0;
  font: 400 clamp(68px, 11.5vw, 170px)/.82 var(--display);
  letter-spacing: .005em;
  display: flex; flex-direction: column; align-items: center;
}
.hero__title-a { color: var(--ink); text-shadow: 0 10px 50px rgba(0, 0, 0, .6); }
.hero__title-b {
  font-size: .47em; letter-spacing: .42em; margin-right: -.42em; margin-top: .14em;
  color: var(--red);
}
.hero__lead { margin: 20px auto 0; max-width: 520px; color: var(--ink-2); font-size: clamp(15px, 1.6vw, 18px); }
.hero__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.hero__scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 20px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--red); animation: scrollDot 1.8s ease-in-out infinite; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 800; font-size: 15px; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .25s, background .2s, border-color .2s, color .2s;
}
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 12px 34px -10px rgba(255, 36, 18, .8); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -10px rgba(255, 36, 18, .95); background: var(--red-2); }
.btn--ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* ---------- Cinta de marcas ---------- */
.tape {
  position: relative; z-index: 2;
  margin: 0 -10px;
  background: var(--ink); color: var(--bg);
  transform: rotate(-2deg);
  padding: 14px 0;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.tape__track { display: flex; align-items: center; gap: 34px; white-space: nowrap; width: max-content; animation: marquee 34s linear infinite; }
.tape span { font: 400 clamp(24px, 3.4vw, 40px)/1 var(--display); letter-spacing: .04em; }
.tape i { font-style: normal; font-size: 22px; }

/* ---------- Títulos ---------- */
.section-head { text-align: center; margin-bottom: 38px; }
.tag {
  display: inline-block; margin: 0 0 6px;
  font: 400 clamp(22px, 2.6vw, 30px)/1 var(--marker);
  color: var(--red);
  transform: rotate(-3deg);
}
.section-title {
  margin: 0;
  font: 400 clamp(44px, 7.4vw, 104px)/.9 var(--display);
  text-transform: uppercase;
}
.section-title em { font-style: normal; color: transparent; -webkit-text-stroke: 2px var(--ink); }

/* ---------- Stock ---------- */
.catalog { padding: clamp(90px, 12vw, 150px) var(--pad) 40px; max-width: 1380px; margin: 0 auto; }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent;
  font-weight: 700; font-size: 14px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.toolbar__right { display: flex; gap: 10px; flex-wrap: wrap; }
.search {
  display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg-2);
}
.search svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search input { border: 0; background: transparent; outline: 0; width: 170px; font-size: 14px; }
.sort {
  height: 42px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg-2); font-size: 14px; font-weight: 600; cursor: pointer;
}
.catalog__count { color: var(--muted); font-size: 13px; margin: 0 0 18px; min-height: 1.4em; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.card {
  position: relative;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  opacity: 0; transform: translateY(26px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1), border-color .25s, box-shadow .3s;
  transform-style: preserve-3d;
}
.card.is-in { opacity: 1; transform: none; }
.card:hover, .card:focus-visible { border-color: rgba(255, 36, 18, .7); box-shadow: 0 30px 70px -30px rgba(255, 36, 18, .55); }
.card--skeleton { aspect-ratio: 3 / 4.6; opacity: 1; transform: none; background: linear-gradient(100deg, var(--bg-2) 30%, var(--bg-3) 50%, var(--bg-2) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; cursor: default; }
.card__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #111; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(6, 6, 6, .75)); pointer-events: none; }
.card__media svg { width: 86%; margin: 18% auto 0; }
.badge {
  position: absolute; z-index: 2; top: 14px; left: 14px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.badge--ultimos { background: var(--ink); color: var(--bg); }
.badge--agotado { background: #2a2a2c; color: var(--ink-2); }
.card__price-tag {
  position: absolute; z-index: 2; right: 14px; bottom: 14px;
  font: 400 28px/1 var(--display); letter-spacing: .01em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .8);
}
.card__body { padding: 16px 18px 18px; }
.card__brand { display: block; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.card__name { margin: 6px 0 10px; font-size: 17px; font-weight: 800; line-height: 1.25; }
.card__price { display: flex; align-items: baseline; gap: 10px; }
.card__price s { color: var(--muted); font-size: 14px; }
.card__sizes { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.card__sizes span { font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 8px; background: var(--bg-3); color: var(--ink-2); }
.card__cta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.card__cta::after { content: "→"; color: var(--red); transition: transform .25s; }
.card:hover .card__cta::after { transform: translateX(4px); }
.card.is-out .card__media img { filter: grayscale(1) brightness(.6); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.empty a { color: var(--red); }

/* ---------- Envíos ---------- */
.ship {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center;
  max-width: 1280px; margin: 0 auto;
  padding: clamp(80px, 11vw, 140px) var(--pad);
}
.ship__photos { position: relative; height: clamp(420px, 46vw, 600px); }
.ship__ph { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.ship__ph img { width: 100%; height: 100%; object-fit: cover; }
.ship__ph--a { width: 54%; aspect-ratio: 360 / 400; left: 0; top: 4%; transform: rotate(-4deg); z-index: 2; }
.ship__ph--b { width: 40%; aspect-ratio: 9 / 16; right: 4%; top: 0; transform: rotate(3deg); }
.ship__ph--c { width: 36%; aspect-ratio: 9 / 16; left: 30%; bottom: -2%; transform: rotate(-1deg); z-index: 3; }
.ship__copy .section-head, .ship__copy { text-align: left; }
.ship__lead { color: var(--ink-2); font-size: 18px; max-width: 460px; margin: 18px 0 26px; }
.ship__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ship__list li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); font-weight: 600; }
.ship__list b { font: 400 22px/1 var(--display); color: var(--red); }

/* ---------- Cómo comprar ---------- */
.steps { padding: clamp(70px, 9vw, 120px) var(--pad); max-width: 1280px; margin: 0 auto; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps__list li {
  position: relative; padding: 28px 26px 30px;
  border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
  overflow: hidden;
}
.steps__list b { display: block; font: 400 64px/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--red); }
.steps__list h3 { margin: 18px 0 8px; font-size: 21px; }
.steps__list p { margin: 0; color: var(--ink-2); }

/* ---------- Redes ---------- */
.social {
  position: relative; text-align: center;
  padding: clamp(90px, 12vw, 160px) var(--pad);
  background: radial-gradient(60% 70% at 50% 40%, rgba(255, 36, 18, .16), transparent 70%);
  overflow: hidden;
}
.social__crown { width: 90px; height: 104px; color: var(--red); margin: 0 auto 16px; display: block; animation: float 4.2s ease-in-out infinite; filter: drop-shadow(0 0 24px rgba(255, 36, 18, .6)); }
.social__title { margin: 0 0 34px; font: 400 clamp(46px, 8vw, 120px)/.9 var(--display); text-transform: uppercase; }
.spray { font-family: var(--marker); color: var(--red); text-transform: lowercase; font-size: .9em; display: inline-block; transform: rotate(-4deg); }
.social__links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.social__card {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 24px 16px 18px; border-radius: 20px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  text-decoration: none; font-weight: 800; font-size: 17px;
  transition: border-color .2s, transform .2s;
}
.social__card:hover { border-color: var(--red); transform: translateY(-3px); }
.social__card svg { width: 30px; height: 30px; fill: none; stroke: var(--red); stroke-width: 1.7; stroke-linecap: round; }
.social__card small { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* ---------- Pie ---------- */
.footer { text-align: center; padding: 60px var(--pad) 44px; border-top: 1px solid var(--line); color: var(--muted); }
.footer__crown { width: 44px; height: 50px; color: var(--red); display: block; margin: 0 auto 10px; }
.footer__brand { font: 400 30px/1 var(--display); letter-spacing: .1em; color: var(--ink); }
.footer__brand b { font-weight: 400; color: var(--red); margin-left: .25em; }
.footer p { margin: 10px 0 0; }
.footer__legal { font-size: 13px; }

/* ---------- Ficha de producto ---------- */
.modal {
  width: min(980px, calc(100% - 24px)); max-height: calc(100svh - 24px);
  padding: 0; border: 1px solid var(--line-2); border-radius: 26px;
  background: var(--bg-2); color: var(--ink);
  overflow: auto;
}
.modal::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .35s cubic-bezier(.2, .8, .2, 1); }
.modal__close {
  position: sticky; float: right; top: 12px; margin: 12px 12px 0 0; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(6, 6, 6, .7); cursor: pointer; font-size: 16px;
}
.modal__body { display: grid; grid-template-columns: 1.05fr 1fr; }
.pd__gallery { padding: 14px; }
.pd__main { aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: #111; }
.pd__main img { width: 100%; height: 100%; object-fit: cover; }
.pd__main svg { width: 86%; margin: 30% auto 0; }
.pd__thumbs { display: flex; gap: 8px; margin-top: 10px; }
.pd__thumbs button { width: 64px; aspect-ratio: 1; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: #111; }
.pd__thumbs button.is-active { border-color: var(--red); }
.pd__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd__info { padding: 34px 30px 30px 18px; }
.pd__info h3 { margin: 8px 0 12px; font: 400 clamp(32px, 4vw, 46px)/1 var(--display); text-transform: uppercase; }
.pd__price { display: flex; align-items: baseline; gap: 12px; }
.pd__price strong { font: 400 38px/1 var(--display); color: var(--red); }
.pd__price s { color: var(--muted); }
.pd__desc { color: var(--ink-2); margin: 16px 0 0; white-space: pre-line; }
.pd__label { display: block; margin: 22px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; }
.size { height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; font-weight: 800; cursor: pointer; transition: all .15s; }
.size:hover { border-color: var(--ink); }
.size.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.pd__hint { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.pd__hint.is-error { color: var(--red-2); font-weight: 700; }
.pd__actions { display: grid; gap: 10px; margin-top: 10px; }

/* ---------- Pedido ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
.drawer {
  position: fixed; z-index: 71; top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  background: var(--bg-2); border-left: 1px solid var(--line-2);
  display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 22px 14px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; font: 400 32px/1 var(--display); text-transform: uppercase; }
.drawer__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; }
.drawer__items { flex: 1; overflow: auto; padding: 8px 22px; }
.drawer__empty { text-align: center; color: var(--muted); padding: 50px 0; }
.line { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line__img { width: 70px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #111; }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line strong { display: block; font-size: 14px; line-height: 1.3; }
.line small { display: block; margin-top: 2px; color: var(--muted); }
.line__qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; }
.line__qty button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; }
.line__remove {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: transparent; color: var(--muted);
  cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.line__remove svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.line__remove:hover, .line__remove:focus-visible { color: var(--red); border-color: var(--red); background: rgba(255, 36, 18, .08); }
.drawer__foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.drawer__total strong { font: 400 30px/1 var(--display); }
.drawer__note { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.toast {
  position: fixed; z-index: 95; left: 50%; bottom: 26px;
  width: max-content; /* si no, se angosta a la mitad de la pantalla y parte el texto */
  transform: translate(-50%, 30px); opacity: 0;
  padding: 14px 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  transition: opacity .3s, transform .3s; pointer-events: none;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Animaciones ---------- */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotateY(-14deg) rotate(-2deg); } 50% { transform: translateY(-6px) rotateY(14deg) rotate(2deg); } }
@keyframes spinY { to { transform: rotateY(360deg); } }
@keyframes floatBig { 0%, 100% { transform: translate(-50%, -50%) rotate(-3deg); } 50% { transform: translate(-50%, -56%) rotate(3deg); } }
@keyframes glow { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 36, 18, .7); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255, 36, 18, 0); } }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }
@keyframes bump { 40% { transform: scale(1.35); } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.98); } }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- Celular ---------- */
@media (max-width: 860px) {
  .ship { grid-template-columns: 1fr; }
  .ship__photos { height: 118vw; max-height: 560px; }
  .steps__list { grid-template-columns: 1fr; }
  .modal__body { grid-template-columns: 1fr; }
  .pd__info { padding: 8px 20px 26px; }
}
@media (max-width: 600px) {
  :root { --notice-h: 30px; }
  .notice { font-size: 10.5px; }
  .pill span:not(.cart-count) { display: none; }
  .pill { padding: 0 13px; height: 44px; }
  .brand__crown { width: 58px; height: 58px; }
  .brand__fallback { inset: 8px 9px; width: 40px; height: 42px; }
  .hero { padding-top: 96px; padding-bottom: 76px; }
  .hero__stage { height: 40svh; min-height: 260px; margin-bottom: -6px; }
  .toast { bottom: auto; top: calc(14px + env(safe-area-inset-top)); transform: translate(-50%, -20px); }
  .hero__title-b { letter-spacing: .3em; margin-right: -.3em; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { border-radius: 16px; }
  .card__body { padding: 12px 12px 14px; }
  .card__name { font-size: 14px; margin: 4px 0 6px; }
  .card__price-tag { font-size: 21px; right: 10px; bottom: 10px; }
  .card__sizes { display: none; }
  .card__cta { margin-top: 10px; padding-top: 10px; font-size: 11px; }
  .badge { top: 10px; left: 10px; padding: 5px 9px; font-size: 9.5px; }
  .toolbar__right, .search { width: 100%; }
  .search input { width: 100%; }
  .sort { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .card { opacity: 1; transform: none; }
  .brand__fallback { animation-duration: 6s !important; animation-iteration-count: infinite !important; }
}
