/* ═══════════════════════════════════════════════════════════
   Y&D JEANS — Design System CSS
   Identidad: Urbano · Industrial · Streetwear · Limpio
   Inspirado en la tienda física: marcos negros metálicos,
   mostrador con líneas doradas, organización perfecta.
   ═══════════════════════════════════════════════════════════ */

/* ── GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Space+Mono:wght@400;700&display=swap');

/*
  FUENTES:
  - Barlow Condensed 700/800 → Títulos, logo, hero (fuerza urbana/streetwear)
  - DM Sans 400/500/600      → Cuerpo, formularios, descripciones (legibilidad)
  - Space Mono 400/700       → Precios, códigos, datos técnicos (industrial)
*/

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  /* Colores base */
  --negro:       #0a0a0a;        /* Negro mate profundo — estructura, frames */
  --negro-soft:  #161616;        /* Negro para cards oscuras */
  --negro-card:  #1e1e1e;        /* Superficies oscuras secundarias */
  --gris-dark:   #2a2a2a;        /* Bordes en modo oscuro */
  --gris-mid:    #6b6b6b;        /* Texto secundario */
  --gris-light:  #d4d4d4;        /* Bordes suaves */
  --gris-bg:     #f7f7f5;        /* Fondo principal (blanco cálido, no frío) */
  --blanco:      #ffffff;

  /* Acento dorado — solo para CTA, precio, carrito */
  --oro:         #c9a84c;        /* Dorado principal */
  --oro-light:   #f0d98a;        /* Dorado hover / highlight */
  --oro-dark:    #8a6d28;        /* Dorado texto sobre fondo claro */
  --oro-bg:      #fdf8ec;        /* Fondo tintado oro muy sutil */

  /* Semánticos */
  --success:     #1e7a3e;
  --danger:      #c0392b;
  --warn:        #c9a84c;        /* = oro (aviso = precio) */

  /* Tipografía */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* Espaciado base */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;

  /* Radios */
  --r-sm:  2px;
  --r-md:  4px;
  --r-lg:  8px;
  --r-xl:  12px;

  /* Sombras */
  --shadow-sm:  0 1px 4px rgba(0,0,0,.10);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.18);
  --shadow-oro: 0 4px 20px rgba(201,168,76,.25);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body {
  background: var(--gris-bg);
  color: var(--negro);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, textarea, select { font-family: inherit; }
a  { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar        { width: 5px; height: 5px; }
::-webkit-scrollbar-track  { background: var(--gris-bg); }
::-webkit-scrollbar-thumb  { background: var(--gris-light); border-radius: 3px; }

/* ══════════════════════════════════════════════════════════
   TIPOGRAFÍA
══════════════════════════════════════════════════════════ */

/* Display / Títulos — urbano, compacto, con fuerza */
.display-xl  { font-family: var(--font-display); font-size: clamp(52px, 10vw, 96px); font-weight: 800; letter-spacing: -1px; line-height: .92; text-transform: uppercase; }
.display-lg  { font-family: var(--font-display); font-size: clamp(38px, 7vw, 64px);  font-weight: 700; letter-spacing: 0;    line-height: .95; text-transform: uppercase; }
.display-md  { font-family: var(--font-display); font-size: clamp(28px, 5vw, 44px);  font-weight: 700; letter-spacing: .5px; line-height: 1;   text-transform: uppercase; }
.display-sm  { font-family: var(--font-display); font-size: clamp(20px, 4vw, 28px);  font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }

/* Eyebrow / etiquetas de sección */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gris-mid);
}
.eyebrow-oro { color: var(--oro); }

/* Body */
.text-lg   { font-size: 17px; line-height: 1.65; }
.text-md   { font-size: 15px; line-height: 1.6; }
.text-sm   { font-size: 13px; line-height: 1.55; color: var(--gris-mid); }
.text-xs   { font-size: 11px; letter-spacing: .5px; color: var(--gris-mid); }

/* Precio — siempre en Space Mono */
.precio      { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--oro-dark); }
.precio-lg   { font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--oro-dark); }
.precio-hero { font-family: var(--font-mono); font-size: 32px; font-weight: 700; color: var(--oro); }

/* ══════════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}
@media (min-width: 768px)  { .container { padding: 0 var(--sp-6); } }
@media (min-width: 1024px) { .container { padding: 0 var(--sp-8); } }

.section { padding: var(--sp-7) 0; }
@media (min-width: 768px) { .section { padding: var(--sp-8) 0; } }

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--negro);
  border-bottom: 1px solid var(--gris-dark);
  height: 56px;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

/* Logo circular — replica el logo del local */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-circle img { width: 100%; height: 100%; object-fit: cover; }
.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blanco);
  line-height: 1;
}
.logo-text span { color: var(--oro); }

/* Nav */
.header-nav {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}
.header-nav a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: color .15s;
  display: none;
}
@media (min-width: 768px) { .header-nav a { display: block; } }
.header-nav a:hover { color: var(--blanco); }

/* Header actions (iconos) */
.header-actions { display: flex; gap: var(--sp-1); align-items: center; }
.hdr-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 18px;
  border-radius: var(--r-md);
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  transition: color .15s, background .15s;
}
.hdr-btn:hover  { color: var(--blanco); background: rgba(255,255,255,.08); }
.hdr-btn:active { background: rgba(255,255,255,.14); }

/* Badge carrito */
.cart-count {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--oro);
  color: var(--negro);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.cart-count.show { display: flex; }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  background: var(--negro);
  min-height: 90dvh;
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: 80dvh; }
}

.hero-media {
  position: relative;
  min-height: 60vw;
  background: var(--negro-card);
  overflow: hidden;
}
@media (min-width: 768px) { .hero-media { min-height: unset; } }

.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .88;
  transition: transform .8s ease;
}
.hero-media:hover img { transform: scale(1.03); }

/* Overlay línea dorada diagonal — seña de identidad */
.hero-media::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--oro), transparent);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-6) var(--sp-4);
  gap: var(--sp-4);
}
@media (min-width: 768px) { .hero-content { padding: var(--sp-8) var(--sp-6); } }

.hero-eyebrow { color: var(--oro); }
.hero-title   { color: var(--blanco); }
.hero-desc    { color: rgba(255,255,255,.6); max-width: 380px; }

/* Línea decorativa — como las líneas del mostrador */
.hero-divider {
  width: 48px;
  height: 2px;
  background: var(--oro);
}

/* ══════════════════════════════════════════════════════════
   BOTONES
══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 14px 24px;
  transition: all .15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .38; cursor: not-allowed; transform: none; }

/* CTA principal — oro sobre negro */
.btn-primary {
  background: var(--oro);
  color: var(--negro);
  box-shadow: var(--shadow-oro);
}
.btn-primary:hover { background: var(--oro-light); }

/* Secundario — negro sobre blanco */
.btn-secondary {
  background: var(--negro);
  color: var(--blanco);
}
.btn-secondary:hover { background: #2a2a2a; }

/* Ghost — borde */
.btn-ghost {
  background: transparent;
  color: var(--negro);
  border: 1.5px solid var(--negro);
}
.btn-ghost:hover { background: var(--negro); color: var(--blanco); }

.btn-ghost-white {
  background: transparent;
  color: var(--blanco);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-ghost-white:hover { border-color: var(--blanco); }

/* Tamaños */
.btn-sm  { padding: 9px 16px; font-size: 9px; }
.btn-lg  { padding: 16px 32px; font-size: 12px; }
.btn-full { width: 100%; }

/* ══════════════════════════════════════════════════════════
   CATÁLOGO — GRID
══════════════════════════════════════════════════════════ */

/* Filtros de categoría */
.catalog-filters {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-bottom: var(--sp-2);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.catalog-filters::-webkit-scrollbar { display: none; }

.filter-chip {
  flex-shrink: 0;
  padding: 7px 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--gris-light);
  border-radius: 2px;
  background: var(--blanco);
  color: var(--gris-mid);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.filter-chip:hover  { border-color: var(--negro); color: var(--negro); }
.filter-chip.active { background: var(--negro); color: var(--blanco); border-color: var(--negro); }

/* Grid impecable — "el efecto estante" */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--gris-light);
  border: 1px solid var(--gris-light);
}
@media (min-width: 640px)  { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .catalog-grid { grid-template-columns: repeat(4, 1fr); } }

/* PRENDA CARD */
.product-card {
  background: var(--blanco);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.product-card:hover { box-shadow: var(--shadow-lg); z-index: 2; }

/* Imagen con hover — frente/reverso */
.product-img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  background: var(--gris-bg);
}
.product-img-front,
.product-img-back {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .35s ease;
}
.product-img-back { opacity: 0; }
.product-card:hover .product-img-front { opacity: 0; }
.product-card:hover .product-img-back  { opacity: 1; }

/* Badge de categoría */
.product-badge {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  background: var(--negro);
  color: var(--blanco);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 1px;
}
.product-badge.nuevo    { background: var(--oro); color: var(--negro); }
.product-badge.agotado  { background: var(--gris-mid); }

.product-info {
  padding: var(--sp-3) var(--sp-3) var(--sp-4);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  border-top: 1px solid var(--gris-bg);
}
.product-nombre {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--negro);
}
.product-detalle { font-size: 11px; color: var(--gris-mid); }
.product-footer  { display: flex; justify-content: space-between; align-items: center; margin-top: var(--sp-2); }

/* Botón agregar — solo icono en grid */
.btn-add-mini {
  width: 32px; height: 32px;
  background: var(--negro);
  color: var(--blanco);
  border: none;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}
.btn-add-mini:hover  { background: var(--oro); color: var(--negro); }
.btn-add-mini:active { transform: scale(.93); }

/* ══════════════════════════════════════════════════════════
   FICHA DE PRODUCTO (Bottom Sheet / Modal)
══════════════════════════════════════════════════════════ */
.overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,.65);
  display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.overlay.open { opacity: 1; pointer-events: all; }

.product-sheet {
  background: var(--blanco);
  width: 100%;
  max-height: 92dvh;
  overflow-y: auto;
  border-radius: 8px 8px 0 0;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
}
.overlay.open .product-sheet { transform: translateY(0); }

@media (min-width: 768px) {
  .overlay { align-items: center; justify-content: center; }
  .product-sheet { max-width: 600px; max-height: 88dvh; border-radius: 8px; }
}

.sheet-handle { width: 36px; height: 3px; background: var(--gris-light); border-radius: 2px; margin: 12px auto 0; }
.sheet-close  { position: absolute; top: 12px; right: 14px; font-size: 22px; color: var(--gris-mid); cursor: pointer; line-height: 1; z-index: 2; }

/* ── Carrusel de imágenes ── */
.sheet-carousel {
  position: relative; overflow: hidden;
  aspect-ratio: 3/4; background: var(--gris-bg);
  user-select: none;
}
.carousel-track {
  display: flex; height: 100%;
  transition: transform .3s ease;
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%; object-fit: cover;
  width: 100%; height: 100%; pointer-events: none;
}
.carousel-placeholder {
  flex: 0 0 100%; display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: var(--gris-light);
}
.carousel-dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer;
  transition: background .2s, transform .2s;
}
.carousel-dot.active { background: white; transform: scale(1.25); }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); color: white; border: none;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 22px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  z-index: 2; transition: background .15s;
}
.carousel-nav:hover { background: rgba(0,0,0,.75); }
.carousel-nav.visible { display: flex; }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

/* Selector de tallas — dinámico */
.tallas-wrap { display: flex; flex-direction: column; gap: 8px; }
.talla-pill {
  min-width: 56px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border: 1.5px solid var(--gris-light);
  border-radius: var(--r-sm);
  background: var(--blanco);
  cursor: pointer;
  transition: all .15s;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.talla-pill .stock-num { font-size: 8px; font-weight: 400; color: var(--gris-mid); font-family: var(--font-mono); }
.talla-pill:hover   { border-color: var(--negro); }
.talla-pill.sel     { background: var(--negro); color: var(--blanco); border-color: var(--negro); }
.talla-pill.sel .stock-num { color: rgba(255,255,255,.45); }
.talla-pill.agotado { opacity: .28; cursor: not-allowed; text-decoration: line-through; }

/* Qty control */
.qty-ctrl { display: flex; align-items: center; border: 1.5px solid var(--gris-light); border-radius: var(--r-sm); overflow: hidden; width: fit-content; }
.qty-btn  { width: 44px; height: 44px; font-size: 20px; color: var(--negro); background: var(--gris-bg); border: none; cursor: pointer; transition: background .1s; }
.qty-btn:active { background: var(--gris-light); }
.qty-num  { width: 52px; height: 44px; text-align: center; font-family: var(--font-mono); font-size: 18px; font-weight: 700; border: none; border-left: 1.5px solid var(--gris-light); border-right: 1.5px solid var(--gris-light); background: var(--blanco); outline: none; }

/* ══════════════════════════════════════════════════════════
   FORMULARIOS
══════════════════════════════════════════════════════════ */
.field { margin-bottom: 16px; }
.field label {
  display: flex; gap: 4px; align-items: center;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gris-mid);
  margin-bottom: 6px;
}
.field label .req { color: var(--oro-dark); font-size: 13px; line-height: 1; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1.5px solid var(--gris-light);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  font-size: 16px; /* evita zoom iOS */
  color: var(--negro);
  background: var(--blanco);
  outline: none;
  transition: border-color .15s;
  -webkit-appearance: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--negro); }
.field input.err { border-color: var(--danger); }
.field textarea { resize: vertical; min-height: 80px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint { font-size: 11px; color: var(--gris-mid); margin-top: 4px; }
.field-err  { font-size: 11px; color: var(--danger); margin-top: 4px; display: none; }
.field-err.show { display: block; }

/* ══════════════════════════════════════════════════════════
   CARRITO — PANEL LATERAL
══════════════════════════════════════════════════════════ */
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 100vw);
  background: var(--blanco);
  border-left: 1px solid var(--gris-light);
  z-index: 600;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.32,.72,0,1);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  background: var(--negro);
  color: var(--blanco);
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}
.cart-head-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.cart-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cart-foot { padding: 16px; border-top: 1px solid var(--gris-light); background: var(--blanco); flex-shrink: 0; }

.cart-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gris-bg);
}
.cart-item:last-child { border-bottom: none; }
.cart-thumb {
  width: 64px; height: 80px; border-radius: var(--r-sm);
  background: var(--gris-bg); overflow: hidden; flex-shrink: 0;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name   { font-size: 13px; font-weight: 600; line-height: 1.3; }
.cart-item-meta   { font-family: var(--font-mono); font-size: 10px; color: var(--gris-mid); margin-top: 2px; }
.cart-item-price  { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--oro-dark); margin-top: 4px; }
.cart-item-rm     { margin-left: auto; font-size: 17px; color: var(--gris-mid); cursor: pointer; padding: 2px; flex-shrink: 0; }

.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.cart-total-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gris-mid); }
.cart-total-val   { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--negro); }

/* ══════════════════════════════════════════════════════════
   BADGES / ESTADOS
══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.badge-pending   { background: #fff8e6; color: #7a5a00; }
.badge-confirmed { background: #e6f4ec; color: #1e5a30; }
.badge-shipped   { background: #e6eef8; color: #1a4070; }
.badge-delivered { background: #f0f8e6; color: #2a5010; }
.badge-cancelled { background: #f8e6e6; color: #701a1a; }
.badge-partial   { background: #fff8e6; color: #7a5a00; }

/* ══════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: var(--negro); color: var(--blanco);
  padding: 12px 22px; border-radius: 100px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  font-weight: 700; z-index: 999;
  opacity: 0; pointer-events: none;
  transition: all .25s cubic-bezier(.32,.72,0,1);
  max-width: 90vw; text-align: center; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok   { background: var(--success); }
.toast.error{ background: var(--danger); }
.toast.warn { background: var(--oro-dark); }

/* ══════════════════════════════════════════════════════════
   WHATSAPP FLOTANTE
══════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 24px; right: 20px;
  z-index: 300;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.wa-btn {
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
  color: white;
  border: none;
}
.wa-btn:hover  { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,.55); }
.wa-btn:active { transform: scale(.95); }

.wa-pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: wa-pulse 2.5s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: .7; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.wa-tooltip {
  background: var(--negro);
  color: var(--blanco);
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 1.5px;
  padding: 6px 12px; border-radius: 2px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.wa-float:hover .wa-tooltip { opacity: 1; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--negro);
  color: rgba(255,255,255,.55);
  padding: var(--sp-7) 0 var(--sp-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand-name { font-family: var(--font-display); font-size: 32px; font-weight: 800; letter-spacing: 3px; color: var(--blanco); text-transform: uppercase; }
.footer-brand-name span { color: var(--oro); }
.footer-tagline { font-family: var(--font-mono); font-size: 9px; letter-spacing: 3px; color: var(--gris-mid); text-transform: uppercase; margin-top: 4px; }

.footer-heading {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: var(--sp-3);
}
.footer-link { display: block; font-size: 13px; color: rgba(255,255,255,.55); padding: 3px 0; transition: color .15s; }
.footer-link:hover { color: var(--blanco); }

.social-row { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); }
.social-btn {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: rgba(255,255,255,.6);
  transition: all .15s; cursor: pointer;
}
.social-btn:hover { border-color: var(--oro); color: var(--oro); }

.footer-bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--gris-dark);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 1.5px;
  color: rgba(255,255,255,.25);
}

/* ══════════════════════════════════════════════════════════
   ADMIN / PANEL
══════════════════════════════════════════════════════════ */
.admin-header { background: var(--negro); }
.admin-tabs {
  display: flex;
  background: var(--negro);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 8px 10px;
  gap: 4px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  flex: 1; min-width: 0;
  padding: 9px 6px 8px;
  font-family: var(--font-mono); font-size: 7.5px;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,.32);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: none; border-radius: 10px; background: transparent;
  cursor: pointer; transition: all .18s; white-space: nowrap;
}
.admin-tab .ti { font-size: 20px; line-height: 1; }
.admin-tab:hover { color: rgba(255,255,255,.65); background: rgba(255,255,255,.06); }
.admin-tab.active { color: var(--negro); background: var(--oro); font-weight: 700; }

/* Stat card admin */
.stat-card {
  background: var(--negro-card);
  border: 1px solid var(--gris-dark);
  border-radius: var(--r-md);
  padding: 16px;
}
.stat-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 6px; }
.stat-val   { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: 1px; color: var(--blanco); line-height: 1; }
.stat-val.oro     { color: var(--oro); }
.stat-val.success { color: #5fcea0; }
.stat-val.warn    { color: var(--oro-light); }

/* ══════════════════════════════════════════════════════════
   TALLAS DINÁMICAS — Form admin
══════════════════════════════════════════════════════════ */
.talla-row-form {
  display: flex; gap: 8px; align-items: flex-end;
  background: var(--negro-card);
  border: 1px solid var(--gris-dark);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
}
.talla-row-form .field { margin-bottom: 0; flex: 1; }
.talla-row-form .field input { background: var(--negro-soft); border-color: var(--gris-dark); color: var(--blanco); }
.talla-row-form .field input:focus { border-color: var(--oro); }
.talla-row-rm {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(192,57,43,.15); color: var(--danger);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; cursor: pointer; border: none; flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile overrides
══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .display-xl { font-size: 52px; }
  .display-lg { font-size: 38px; }
  .btn        { padding: 13px 20px; }
  .btn-lg     { padding: 15px 24px; }
  .catalog-grid { gap: 1px; }
}

/* ══════════════════════════════════════════════════════════
   ANIMACIONES
══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-fade-up { animation: fadeUp .4s ease both; }
.anim-fade-up.d1 { animation-delay: .1s; }
.anim-fade-up.d2 { animation-delay: .2s; }
.anim-fade-up.d3 { animation-delay: .3s; }

@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position:  200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--gris-bg) 25%, var(--gris-light) 50%, var(--gris-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--r-sm);
}
