@font-face {
  font-family: "PP Neue Montreal";
  src: url("fonts/PPNeueMontreal-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fafafa;
  --ink: #000;
  --ink-soft: #171717;
  --muted: #8c8c8c;
  --gutter: clamp(16px, 2.9vw, 50px);
  --nav-size: clamp(16px, 1.38vw, 23.9px);
  --filter-size: clamp(34px, 3.48vw, 60.2px);
  --col: 253px;
  --col-gap: clamp(16px, 3.8vw, 66px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* que ningún display del CSS le gane a hidden */

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Bloque superior fijo (header + categorías + color/orden):
   se esconde al bajar y vuelve a aparecer entero al subir */
body { padding-top: var(--top-h, 0px); }
/* El footer queda abajo aunque la página tenga poco contenido */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; }
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  padding-bottom: 18px;
  background: var(--bg);
  transition: transform .45s var(--ease);
}
.top.is-hidden { transform: translateY(-100%); }
.top .filters { transition: margin-top .4s var(--ease); }
.top.is-compact .filters { margin-top: 28px; }
body.menu-open .top { background: transparent; pointer-events: none; }
body.menu-open .top .header { pointer-events: auto; }
body.menu-open .top .filters, body.menu-open .top .toolbar { visibility: hidden; }

/* Header */
.header {
  position: relative;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 29px;
  margin: 46px var(--gutter) 0;
  font-size: var(--nav-size);
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.nav { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
@media (hover: hover) { .nav a:hover, .search-toggle:hover { opacity: .5; } }

.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  width: clamp(120px, 10.6vw, 184px);
}
.logo img { display: block; width: 100%; height: auto; }

/* Buscador: "Buscar," se pliega y la línea crece desde la derecha */
.search-toggle {
  max-width: 6em;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width .45s var(--ease), opacity .25s var(--ease), margin .45s var(--ease);
}
.is-searching .search-toggle { max-width: 0; opacity: 0; margin-right: -8px; pointer-events: none; }
.orders-link { max-width: 8em; overflow: hidden; white-space: nowrap; transition: max-width .45s var(--ease), opacity .25s var(--ease), margin .45s var(--ease); }
/* En pantallas medianas, mientras se busca, "Mis pedidos" se pliega para que la línea no pise el logo */
@media (max-width: 1300px) {
  .nav--right .search { --search-w: 11vw; }
  .is-searching .orders-link { max-width: 0; opacity: 0; margin-right: -8px; pointer-events: none; }
}

.search {
  --search-w: clamp(160px, 15.3vw, 265px);
  display: flex;
  align-items: center;
  gap: 22px;
  width: 0;
  margin-left: -8px; /* cerrado no suma espacio entre "Buscar," y "Carrito" */
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: width .5s var(--ease), margin .5s var(--ease), opacity .3s var(--ease), visibility 0s .5s;
}
.is-searching .search {
  width: calc(var(--search-w) + 22px + 1.2em);
  margin-left: 0;
  margin-right: 14px; /* → y Carrito quedan a 22px */
  opacity: 1;
  visibility: visible;
  transition: width .5s var(--ease), margin .5s var(--ease), opacity .3s var(--ease) .05s, visibility 0s;
}
.search__submit { opacity: 0; transform: translateX(-6px); transition: opacity .3s var(--ease), transform .4s var(--ease); }
.is-searching .search__submit { opacity: 1; transform: none; transition-delay: .25s; }
.search__input {
  flex: none;
  width: var(--search-w);
  padding: 0 0 4px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(var(--ink), var(--ink)) no-repeat right bottom / 0% 1px;
  transition: background-size .55s var(--ease) .1s;
  font: inherit;
  letter-spacing: inherit;
  color: var(--ink);
  outline: none;
}
.is-searching .search__input { background-size: 100% 1px; }
.search__input::-webkit-search-cancel-button { display: none; }
@media (hover: hover) { .search__submit:hover { opacity: .5; } }

/* Menú mobile */
.menu-toggle { display: none; }
.menu {
  position: fixed;
  inset: 0;
  z-index: 8;
  padding: 110px var(--gutter) 40px;
  background: var(--bg);
  animation: menu-in .35s var(--ease);
}
.menu[hidden] { display: none; }
.menu__nav { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 34px; letter-spacing: -0.02em; line-height: 1.2; }
@media (hover: hover) { .menu__nav a:hover, .menu__nav button:hover { opacity: .5; } }
body.menu-open { overflow: hidden; }

@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* Filtros */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: .19em;
  max-width: 11.8em;
  margin: clamp(64px, 7.7vw, 133px) auto 0;
  padding: 0 var(--gutter);
  font-size: var(--filter-size);
  letter-spacing: -0.02em;
  line-height: 1.2;
  box-sizing: content-box;
}
.filter { opacity: .2; white-space: nowrap; transition: opacity .25s var(--ease); }
@media (hover: hover) { .filter:hover { opacity: .5; } }
.filter[aria-pressed="true"] { opacity: 1; }

/* Color y orden */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 12.5px;
  margin: 14px var(--gutter) 0;
  font-size: clamp(14px, 1.02vw, 17.5px);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.toolbar__colors, .toolbar__sort { display: flex; align-items: center; gap: 6.6px; flex-wrap: wrap; justify-content: center; }
.toolbar__colors { gap: 0; }
.toolbar__label { display: inline-flex; align-items: center; gap: 6.6px; }
@media (hover: hover) { .toolbar__label:hover { opacity: .5; } }

.swatches { display: flex; align-items: center; margin-left: 12.5px; transition: margin .45s var(--ease); }
.swatches:not(.is-open):not(:has([aria-pressed="true"])) { margin-left: 0; }
.swatch {
  flex: none;
  width: 15px;
  height: 15px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
  transition:
    width .45s var(--ease), margin .45s var(--ease), opacity .3s var(--ease),
    transform .45s var(--ease), box-shadow .2s var(--ease);
  transition-delay: calc(var(--i, 0) * 22ms);
}
.swatch:last-child { margin-right: 0; }
/* Cerrada: solo queda el color elegido (si hay); el resto se pliega */
.swatches:not(.is-open) .swatch:not([aria-pressed="true"]) {
  width: 0;
  margin-right: 0;
  opacity: 0;
  transform: scale(.3);
  pointer-events: none;
  transition-delay: calc((12 - var(--i, 0)) * 14ms);
}
.swatches:not(.is-open) .swatch[aria-pressed="true"] { margin-right: 0; transition-delay: 0s; }
.swatch[data-color="blanco"] { box-shadow: inset 0 0 0 1px var(--ink); }
@media (hover: hover) { .swatch:hover { transform: scale(1.15); } }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 2.5px var(--ink); }
.toolbar__sort button { color: #c8c8c8; transition: color .2s var(--ease); }
@media (hover: hover) { .toolbar__sort button:hover { color: #8c8c8c; } }
.toolbar__sort button[aria-pressed="true"] { color: var(--ink); }

.status {
  margin: 12px var(--gutter) 0;
  text-align: center;
  font-size: 16px;
  color: var(--muted);
}
.status:empty { display: none; }

/* Grilla */
.grid {
  display: grid;
  grid-template-columns: repeat(5, var(--col));
  justify-content: center;
  column-gap: var(--col-gap);
  row-gap: 38px;
  margin: clamp(24px, 4vw, 69px) auto 0;
  padding: 0 var(--gutter) 90px;
  list-style: none;
}

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

.card__media {
  position: relative;
  aspect-ratio: 253 / 235;
  overflow: hidden;
}

.card__link { display: block; width: 100%; height: 100%; }
.card__name a { color: inherit; }
@media (hover: hover) { .card__name a:hover { opacity: .5; } }
.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s var(--ease);
}

.card__add {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  padding: 8px;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 16px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .25s var(--ease);
}

.card:hover .card__img,
.card__media:focus-within .card__img { opacity: .3; }

.card:hover .card__add,
.card__add:focus-visible { opacity: 1; }

/* El ✓ de "Agregado (✓)" usa la tipografía del sistema, como en el Figma */
/* El ✓ siempre con la tipografía del sistema (SF en Apple), como el SF Symbol del Figma */
.sf-check { font-family: "SF Compact", "SF Pro Text", "SF Pro", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-weight: 500; }

/* Barra "Agregar al Carrito (+)": solo en mobile y tablet */
.card__cta { display: none; }

.card__info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 0 3.5%;
}
.card__name, .card__price { font-size: 16px; letter-spacing: -0.005em; line-height: 1.2; }
.card__price { white-space: nowrap; }
.card__size { margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.2; }

/* Carrito */
@media (hover: hover) { .cart-toggle:hover, .orders-link:hover { opacity: .5; } }
.cart-toggle__total { margin-left: 8px; }

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, .08);
}

.cart {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  padding: 46px var(--gutter) 32px;
  background: var(--bg);
  border-left: 1px solid #e6e6e6;
  font-size: 16px;
  letter-spacing: -0.005em;
  line-height: 1.2;
  animation: slide-in .3s var(--ease);
}
.cart[hidden], .cart-backdrop[hidden], .cart [hidden] { display: none; }

@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } }

.cart__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  font-size: var(--nav-size);
}
@media (hover: hover) { .cart__head button:hover, .cart__item button:hover { opacity: .5; } }

.cart__list { flex: 1; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.cart__item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid #ececec;
}
.cart__item img { display: block; width: 80px; height: auto; }
.cart__size { margin-top: 3px; font-size: 12px; color: var(--muted); }
.cart__item-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; white-space: nowrap; }
.cart__item-end button { font-size: 12px; color: var(--muted); }

.cart__empty { flex: 1; color: var(--muted); }

.cart__foot { padding-top: 16px; border-top: 1px solid #ececec; }
.cart__row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.cart__error:not(:empty) { margin-top: 10px; font-size: 12px; color: #b3261e; text-align: center; }

/* Envío gratis y botones (carrito y checkout) */
.ship-progress { margin: 0 0 20px; }
.ship-progress__text { margin-bottom: 10px; }
.ship-progress__track { height: 10px; border-radius: 999px; background: #e6e6e6; overflow: hidden; }
.ship-progress__fill {
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  transition: width .4s var(--ease);
}

.btn-pill {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 16px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 17px;
  text-align: center;
  transition: opacity .2s var(--ease);
}
@media (hover: hover) { .btn-pill:hover { opacity: .8; } }
.btn-pill:disabled { opacity: .5; cursor: progress; }

.link-more {
  display: block;
  width: fit-content;
  margin: 16px auto 0;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (hover: hover) { .link-more:hover { opacity: .5; } }

/* Checkout */
.checkout {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 400px);
  justify-content: center;
  gap: clamp(32px, 7vw, 120px);
  margin: clamp(40px, 5vw, 88px) var(--gutter) 90px;
  font-size: 16px;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.checkout h1 { margin: 0 0 8px; font-weight: 400; font-size: var(--filter-size); letter-spacing: -0.02em; line-height: 1.1; }
.checkout h2 { margin: 48px 0 20px; font-weight: 400; font-size: var(--nav-size); }
.checkout__lead { color: var(--ink); }

.fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; grid-column: span 6; }
.field--half { grid-column: span 3; }
.field--third { grid-column: span 2; }
.field--street { grid-column: span 4; }
.field label { font-size: 12px; color: var(--muted); }
.field:has(:required) > label::after { content: " *"; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 4px 0 6px;
  border: 0;
  border-bottom: 1px solid #cfcfcf;
  border-radius: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color .2s var(--ease);
}
.field select { appearance: none; background: no-repeat right 2px center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23000'/%3E%3C/svg%3E"); }
.field textarea { resize: vertical; min-height: 2.4em; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field [aria-invalid="true"] { border-bottom-color: #b3261e; }
.field__error { font-size: 12px; color: #b3261e; }
.fields--billing { margin-top: 22px; }
.fields[hidden] { display: none; }
.check { flex-direction: row; align-items: center; gap: 10px; cursor: pointer; }
.check input { width: auto; accent-color: var(--ink); margin: 0; }
.pay-option__price { margin-left: auto; white-space: nowrap; }
.pay-option[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
[data-carrier-error] { margin-top: 8px; }
.field__help { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; width: fit-content; }
@media (hover: hover) { .field__help:hover { color: var(--ink); } }
/* Las empresas aparecen recién cuando hay un código postal válido */
.carriers {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .45s var(--ease), opacity .3s var(--ease), margin .45s var(--ease);
}
.carriers > * { overflow: hidden; }
.carriers.is-open { grid-template-rows: 1fr; opacity: 1; margin-top: 24px; }
.carriers__note { font-size: 14px; color: var(--muted); }
.carriers__point { margin-top: 16px; }
.field__error:empty { display: none; }

.pay-options { display: grid; gap: 10px; }
.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dcdcdc;
  cursor: pointer;
  transition: border-color .2s var(--ease);
}
.pay-option:has(input:checked) { border-color: var(--ink); }
.pay-option input { accent-color: var(--ink); margin: 0; }
.pay-option small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }

.checkout__message { margin-top: 14px; font-size: 14px; text-align: center; }
.checkout__message:empty { display: none; }
.checkout__message.is-error { color: #b3261e; }
#card-brick { margin-top: 24px; }

.summary { align-self: start; position: sticky; top: 32px; }
.summary h2 { margin-top: 0; }
.summary .ship-progress { margin: 20px 0; }
.summary__list { margin: 0 0 16px; padding: 0; list-style: none; }
.summary__total { font-size: var(--nav-size); margin-top: 10px; padding-top: 12px; border-top: 1px solid #ececec; }

.done { max-width: 560px; margin: clamp(80px, 10vw, 160px) auto; padding: 0 var(--gutter); text-align: center; }
.done h1 { font-weight: 400; font-size: var(--filter-size); letter-spacing: -0.02em; margin: 0 0 16px; }
.done p { color: var(--ink); line-height: 1.4; }
.done a { display: inline-block; margin-top: 28px; border-bottom: 1px solid var(--ink); }
.done__order { margin-top: 32px; padding: 24px; border: 1px solid #dcdcdc; }
.done__order p { margin: 0; color: var(--ink); font-size: 14px; }
.done__order strong { display: block; margin: 8px 0 12px; font-weight: 400; font-size: var(--nav-size); letter-spacing: .02em; }
.done__order a { margin-top: 0; }
.done__bank > p strong { display: inline; margin: 0; font-size: inherit; letter-spacing: 0; }
.done__bank dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0; text-align: left; }
.done__bank dt { color: var(--muted); }
.done__bank dd { margin: 0; word-break: break-all; }
.done__bank .link-more { margin: 0 0 16px; }
.done__bank .btn-pill { margin-top: 16px; color: var(--bg); border: 0; }
.summary__discount span:last-child { color: #2e7d32; }
.pay-option strong { font-weight: 400; color: #2e7d32; }

/* Contacto */
.contact { width: 100%; max-width: 720px; margin: clamp(40px, 5vw, 88px) auto 90px; padding: 0 var(--gutter); font-size: 16px; letter-spacing: -0.005em; line-height: 1.2; }
.contact h1 { margin: 0 0 8px; font-weight: 400; font-size: var(--filter-size); letter-spacing: -0.02em; line-height: 1.1; }
.contact .checkout__lead { margin-bottom: 4px; }
.contact .contact__wa { margin-bottom: 40px; }
.contact__socials { margin-top: clamp(56px, 6vw, 96px); }
.contact__socials h2 { margin: 0 0 8px; font-weight: 400; font-size: var(--filter-size); letter-spacing: -0.02em; line-height: 1.1; }
.contact__wa a, .socials a { text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .contact__wa a:hover, .socials a:hover { opacity: .5; } }
.contact .done { margin: 0 auto; padding: 0; }
.field__label { font-size: 12px; color: var(--muted); }
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 16px;
  border: 1px dashed #c8c8c8;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone small { font-size: 12px; color: var(--muted); }
.dropzone.is-over, .dropzone:focus-within { border-color: var(--ink); background: #f3f3f3; }
@media (hover: hover) { .dropzone:hover { border-color: var(--ink); } }
.file-list { margin: 0; padding: 0; list-style: none; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #ececec; font-size: 14px; }
.file-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list small { color: var(--muted); margin-left: 8px; }
.file-list button { font-size: 12px; color: var(--muted); flex: none; }

/* Información */
.info { width: 100%; max-width: 820px; margin: clamp(40px, 5vw, 88px) auto 90px; padding: 0 var(--gutter); letter-spacing: -0.005em; line-height: 1.3; }
.info h1, .info h2 { margin: 0 0 16px; font-weight: 400; font-size: var(--filter-size); letter-spacing: -0.02em; line-height: 1.1; }
.info__intro p { margin: 0 0 .7em; font-size: var(--nav-size); line-height: 1.3; }
.info__block { margin-top: clamp(56px, 6vw, 96px); font-size: 16px; }
.info__block p { margin: 0 0 .6em; }
.info__block a { text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .info__block a:hover { opacity: .5; } }

.faq { border-top: 1px solid #dcdcdc; }
.faq__item { border-bottom: 1px solid #dcdcdc; }
.faq__item h3 { margin: 0; font-weight: 400; font-size: inherit; }
.faq__toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  font-size: var(--nav-size);
  text-align: left;
}
.faq__icon { flex: none; font-size: .8em; }
@media (hover: hover) { .faq__toggle:hover { opacity: .5; } }
/* Abre y cierra con animación de alto */
.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq__panel.is-open { grid-template-rows: 1fr; }
.faq__content { overflow: hidden; }
.faq__content p { max-width: 62ch; margin: 0 0 .7em; line-height: 1.4; }
.faq__content p:last-child { padding-bottom: 20px; margin-bottom: 0; }
.faq__content a { text-decoration: underline; text-underline-offset: 3px; }

/* Seguimiento */
.order { margin-top: clamp(48px, 5vw, 72px); padding-top: 32px; border-top: 1px solid #dcdcdc; }
.order__id { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.order__status { margin: 0 0 24px; font-weight: 400; font-size: var(--filter-size); letter-spacing: -0.02em; line-height: 1.1; }
.order h3 { margin: 40px 0 12px; font-weight: 400; font-size: var(--nav-size); }
.order__tracking { margin-bottom: 28px; padding: 20px; background: #f0f0f0; }
.order__tracking p { margin: 0; font-size: 14px; }
.order__tracking strong { display: block; margin: 6px 0 0; font-weight: 400; font-size: var(--nav-size); letter-spacing: .03em; word-break: break-all; }
.order__tracking .link-more { margin: 10px 0 0; font-size: 14px; }
.timeline { margin: 0; padding: 0; list-style: none; border-left: 1px solid #dcdcdc; }
.timeline li { position: relative; padding: 0 0 20px 20px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: -4.5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #c8c8c8; }
.timeline li.is-current { color: var(--ink); }
.timeline li.is-current::before { background: var(--ink); }
.timeline p { margin: 0 0 2px; }
.timeline small { font-size: 12px; color: var(--muted); }

/* Mis pedidos */
.orders__list { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid #dcdcdc; }
.orders__list:empty { display: none; }
.orders__empty { margin-top: 32px; }
.order-card { border-bottom: 1px solid #dcdcdc; }
.order-card__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 20px 0; text-align: left; }
.order-card__id { display: block; font-size: var(--nav-size); }
.order-card__head small { font-size: 12px; color: var(--muted); }
.order-card__status { display: flex; align-items: center; gap: 14px; text-align: right; }
@media (hover: hover) { .order-card__head:hover { opacity: .6; } }
.order-card .order { margin: 0; padding: 4px 0 24px; border: 0; }
.orders__lookup { margin-top: clamp(56px, 6vw, 96px); }
.orders__lookup h2 { margin: 0 0 8px; font-weight: 400; font-size: var(--filter-size); letter-spacing: -0.02em; line-height: 1.1; }
@media (max-width: 760px) {
  .order-card__head { align-items: flex-start; }
  .order-card__status { flex-direction: column-reverse; align-items: flex-end; gap: 4px; font-size: 13px; }
}

/* Página de producto */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
  margin: clamp(40px, 5vw, 80px) var(--gutter) 0;
  font-size: 16px;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
/* La galería queda fija mientras baja la columna de texto */
.pdp__gallery { position: sticky; top: 24px; }
/* La galería entra entera en la pantalla y queda centrada en su columna */
.gallery { position: relative; max-width: calc((100vh - 48px) * 0.8); margin: 0 auto; }
.gallery__thumbs { max-width: calc((100vh - 48px) * 0.8); margin-left: auto; margin-right: auto; }
.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  aspect-ratio: 4 / 5; /* vertical, como las fotos de producto; las horizontales quedan centradas */
  outline-offset: 4px;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: center; }
.gallery__slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery__arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--bg);
  font-size: 16px;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
@media (hover: hover) { .gallery__arrow:hover { background: var(--ink); color: var(--bg); } }
.gallery .gallery__arrow { position: absolute; top: 50%; translate: 0 -50%; }
.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }
.gallery__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.gallery__dots button { width: 7px; height: 7px; border-radius: 50%; background: #c8c8c8; transition: background-color .2s var(--ease); }
.gallery__dots button.is-active { background: var(--ink); }
.gallery.is-single .gallery__arrow, .gallery.is-single .gallery__dots { display: none; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 12px; }
.gallery__thumbs:empty { display: none; }
.gallery__thumbs button { width: 64px; aspect-ratio: 4 / 5; opacity: .45; transition: opacity .2s var(--ease); }
.gallery__thumbs button.is-active { opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp__info { padding-bottom: 24px; }
.pdp__crumbs { margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.pdp__crumbs a { color: inherit; }
@media (hover: hover) { .pdp__crumbs a:hover { color: var(--ink); } }
.pdp h1 { margin: 0 0 10px; font-weight: 400; font-size: clamp(30px, 2.6vw, 44px); letter-spacing: -0.02em; line-height: 1.1; }
.pdp__price { margin: 0 0 6px; font-size: var(--nav-size); }
.pdp__size { margin: 0; color: var(--muted); }
.pdp__unique { margin: 18px 0 0; font-size: 13px; }
.pdp__add { display: flex; justify-content: center; gap: .35em; margin-top: 24px; }
.pdp__add.is-sold { background: #dcdcdc; color: var(--muted); cursor: not-allowed; opacity: 1; }
.pdp__add.is-held { background: #dcdcdc; color: var(--ink); cursor: not-allowed; opacity: 1; }
.card__add.is-held, .card__cta.is-held { color: var(--muted); cursor: not-allowed; }
.pdp__share { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin-top: 16px; font-size: 14px; }
.pdp__share a, .pdp__share button { text-decoration: underline; text-underline-offset: 3px; }
.pdp__share [data-share-native] { text-decoration: none; padding: 10px 0; }
.pdp__share [data-share-native]::after { content: " ↗"; }
@media (hover: hover) { .pdp__share a:hover, .pdp__share button:hover { opacity: .5; } }
.pdp__ship { margin: 24px 0 0; font-size: 14px; }
.pdp__desc { margin: 28px 0 0; max-width: 52ch; line-height: 1.45; }
.pdp__faq { margin-top: 32px; }
.pdp__details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; padding-bottom: 20px; }
.pdp__details dt { color: var(--muted); }
.pdp__details dd { margin: 0; text-transform: none; }
.pdp__details dd a { text-decoration: underline; text-underline-offset: 3px; }
.pdp__measures { display: flex; flex-direction: column; gap: 4px; }
.pdp__measures small { margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.pdp-missing { margin: 120px auto; padding: 0 var(--gutter); text-align: center; }
.pdp-missing h1 { font-weight: 400; font-size: var(--filter-size); letter-spacing: -0.02em; margin: 0 0 12px; }

.related { margin: clamp(80px, 8vw, 140px) 0 0; padding: 0 var(--gutter) 90px; }
.related__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.related h2 { margin: 0; font-weight: 400; font-size: clamp(26px, 2.2vw, 38px); letter-spacing: -0.02em; }
.related__arrows { display: flex; gap: 8px; }
.related__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--col);
  column-gap: var(--col-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.related__track::-webkit-scrollbar { display: none; }
.related__track .card { scroll-snap-align: start; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
  .pdp__gallery { position: static; margin: 0 calc(var(--gutter) * -1); }
  .gallery__thumbs { display: none; }
  .gallery .gallery__arrow { display: none; }
}
@media (max-width: 760px) {
  .related__track { grid-auto-columns: 44vw; column-gap: 6vw; }
  .related__arrows { display: none; }
}

/* Panel de pedidos */
.admin { max-width: 1100px; }
.admin__list { margin: 24px 0 0; padding: 0; list-style: none; }
.admin__order { padding: 24px 0; border-top: 1px solid #dcdcdc; }
.admin__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: var(--nav-size); }
.admin__head strong { font-weight: 400; }
.admin__meta { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.admin__update { margin-top: 18px; }
.admin__update .link-more { margin: 14px 0 0; }
.admin__order.is-waiting { background: #fff8e1; padding-left: 12px; padding-right: 12px; }
.admin__tabs { display: flex; gap: 8px; margin: 8px 0 24px; font-size: var(--nav-size); }
.admin__tabs button { color: #c8c8c8; }
.admin__tabs button[aria-pressed="true"] { color: var(--ink); }
.admin__bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.admin__bar input { flex: 1; min-width: 180px; padding: 6px 0; border: 0; border-bottom: 1px solid #cfcfcf; background: transparent; font: inherit; outline: none; }
.admin__bar .btn-pill { width: auto; margin: 0; padding: 12px 22px; }
.admin__products { margin: 0; padding: 0; list-style: none; }
.admin__product { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid #ececec; }
.admin__product img { width: 56px; height: 56px; object-fit: cover; background: #f0f0f0; }
.admin__pname { margin: 0; }
.admin__product .link-more { margin: 0; }
.editor { width: min(560px, 100%); overflow-y: auto; }
.editor__form { padding-bottom: 32px; }
.editor__photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; padding: 0; list-style: none; }
.editor__photos:empty { display: none; }
.editor__photos li { width: 96px; }
.editor__photos img { display: block; width: 96px; height: 120px; object-fit: cover; background: #f0f0f0; }
.editor__photos div { display: flex; justify-content: space-between; margin-top: 4px; font-size: 13px; }
.editor__photos button:disabled { opacity: .25; }
.editor__colors { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; }
.editor__color { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.editor__color input { accent-color: var(--ink); margin: 0; }
.editor__measure { display: grid; grid-template-columns: 1fr 90px 28px; gap: 10px; margin-bottom: 8px; }
.editor__measure input { padding: 4px 0 6px; border: 0; border-bottom: 1px solid #cfcfcf; border-radius: 0; background: transparent; font: inherit; outline: none; }
.editor__measure input:focus { border-bottom-color: var(--ink); }
.editor [data-add-measure] { margin: 4px 0 0; font-size: 14px; }
.editor__delete { color: #b3261e; }

/* Términos y Privacidad */
.legal section { margin-top: 36px; font-size: 16px; }
.legal h2 { font-size: var(--nav-size); margin-bottom: 10px; }
.legal p, .legal li { line-height: 1.5; max-width: 70ch; }
.legal ul { padding-left: 18px; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal__updated, .legal__data { color: var(--muted); font-size: 14px; }
.legal__aaip { font-size: 13px; color: var(--muted); }
.checkout__legal { margin: 24px 0 0; font-size: 13px; color: var(--muted); }
.checkout__legal a { text-decoration: underline; text-underline-offset: 2px; }

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 29px clamp(16px, 2vw, 35px) 37px;
  color: var(--ink);
  font-size: clamp(11px, 1.29vw, 22.3px);
  letter-spacing: -0.005em;
  line-height: 1.2;
  white-space: nowrap; /* en escritorio va todo en una sola línea */
}
.footer p { margin: 0; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .footer__legal a:hover { opacity: .5; } }

/* WhatsApp fijo abajo a la derecha */
.whatsapp {
  position: fixed;
  right: clamp(16px, 2vw, 32px);
  bottom: clamp(16px, 2vw, 32px);
  z-index: 7;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  animation: whatsapp-in .5s var(--ease) .4s backwards;
  translate: 0 calc(var(--lift, 0px) * -1); /* sube cuando aparece el footer, así no lo tapa */
}
@media (hover: hover) { .whatsapp:hover { transform: scale(1.06); box-shadow: 0 8px 26px rgba(0, 0, 0, .2); } }
@keyframes whatsapp-in { from { opacity: 0; transform: translateY(12px) scale(.9); } }

/* Responsive */
/* Mobile y tablet (o cualquier pantalla táctil): la card muestra la barra en vez del botón sobre la foto */
@media (max-width: 1024px), (hover: none) {
  .card__add { display: none; }
  .card:hover .card__img, .card__media:focus-within .card__img { opacity: 1; }
  .card__info { justify-content: flex-start; }
  .card__info > div { flex: 0 1 auto; min-width: 0; }
  .card__name, .card__price { font-size: clamp(11.8px, 1.8vw, 15px); }
  .card__cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 7%);
    margin: auto auto 0; /* si un nombre ocupa dos líneas, las barras siguen alineadas */
    padding: 6px;
    background: #f0f0f0;
    color: var(--ink-soft);
    font-size: clamp(9px, 1.35vw, 13px);
    letter-spacing: -0.005em;
    white-space: nowrap;
    transition: background-color .2s var(--ease);
  }
  .card__cta span:last-child { font-size: 1.1em; }
  .card__cta:active { background: #e6e6e6; }
}
@media (max-width: 1500px) {
  .grid { grid-template-columns: repeat(4, minmax(0, var(--col))); }
}
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, var(--col))); }
}
@media (max-width: 900px) {
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; order: -1; }
}
@media (max-width: 760px) {
  .field--half, .field--street { grid-column: span 6; }
  .field--third { grid-column: span 3; }

  .top { padding-bottom: 6px; }
  /* Header mobile: menú, logo al centro, carrito con total abajo */
  .header { margin: 0; padding: 19px 16px 0; min-height: 0; align-items: flex-start; font-size: 12px; }
  .menu-toggle { display: block; padding: 6px 0; margin-top: 2px; }
  .nav--desktop, .search-toggle, .orders-link { display: none; }
  .logo { top: 17px; transform: translateX(-50%); width: 28.9vw; max-width: 140px; }
  .cart-toggle { text-align: right; line-height: 1.2; }
  .cart-toggle__total { display: block; margin-left: 0; }
  .search { position: absolute; top: calc(100% + 18px); left: 16px; right: 16px; width: auto; transform: translateY(-8px); }
  .is-searching .search { width: auto; margin: 0; transform: none; transition: transform .45s var(--ease), opacity .3s var(--ease), visibility 0s; }
  .search { transition: transform .45s var(--ease), opacity .3s var(--ease), visibility 0s .45s; }
  .search__input { flex: 1; width: auto; }

  .filters { margin-top: clamp(64px, 19vw, 86px); font-size: clamp(26px, 7.76vw, 36px); column-gap: .19em; }
  .toolbar { margin-top: 8px; font-size: 10px; gap: 6px 7px; }
  .toolbar__colors { flex-wrap: nowrap; }
  .toolbar__label, .toolbar__sort { gap: 3.75px; }
  .toolbar__label svg { width: 11px; height: 9px; }
  .swatch { width: 11px; height: 11px; margin-right: 3px; }
  .swatches { margin-left: 7px; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 7vw; row-gap: 7vw; margin-top: 29px; padding: 0 4vw 60px; }
  .card { gap: 7px; }
  .card__name, .card__price { font-size: 11.8px; }
  .card__size { margin-top: 2px; font-size: 8.9px; }
  .card__info { padding: 0 3.5%; gap: 6px; }
  .card__add { font-size: 11px; padding: 6px; }
  /* Footer mobile como en el Figma: centrado y apilado */
  .footer { flex-direction: column; align-items: center; gap: 12px; padding: 32px 16px 40px; text-align: center; white-space: normal; font-size: 19px; }
  .footer p:first-child { font-size: 22px; }
  .footer__hours { order: 1; font-size: 16px; color: #c8c8c8; }
  .footer .socials { order: 2; }
  .footer__legal { order: 3; }
  .whatsapp { width: 50px; height: 50px; }
  .whatsapp svg { width: 25px; height: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
