/* Página de producto (PDP) — mismo lenguaje visual que la tienda */
#pdpMain { display: block; }
#pdpMain[hidden] { display: none; }
.pdp { padding-top: 24px; padding-bottom: 8px; }
.pdp-crumbs { display: flex; gap: 8px; align-items: center; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.pdp-crumbs a { color: inherit; text-decoration: none; }
.pdp-crumbs a:hover { color: var(--ink); }
.pdp-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .pdp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 56px; align-items: start; }
  .gal-main { max-height: 560px; } }

.gal { display: grid; gap: 10px; }
.gal-main { position: relative; aspect-ratio: 4 / 5; max-height: 540px; background: var(--ash);
  overflow: hidden; border-radius: 2px; }
.gal-main img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-thumbs button { flex: 0 0 68px; height: 84px; padding: 0; border: 1px solid var(--line); background: var(--ash);
  overflow: hidden; cursor: pointer; border-radius: 2px; }
.gal-thumbs button[aria-current="true"] { border-color: var(--ink); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .88);
  color: var(--ink); font-size: 18px; cursor: pointer; }
.gal-arrow.prev { left: 10px; }
.gal-arrow.next { right: 10px; }

.pdp-info h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.15; }
.pdp-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.pdp-price b { font-size: 22px; }
.pdp-price s { color: var(--muted); font-size: 14px; }
.pdp-stock { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.pdp-opt { margin-bottom: 16px; }
.pdp-opt h4 { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-width: 44px; padding: 9px 14px; border: 1px solid var(--line); background: #fff; border-radius: 4px;
  font-size: 13px; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.chip:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; margin-right: 12px; }
.qty button { width: 38px; height: 44px; border: 0; background: none; font-size: 17px; cursor: pointer; }
.qty span { min-width: 28px; text-align: center; font-size: 14px; }
.pdp-buy { display: flex; align-items: center; margin: 18px 0 10px; }
.pdp-buy .add { margin: 0; min-height: 44px; }
.pdp-meta { margin-top: 22px; border-top: 1px solid var(--line); }
.pdp-meta details { border-bottom: 1px solid var(--line); }
.pdp-meta summary { padding: 14px 0; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; }
.pdp-meta summary::after { content: "+"; font-size: 16px; color: var(--muted); }
.pdp-meta details[open] summary::after { content: "–"; }
.pdp-meta .body { padding: 0 0 16px; font-size: 13.5px; line-height: 1.6; color: #333; }
.pdp-meta .body p { margin: 0 0 8px; }

.pdp-rel { margin-top: 56px; }
.pdp-rel h2 { margin-bottom: 18px; }
.pdp-rel .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .pdp-rel .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 404 */
.nf { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 10px; padding: 40px 20px; }
.nf h1 { font-size: 64px; margin: 0; letter-spacing: -.02em; }
.nf p { color: var(--muted); margin: 0 0 8px; }

/* listados: cabecera, filtros y paginación */
.listhead { margin-bottom: 18px; }
.listhead h2 { margin: 0 0 4px; font-size: 26px; }
.listhead p { margin: 0; color: var(--muted); font-size: 13px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 12px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.fchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.fchips::-webkit-scrollbar { display: none; }
.fchip { flex: 0 0 auto; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; background: #fff;
  font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.fchip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tright { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tright select { min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px;
  background: #fff; font: inherit; font-size: 12.5px; }
.tright .count { font-size: 12px; color: var(--muted); }
.more { display: flex; justify-content: center; padding: 34px 0 10px; }
.more button { padding: 14px 30px; border: 1px solid var(--ink); background: #fff; border-radius: 4px;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.more button:hover { background: var(--ink); color: #fff; }
.empty { padding: 40px 0; color: var(--muted); text-align: center; }
.loading { padding: 60px 0; color: var(--muted); }

/* ficha: textos y barra fija móvil */
.pdp-ship { display: block; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.stickybuy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 18; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgb(0 0 0 / .08); }
.stickybuy[hidden] { display: none; }
.stickybuy .sb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stickybuy .sb-info b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stickybuy .sb-info span { font-size: 13px; color: var(--muted); }
.stickybuy .add { margin: 0; min-width: 130px; }
@media (min-width: 900px) { .stickybuy { display: none !important; } }

/* páginas fijas */
.static-page { max-width: 68ch; padding: 10px 0 60px; }
.static-page h1 { margin: 0 0 16px; font-size: 30px; }
.static-page p { line-height: 1.7; color: #333; margin: 0 0 12px; }
.static-page a { color: var(--gold); }

/* limpiar filtros */
.fclear { min-height: 34px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 99px; background: #fff;
  font-size: 11.5px; font-weight: 700; cursor: pointer; }

/* guía de tallas */
.guide { margin: 2px 0 12px; padding: 0; border: 0; background: none; color: var(--muted);
  font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.sizedlg { border: 0; border-radius: 10px; padding: 22px; max-width: 420px; box-shadow: 0 20px 60px rgb(0 0 0 / .25); }
.sizedlg::backdrop { background: rgb(0 0 0 / .45); }
.sizedlg h3 { margin: 0 0 12px; font-size: 18px; }
.sizedlg table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 12px; }
.sizedlg th, .sizedlg td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.sizedlg th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sizedlg p { font-size: 12.5px; color: #444; line-height: 1.5; }
.sizedlg .cta { width: 100%; margin-top: 6px; text-align: center; }
