/* ============================================================
   WAWA — Equipos Mineros
   Storefront look & feel (pensado para migrar a Medusa)
   Paleta: ámbar + carbón/steel. Tipografía: Archivo + IBM Plex Mono.
   ============================================================ */

:root {
  --accent: #F2A900;
  --accent-hover: #DD9A00;
  --accent-ink: #2A1D00;
  --band: #F9B40E;            /* banda de marca, fija en ambos temas (tono del logo) */
  --band-ink: #1C1710;
  --bar: #17181A;             /* barras utilitaria / nav / footer, fijas */
  --bar-ink: #EFEBE0;
  --ink: #221E17;
  --ink-soft: #6B6459;
  --surface: #FAF8F4;
  --surface-card: #FFFFFF;
  --surface-sunken: #EFECE4;
  --border: #E2DDD1;
  --border-strong: #C9C3B4;
  --success: #3F7D45;
  --warning: #8A6300;
  --danger: #AE4128;
  --focus: #1C6FD1;
  --shadow: 0 10px 30px -14px rgba(32, 28, 22, 0.35);
  --radius: 5px;
  --font-body: "Archivo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #F5B723;
    --accent-hover: #FFC93E;
    --accent-ink: #221800;
    --ink: #EDE8DC;
    --ink-soft: #A29B8C;
    --surface: #141413;
    --surface-card: #1C1C1A;
    --surface-sunken: #232320;
    --border: #2C2B27;
    --border-strong: #45443E;
    --success: #6BB56F;
    --warning: #D9A03D;
    --danger: #E08064;
    --focus: #7FB1F2;
    --shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.65);
  }
}
:root[data-theme="dark"] {
  --accent: #F5B723; --accent-hover: #FFC93E; --accent-ink: #221800;
  --ink: #EDE8DC; --ink-soft: #A29B8C;
  --surface: #141413; --surface-card: #1C1C1A; --surface-sunken: #232320;
  --border: #2C2B27; --border-strong: #45443E;
  --success: #6BB56F; --warning: #D9A03D; --danger: #E08064;
  --focus: #7FB1F2; --shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.65);
}
:root[data-theme="light"] {
  --accent: #F2A900; --accent-hover: #DD9A00; --accent-ink: #2A1D00;
  --ink: #221E17; --ink-soft: #6B6459;
  --surface: #FAF8F4; --surface-card: #FFFFFF; --surface-sunken: #EFECE4;
  --border: #E2DDD1; --border-strong: #C9C3B4;
  --success: #3F7D45; --warning: #8A6300; --danger: #AE4128;
  --focus: #1C6FD1; --shadow: 0 10px 30px -14px rgba(32, 28, 22, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: var(--font-body);
  font-weight: 650;
  font-stretch: 110%;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0;
}
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
}
a { color: inherit; }
button { font-family: inherit; }
img { max-width: 100%; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.wrap { max-width: 1320px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }

/* ============================================================
   Header — 3 niveles: utilitaria / banda de marca / navegación
   ============================================================ */

.utility-bar { background: var(--bar); color: var(--bar-ink); }
.utility-inner {
  max-width: 1320px; margin: 0 auto; padding: 6px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-size: 11.5px;
}
.utility-note {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 10px; opacity: 0.6;
}
.utility-links { display: flex; align-items: center; gap: 20px; }
.topbar-item { display: flex; align-items: center; gap: 6px; text-decoration: none; opacity: 0.8; }
.topbar-item:hover { opacity: 1; color: var(--band); }
.topbar-item svg { width: 12px; height: 12px; flex-shrink: 0; }

.brand-bar { background: var(--band); color: var(--band-ink); }
.brand-bar-inner {
  max-width: 1320px; margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--band-ink); flex-shrink: 0; line-height: 1; }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-word {
  font-weight: 900; font-stretch: 125%; font-size: 27px; letter-spacing: 0.01em;
}
.brand-sub {
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.34em; margin-top: 3px; opacity: 0.75;
}

.search-wrap { flex: 1; display: flex; max-width: 560px; margin: 0 auto; }
.search-wrap input {
  flex: 1; min-width: 0; border: 1px solid rgba(28, 23, 16, 0.25); border-right: none;
  border-radius: var(--radius) 0 0 var(--radius); padding: 10px 14px;
  font-size: 13.5px; font-family: var(--font-body);
  background: #FFFDF6; color: #221E17;
}
.search-wrap input::placeholder { color: #8A8272; }
.search-wrap button {
  border: none; background: #1C1710; color: #F5EFE2; font-weight: 600;
  padding: 0 18px; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-size: 13px;
}
.search-wrap button:hover { background: #33291A; }

.cart-trigger {
  display: flex; align-items: center; gap: 10px;
  background: #1C1710; border: none; color: #F5EFE2;
  padding: 9px 16px; border-radius: var(--radius); cursor: pointer; flex-shrink: 0;
  position: relative; text-align: left; margin-left: auto;
  transition: background 0.15s ease;
}
.cart-trigger:hover { background: #33291A; }
.cart-trigger svg { flex-shrink: 0; }
.cart-trigger .cart-count {
  position: absolute; top: -7px; right: -7px; background: var(--bar); color: var(--band);
  border: 1px solid var(--band);
  font-size: 10px; min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px; font-weight: 600;
}
.cart-trigger .cart-label {
  font-family: var(--font-mono); font-size: 8.5px; text-transform: uppercase;
  letter-spacing: 0.18em; opacity: 0.65;
}
.cart-trigger .cart-total { font-size: 13px; font-weight: 600; }

.nav-bar { background: var(--bar); border-bottom: 1px solid var(--border); }
.nav-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 28px;
  display: flex; gap: 30px; overflow-x: auto;
}
.nav-inner a {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--bar-ink); opacity: 0.6; text-decoration: none;
  padding: 12px 0 10px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav-inner a:hover { opacity: 1; }
.nav-inner a.active { opacity: 1; border-bottom-color: var(--band); }

/* ============================================================
   Cabecera de página (PLP)
   ============================================================ */

.page-head { border-bottom: 1px solid var(--border); }
.page-head-inner {
  max-width: 1320px; margin: 0 auto; padding: 42px 28px 36px;
  display: flex; flex-direction: column; gap: 10px; max-width: 1320px;
}
.page-head h1 { font-size: 30px; max-width: 640px; }
.page-head p { margin: 0; color: var(--ink-soft); font-size: 14px; max-width: 560px; }

/* ============================================================
   Breadcrumb
   ============================================================ */

.breadcrumb {
  max-width: 1320px; margin: 0 auto; padding: 18px 28px 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-soft); display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--ink); }

/* ============================================================
   Layout catálogo
   ============================================================ */

.shell {
  display: flex; max-width: 1320px; margin: 0 auto;
  padding: 30px 28px 56px; gap: 44px; align-items: flex-start;
}

aside.filters { width: 228px; flex-shrink: 0; position: sticky; top: 24px; }
aside.filters h2 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink);
  padding-bottom: 14px; border-bottom: 1px solid var(--border-strong);
}
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--border); }
.filter-group h3 {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); margin-bottom: 10px;
}
.filter-row {
  display: flex; align-items: center; gap: 9px; padding: 5px 0;
  font-size: 13px; cursor: pointer; color: var(--ink);
}
.filter-row input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.filter-row .count { margin-left: auto; font-family: var(--font-mono); color: var(--ink-soft); font-size: 11px; }
.filter-row:hover { color: var(--accent-hover); }
.clear-filters {
  margin-top: 16px; width: 100%; background: none; border: 1px solid var(--border-strong);
  color: var(--ink-soft); padding: 9px; border-radius: var(--radius);
  font-size: 12px; cursor: pointer; font-weight: 500;
}
.clear-filters:hover { border-color: var(--ink); color: var(--ink); }

main.catalog { flex: 1; min-width: 0; }
.catalog-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px; gap: 12px; flex-wrap: wrap;
}
.catalog-head .result-count {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-soft);
}
.catalog-head .result-count strong { color: var(--ink); font-weight: 600; }
.sort-wrap { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-soft); }
.sort-wrap select {
  border: 1px solid var(--border-strong); background: var(--surface-card); color: var(--ink);
  padding: 7px 10px; border-radius: var(--radius); font-size: 12.5px; font-family: var(--font-body);
}

/* ============================================================
   Tarjetas de producto — tile sin caja, línea de datos en mono
   ============================================================ */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 34px 22px; }

.card { display: flex; flex-direction: column; gap: 0; position: relative; cursor: pointer; background: none; border: none; padding: 0; }

.card .tile {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: var(--surface-sunken); border: 1px solid var(--border);
  overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
}
.card .tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.card:hover .tile img { transform: scale(1.04); }
.card:hover .tile { border-color: var(--border-strong); }
.card .tile svg { width: 56px; height: 56px; }

.sale-tag {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: var(--danger); color: #fff; font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 3px;
}

.tile .video-thumb { position: relative; display: block; width: 100%; height: 100%; }
.tile .video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tile .video-thumb .play-badge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.tile .video-thumb .play-badge::before {
  content: ""; position: absolute; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(12, 10, 6, 0.6); border: 1px solid rgba(255, 255, 255, 0.35);
}
.tile .video-thumb .play-badge svg { position: relative; width: 18px; height: 18px; color: #fff; margin-left: 3px; }
.tile .video-thumb:hover .play-badge::before { background: var(--accent); }
.tile .video-thumb:hover .play-badge svg { color: var(--accent-ink); }

.card-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 2px 12px; flex: 1; }
.part-line {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-hover);
}
:root[data-theme="dark"] .part-line { color: var(--accent); }
@media (prefers-color-scheme: dark) { .part-line { color: var(--accent); } }
.card .name { font-size: 14px; font-weight: 550; line-height: 1.35; color: var(--ink); }
.rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); }
.stars { color: var(--accent-hover); letter-spacing: 1px; font-size: 12px; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 3px; }
.price { font-size: 14.5px; font-weight: 600; }
.price-old { font-size: 11.5px; color: var(--ink-soft); text-decoration: line-through; }

.stock-note {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; color: var(--ink-soft);
}
.stock-note .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.stock-note.in { color: var(--success); }
.stock-note.low { color: var(--warning); }
.stock-note.out { color: var(--danger); }

.add-btn {
  border: 1px solid var(--accent); background: none; color: var(--accent-hover);
  font-weight: 600; font-size: 12.5px; font-family: var(--font-body);
  padding: 9px 12px; border-radius: var(--radius); cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
:root[data-theme="dark"] .add-btn { color: var(--accent); }
@media (prefers-color-scheme: dark) { .add-btn { color: var(--accent); } }
.add-btn:hover { background: var(--accent); color: var(--accent-ink); }
.add-btn:disabled {
  border-color: var(--border); background: none; color: var(--ink-soft); cursor: not-allowed;
}
.empty-state { text-align: center; padding: 70px 20px; color: var(--ink-soft); }

/* ============================================================
   Drawer de cotización
   ============================================================ */

.scrim {
  position: fixed; inset: 0; background: rgba(10, 9, 6, 0.5); opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease; z-index: 40;
}
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 92vw;
  background: var(--surface-card); border-left: 1px solid var(--border);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.28);
  transform: translateX(100%); transition: transform 0.25s ease; z-index: 41;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.drawer-head h2 {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
}
.drawer-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink-soft); line-height: 1; padding: 4px; }
.drawer-close:hover { color: var(--ink); }
.drawer-items { flex: 1; overflow-y: auto; padding: 6px 22px; }
.cart-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-line .icon-frame {
  width: 60px; height: 60px; border-radius: var(--radius); background: var(--surface-sunken);
  border: 1px solid var(--border); overflow: hidden;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--ink-soft);
}
.cart-line .icon-frame img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .icon-frame svg { width: 28px; height: 28px; }
.cart-line .meta { flex: 1; min-width: 0; }
.cart-line .meta .name { font-size: 13px; font-weight: 550; margin-bottom: 2px; line-height: 1.35; }
.cart-line .meta .unit { font-size: 11px; color: var(--ink-soft); }
.cart-line .qty-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius); }
.qty-stepper button { width: 26px; height: 26px; border: none; background: none; cursor: pointer; font-size: 14px; color: var(--ink); }
.qty-stepper button:hover { color: var(--accent-hover); }
.qty-stepper span { min-width: 24px; text-align: center; font-size: 12px; font-weight: 600; }
.cart-line .remove { background: none; border: none; color: var(--ink-soft); font-size: 11.5px; cursor: pointer; text-decoration: underline; padding: 0; }
.cart-line .remove:hover { color: var(--danger); }
.cart-line .line-total { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.empty-cart { text-align: center; padding: 56px 16px; color: var(--ink-soft); font-size: 13px; }

.drawer-summary { padding: 16px 22px 22px; border-top: 1px solid var(--border); background: var(--surface-sunken); }
.sum-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: var(--ink-soft); }
.sum-row.total { font-size: 15px; font-weight: 650; color: var(--ink); border-top: 1px solid var(--border-strong); margin-top: 8px; padding-top: 12px; }
.promo-row { display: flex; gap: 8px; margin: 10px 0; }
.promo-row input {
  flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--border-strong);
  border-radius: var(--radius); font-size: 12px; font-family: var(--font-mono);
  background: var(--surface-card); color: var(--ink);
}
.promo-row button {
  border: 1px solid var(--ink); background: none; color: var(--ink);
  padding: 0 14px; border-radius: var(--radius); font-size: 12px; font-weight: 600; cursor: pointer;
}
.promo-row button:hover { background: var(--ink); color: var(--surface); }
.promo-msg { font-size: 12px; margin: -4px 0 6px; }
.promo-msg.ok { color: var(--success); }
.promo-msg.err { color: var(--danger); }
.checkout-btn {
  width: 100%; margin-top: 12px; background: var(--accent); color: var(--accent-ink); border: none;
  padding: 13px; border-radius: var(--radius); font-weight: 650; font-size: 13.5px; cursor: pointer;
  transition: background 0.15s ease;
}
.checkout-btn:hover { background: var(--accent-hover); }
.checkout-btn:disabled { background: var(--border); color: var(--ink-soft); cursor: not-allowed; }

/* ============================================================
   Modal de checkout
   ============================================================ */

.modal-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-scrim { position: absolute; inset: 0; background: rgba(10, 9, 6, 0.55); }
.modal {
  position: relative; background: var(--surface-card); border: 1px solid var(--border);
  border-radius: 8px; width: 440px; max-width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow);
}
.modal-head { padding: 22px 26px 0; }
.modal-head h2 { font-size: 18px; }
.modal-head p { color: var(--ink-soft); font-size: 13px; margin: 6px 0 0; }
.modal-body { padding: 18px 26px; display: flex; flex-direction: column; gap: 14px; }
.field label {
  display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); margin-bottom: 6px;
}
.field input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong);
  border-radius: var(--radius); font-size: 14px; font-family: var(--font-body);
  background: var(--surface); color: var(--ink);
}
.modal-order-summary { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; font-size: 13px; }
.modal-order-summary .sum-row { font-size: 13px; }
.modal-actions { padding: 4px 26px 24px; display: flex; gap: 10px; }
.modal-actions .btn-secondary {
  flex: 1; background: none; border: 1px solid var(--border-strong); color: var(--ink);
  padding: 11px; border-radius: var(--radius); font-weight: 600; cursor: pointer; font-size: 13px;
}
.modal-actions .btn-primary {
  flex: 2; background: var(--accent); border: none; color: var(--accent-ink);
  padding: 11px; border-radius: var(--radius); font-weight: 650; cursor: pointer; font-size: 13px;
}
.modal-actions .btn-primary:hover { background: var(--accent-hover); }
.confirm-view { text-align: center; padding: 36px 26px 32px; }
.confirm-view .check {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--success); color: var(--success);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.confirm-view h2 { font-size: 18px; margin-bottom: 6px; }
.confirm-view p { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 4px; }
.confirm-view .order-id { font-family: var(--font-mono); font-weight: 600; color: var(--ink); font-size: 15px; letter-spacing: 0.06em; }
.confirm-view button {
  margin-top: 20px; background: var(--accent); border: none; color: var(--accent-ink);
  padding: 11px 24px; border-radius: var(--radius); font-weight: 650; cursor: pointer; font-size: 13px;
}
.confirm-view button:hover { background: var(--accent-hover); }

/* ============================================================
   Footer
   ============================================================ */

footer.site { margin-top: 64px; background: var(--bar); color: var(--bar-ink); }
.footer-inner {
  max-width: 1320px; margin: 0 auto; padding: 44px 28px 36px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer-brand .brand-word { font-size: 22px; color: var(--band); }
.footer-brand .brand-sub { color: var(--bar-ink); opacity: 0.6; display: block; margin-top: 3px; }
.footer-brand p { font-size: 12.5px; opacity: 0.65; max-width: 320px; margin: 14px 0 0; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.18em; opacity: 0.5; margin: 0 0 14px;
}
.footer-col a, .footer-col span { display: block; font-size: 13px; text-decoration: none; opacity: 0.8; padding: 3px 0; }
.footer-col a:hover { opacity: 1; color: var(--band); }
.footer-base {
  border-top: 1px solid rgba(239, 235, 224, 0.12);
  max-width: 1320px; margin: 0 auto; padding: 16px 28px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; opacity: 0.5;
}

/* ============================================================
   Página de producto (PDP)
   ============================================================ */

.pdp-shell { max-width: 1320px; margin: 0 auto; padding: 24px 28px 8px; }
.pdp-main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 52px; }

.pdp-gallery-panel { position: relative; }
.pdp-gallery-panel .icon-frame {
  background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--radius);
  height: 460px; display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
}
.pdp-gallery-panel .icon-frame svg { width: 150px; height: 150px; }
.pdp-gallery-panel .sale-tag { top: 14px; left: 14px; }

.pdp-gallery-panel.has-photos { display: flex; gap: 12px; }
.pdp-thumbs {
  display: flex; flex-direction: column; gap: 10px; width: 72px; flex-shrink: 0;
  max-height: 460px; overflow-y: auto; padding: 1px;
}
.pdp-thumb {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 0;
  background: var(--surface-sunken); cursor: pointer; overflow: hidden;
  width: 68px; height: 68px; flex-shrink: 0; transition: border-color 0.15s ease;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumb:hover { border-color: var(--border-strong); }
.pdp-thumb.active { border-color: var(--accent); }
.pdp-main-image {
  position: relative; flex: 1; min-width: 0;
  background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--radius);
  height: 460px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pdp-main-image img { width: 100%; height: 100%; object-fit: contain; }
.pdp-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface-card); color: var(--ink);
  font-size: 19px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pdp-nav.prev { left: 12px; }
.pdp-nav.next { right: 12px; }
.pdp-nav:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.pdp-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pdp-name { font-size: 27px; }
.pdp-info .rating { font-size: 13px; }
.pdp-info .rating .count-link { text-decoration: underline; cursor: pointer; }

.pdp-highlights { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; }
.pdp-highlights li::marker { color: var(--accent); }

.pdp-divider { border: none; border-top: 1px solid var(--border); margin: 6px 0; }

.pdp-buy-block { display: flex; flex-direction: column; gap: 12px; }
.pdp-price-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pdp-price-line .price { font-size: 26px; font-weight: 600; }
.pdp-delivery-note { font-size: 12.5px; color: var(--ink-soft); }

.pdp-actions { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.pdp-actions .qty-stepper { flex-shrink: 0; background: var(--surface-card); }
.pdp-actions .qty-stepper button { width: 36px; height: 44px; font-size: 17px; }
.pdp-actions .qty-stepper span { min-width: 30px; font-size: 14px; }
.pdp-actions .add-btn {
  flex: 1; min-width: 170px; padding: 0 14px; font-size: 13.5px;
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}
.pdp-actions .add-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.pdp-actions .add-btn:disabled { background: none; border-color: var(--border); color: var(--ink-soft); }
.buy-now-btn {
  flex: 1; min-width: 150px; border: 1px solid var(--ink); background: none; color: var(--ink);
  font-weight: 600; font-size: 13px; padding: 10px 14px; border-radius: var(--radius); cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.buy-now-btn:hover { background: var(--ink); color: var(--surface); }
.buy-now-btn:disabled { border-color: var(--border); color: var(--ink-soft); background: none; cursor: not-allowed; }

.pdp-secondary-actions { display: flex; gap: 20px; font-size: 12.5px; color: var(--ink-soft); }
.pdp-secondary-actions button {
  display: flex; align-items: center; gap: 6px; background: none; border: none; color: inherit;
  cursor: pointer; padding: 2px 0; font-size: 12.5px;
}
.pdp-secondary-actions button:hover { color: var(--ink); }
.pdp-secondary-actions button.active { color: var(--accent-hover); }
.pdp-secondary-actions svg { width: 15px; height: 15px; }

.pdp-info-rows { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.pdp-info-row { display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: var(--ink-soft); }
.pdp-info-row .ico {
  width: 32px; height: 32px; border-radius: var(--radius);
  background: var(--surface-sunken); border: 1px solid var(--border); color: var(--accent-hover);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
:root[data-theme="dark"] .pdp-info-row .ico { color: var(--accent); }
@media (prefers-color-scheme: dark) { .pdp-info-row .ico { color: var(--accent); } }
.pdp-info-row .ico svg { width: 16px; height: 16px; }
.pdp-info-row strong { color: var(--ink); font-weight: 600; }

/* ---------- Tabs PDP ---------- */
.pdp-tabs-wrap { max-width: 1320px; margin: 44px auto 0; padding: 0 28px; }
.pdp-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--border); }
.pdp-tab {
  background: none; border: none; padding: 10px 2px 12px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-soft); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.pdp-tab:hover { color: var(--ink); }
.pdp-tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.pdp-tab-panel { display: none; padding: 24px 0 8px; max-width: 760px; }
.pdp-tab-panel.active { display: block; }
.pdp-tab-panel h3 { font-size: 15px; margin-bottom: 10px; }
.pdp-tab-panel p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }
.pdp-spec-table { display: flex; flex-direction: column; }
.pdp-spec-table .row { display: flex; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.pdp-spec-table .row:last-child { border-bottom: none; }
.pdp-spec-table .k {
  width: 200px; flex-shrink: 0; color: var(--ink-soft);
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  padding-top: 2px;
}
.pdp-spec-table .v { font-weight: 550; }

/* ---------- Relacionados ---------- */
.pdp-related { max-width: 1320px; margin: 48px auto 0; padding: 0 28px; }
.pdp-related h2 { font-size: 18px; margin-bottom: 20px; }

.pdp-not-found { max-width: 1320px; margin: 0 auto; padding: 90px 28px; text-align: center; color: var(--ink-soft); }
.pdp-not-found a { color: var(--accent-hover); font-weight: 600; text-decoration: none; }

/* ============================================================
   Páginas informativas (nosotros / categorías / ofertas)
   ============================================================ */

.info-section { max-width: 1320px; margin: 0 auto; padding: 40px 28px 8px; }
.info-section:last-of-type { padding-bottom: 24px; }
.section-title { font-size: 18px; margin-bottom: 20px; }

.info-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-card); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.info-card .ico {
  width: 38px; height: 38px; border-radius: var(--radius);
  background: var(--surface-sunken); border: 1px solid var(--border); color: var(--accent-hover);
  display: flex; align-items: center; justify-content: center;
}
@media (prefers-color-scheme: dark) { .info-card .ico { color: var(--accent); } }
:root[data-theme="dark"] .info-card .ico { color: var(--accent); }
.info-card .ico svg { width: 19px; height: 19px; }
.info-card h3 { font-size: 15.5px; }
.info-card p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.65; }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 26px 0;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-n { font-size: 30px; font-weight: 600; color: var(--ink); }
.stat-label {
  font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-soft);
}

.info-cta { padding-top: 48px; padding-bottom: 56px; }
.info-cta h2 { font-size: 22px; margin-bottom: 8px; }
.info-cta p { margin: 0 0 20px; color: var(--ink-soft); font-size: 14px; max-width: 520px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-solid {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-weight: 650; font-size: 13.5px; text-decoration: none;
  padding: 12px 22px; border-radius: var(--radius);
}
.btn-solid:hover { background: var(--accent-hover); }
.btn-outline {
  display: inline-block; border: 1px solid var(--border-strong); color: var(--ink);
  font-weight: 600; font-size: 13.5px; text-decoration: none;
  padding: 11px 22px; border-radius: var(--radius);
}
.btn-outline:hover { border-color: var(--ink); }

.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cat-tile {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-card); padding: 12px 16px 12px 12px;
  transition: border-color 0.15s ease;
}
.cat-tile:hover { border-color: var(--accent); }
.cat-tile-img {
  width: 58px; height: 58px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0;
  background: var(--surface-sunken); border: 1px solid var(--border);
}
.cat-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-tile-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.cat-tile-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cat-tile-count {
  font-size: 10.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em;
}
.cat-tile-arrow { color: var(--ink-soft); font-size: 16px; flex-shrink: 0; }
.cat-tile:hover .cat-tile-arrow { color: var(--accent-hover); }

.promo-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.promo-tile {
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  background: var(--surface-card); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.promo-code {
  align-self: flex-start; font-size: 15px; font-weight: 600; letter-spacing: 0.1em;
  background: var(--surface-sunken); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 3px; color: var(--accent-hover);
}
@media (prefers-color-scheme: dark) { .promo-code { color: var(--accent); } }
:root[data-theme="dark"] .promo-code { color: var(--accent); }
.promo-desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }
.empty-link { color: var(--accent-hover); font-weight: 600; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
  .pdp-main { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  .brand-bar-inner { flex-wrap: wrap; gap: 14px 20px; padding: 14px 20px; }
  .brand { order: 1; }
  .cart-trigger { order: 2; padding: 10px 12px; }
  .cart-trigger > span:not(.cart-count) { display: none; }
  .search-wrap { order: 3; flex: 1 1 100%; max-width: none; }
  .utility-inner { padding: 6px 20px; }
  .utility-note { display: none; }
  .utility-links { margin: 0 auto; }
  .nav-inner { padding: 0 20px; gap: 22px; }
  .page-head-inner { padding: 30px 20px 26px; }
  .page-head h1 { font-size: 24px; }
  .shell { flex-direction: column; padding: 24px 20px 48px; gap: 28px; }
  aside.filters { width: 100%; position: static; }
  .breadcrumb, .pdp-shell, .pdp-tabs-wrap, .pdp-related { padding-left: 20px; padding-right: 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 28px; }
  .footer-base { padding: 14px 20px; }
  .pdp-gallery-panel .icon-frame { height: 280px; }
  .pdp-gallery-panel .icon-frame svg { width: 110px; height: 110px; }
  .pdp-gallery-panel.has-photos { flex-direction: column-reverse; }
  .pdp-thumbs { flex-direction: row; width: 100%; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .pdp-main-image { height: 300px; }
  .pdp-name { font-size: 22px; }
  .info-section { padding-left: 20px; padding-right: 20px; }
  .info-grid3 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
