/* ================================================================
   DarCrist — Catalog Nav v2.0
   Header unificado + panel de categorías + buscador inline.
   ================================================================ */

/* ── TOKENS ──────────────────────────────────────────────────── */
:root {
  --hh:      68px;
  --snav-h:  36px;
  --total-h: 104px;

  --cat-l1-w:    320px;
  --cat-l2-w:    380px;
  --cat-panel-w: calc(var(--cat-l1-w) + var(--cat-l2-w));

  --header-bg:   #09090f;
  --hborder:     rgba(255,255,255,.08);
  --l1-bg:       #111118;
  --l2-bg:       #0d0d14;
  --gold:        #c9a55a;
  --gold-dim:    rgba(201,165,90,.12);
  --gold-border: rgba(201,165,90,.3);
  --item-hover:  rgba(255,255,255,.05);
  --item-active: rgba(201,165,90,.1);
  --muted:       rgba(255,255,255,.38);
  --mid:         rgba(255,255,255,.65);
  --hi:          rgba(255,255,255,.92);
}

/* ── NEUTRALIZAR NAV ANTERIOR ────────────────────────────────── */
.dc-nav, .dc-mega, .dc-mega-overlay,
.dc-search-overlay, .dc-drawer { display: none !important; }

/* ── BODY OFFSET ─────────────────────────────────────────────── */
body { padding-top: var(--total-h); }
[id]  { scroll-margin-top: calc(var(--total-h) + 16px); }

/* ================================================================
   HEADER PRINCIPAL
   ================================================================ */
.dc-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--hh);
  background: var(--header-bg);
  border-bottom: 1px solid var(--hborder);
  z-index: 900;
  transition: box-shadow .3s;
}
.dc-header.is-scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,.55);
}

.dc-header__inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Logo */
.dc-header__logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  background: linear-gradient(130deg, #fff 45%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-right: .5rem;
  border-right: 1px solid var(--hborder);
  margin-right: .25rem;
  line-height: var(--hh);
}
.dc-header__logo:hover { opacity: .8; }

/* Botón "Todas las categorías" */
.dc-header__cat-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--mid);
  font-size: .84rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .18s, border-color .18s, color .18s;
}
.dc-header__cat-btn svg { stroke: currentColor; fill: none; flex-shrink: 0; }
.dc-header__cat-btn:hover,
.dc-header__cat-btn[aria-expanded="true"] {
  background: var(--gold-dim);
  border-color: var(--gold-border);
  color: var(--gold);
}
.dc-header__cat-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Buscador */
.dc-header__search-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}
.dc-header__search-inner {
  display: flex;
  align-items: center;
  height: 44px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 0 .875rem;
  gap: .5rem;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.dc-header__search-inner:focus-within {
  border-color: var(--gold);
  background: rgba(255,255,255,.09);
  box-shadow: 0 0 0 3px rgba(201,165,90,.12);
}
.dc-header__search-icon {
  stroke: currentColor; fill: none;
  color: var(--muted);
  flex-shrink: 0;
}
.dc-header__search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--hi);
  font-size: .875rem;
  font-family: inherit;
}
.dc-header__search-input::placeholder { color: var(--muted); }
.dc-header__search-input::-webkit-search-cancel-button { display: none; }
.dc-header__search-clear {
  display: flex;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: .2rem;
  border-radius: 4px;
  transition: color .15s;
  flex-shrink: 0;
}
.dc-header__search-clear svg { stroke: currentColor; fill: none; }
.dc-header__search-clear:hover { color: var(--hi); }

/* Dropdown buscador */
.dc-header__search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #111122;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
  max-height: 440px;
  overflow-y: auto;
  z-index: 980;
  padding: .5rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.12) transparent;
}
.dc-header__search-dropdown::-webkit-scrollbar { width: 4px; }
.dc-header__search-dropdown::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }

.dc-search-section-title {
  padding: .65rem 1rem .3rem;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.dc-search-result {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem 1rem;
  text-decoration: none;
  color: var(--mid);
  font-size: .84rem;
  transition: background .12s, color .12s;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}
.dc-search-result:hover,
.dc-search-result.is-focused { background: var(--item-hover); color: var(--hi); }
.dc-search-result svg { stroke: currentColor; fill: none; color: var(--muted); flex-shrink: 0; }
.dc-search-result mark { background: none; color: var(--gold); font-weight: 600; }
.dc-search-result__type { margin-left: auto; font-size: .69rem; color: var(--muted); white-space: nowrap; }
.dc-search-empty { padding: 2rem 1rem; text-align: center; color: var(--muted); font-size: .84rem; }
.dc-search-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem 1rem;
  color: var(--mid);
  font-size: .84rem;
  cursor: pointer;
  transition: background .12s;
}
.dc-search-recent-item:hover { background: var(--item-hover); }
.dc-search-recent-text { flex: 1; }
.dc-search-recent-del {
  background: none; border: none;
  color: var(--muted); cursor: pointer;
  padding: .15rem .35rem; border-radius: 4px; font-size: .72rem;
  transition: color .15s;
}
.dc-search-recent-del:hover { color: var(--hi); }

/* Acciones derecha */
.dc-header__actions {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-shrink: 0;
}

/* Selector idioma */
.dc-header__lang { position: relative; }
.dc-header__lang-btn {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .45rem .6rem;
  background: none;
  border: none;
  color: var(--mid);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 7px;
  white-space: nowrap;
  transition: color .18s, background .18s;
}
.dc-header__lang-btn:hover,
.dc-header__lang-btn[aria-expanded="true"] { color: var(--hi); background: rgba(255,255,255,.07); }
.dc-header__lang-btn svg { stroke: currentColor; fill: none; }
.dc-header__lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #14142a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  min-width: 155px;
  z-index: 960;
  overflow: hidden;
}
.dc-header__lang-opt {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  padding: .62rem 1rem;
  background: none;
  border: none;
  color: var(--mid);
  font-size: .83rem;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.dc-header__lang-opt:hover { background: var(--gold-dim); color: var(--hi); }
.dc-header__lang-opt.is-active { color: var(--gold); }

/* Botones acción (cuenta, favoritos, carrito) */
.dc-header__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: none;
  border: none;
  color: var(--mid);
  cursor: pointer;
  border-radius: 8px;
  position: relative;
  transition: color .18s, background .18s;
}
.dc-header__action:hover { color: var(--hi); background: rgba(255,255,255,.06); }
.dc-header__action svg { stroke: currentColor; fill: none; }
.dc-header__cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  background: var(--gold);
  color: #0a0a14;
  font-size: .6rem;
  font-weight: 700;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  line-height: 1;
}
.dc-header__burger {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: none; border: none;
  color: var(--mid); cursor: pointer;
  border-radius: 8px;
  transition: color .18s;
}
.dc-header__burger svg { stroke: currentColor; fill: none; display: block; }
.dc-header__burger:hover { color: var(--hi); }

/* ================================================================
   SUBNAV SECUNDARIO
   ================================================================ */
.dc-subnav {
  position: fixed;
  top: var(--hh);
  left: 0; right: 0;
  height: var(--snav-h);
  background: rgba(5,5,12,.97);
  border-bottom: 1px solid rgba(255,255,255,.05);
  z-index: 898;
  display: flex;
  align-items: center;
}
.dc-subnav__inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.dc-subnav__link {
  font-size: .74rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s;
}
.dc-subnav__link:hover { color: var(--hi); }
.dc-subnav__link--cta {
  color: var(--gold);
  font-weight: 600;
}
.dc-subnav__link--cta:hover { color: #e0bc75; }

/* ================================================================
   PANEL DE CATEGORÍAS
   ================================================================ */

/* Contenedor raíz — siempre visible en DOM, oculto con pointer-events */
.dc-catpanel {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;       /* nada intercepta clics cuando está cerrado */
  isolation: isolate;
}
.dc-catpanel.is-open {
  pointer-events: auto;
}

/* Backdrop */
.dc-catpanel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,8,.72);
  opacity: 0;
  transition: opacity .25s ease;
  cursor: default;
}
.dc-catpanel.is-open .dc-catpanel__backdrop { opacity: 1; }

/* Slide panel (L1 + L2 horizontales) */
.dc-catpanel__panel {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: var(--cat-panel-w);
  max-width: 100vw;
  display: flex;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  box-shadow: 6px 0 48px rgba(0,0,0,.75);
}
.dc-catpanel.is-open .dc-catpanel__panel {
  transform: translateX(0);
}

/* ── L1: lista principal ────────────────────────────────────── */
.dc-catpanel__l1 {
  width: var(--cat-l1-w);
  flex-shrink: 0;
  background: var(--l1-bg);
  border-right: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dc-catpanel__l1-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.dc-catpanel__l1-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hi);
  letter-spacing: -.01em;
}
.dc-catpanel__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  color: var(--mid);
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.dc-catpanel__close:hover { background: rgba(255,255,255,.12); color: var(--hi); }
.dc-catpanel__close svg { stroke: currentColor; fill: none; display: block; }
.dc-catpanel__close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.dc-catpanel__l1-scroll {
  flex: 1;
  overflow-y: auto;
  padding: .5rem 0 2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.dc-catpanel__l1-scroll::-webkit-scrollbar { width: 3px; }
.dc-catpanel__l1-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }

/* Group label */
.dc-cat-group-label {
  display: block;
  padding: .9rem 1.25rem .4rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(201,165,90,.5);
  user-select: none;
}
li:not(:first-child) > .dc-cat-group-label {
  border-top: 1px solid rgba(255,255,255,.05);
  margin-top: .5rem;
  padding-top: 1rem;
}

/* L1 list reset */
.dc-catpanel__l1-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* L1 item */
.dc-cat-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem 1.25rem;
  min-height: 44px;
  cursor: pointer;
  color: var(--mid);
  font-size: .88rem;
  font-weight: 500;
  transition: background .12s, color .12s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
  position: relative;
  outline-offset: -2px;
}
.dc-cat-item:hover {
  background: var(--item-hover);
  color: var(--hi);
}
.dc-cat-item.is-active {
  background: var(--item-active);
  color: var(--gold);
}
.dc-cat-item.is-active::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--gold);
  border-radius: 0 3px 3px 0;
}
.dc-cat-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.dc-cat-item__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  color: var(--muted);
  transition: color .12s;
}
.dc-cat-item:hover .dc-cat-item__icon,
.dc-cat-item.is-active .dc-cat-item__icon { color: var(--gold); }
.dc-cat-item__icon svg { stroke: currentColor; fill: none; width: 18px; height: 18px; display: block; }

.dc-cat-item__name { flex: 1; line-height: 1.35; }

.dc-cat-item__chevron {
  flex-shrink: 0;
  color: rgba(255,255,255,.2);
  display: flex;
  transition: color .12s, transform .12s;
}
.dc-cat-item.is-active .dc-cat-item__chevron {
  color: var(--gold);
  transform: translateX(2px);
}
.dc-cat-item__chevron svg { stroke: currentColor; fill: none; display: block; }

/* Badges */
.dc-cat-badge {
  font-size: .59rem;
  font-weight: 700;
  padding: .1rem .38rem;
  border-radius: 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.dc-cat-badge--top       { background: rgba(201,165,90,.18);  color: var(--gold); }
.dc-cat-badge--hot       { background: rgba(239,68,68,.18);   color: #f87171; }
.dc-cat-badge--nuevo     { background: rgba(34,197,94,.18);   color: #4ade80; }
.dc-cat-badge--exclusivo { background: rgba(139,92,246,.18);  color: #a78bfa; }
.dc-cat-badge--temporada { background: rgba(6,182,212,.18);   color: #22d3ee; }

/* ── L2: subcategorías ──────────────────────────────────────── */
.dc-catpanel__l2 {
  flex: 1;
  background: var(--l2-bg);
  display: flex;
  flex-direction: column;
  height: 100%;
  border-left: 1px solid rgba(255,255,255,.05);
  transition: opacity .18s;
}
.dc-catpanel__l2[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}
.dc-catpanel__l2[aria-hidden="false"] { opacity: 1; }

.dc-catpanel__l2-head {
  padding: 1.1rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.dc-catpanel__back {
  display: none; /* solo móvil */
  align-items: center;
  gap: .35rem;
  background: none; border: none;
  color: var(--muted);
  font-size: .8rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: .5rem;
  transition: color .15s;
}
.dc-catpanel__back svg { stroke: currentColor; fill: none; }
.dc-catpanel__back:hover { color: var(--hi); }
.dc-catpanel__l2-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hi);
  margin: 0 0 .35rem;
  letter-spacing: -.01em;
}
.dc-catpanel__l2-viewall {
  font-size: .8rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: opacity .15s;
}
.dc-catpanel__l2-viewall:hover { opacity: .75; }

.dc-catpanel__l2-scroll {
  flex: 1;
  overflow-y: auto;
  padding: .75rem 0 2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.dc-catpanel__l2-scroll::-webkit-scrollbar { width: 3px; }
.dc-catpanel__l2-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }

.dc-catpanel__l2-list {
  list-style: none;
  margin: 0;
  padding: 0 .75rem;
  display: flex;
  flex-direction: column;
}

.dc-cat-sub-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem .75rem;
  min-height: 42px;
  border-radius: 8px;
  color: var(--mid);
  font-size: .86rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s, color .12s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.dc-cat-sub-item:hover { background: var(--item-hover); color: var(--hi); }
.dc-cat-sub-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.dc-cat-sub-item svg { stroke: currentColor; fill: none; flex-shrink: 0; }

/* Estado vacío L2 */
.dc-catpanel__l2-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: .84rem;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* 1024–1280px: comprimir L2 */
@media (max-width: 1280px) {
  :root { --cat-l2-w: 300px; }
}

/* Tablet */
@media (max-width: 1023px) {
  :root { --cat-l1-w: 280px; --cat-l2-w: 260px; }
  .dc-header__cat-btn span:last-of-type { display: none; } /* ocultar label texto en cat-btn */
}

/* Mobile ≤ 767px */
@media (max-width: 767px) {
  :root {
    /* Fila 1 (52px): logo + iconos  |  Fila 2 (38px): buscador */
    --hh:      90px;
    --snav-h:  36px;
    --total-h: 126px;
    /* Panel categorías */
    --cat-l1-w: 145px;
    --cat-l2-w: calc(100vw - 145px);
    --cat-panel-w: 100vw;
  }

  /* ── SUBNAV MÓVIL: barra scrollable horizontal ──────────── */
  .dc-subnav { display: flex; }
  .dc-subnav__inner {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
  }
  .dc-subnav__inner::-webkit-scrollbar { display: none; }
  .dc-subnav__link {
    flex-shrink: 0;
    padding: 0 .875rem;
    height: 36px;
    display: flex;
    align-items: center;
    font-size: .78rem;
  }

  /* ── HEADER MÓVIL: 2 FILAS ──────────────────────────────── */
  /* Fila 1 (52px): DarCrist (izq) + ES ❤ 🛒 ☰ (dcha)       */
  /* Fila 2 (38px): buscador ancho completo                    */

  .dc-header { height: var(--hh); }

  .dc-header__inner {
    flex-wrap: wrap;
    align-content: flex-start;
    padding: 0 1rem;
    height: auto;
    gap: 0;
  }

  /* Logo: fila 1 izquierda, 52px de alto */
  .dc-header__logo {
    order: 1;
    height: 52px;
    line-height: 52px;
    font-size: 1.25rem;
    flex-shrink: 0;
    padding-right: 0;
    border-right: none;
    margin-right: 0;
  }

  /* Acciones: fila 1 derecha */
  .dc-header__actions {
    order: 2;
    margin-left: auto;
    height: 52px;
    display: flex;
    align-items: center;
    gap: .1rem;
    flex-shrink: 0;
  }

  /* Buscador: fila 2 completa */
  .dc-header__search-wrap {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    padding: 0 0 6px;
    min-width: 0;
  }
  .dc-header__search-inner {
    height: 36px;
    border-radius: 8px;
  }

  /* Cat-btn desktop oculto, burger activado */
  .dc-header__cat-btn { display: none; }
  .dc-header__burger  { display: flex; }
  .dc-header__action  { width: 36px; height: 36px; }

  /* Selector idioma: solo bandera, sin texto ni chevron */
  #langCode                { display: none; }
  .dc-header__lang-btn svg { display: none; }
  .dc-header__lang-btn     { padding: .3rem .4rem; font-size: .88rem; }

  /* Cuenta: oculta en móvil */
  #dcAccountWrap { display: none; }

  /* ── PANEL CATEGORÍAS ───────────────────────────────────── */
  .dc-catpanel__panel { width: 100vw; }
  .dc-catpanel__l1 { width: var(--cat-l1-w); flex-shrink: 0; }
  .dc-catpanel__l2 {
    position: static;
    inset: auto;
    left: auto;
    width: var(--cat-l2-w);
    transition: opacity .18s;
  }
  .dc-catpanel__l2[aria-hidden="false"] { left: auto; opacity: 1; }
  .dc-catpanel__back { display: none; }

  /* L1 compacto */
  .dc-catpanel__l1-head    { padding: .7rem .75rem; }
  .dc-catpanel__l1-title   { font-size: .8rem; }
  .dc-catpanel__close      { width: 26px; height: 26px; }
  .dc-cat-group-label      { font-size: .57rem; padding: .65rem .75rem .28rem; }
  .dc-cat-item             { font-size: .74rem; padding: .5rem .75rem; gap: .38rem; min-height: 38px; }
  .dc-cat-item__icon       { width: 14px; height: 14px; }
  .dc-cat-item__icon svg   { width: 13px; height: 13px; }
  .dc-cat-item__chevron svg{ width: 10px; height: 10px; }

  /* L2 compacto */
  .dc-catpanel__l2-head    { padding: .7rem .75rem; }
  .dc-catpanel__l2-title   { font-size: .8rem; margin-bottom: .18rem; }
  .dc-catpanel__l2-viewall { font-size: .69rem; }
  .dc-catpanel__l2-scroll  { padding: .4rem 0 1.5rem; }
  .dc-catpanel__l2-list    { padding: .3rem .4rem 1rem; }
  .dc-cat-sub-item         { font-size: .74rem; padding: .44rem .5rem; min-height: 36px; border-radius: 6px; gap: .35rem; }
}

/* ≤ 360px: ajuste mínimo de logo y padding */
@media (max-width: 360px) {
  .dc-header__logo  { font-size: 1.15rem; }
  .dc-header__inner { padding: 0 .875rem; }
}

/* ≤ 320px: logo aún más pequeño */
@media (max-width: 320px) {
  .dc-header__logo  { font-size: 1rem; }
  .dc-header__inner { padding: 0 .75rem; }
}

/* Focus ring global */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ════════════════════════════════════════════════════════════════
   PANELES LATERALES — Favoritos & Carrito
═══════════════════════════════════════════════════════════════ */

.dc-side-panel {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
}
.dc-side-panel.is-open { pointer-events: auto; }

.dc-side-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,20,.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s;
}
.dc-side-panel.is-open .dc-side-panel__overlay { opacity: 1; }

.dc-side-panel__drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 92vw);
  background: #0f0f20;
  border-left: 1px solid rgba(201,165,90,.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.dc-side-panel.is-open .dc-side-panel__drawer { transform: translateX(0); }

.dc-side-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  gap: .75rem;
}
.dc-side-panel__title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #e8e0d0;
  margin: 0;
}
.dc-side-panel__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.dc-side-panel__close:hover { background: rgba(201,165,90,.15); color: var(--gold); }

.dc-side-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

/* ── Estado vacío ── */
.dc-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  padding: 3rem 1rem;
  color: rgba(255,255,255,.35);
}
.dc-panel-empty svg { opacity: .3; }
.dc-panel-empty p { font-size: 1rem; font-weight: 500; color: rgba(255,255,255,.55); margin: 0; }
.dc-panel-empty span { font-size: .85rem; line-height: 1.5; }

/* ── Favoritos — item ── */
.dc-fav-item {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dc-fav-item__img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.dc-fav-item__img--placeholder {
  background: rgba(255,255,255,.08);
  border-radius: 8px;
}
.dc-fav-item__info { flex: 1; min-width: 0; }
.dc-fav-item__name {
  font-size: .88rem;
  font-weight: 500;
  color: #e0d8cc;
  margin: 0 0 .25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dc-fav-item__price {
  font-size: .8rem;
  color: var(--gold);
  margin: 0;
}
.dc-fav-item__del {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.35);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.dc-fav-item__del:hover { background: rgba(220,50,50,.15); color: #f87171; }

/* ── Corazón en tarjetas de producto ── */
.dc-fav-heart {
  position: absolute;
  top: .6rem;
  right: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(8,8,20,.6);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,.6);
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
  z-index: 2;
}
.dc-fav-heart:hover { background: rgba(201,165,90,.2); color: var(--gold); transform: scale(1.1); }
.dc-fav-heart.is-active { background: rgba(220,50,80,.2); color: #f87171; }
.dc-fav-heart.is-active svg { fill: #f87171; }

/* Badge favoritos */
.dc-header__fav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--gold);
  color: #0a0a14;
  font-size: .65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Carrito — nota Shopify ── */
.dc-cart-shopify-note {
  margin-top: 1.5rem;
  background: rgba(201,165,90,.06);
  border: 1px solid rgba(201,165,90,.2);
  border-radius: 10px;
  padding: 1.1rem;
}
.dc-cart-shopify-note h3 {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 .5rem;
}
.dc-cart-shopify-note p { font-size: .82rem; color: rgba(255,255,255,.5); margin: 0 0 .6rem; }
.dc-cart-shopify-note ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.dc-cart-shopify-note li { font-size: .8rem; color: rgba(255,255,255,.55); padding-left: 1rem; position: relative; }
.dc-cart-shopify-note li::before { content: '·'; position: absolute; left: 0; color: var(--gold); }
.dc-cart-shopify-note code { background: rgba(255,255,255,.08); padding: 1px 4px; border-radius: 3px; font-size: .75rem; }
.dc-cart-shopify-note__cta {
  display: inline-block;
  padding: .6rem 1.1rem;
  background: var(--gold);
  color: #0a0a14;
  font-size: .82rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity .15s;
}
.dc-cart-shopify-note__cta:hover { opacity: .85; }

/* ════════════════════════════════════════════════════════════════
   MENÚ DE CUENTA
═══════════════════════════════════════════════════════════════ */

.dc-header__account-wrap { position: relative; }

.dc-account-drop {
  position: absolute;
  top: calc(100% + 8px);
  right: -8px;
  width: 240px;
  background: #0f0f20;
  border: 1px solid rgba(201,165,90,.18);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(.97);
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 1200;
}
.dc-account-drop[aria-hidden="true"] { visibility: hidden; }
.dc-account-drop.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dc-account-drop__header {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.4);
}
.dc-account-drop__title {
  font-size: .88rem;
  font-weight: 600;
  color: #e0d8cc;
  margin: 0;
}
.dc-account-drop__sub {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  margin: 0;
}
.dc-account-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1rem;
  font-size: .84rem;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: background .12s, color .12s;
  position: relative;
}
.dc-account-link:hover { background: rgba(201,165,90,.08); color: #e0d8cc; }
.dc-account-link__badge {
  margin-left: auto;
  font-size: .65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(201,165,90,.15);
  color: var(--gold);
  letter-spacing: .03em;
}
.dc-account-drop__divider {
  height: 1px;
  background: rgba(255,255,255,.06);
  margin: .25rem 0;
}

/* ════════════════════════════════════════════════════════════════
   SECCIÓN WEAR — Próximamente
═══════════════════════════════════════════════════════════════ */

.dc-wear-soon {
  background: linear-gradient(135deg, #0d0d1f 0%, #14103a 50%, #0d0d1f 100%);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dc-wear-soon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(201,165,90,.08) 0%, transparent 70%);
  pointer-events: none;
}
.dc-wear-soon__inner {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.dc-wear-soon__badge {
  display: inline-block;
  padding: .3rem .85rem;
  border-radius: 20px;
  border: 1px solid rgba(201,165,90,.35);
  background: rgba(201,165,90,.08);
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.dc-wear-soon__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #f0ebe0;
  margin: 0 0 1rem;
  line-height: 1.2;
}
.dc-wear-soon__desc {
  font-size: .95rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin: 0 0 2rem;
}
.dc-wear-soon__cta {
  display: inline-block;
  padding: .75rem 1.75rem;
  background: var(--gold);
  color: #0a0a14;
  font-weight: 700;
  font-size: .9rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity .15s, transform .15s;
}
.dc-wear-soon__cta:hover { opacity: .88; transform: translateY(-1px); }

/* ════════════════════════════════════════════════════════════════
   BOTÓN ACCIÓN HEADER — posición relativa para badges
═══════════════════════════════════════════════════════════════ */

.dc-header__action { position: relative; }
