/* ==========================================================================
   EROS SHOP — TIENDA
   Filtros, tarjetas de producto, ficha (drawer), bolsa, checkout,
   guía de tallas y lightbox.
   ========================================================================== */

/* ---------- Filtros ---------- */
.filters {
  position: sticky; top: var(--hdr-offset, var(--nav-h)); z-index: 20;
  display: grid; gap: 10px; margin: 0 calc(var(--gutter) * -1) clamp(22px, 3vw, 40px); padding: 12px var(--gutter);
  background: rgba(241, 236, 227, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-block: 1px solid var(--line-paper); transition: top .55s var(--ease);
}
.filters__row { display: flex; align-items: center; gap: 8px; }
.filters__cats { overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.filters__cats::-webkit-scrollbar { display: none; }
.filters__meta { justify-content: space-between; flex-wrap: wrap; row-gap: 10px; }
.filters__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.filters__count { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-paper); white-space: nowrap; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid rgba(10,10,10,.22); border-radius: 999px; background: transparent;
  font-size: 11px; font-weight: 600; font-stretch: 114%; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s;
}
.chip sup { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0; opacity: .55; top: -.1em; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip--x { background: var(--red); border-color: var(--red); color: var(--paper); }
.chip--x svg { width: 14px; height: 14px; }
.filters__active { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { position: relative; display: inline-flex; padding: 3px; border: 1px solid rgba(10,10,10,.22); border-radius: 999px; }
.seg button, .seg label { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: 999px; font-size: 11px; font-weight: 600; font-stretch: 110%; letter-spacing: .1em; text-transform: uppercase; transition: color .3s, background-color .3s; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg--full { display: flex; }
.seg--full label { flex: 1; justify-content: center; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--ink); color: var(--paper); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.sort select {
  appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 36px 0 14px; border: 1px solid rgba(10,10,10,.22); border-radius: 999px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%230A0A0A' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
  font-size: 11px; font-weight: 600; font-stretch: 110%; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
/* Móvil: el orden se vuelve un botón redondo con ícono para que género + orden quepan en una sola fila
   (la barra fija ocupa menos pantalla). El menú nativo del celular sigue mostrando las opciones. */
.sort { position: relative; display: inline-flex; }
.sort select option { color: var(--ink); background: var(--paper-hi); }
@media (max-width: 599px) {
  .filters { padding-block: 10px; gap: 8px; }
  .filters__meta { flex-wrap: nowrap; }
  .seg button { padding: 0 9px; font-size: 10px; letter-spacing: .06em; }
  .filters__count { display: none; }
  .sort select {
    width: 44px; height: 44px; padding: 0; color: transparent; text-indent: -999px;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%230A0A0A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M3.5 16.5 7 20l3.5-3.5M17 20V4M13.5 7.5 17 4l3.5 3.5'/%3E%3C/g%3E%3C/svg%3E") center / 20px no-repeat;
  }
  .sort.is-set::after { content: ""; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--paper); pointer-events: none; }
}

/* ---------- Grilla y tarjetas ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 10px; }
@media (min-width: 600px) { .grid { gap: 44px 16px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 60px 20px; } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 68px 22px; } }
.noscript { grid-column: 1 / -1; padding: 24px; border: 1px dashed var(--ink); }
.noscript a { text-decoration: underline; }

.card { position: relative; min-width: 0; }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--paper-2); }
.card__link { position: absolute; inset: 0; display: block; }
.card__track { position: absolute; inset: 0; }
.card__track img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: opacity .7s var(--ease), transform 1.4s var(--ease-out); }
.card__track img + img { opacity: 0; }
@media (hover: hover) {
  .card:hover .card__track img:first-child { transform: scale(1.05); }
  .card:hover .card__track img:nth-child(2) { opacity: 1; transform: scale(1.02); }
  .card__track img:nth-child(n+3) { display: none; }
}
@media (hover: none) {
  .card__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .card__track::-webkit-scrollbar { display: none; }
  .card__track img { position: relative; flex: 0 0 100%; opacity: 1 !important; scroll-snap-align: start; }
  .card__track img + img { opacity: 1; }
}
.card__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.card__dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(241,236,227,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.15); transition: background-color .3s, transform .3s; }
.card__dots i.is-on { background: var(--paper); transform: scale(1.3); }
@media (hover: hover) { .card__dots { display: none; } }
.card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; pointer-events: none; }
.card__code { position: absolute; top: 12px; right: 12px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em; color: rgba(241,236,227,.92); text-shadow: 0 1px 6px rgba(0,0,0,.5); pointer-events: none; }
.card__add {
  position: absolute; right: 10px; bottom: 10px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); color: var(--ink); box-shadow: 0 8px 20px rgba(0,0,0,.2);
  transition: transform .5s var(--ease-out), background-color .3s, color .3s;
}
.card__add svg { width: 20px; height: 20px; transition: transform .5s var(--ease-out); }
.card__add:hover { background: var(--red); color: var(--paper); }
.card__add:hover svg, .card.is-picking .card__add svg { transform: rotate(90deg); }
.card.is-picking .card__add { background: var(--ink); color: var(--paper); }
.card.is-picking .card__add svg { transform: rotate(45deg); }
.card__sizes {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 12px 62px 12px 12px; background: rgba(10,10,10,.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--paper);
  transform: translateY(101%); transition: transform .5s var(--ease-out); visibility: hidden;
}
.card.is-picking .card__sizes { transform: none; visibility: visible; }
.card__sizes p { width: 100%; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-ink); }
.card__sizes .size { min-width: 40px; height: 40px; padding: 0 10px; font-size: 11px; }
@media (max-width: 599px) { .card__sizes { padding-right: 58px; gap: 5px; } .card__sizes .size { min-width: 36px; height: 38px; padding: 0 8px; } }
.card__info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding-top: 14px; }
.card__cat { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-paper); }
.card__name { font-family: var(--f-serif); font-weight: 400; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.15; letter-spacing: -.005em; }
.card__name a:hover { color: var(--red); }
.card__price { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 4px; font-family: var(--f-mono); font-size: 13px; font-weight: 500; }
.card__price s { font-size: 11.5px; font-weight: 400; color: var(--muted-paper); }
.card__price .is-ask { color: var(--red); }
.card__swatches { grid-row: 2; grid-column: 2; display: flex; gap: 5px; padding-top: 5px; }
.card__swatches span { width: 13px; height: 13px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 0 0 2px var(--paper), 0 0 0 3px rgba(10,10,10,.14); }
@media (max-width: 599px) { .card__code { display: none; } .card__info { padding-top: 10px; } }

/* Mosaicos editoriales dentro de la grilla (no son productos: se ven distintos a propósito).
   En 4 columnas ocupan 2 espacios para que la grilla cierre pareja. */
.tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--ink); color: var(--paper); display: grid; isolation: isolate; }
/* Video de marca. Angosto (móvil / 3 columnas): el video manda, con etiqueta arriba y botón de Instagram abajo.
   Ancho (4 columnas): video a la izquierda y texto a la derecha. */
.tile__media { position: absolute; inset: 0; z-index: -1; display: block; background: var(--ink); }
.tile__media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; transition: transform 1.4s var(--ease-out); }
.tile--video:hover .tile__media video { transform: scale(1.04); }
.tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,.55), transparent 28%); }
.tile__body { position: absolute; inset: 0; display: block; }
.tile__kicker {
  position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px 5px; border-radius: 2px;
  background: rgba(10,10,10,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper);
}
.tile__kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--red-lit); animation: rec 1.8s ease-out infinite; }
@keyframes rec { 0% { box-shadow: 0 0 0 0 rgba(229,57,79,.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(229,57,79,0); } }
.tile__title, .tile__text, .tile__cta-txt, .tile__cta svg[viewBox="0 0 44 12"] { display: none; }
.tile__cta {
  position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); box-shadow: 0 8px 20px rgba(0,0,0,.3); transition: background-color .3s, color .3s;
}
.tile__cta svg { width: 20px; height: 20px; flex: none; }
.tile--video:hover .tile__cta { background: var(--red); color: var(--paper); }
.tile--quote { background: var(--red); padding: clamp(16px, 2vw, 28px); align-content: space-between; }
.tile--quote p { font-family: var(--f-serif); font-size: clamp(22px, 2.4vw, 36px); line-height: 1.05; letter-spacing: -.01em; }
.tile--quote p em { display: block; }
.tile--quote small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.tile--quote svg { width: 72%; color: rgba(241,236,227,.92); fill: currentColor; }
@media (max-width: 599px) {
  .tile--quote { padding: 14px; }
  .tile--quote svg { width: 62%; }
  .tile--quote p { font-size: 19px; }
  .tile--quote small { font-size: 8.5px; letter-spacing: .1em; line-height: 1.35; }
}
@media (min-width: 1280px) {
  .tile--wide { grid-column: span 2; aspect-ratio: auto; }
  .tile--video { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tile--video .tile__media { position: relative; inset: auto; z-index: 0; }
  .tile--video .tile__media::after { background: linear-gradient(to right, transparent 60%, rgba(10,10,10,.9)); }
  .tile--video .tile__body { position: relative; inset: auto; display: grid; align-content: end; justify-items: start; gap: 12px; padding: 30px 28px; }
  .tile--video .tile__kicker { position: static; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--muted-ink); }
  .tile__title { display: block; font-family: var(--f-serif); font-size: clamp(28px, 2.4vw, 38px); line-height: 1; letter-spacing: -.01em; }
  .tile__title em { display: block; color: var(--red-lit); }
  .tile__text { display: block; max-width: 30ch; font-size: 14px; line-height: 1.5; color: var(--muted-ink); }
  .tile--video .tile__cta {
    position: static; width: auto; height: auto; min-height: 40px; display: inline-flex; align-items: center; gap: 10px; margin-top: 2px;
    border-radius: 0; background: none; color: var(--paper); box-shadow: none; border-bottom: 1px solid currentColor;
    font-size: 10.5px; font-weight: 700; font-stretch: 116%; letter-spacing: .14em; text-transform: uppercase;
  }
  .tile--video .tile__cta svg { width: 16px; height: 16px; }
  .tile--video .tile__cta-txt { display: inline; }
  .tile--video .tile__cta svg[viewBox="0 0 44 12"] { display: block; width: 30px; height: 10px; transition: transform .45s var(--ease); }
  .tile--video:hover .tile__cta { background: none; color: var(--paper); }
  .tile--video:hover .tile__cta svg[viewBox="0 0 44 12"] { transform: translateX(6px); }
  .tile--quote { grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr auto; gap: 20px 28px; align-items: end; padding: 30px; }
  .tile--quote svg { grid-column: 1; grid-row: 1 / -1; align-self: center; width: 100%; }
  .tile--quote p { font-size: clamp(30px, 2.6vw, 42px); }
}

.empty { display: grid; justify-items: center; gap: 14px; padding: 60px 20px 20px; text-align: center; }
.empty__arrow { width: 120px; height: 24px; color: var(--red); transform: rotate(-12deg); }
.empty h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.05; max-width: 18ch; }
.empty p { color: var(--muted-paper); max-width: 42ch; }
.empty__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* Imagen que vuela a la bolsa */
.fly { position: fixed; z-index: 450; left: 0; top: 0; pointer-events: none; }
.fly__y { will-change: transform; }
.fly img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; box-shadow: 0 20px 40px rgba(0,0,0,.35); }

/* ---------- Capas: fondo, drawers, modal ---------- */
.is-locked, .is-locked body { overflow: hidden; }
.backdrop { position: fixed; inset: 0; z-index: 300; background: rgba(5,5,5,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .5s var(--ease); }
.backdrop.is-open { opacity: 1; }
.drawer {
  position: fixed; z-index: 310; top: 0; right: 0; bottom: 0; width: min(100vw, 480px);
  display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  box-shadow: -30px 0 80px rgba(0,0,0,.35); transform: translateX(104%); transition: transform .7s var(--ease-out); visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.drawer__close {
  position: absolute; top: 12px; right: 12px; z-index: 6; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); color: var(--ink); border: 1px solid var(--line-paper);
  transition: transform .5s var(--ease-out), background-color .3s, color .3s;
}
.drawer__close svg { width: 20px; height: 20px; }
.drawer__close:hover { transform: rotate(90deg); background: var(--ink); color: var(--paper); }
.drawer__grab { display: none; }

/* Ficha de producto */
.drawer--product { width: min(100vw, 560px); }
@media (min-width: 1100px) { .drawer--product { width: min(1060px, 78vw); } }
@media (max-width: 767px) {
  .drawer--product { top: auto; left: 0; width: 100%; height: 94svh; height: 94vh; max-height: calc(100% - 20px); border-radius: 18px 18px 0 0; transform: translateY(104%); box-shadow: 0 -30px 80px rgba(0,0,0,.4); }
  .drawer--product.is-open { transform: translateY(var(--drag, 0px)); }
  .drawer--product.is-dragging { transition: none; }
  .drawer--product .drawer__grab { display: grid; place-items: center; position: absolute; top: 0; left: 0; right: 0; z-index: 5; height: 26px; touch-action: none; cursor: grab; }
  .drawer__grab span { width: 44px; height: 4px; border-radius: 2px; background: rgba(241,236,227,.9); box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
  .drawer--product .drawer__scroll { border-radius: 18px 18px 0 0; }
  .drawer--product .drawer__close { top: 14px; }
}
.pd { display: grid; }
@media (min-width: 1100px) { .pd { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 100%; } }
.pd__gallery { position: relative; background: var(--paper-2); }
@media (min-width: 1100px) { .pd__gallery { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; } }
.pd__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; aspect-ratio: 4 / 4.6; }
@media (max-width: 767px) { .pd__track { aspect-ratio: auto; height: min(58svh, 125vw); } }
@media (min-width: 1100px) { .pd__track { flex: 1; aspect-ratio: auto; min-height: 0; } }
.pd__track::-webkit-scrollbar { display: none; }
.pd__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; cursor: zoom-in; }
.pd__slide img { width: 100%; height: 100%; object-fit: cover; }
.pd__count { position: absolute; left: 16px; top: 16px; z-index: 2; padding: 5px 9px; border-radius: 2px; background: rgba(10,10,10,.72); color: var(--paper); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; }
@media (max-width: 767px) { .pd__count { top: 30px; } }
.pd__arrows { position: absolute; left: 12px; right: 12px; top: 50%; display: flex; justify-content: space-between; pointer-events: none; transform: translateY(-50%); }
.pd__arrows button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(241,236,227,.9); color: var(--ink); pointer-events: auto; transition: background-color .3s, color .3s, opacity .3s; }
.pd__arrows button:hover { background: var(--ink); color: var(--paper); }
.pd__arrows button:disabled { opacity: 0; pointer-events: none; }
.pd__arrows svg { width: 20px; height: 20px; }
@media (hover: none) { .pd__arrows { display: none; } }
.pd__zoom { position: absolute; right: 14px; bottom: 76px; z-index: 2; height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(10,10,10,.72); color: var(--paper); font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.pd__thumbs { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; }
.pd__thumbs button { flex: none; width: 50px; height: 60px; border-radius: 2px; overflow: hidden; opacity: .55; outline: 1px solid transparent; transition: opacity .3s, outline-color .3s; }
.pd__thumbs button[aria-current="true"] { opacity: 1; outline: 1.5px solid var(--ink); outline-offset: 2px; }
.pd__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd__info { display: grid; gap: 18px; align-content: start; padding: 26px clamp(20px, 3vw, 40px) 0; }
.pd__code { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-paper); padding-right: 50px; }
.pd__name { font-family: var(--f-serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 48px); line-height: 1; letter-spacing: -.018em; margin-top: -8px; }
.pd__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pd__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-family: var(--f-mono); font-size: 20px; font-weight: 500; }
.pd__price s { font-size: 14px; font-weight: 400; color: var(--muted-paper); }
.pd__price .pd__off { padding: 3px 7px; border-radius: 2px; background: var(--red); color: var(--paper); font-size: 11px; }
.pd__price .is-ask { color: var(--red); }
.pd__desc { color: #3b3833; max-width: 52ch; }
.pd__label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-paper); }
.pd__label b { font-family: var(--f-sans); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--ink); }
.pd__label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pd__label-row .text-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 13px; }
.pd__label-row .text-btn svg { width: 18px; height: 18px; }
.pd__opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid transparent; transition: border-color .3s; }
.swatch span { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.swatch[aria-checked="true"] { border-color: var(--ink); }
.pd .size { border-color: rgba(10,10,10,.28); min-width: 54px; height: 46px; }
.pd .size:hover { border-color: var(--ink); }
.pd .size[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pd__opt.is-error .pd__opts { animation: shake .5s; }
.pd__opt.is-error .size { border-color: var(--red); }
.pd__err { min-height: 0; margin-top: 8px; font-size: 13.5px; color: var(--red); }
.pd__err:empty { display: none; }
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(10,10,10,.28); border-radius: 999px; }
.qty button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.qty button:hover { color: var(--red); }
.qty button:disabled { opacity: .3; pointer-events: none; }
.qty svg { width: 16px; height: 16px; }
.qty output { min-width: 28px; text-align: center; font-family: var(--f-mono); font-size: 14px; }
.qty--sm button { width: 36px; height: 36px; }
.pd__qty-row { display: flex; align-items: center; justify-content: space-between; }
.pd__buy {
  position: sticky; bottom: 0; z-index: 4; display: grid; gap: 8px; margin: 4px calc(clamp(20px, 3vw, 40px) * -1) 0;
  padding: 14px clamp(20px, 3vw, 40px) max(14px, env(safe-area-inset-bottom)); background: rgba(241,236,227,.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line-paper);
}
.pd__buy .btn { min-height: 54px; }
.pd__buy .btn--ghost-ink { min-height: 48px; }
.pd__share { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.pd__share svg { width: 18px; height: 18px; }
.pd__share:hover { color: var(--red); }
.pd__details { border-top: 1px solid var(--line-paper); padding-top: 14px; }
.pd__details h3 { font-family: var(--f-mono); font-weight: 500; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-paper); margin-bottom: 10px; }
.pd__details li { position: relative; padding: 7px 0 7px 22px; border-bottom: 1px dashed var(--line-paper); font-size: 14.5px; }
.pd__details li::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--red); }
.pd__note { display: flex; gap: 10px; padding: 14px; border-radius: 3px; background: var(--paper-2); font-size: 13.5px; color: #3b3833; }
.pd__note svg { flex: none; width: 20px; height: 20px; color: var(--red); }
.pd__combo { padding: 8px 0 28px; }
.pd__combo h3 { font-family: var(--f-serif); font-weight: 400; font-size: 26px; margin-bottom: 14px; }
.pd__combo h3 em { color: var(--red); }
.pd__combo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini { display: grid; gap: 8px; text-align: left; }
.mini__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--paper-2); }
.mini__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.mini:hover .mini__img img { transform: scale(1.05); }
.mini__name { font-family: var(--f-serif); font-size: 15px; line-height: 1.2; }
.mini__price { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted-paper); }
.pd.is-swapping { animation: pd-swap .5s var(--ease-out); }
@keyframes pd-swap { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Bolsa ---------- */
.drawer--bag { width: min(100vw, 480px); }
.bag__head { position: relative; padding: 20px 70px 16px 24px; border-bottom: 1px solid var(--line-paper); }
.bag__head h2 { font-family: var(--f-serif); font-weight: 400; font-size: 34px; line-height: 1; }
.bag__head h2 em { color: var(--red); }
.bag__n { font-family: var(--f-mono); font-size: 12px; vertical-align: middle; color: var(--muted-paper); }
.bag__steps { display: flex; gap: 18px; margin-top: 14px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-paper); }
.bag__steps li { display: flex; align-items: baseline; gap: 6px; }
.bag__steps span { font-family: var(--f-serif); font-style: italic; font-size: 14px; letter-spacing: 0; }
.bag__steps li[aria-current="step"] { color: var(--ink); }
.bag__steps li[aria-current="step"] span { color: var(--red); }
.bag__steps li.is-done { color: var(--ink); }
.bag__lines li { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--line-paper); animation: rise .5s var(--ease-out) both; }
.bag__lines li.is-removing { animation: line-out .4s var(--ease) forwards; }
@keyframes line-out { to { opacity: 0; transform: translateX(40px); } }
.bag__thumb { width: 82px; height: 102px; border-radius: 2px; overflow: hidden; background: var(--paper-2); }
.bag__thumb img { width: 100%; height: 100%; object-fit: cover; }
.bag__row { display: flex; justify-content: space-between; gap: 10px; }
.bag__name { font-family: var(--f-serif); font-size: 18px; line-height: 1.15; }
.bag__name button:hover { color: var(--red); }
.bag__meta { margin-top: 4px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-paper); }
.bag__meta .tag { display: inline-block; margin-top: 4px; padding: 2px 6px; background: var(--ink); color: var(--paper); border-radius: 2px; }
.bag__price { font-family: var(--f-mono); font-size: 13px; font-weight: 500; white-space: nowrap; }
.bag__price small { display: block; font-size: 10px; font-weight: 400; color: var(--muted-paper); text-align: right; }
.bag__ctrl { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.bag__remove { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-paper); }
.bag__remove svg { width: 16px; height: 16px; }
.bag__remove:hover { color: var(--red); }
.bag__empty { display: grid; justify-items: center; gap: 12px; padding: 60px 30px; text-align: center; }
.bag__empty-sign { width: 170px; color: var(--paper-3); }
.bag__empty-title { font-family: var(--f-serif); font-size: 30px; line-height: 1.05; }
.bag__empty p:not(.bag__empty-title) { color: var(--muted-paper); max-width: 30ch; }
.bag__foot { padding: 16px 24px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line-paper); background: var(--paper); display: grid; gap: 14px; }
.bag__totals { display: grid; gap: 6px; }
.bag__totals p { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: #3b3833; }
.bag__totals p span:last-child { font-family: var(--f-mono); font-size: 13px; }
.bag__totals .is-total { align-items: baseline; margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line-paper); color: var(--ink); }
.bag__totals .is-total span:first-child { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.bag__totals .is-total span:last-child { font-family: var(--f-serif); font-size: 30px; }
.bag__totals .is-note { font-size: 12.5px; color: var(--red); justify-content: flex-start; }
.bag__actions { display: grid; gap: 8px; }
.bag__actions .btn { min-height: 54px; }
.bag__actions-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.bag__actions-row .btn--red { padding-inline: 18px; }
@media (max-width: 440px) { .bag__send-long { display: none; } .bag__actions-row .btn--red { letter-spacing: .1em; } }

/* Checkout */
.checkout { display: grid; gap: 16px; padding: 20px 24px 26px; }
.checkout__intro { font-size: 14px; color: #3b3833; }
.checkout__legal { font-size: 12.5px; color: var(--muted-paper); }
.checkout__legal a { text-decoration: underline; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field legend { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #4a4640; }
.field label small { text-transform: none; letter-spacing: 0; }
.field label span, .field legend span { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(10,10,10,.26); border-radius: 3px;
  background: var(--paper-hi); color: var(--ink); font-size: 16px; line-height: 1.3; transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(179,18,42,.22); }
.field input::placeholder, .field textarea::placeholder { color: #8b857c; }
.field.is-invalid input { border-color: var(--red); box-shadow: 0 0 0 3px rgba(179,18,42,.14); }
.field__err { font-size: 13px; color: var(--red); }
.field__err:empty { display: none; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 380px) { .field-row { grid-template-columns: 1fr; } }
.field--pay legend { margin-bottom: 8px; }
.pay { display: flex; flex-wrap: wrap; gap: 8px; }
.pay label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid rgba(10,10,10,.26); border-radius: 999px; font-family: var(--f-sans); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.pay label span, .field .seg label span { color: inherit; } /* anula el rojo de los asteriscos (.field label span) */
.pay input { position: absolute; opacity: 0; pointer-events: none; }
.pay label:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pay label:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }

/* Confirmación */
.done { display: grid; gap: 16px; justify-items: start; padding: 34px 24px 30px; }
.done__sign { width: 150px; color: var(--red); }
.done__title { font-family: var(--f-serif); font-weight: 400; font-size: clamp(32px, 7vw, 42px); line-height: 1.02; }
.done__title em { color: var(--red); font-size: .72em; }
.done p { color: #3b3833; }
.done .kicker b { color: var(--red); letter-spacing: .12em; }
.done__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }

/* ---------- Guía de tallas (modal) ---------- */
.modal { position: fixed; inset: 0; z-index: 330; display: grid; place-items: center; padding: 20px; pointer-events: none; }
.modal__box {
  position: relative; width: min(100%, 500px); max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 38px); border-radius: 6px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px rgba(0,0,0,.45);
  display: grid; gap: 16px; opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .45s var(--ease), transform .6s var(--ease-out); pointer-events: auto;
}
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal h2 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(34px, 5vw, 46px); line-height: 1; }
.modal h2 em { color: var(--red); }
@media (max-width: 599px) {
  .modal { place-items: end stretch; padding: 0; }
  .modal__box { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; transform: translateY(100%); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
.sg { display: grid; gap: 14px; }
.sg-result { display: grid; justify-items: center; gap: 6px; padding: 22px; border-radius: 4px; background: var(--ink); color: var(--paper); text-align: center; animation: rise .6s var(--ease-out) both; }
.sg-result__label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-ink); }
.sg-result__size { font-family: var(--f-serif); font-size: 84px; line-height: .95; color: var(--paper); }
.sg-result__why { font-size: 14px; color: var(--muted-ink); max-width: 36ch; }
.sg-result__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.sg-result .btn--ghost-ink { --fg: var(--paper); --bd: rgba(241,236,227,.4); --sweep: var(--paper); }
.sg-result .btn--ghost-ink:hover { color: var(--ink); }
.sg__disclaimer { font-size: 12.5px; color: var(--muted-paper); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 350; background: rgba(8,8,8,.97); display: grid; place-items: center; opacity: 0; transition: opacity .4s var(--ease); }
.lightbox.is-open { opacity: 1; }
.lightbox__stage { position: relative; width: 100%; height: 100%; overflow: hidden; display: grid; place-items: center; cursor: zoom-in; touch-action: pan-y; }
.lightbox__stage img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; transition: transform .45s var(--ease-out); transform-origin: var(--ox, 50%) var(--oy, 50%); user-select: none; -webkit-user-drag: none; }
.lightbox.is-zoomed .lightbox__stage { cursor: zoom-out; touch-action: none; }
.lightbox.is-zoomed .lightbox__stage img { transform: scale(2.2); transition: transform .45s var(--ease-out), transform-origin 0s; }
.lightbox__close { top: max(16px, env(safe-area-inset-top)); right: 16px; background: var(--paper); }
.lightbox__nav { position: absolute; top: 50%; z-index: 3; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(241,236,227,.12); color: var(--paper); transform: translateY(-50%); transition: background-color .3s; }
.lightbox__nav:hover { background: rgba(241,236,227,.25); }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
.lightbox__hint { position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-ink); white-space: nowrap; }
