/* ══════════════════════════════════════════════════════════════════
   Mº Angel's Store — Design System
   Centralized CSS for all pages
   ══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,700&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=DM+Mono:wght@300;400;500&display=swap');

/* ── Reset & Root ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --white:    #FAFAF8;
  --cloud:    #F4F0EA;
  --linen:    #E8E2D9;
  --stone:    #C9BFB3;
  --drift:    #7A6F67;
  --bark:     #3D3530;
  --espresso: #1C1915;
  --ink:      #0F0E0D;

  /* Accents */
  --bloom:    #E8C4C4;
  --bloom-d:  #C9928F;
  --rose:     #B5706E;
  --gold:     #C9A96E;
  --gold-l:   #E8D5B0;

  /* Semantic */
  --red:      #9B2335;
  --green:    #2A5C3F;
  --blue:     #1E3A5F;

  /* Typography */
  --font-d: 'Cormorant Garamond', Georgia, serif;
  --font-b: 'DM Sans', system-ui, sans-serif;
  --font-m: 'DM Mono', monospace;

  /* Elevation */
  --shadow:    0 2px 24px rgba(28,25,21,.07);
  --shadow-md: 0 6px 32px rgba(28,25,21,.10);
  --shadow-lg: 0 16px 60px rgba(28,25,21,.14);

  /* Easing */
  --ease: cubic-bezier(.25,.46,.45,.94);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);

  /* Spacing */
  --max-w: 1320px;
  --radius: 0px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--espresso);
  font-family: var(--font-b);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }

/* ── Selection ── */
::selection { background: var(--linen); color: var(--espresso); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--stone); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--drift); }

/* ══════════════════════════════════════════════════════════════════
   ANNOUNCEMENT BAR
   ══════════════════════════════════════════════════════════════════ */
#ann-bar {
  background: var(--espresso);
  color: var(--white);
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.ann-msg {
  position: absolute;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 400;
  transition: all .45s var(--ease);
}
.ann-msg.out-up  { transform: translateY(-16px); opacity: 0; }
.ann-msg.in      { transform: translateY(0);     opacity: 1; }
.ann-msg.out-down{ transform: translateY(16px);  opacity: 0; }

/* ══════════════════════════════════════════════════════════════════
   HEADER / NAVBAR
   ══════════════════════════════════════════════════════════════════ */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,.97);
  border-bottom: 1px solid var(--linen);
  transition: box-shadow .35s var(--ease), background .35s;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
#header.scrolled {
  box-shadow: 0 1px 28px rgba(28,25,21,.09);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 68px;
  gap: 28px;
}

/* Logo */
.logo {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  transition: opacity .2s;
}
.logo:hover { opacity: .75; }
.logo-top { display: flex; align-items: baseline; gap: 2px; }
.logo-m    { font-family: var(--font-d); font-size: 13px; font-weight: 700; color: var(--espresso); }
.logo-name { font-family: var(--font-d); font-size: 27px; font-weight: 700; font-style: italic; color: var(--espresso); letter-spacing: -.02em; }
.logo-bottom { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.logo-store  { font-family: var(--font-d); font-size: 9px; color: var(--espresso); letter-spacing: .4em; text-transform: uppercase; }

/* Nav links */
.nav-links { flex: 1; justify-content: center; gap: 0; display: none; }
@media(min-width: 768px) { .nav-links { display: flex; } }

.nav-link {
  padding: 8px 18px;
  font-size: 12.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--drift);
  transition: color .2s;
  position: relative;
  font-weight: 500;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 18px;
  right: 18px;
  height: 1px;
  background: var(--espresso);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--espresso); }
.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }

.nav-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--drift);
  border-radius: 50%;
  transition: color .2s, background .2s;
}
.nav-btn:hover { color: var(--espresso); background: var(--cloud); }

.cart-badge { position: relative; }
.badge {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 17px;
  height: 17px;
  background: var(--espresso);
  color: var(--white);
  font-size: 9px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-m);
  line-height: 1;
  font-weight: 500;
}

.ham-btn { display: flex; }
@media(min-width: 768px) { .ham-btn { display: none; } }

/* ══════════════════════════════════════════════════════════════════
   MOBILE MENU
   ══════════════════════════════════════════════════════════════════ */
#mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28,25,21,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#mobile-overlay.open { display: block; }

#mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 82vw; max-width: 340px;
  z-index: 201;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform .48s var(--ease);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--linen);
}
#mobile-menu.open { transform: translateX(0); }

.mm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--linen);
}
.mm-nav { flex: 1; padding: 12px 24px; overflow-y: auto; }
.mm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  border-bottom: 1px solid rgba(232,226,217,.5);
  font-size: 15px;
  font-weight: 400;
  color: var(--espresso);
  transition: color .2s, padding-left .2s;
}
.mm-link:hover { color: var(--bloom-d); padding-left: 4px; }
.mm-foot {
  padding: 24px;
  border-top: 1px solid var(--linen);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mm-foot a {
  display: block;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 15px;
  border: 1px solid var(--espresso);
  color: var(--espresso);
  transition: all .3s;
  font-weight: 500;
}
.mm-foot a.filled { background: var(--espresso); color: var(--white); }
.mm-foot a:hover { background: var(--espresso); color: var(--white); }
.mm-foot a.filled:hover { background: var(--ink); }

/* ══════════════════════════════════════════════════════════════════
   CART DRAWER
   ══════════════════════════════════════════════════════════════════ */
#cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(28,25,21,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#cart-overlay.open { display: block; }

#cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 440px;
  z-index: 301;
  background: var(--white);
  transform: translateX(100%);
  transition: transform .42s var(--ease);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--linen);
}
#cart-drawer.open { transform: translateX(0); }

.cd-head {
  padding: 22px 26px;
  border-bottom: 1px solid var(--linen);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cd-title { font-family: var(--font-d); font-size: 24px; font-weight: 600; font-style: italic; }
.cd-body  { flex: 1; overflow-y: auto; padding: 16px 26px; }

.cd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 220px;
  gap: 14px;
  color: var(--stone);
}
.cd-empty svg { opacity: .35; }

.cd-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--linen);
}
.cd-img {
  width: 76px; height: 96px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--cloud);
}
.cd-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.cd-img:hover img { transform: scale(1.04); }
.cd-info { flex: 1; }
.cd-name { font-size: 14px; color: var(--espresso); margin-bottom: 4px; font-weight: 500; }
.cd-meta { font-size: 12px; color: var(--drift); margin-bottom: 10px; }

.cd-qty { display: flex; align-items: center; gap: 12px; }
.cd-qty button {
  width: 26px; height: 26px;
  border: 1px solid var(--linen);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--espresso);
  transition: all .2s;
}
.cd-qty button:hover { border-color: var(--espresso); background: var(--espresso); color: var(--white); }
.cd-qty span { font-family: var(--font-m); font-size: 13px; min-width: 22px; text-align: center; }

.cd-price { font-family: var(--font-m); font-size: 13px; color: var(--espresso); text-align: right; font-weight: 500; }
.cd-remove { font-size: 11px; color: var(--drift); text-decoration: underline; cursor: pointer; margin-top: 8px; display: block; text-align: right; transition: color .2s; }
.cd-remove:hover { color: var(--red); }

.cd-foot {
  padding: 20px 26px;
  border-top: 1px solid var(--linen);
  background: var(--cloud);
}
.cd-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.cd-subtotal .label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--drift); }
.cd-subtotal .value { font-family: var(--font-m); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }

/* ══════════════════════════════════════════════════════════════════
   SEARCH OVERLAY
   ══════════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════════
   SEARCH OVERLAY — Rediseño completo con resultados + imágenes
   ══════════════════════════════════════════════════════════════════ */
#search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(28,25,21,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 60px;
}
#search-overlay.open { display: flex; }

/* Panel blanco central */
.srch-wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(28,25,21,.22);
  overflow: hidden;
  animation: srchIn .22s var(--ease) both;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
}
@keyframes srchIn {
  from { opacity: 0; transform: translateY(-12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* Barra de input */
.srch-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1.5px solid var(--linen);
  flex-shrink: 0;
}
.srch-icon { color: var(--stone); flex-shrink: 0; }
.srch-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-d);
  font-size: clamp(18px, 3vw, 26px);
  font-style: italic;
  color: var(--espresso);
  min-width: 0;
}
.srch-bar input::placeholder { color: var(--stone); opacity: .7; }
.srch-clear {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--linen);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--drift);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
}
.srch-clear:hover { background: var(--stone); color: var(--white); }
.srch-close {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--linen);
  border-radius: 6px;
  color: var(--drift);
  font-size: 10px;
  letter-spacing: .08em;
  cursor: pointer;
  flex-shrink: 0;
  background: none;
  transition: border-color .2s, color .2s;
}
.srch-close:hover { border-color: var(--espresso); color: var(--espresso); }
.srch-close span { display: none; }
@media(min-width: 640px) { .srch-close span { display: inline; } }

/* Cuerpo */
.srch-body {
  overflow-y: auto;
  padding: 20px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

/* Label sección */
.srch-section-label {
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--drift);
  font-weight: 600;
  margin-bottom: 14px;
}

/* Tags populares */
.srch-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.srch-tag {
  padding: 8px 16px;
  border: 1px solid var(--linen);
  border-radius: 99px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--espresso);
  cursor: pointer;
  background: none;
  font-family: var(--font-b);
  transition: background .18s, border-color .18s;
}
.srch-tag:hover { background: var(--cloud); border-color: var(--espresso); }

/* Historial de búsqueda */
.srch-history-list { display: flex; flex-direction: column; gap: 2px; }
.srch-history-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  cursor: pointer; transition: background .15s;
  font-size: 13px; color: var(--espresso); font-family: var(--font-b);
}
.srch-history-item:hover { background: var(--cloud); }
.srch-history-item svg.srch-hist-icon { flex-shrink:0; opacity:.4; }
.srch-history-item span { flex:1; }
.srch-history-item .srch-hist-del {
  opacity:0; background:none; border:none; cursor:pointer;
  padding:2px 4px; border-radius:4px; color:var(--drift);
  font-size:11px; transition: opacity .15s;
  display:flex; align-items:center;
}
.srch-history-item:hover .srch-hist-del { opacity:1; }
.srch-history-clear {
  display:flex; align-items:center; gap:5px;
  background:none; border:none; cursor:pointer;
  font-size:11px; color:var(--drift); font-family:var(--font-b);
  letter-spacing:.04em; padding:4px 6px; border-radius:6px;
  transition: color .15s, background .15s;
}
.srch-history-clear:hover { color:var(--espresso); background:var(--cloud); }

/* Spinner */
.srch-spinner {
  width: 32px; height: 32px;
  border: 2.5px solid var(--linen);
  border-top-color: var(--espresso);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 32px auto;
}

/* Grid de resultados */
.srch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media(min-width: 500px) { .srch-grid { grid-template-columns: repeat(3, 1fr); } }
@media(min-width: 700px) { .srch-grid { grid-template-columns: repeat(4, 1fr); } }

/* Tarjeta resultado */
.srch-card {
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  background: var(--cloud);
  border: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s, transform .18s;
}
.srch-card:hover {
  border-color: var(--espresso);
  box-shadow: 0 4px 16px rgba(28,25,21,.12);
  transform: translateY(-2px);
}
.srch-card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--linen);
}
.srch-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
  display: block;
}
.srch-card:hover .srch-card-img img { transform: scale(1.05); }
.srch-card-info { padding: 10px 10px 12px; }
.srch-card-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--espresso);
  line-height: 1.35;
  margin-bottom: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.srch-card-price {
  font-family: var(--font-m);
  font-size: 13px;
  color: var(--espresso);
  font-weight: 600;
}
.srch-card-price .old {
  font-size: 11px;
  color: var(--stone);
  text-decoration: line-through;
  margin-right: 4px;
  font-weight: 400;
}
.srch-card-cat {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--drift);
  margin-bottom: 3px;
}

/* Ver todos */
.srch-see-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  border: 1.5px solid var(--linen);
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--espresso);
  background: none;
  cursor: pointer;
  font-family: var(--font-b);
  font-weight: 600;
  transition: background .2s, border-color .2s;
}
.srch-see-all:hover { background: var(--cloud); border-color: var(--espresso); }

/* Estado vacío */
.srch-empty-state {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.srch-empty-title {
  font-family: var(--font-d);
  font-size: 18px;
  font-style: italic;
  color: var(--espresso);
  margin-bottom: 4px;
}
.srch-empty-sub {
  font-size: 13px;
  color: var(--drift);
  margin-bottom: 16px;
}

/* ── Móvil: overlay ocupa toda la pantalla ── */
@media(max-width: 639px) {
  #search-overlay {
    padding-top: 0;
    align-items: flex-end;
  }
  .srch-wrap {
    margin: 0;
    border-radius: 20px 20px 0 0;
    max-height: 92svh;
    animation: srchInMobile .28s var(--ease) both;
  }
  @keyframes srchInMobile {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
  }
  .srch-bar { padding: 16px 16px; }
  .srch-bar input { font-size: 20px; }
  .srch-body { padding: 16px 14px; }
  .srch-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .srch-card-name { font-size: 12px; }
}

/* ══════════════════════════════════════════════════════════════════
   PAGES (SPA routing)
   ══════════════════════════════════════════════════════════════════ */
.page { display: none; }
.page.active { display: block; overflow-x: hidden; }

/* ══════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100svh - 106px);
  max-height: 90svh;
  overflow: hidden;
  background: var(--espresso);
}
@media(max-width: 767px) {
  .hero {
    min-height: 85svh;
    max-height: none;
  }
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 15%;
  transition: transform 6s linear;
}
@media(min-width: 768px) {
  .hero-bg { background-position: center 20%; }
}
@media(min-width: 1280px) {
  .hero-bg { background-position: center 10%; }
}
.hero-bg.zooming { transform: scale(1.05); }
.hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28,25,21,.08) 0%, transparent 40%, rgba(28,25,21,.55) 100%);
}
.hero-slide { position: absolute; inset: 0; transition: opacity .8s; }
.hero-slide.active { z-index: 2; }
.hero-slide.prev { z-index: 1; opacity: 0; }
.hero-logo {
  position: absolute; top: 24px; left: 50%;
  transform: translateX(-50%); z-index: 20;
  display: flex; flex-direction: column; align-items: center;
}
.hero-logo-top { display: flex; align-items: baseline; gap: 3px; }
.hero-logo-m { font-family: var(--font-d); font-size: 14px; font-weight: 700; color: rgba(255,255,255,.92); }
.hero-logo-name { font-family: var(--font-d); font-size: 30px; font-weight: 700; font-style: italic; color: rgba(255,255,255,.95); }
.hero-logo-store { font-family: var(--font-d); font-size: 9px; color: rgba(255,255,255,.78); letter-spacing: .45em; text-transform: uppercase; }
.hero-content {
  position: absolute; bottom: 64px; left: 32px; right: 32px; z-index: 10;
}
@media(min-width: 768px) { .hero-content { left: 64px; right: 64px; } }
@media(min-width: 1024px) { .hero-content { left: 96px; } }
.hero-sub {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.7); margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-d); font-size: clamp(42px, 8vw, 88px);
  color: #fff; font-style: italic; line-height: 1; margin-bottom: 32px; max-width: 700px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--white); color: var(--espresso);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  padding: 16px 32px; transition: background .3s; cursor: pointer;
  border: none; font-family: var(--font-b);
}
.hero-cta:hover { background: var(--bloom); }
.hero-dots { display: flex; gap: 8px; margin-top: 28px; }
.hero-dot { width: 24px; height: 1px; background: rgba(255,255,255,.4); cursor: pointer; transition: all .3s; }
.hero-dot.active { background: #fff; width: 40px; }

/* ══════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--font-b);
  cursor: pointer;
  border: none;
  transition: all .28s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.1);
  opacity: 0;
  transition: opacity .2s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  background: var(--espresso);
  color: var(--white);
  border: 2px solid var(--espresso);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-family: var(--font-b);
  font-weight: 600;
  cursor: pointer;
  transition: background .22s, color .22s, transform .15s, box-shadow .22s;
  text-decoration: none;
  width: 100%;
}
.btn-primary:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(28,25,21,.25);
}
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: transparent;
  color: var(--espresso);
  border: 2px solid var(--espresso);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: var(--font-b);
  font-weight: 600;
  cursor: pointer;
  transition: background .22s, color .22s, transform .15s;
  text-decoration: none;
  width: 100%;
}
.btn-outline:hover { background: var(--espresso); color: var(--white); transform: translateY(-1px); }

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  background: var(--espresso);
  color: var(--white);
  border: 2px solid var(--espresso);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-family: var(--font-b);
  font-weight: 600;
  cursor: pointer;
  transition: background .22s, color .22s, transform .15s, box-shadow .22s;
  text-decoration: none;
}
.btn-dark:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(28,25,21,.25); }

.btn-ghost {
  background: transparent;
  color: var(--espresso);
  border: 1px solid var(--espresso);
  padding: 12px 24px;
}
.btn-ghost:hover { background: var(--espresso); color: var(--white); }

.btn-sm { padding: 10px 18px; font-size: 10px; letter-spacing: .14em; }
.btn-full { width: 100%; justify-content: center; }

/* Admin-style buttons */
.btn-admin {
  padding: 9px 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-b);
}
.btn-admin.btn-primary { background: var(--espresso); color: var(--white); border: none; }
.btn-admin.btn-primary:hover { background: var(--bark); }
.btn-admin.btn-outline { background: transparent; color: var(--espresso); border: 1px solid var(--espresso); }
.btn-admin.btn-outline:hover { background: var(--espresso); color: var(--white); }
.btn-admin.btn-danger { background: transparent; color: var(--red); border: 1px solid rgba(155,35,53,.3); }
.btn-admin.btn-danger:hover { background: rgba(155,35,53,.08); border-color: var(--red); }
.btn-admin.btn-success { background: transparent; color: var(--green); border: 1px solid rgba(42,92,63,.3); }
.btn-admin.btn-success:hover { background: rgba(42,92,63,.08); }
.btn-admin.btn-sm { padding: 5px 12px; font-size: 10px; }
.btn-admin.btn-icon { padding: 7px; }

/* ══════════════════════════════════════════════════════════════════
   SECTION HEADINGS
   ══════════════════════════════════════════════════════════════════ */
.section { padding: 80px 0; }
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 20px;
  flex-wrap: wrap;
}
.sec-kicker {
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--drift);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.sec-kicker::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--stone);
}
.sec-title {
  font-family: var(--font-d);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 400;
  font-style: italic;
  color: var(--espresso);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.sec-link {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--drift);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .2s, gap .2s;
  font-weight: 500;
  white-space: nowrap;
}
.sec-link:hover { color: var(--espresso); gap: 14px; }

/* ══════════════════════════════════════════════════════════════════
   PRODUCT GRID
   ══════════════════════════════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
}
@media(min-width: 640px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 900px)  { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media(min-width: 1200px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  position: relative;
  background: var(--cloud);
  overflow: hidden;
  cursor: pointer;
}
.product-card:hover .pc-img { transform: scale(1.05); }
.product-card:hover .pc-actions { opacity: 1; transform: translateY(0); }

.pc-media {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--linen);
}
.pc-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
  display: block;
}
.pc-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cloud), var(--linen));
}
.pc-placeholder svg { opacity: .3; }

.pc-badge {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 10px;
  font-weight: 500;
  z-index: 2;
}
.pc-badge.new    { background: var(--espresso); color: var(--white); }
.pc-badge.sale   { background: var(--bloom-d);  color: var(--white); }
.pc-badge.agotado{ background: rgba(28,25,21,.65); color: var(--white); }

.pc-wish {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(250,250,248,.85);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  z-index: 2;
  transition: all .2s;
  opacity: 0;
}
.product-card:hover .pc-wish { opacity: 1; }
.pc-wish:hover { background: var(--white); transform: scale(1.1); }
.pc-wish.active svg { fill: var(--bloom-d); stroke: var(--bloom-d); }

.pc-actions {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: all .3s var(--ease);
  z-index: 2;
}
.pc-add {
  width: 100%;
  padding: 13px;
  background: var(--espresso);
  color: var(--white);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--font-b);
  border: none;
  cursor: pointer;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pc-add:hover { background: var(--ink); }
.pc-add:disabled { background: var(--stone); cursor: not-allowed; }

.pc-info { padding: 16px 18px 20px; background: var(--white); }
.pc-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--espresso);
  margin-bottom: 6px;
  line-height: 1.3;
  transition: color .2s;
}
.product-card:hover .pc-name { color: var(--bark); }
.pc-cat { font-size: 11px; color: var(--drift); letter-spacing: .06em; margin-bottom: 10px; text-transform: uppercase; }
.pc-price { display: flex; align-items: baseline; gap: 10px; }
.pc-price-now  { font-family: var(--font-m); font-size: 17px; font-weight: 600; color: var(--espresso); }
.pc-price-was  { font-family: var(--font-m); font-size: 12px; color: var(--stone); text-decoration: line-through; }

/* ══════════════════════════════════════════════════════════════════
   CATEGORIES GRID
   ══════════════════════════════════════════════════════════════════ */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
@media(min-width: 768px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

/* cat-grid: grid de categorías en página de tienda (shop) */
.cat-grid .cat-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
  background: var(--linen);
}
@media(min-width: 768px) {
  .cat-grid .cat-card:first-child { aspect-ratio: auto; grid-row: span 2; }
}
.cat-grid .cat-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.cat-grid .cat-card:hover .cat-img { transform: scale(1.06); }
.cat-grid .cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(28,25,21,.62) 100%);
  transition: opacity .3s;
}
.cat-grid .cat-card:hover::after { opacity: .8; }

.cat-grid .cat-info {
  position: absolute;
  bottom: 22px; left: 22px; right: 22px;
  z-index: 2;
}
.cat-grid .cat-label {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 8px;
}
.cat-cta {
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(250,250,248,.65);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap .2s, color .2s;
  font-weight: 500;
}
.cat-grid .cat-card:hover .cat-cta { gap: 14px; color: var(--white); }

/* ══════════════════════════════════════════════════════════════════
   MARQUEE / TICKER
   ══════════════════════════════════════════════════════════════════ */
.marquee-section {
  border-top: 1px solid var(--linen);
  border-bottom: 1px solid var(--linen);
  padding: 18px 0;
  overflow: hidden;
  background: var(--white);
}
.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--drift);
  font-weight: 500;
}
.marquee-dot { width: 4px; height: 4px; background: var(--bloom-d); border-radius: 50%; flex-shrink: 0; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */
#footer {
  background: var(--espresso);
  color: var(--white);
  padding: 72px 0 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.8fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media(max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media(max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

.footer-brand .brand-name {
  font-family: var(--font-d);
  font-size: 32px;
  font-style: italic;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
  max-width: 220px;
}
.footer-socials { display: flex; gap: 8px; margin-top: 24px; }
.social-btn {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.45);
  transition: all .25s;
}
.social-btn:hover { border-color: rgba(255,255,255,.5); color: var(--white); background: rgba(255,255,255,.06); }

.footer-col h4 {
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
  transition: color .2s, padding-left .2s;
}
.footer-col a:hover { color: var(--white); padding-left: 4px; }

.footer-newsletter h4 {
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 10px;
  font-weight: 500;
}
.footer-newsletter p {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin-bottom: 20px;
  line-height: 1.6;
}
.nl-row {
  display: flex;
  border: 1px solid rgba(255,255,255,.2);
  transition: border-color .2s;
}
.nl-row:focus-within { border-color: rgba(255,255,255,.5); }
.nl-input {
  flex: 1;
  padding: 14px 16px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 13px;
  font-family: var(--font-b);
}
.nl-input::placeholder { color: rgba(255,255,255,.3); }
.nl-btn {
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-left: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.6);
  cursor: pointer;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: var(--font-b);
  font-weight: 500;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nl-btn:hover { color: var(--white); background: rgba(255,255,255,.06); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 11px; color: rgba(255,255,255,.25); letter-spacing: .05em; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 11px; color: rgba(255,255,255,.25); transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,.55); }

/* ══════════════════════════════════════════════════════════════════
   SHOP PAGE
   ══════════════════════════════════════════════════════════════════ */
.shop-layout { display: flex; gap: 40px; align-items: flex-start; padding: 40px 32px; max-width: 1280px; margin: 0 auto; }
.shop-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 88px;
}
@media(max-width: 768px) {
  .shop-layout { flex-direction: column; }
  .shop-sidebar { width: 100%; position: static; }
}
.shop-main { flex: 1; min-width: 0; padding: 0 4px; }

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.filter-label {
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--drift);
  font-weight: 500;
}
.filter-clear { font-size: 11px; color: var(--drift); text-decoration: underline; cursor: pointer; transition: color .2s; }
.filter-clear:hover { color: var(--espresso); }

.filter-group { margin-bottom: 28px; }
.filter-group-title {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--espresso);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
}
.filter-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--drift);
  cursor: pointer;
  transition: color .2s;
  border-bottom: 1px solid transparent;
}
.filter-opt:hover { color: var(--espresso); }
.filter-opt input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--espresso); cursor: pointer; }
.filter-opt.active { color: var(--espresso); font-weight: 500; }

.shop-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--linen);
  gap: 16px;
  flex-wrap: wrap;
}
.shop-count { font-size: 12px; color: var(--drift); letter-spacing: .04em; }
.shop-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sort-label { font-size: 11px; color: var(--drift); letter-spacing: .06em; text-transform: uppercase; }
.sort-select {
  border: 1px solid var(--linen);
  outline: none;
  background: var(--white);
  font-size: 12px;
  color: var(--espresso);
  cursor: pointer;
  font-family: var(--font-b);
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 4px;
  transition: border-color .18s;
}
.sort-select:hover { border-color: var(--bark); }
.sort-select:focus { border-color: var(--espresso); }

/* ══════════════════════════════════════════════════════════════════
   PRODUCT DETAIL
   ══════════════════════════════════════════════════════════════════ */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 32px 64px;
}
@media(max-width: 768px) {
  .pd-layout { grid-template-columns: 1fr; gap: 0; padding: 0 0 48px; }
}

/* Gallery */
.pd-gallery { position: sticky; top: 88px; }
.pd-main-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--cloud);
  margin-bottom: 10px;
}
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pd-main-img:hover img { transform: scale(1.04); }
.pd-thumbs { display: flex; gap: 8px; }
.pd-thumb {
  width: 72px; height: 88px;
  overflow: hidden;
  cursor: pointer;
  background: var(--cloud);
  border: 2px solid transparent;
  transition: border-color .2s;
}
.pd-thumb.active { border-color: var(--espresso); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pd-thumb:hover img { transform: scale(1.08); }

/* Product info */
.pd-info { padding-top: 8px; }
.pd-cat { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--drift); margin-bottom: 12px; }
.pd-name { font-family: var(--font-d); font-size: 38px; font-weight: 400; font-style: italic; color: var(--espresso); line-height: 1.05; margin-bottom: 20px; }
.pd-price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; }
.pd-price { font-family: var(--font-m); font-size: 30px; font-weight: 600; color: var(--espresso); }
.pd-price-old { font-family: var(--font-m); font-size: 15px; color: var(--stone); text-decoration: line-through; }
.pd-divider { height: 1px; background: var(--linen); margin: 24px 0; }
.pd-section-title {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--drift);
  margin-bottom: 12px;
  font-weight: 500;
}
.pd-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--linen);
  font-size: 12px;
  font-family: var(--font-b);
  color: var(--espresso);
  cursor: pointer;
  transition: all .2s;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}
.size-btn:hover { border-color: var(--espresso); }
.size-btn.active { background: var(--espresso); color: var(--white); border-color: var(--espresso); }
.size-btn.agotado,
.size-btn.agotada { opacity: .45; cursor: not-allowed; pointer-events: none; text-decoration: line-through; color: var(--drift); position: relative; }
.size-btn.agotada .size-agotada-x { display: none; }

.pd-colors { display: flex; gap: 10px; }
.color-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, border-color .2s;
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.color-btn:hover { transform: scale(1.15); }
.color-btn.active { outline-color: var(--espresso); }

.pd-add-row { display: flex; gap: 10px; margin-top: 28px; }
.pd-add-row .btn-dark { flex: 1; }
.pd-wish-btn {
  width: 52px; height: 52px;
  border: 1px solid var(--linen);
  display: flex; align-items: center; justify-content: center;
  color: var(--drift);
  cursor: pointer;
  transition: all .2s;
  background: var(--white);
  flex-shrink: 0;
}
.pd-wish-btn:hover { border-color: var(--espresso); color: var(--espresso); }
.pd-wish-btn.active svg { fill: var(--bloom-d); stroke: var(--bloom-d); }

.pd-desc { font-size: 14px; color: var(--drift); line-height: 1.8; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-tag {
  padding: 5px 12px;
  background: var(--cloud);
  font-size: 11px;
  color: var(--drift);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Accordion */
.pd-accordion { border-top: 1px solid var(--linen); }
.acc-item { border-bottom: 1px solid var(--linen); }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--espresso);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-b);
  transition: color .2s;
}
.acc-trigger:hover { color: var(--drift); }
.acc-trigger svg { transition: transform .3s var(--ease); }
.acc-trigger.open svg { transform: rotate(180deg); }
.acc-body { display: none; padding-bottom: 18px; font-size: 13.5px; color: var(--drift); line-height: 1.75; }
.acc-body.open { display: block; }

/* ══════════════════════════════════════════════════════════════════
   ACCOUNT / LOGIN
   ══════════════════════════════════════════════════════════════════ */
.auth-wrap {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.auth-box {
  width: 100%;
  max-width: 420px;
  padding: 52px 44px;
  border: 1px solid var(--linen);
  background: var(--white);
  animation: fadeSlideUp .45s var(--ease);
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-head { text-align: center; margin-bottom: 36px; }
.auth-logo { font-family: var(--font-d); font-size: 28px; font-style: italic; font-weight: 700; color: var(--espresso); letter-spacing: -.02em; }
.auth-sub  { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--drift); margin-top: 8px; }
.auth-title {
  font-family: var(--font-d);
  font-size: 28px;
  font-style: italic;
  font-weight: 400;
  color: var(--espresso);
  margin-bottom: 6px;
}
.auth-desc { font-size: 13px; color: var(--drift); }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--drift);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--white);
  border: 1px solid var(--linen);
  color: var(--espresso);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: var(--font-b);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--espresso);
  box-shadow: 0 0 0 3px rgba(28,25,21,.05);
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-error { color: var(--red); font-size: 12px; margin-top: 14px; text-align: center; min-height: 18px; }

.auth-tabs { display: flex; border-bottom: 1px solid var(--linen); margin-bottom: 32px; }
.auth-tab {
  flex: 1; padding: 12px; text-align: center;
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--stone); cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all .2s; font-weight: 500;
}
.auth-tab.active { color: var(--espresso); border-bottom-color: var(--espresso); }
.auth-switch { text-align: center; margin-top: 22px; font-size: 13px; color: var(--drift); }
.auth-switch a { color: var(--espresso); font-weight: 500; text-decoration: underline; }
.auth-switch a:hover { text-decoration: none; }

/* ══════════════════════════════════════════════════════════════════
   ACCOUNT PAGE
   ══════════════════════════════════════════════════════════════════ */
.account-layout {
  display: flex;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 32px;
}
@media(max-width: 768px) {
  .account-layout { flex-direction: column; gap: 28px; padding: 24px; }
  .acc-sidebar { width: 100%; }
}

.acc-sidebar { width: 220px; flex-shrink: 0; }
.acc-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--linen);
  margin-bottom: 24px;
}
.acc-avatar {
  width: 46px; height: 46px;
  background: var(--linen);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-m);
  font-size: 20px;
  font-style: italic;
  font-weight: 600;
  color: var(--espresso);
  flex-shrink: 0;
}
.acc-name { font-size: 14px; font-weight: 500; color: var(--espresso); }
.acc-email { font-size: 11px; color: var(--drift); }

.acc-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 13px;
  color: var(--drift);
  cursor: pointer;
  border-bottom: 1px solid rgba(232,226,217,.5);
  transition: color .2s, padding-left .2s;
}
.acc-nav-item:hover { color: var(--espresso); padding-left: 4px; }
.acc-nav-item.active { color: var(--espresso); font-weight: 500; }
.acc-nav-item svg { width: 16px; height: 16px; }

.acc-main { flex: 1; min-width: 0; }
.acc-section { display: none; animation: fadeSlideUp .35s var(--ease); }
.acc-section.active { display: block; }
.acc-section-title {
  font-family: var(--font-d);
  font-size: 28px;
  font-style: italic;
  font-weight: 400;
  color: var(--espresso);
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--linen);
}

/* Order card */
.order-card {
  border: 1px solid var(--linen);
  margin-bottom: 14px;
  transition: box-shadow .2s;
}
.order-card:hover { box-shadow: var(--shadow); }
.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--cloud);
  border-bottom: 1px solid var(--linen);
  flex-wrap: wrap;
  gap: 10px;
}
.order-num { font-family: var(--font-m); font-size: 12px; color: var(--espresso); font-weight: 500; }
.order-date { font-size: 12px; color: var(--drift); }
.order-body { padding: 18px 20px; }
.order-item { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(232,226,217,.5); }
.order-item:last-child { border-bottom: none; }
.order-thumb { width: 52px; height: 64px; object-fit: cover; flex-shrink: 0; background: var(--cloud); }
.order-item-info { flex: 1; }
.order-item-name { font-size: 13px; font-weight: 500; color: var(--espresso); }
.order-item-meta { font-size: 11px; color: var(--drift); margin-top: 2px; }
.order-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid var(--linen); background: var(--cloud); }
.order-total-label { font-size: 11px; color: var(--drift); letter-spacing: .08em; text-transform: uppercase; }
.order-total-val   { font-family: var(--font-m); font-size: 20px; font-weight: 600; }

/* Status badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
}
.status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.status-pending   { background: rgba(201,169,110,.12); color: #7a5a1f; }
.status-pending::before { background: var(--gold); }
.status-processing{ background: rgba(30,58,95,.08);   color: var(--blue); }
.status-processing::before { background: var(--blue); }
.status-shipped   { background: rgba(100,60,150,.08); color: #5a2090; }
.status-shipped::before { background: #8050c0; }
.status-delivered { background: rgba(42,92,63,.1);   color: var(--green); }
.status-delivered::before { background: var(--green); }
.status-cancelled { background: rgba(155,35,53,.08); color: var(--red); }
.status-cancelled::before { background: var(--red); }

/* ══════════════════════════════════════════════════════════════════
   CHECKOUT
   ══════════════════════════════════════════════════════════════════ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 32px;
}
@media(max-width: 768px) {
  .checkout-layout { grid-template-columns: 1fr; gap: 36px; padding: 24px; }
  .checkout-summary { order: -1; }
}
.checkout-title {
  font-family: var(--font-d);
  font-size: 32px;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 32px;
  color: var(--espresso);
}
.checkout-step-label {
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--drift);
  margin-bottom: 16px;
  margin-top: 28px;
  font-weight: 500;
  padding-top: 24px;
  border-top: 1px solid var(--linen);
}
.checkout-step-label:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-2 .span-2 { grid-column: span 2; }
@media(max-width: 480px) { .form-grid-2 { grid-template-columns: 1fr; } .form-grid-2 .span-2 { grid-column: 1; } }

.order-summary { background: var(--cloud); padding: 28px; border: 1px solid var(--linen); }
.summary-title { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 22px; color: var(--espresso); }
.summary-item { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.summary-img { width: 56px; height: 72px; object-fit: cover; flex-shrink: 0; background: var(--linen); position: relative; }
.summary-img .qty-dot { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; background: var(--espresso); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.summary-item-info { flex: 1; }
.summary-item-name { font-size: 13px; font-weight: 500; color: var(--espresso); }
.summary-item-meta { font-size: 11px; color: var(--drift); margin-top: 2px; }
.summary-item-price { font-family: var(--font-m); font-size: 16px; font-weight: 600; margin-top: 4px; }
.summary-totals { border-top: 1px solid var(--linen); padding-top: 16px; margin-top: 8px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; color: var(--drift); }
.summary-row.total { color: var(--espresso); font-weight: 600; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--linen); }
.summary-row.total .val { font-family: var(--font-m); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }

/* ══════════════════════════════════════════════════════════════════
   WISHLIST
   ══════════════════════════════════════════════════════════════════ */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px;
}
.wishlist-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--stone);
}
.wishlist-empty svg { margin: 0 auto 20px; opacity: .3; }
.wishlist-empty h3 { font-family: var(--font-d); font-size: 26px; font-style: italic; color: var(--espresso); margin-bottom: 12px; }
.wishlist-empty p { font-size: 14px; margin-bottom: 28px; }

/* ══════════════════════════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════════════════════════ */
.about-hero {
  background: var(--espresso);
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at center, rgba(201,146,143,.12) 0%, transparent 70%);
  animation: rotateGradient 20s linear infinite;
}
@keyframes rotateGradient {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.about-hero-title {
  font-family: var(--font-d);
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  line-height: .9;
  position: relative;
}
.about-hero-sub { font-size: 14px; color: var(--stone); margin-top: 24px; letter-spacing: .06em; position: relative; }

/* ══════════════════════════════════════════════════════════════════
   ADMIN PANEL
   ══════════════════════════════════════════════════════════════════ */
/* Login screen */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--espresso);
}
.login-box {
  background: var(--white);
  border: 1px solid var(--linen);
  padding: 56px 48px;
  width: 400px;
  max-width: 95vw;
  animation: fadeSlideUp .4s var(--ease);
}
.login-logo { text-align: center; margin-bottom: 40px; }
.login-logo .brand { font-family: var(--font-d); font-size: 32px; font-style: italic; font-weight: 700; color: var(--espresso); letter-spacing: -.02em; }
.login-logo .sub { font-size: 10px; letter-spacing: 5px; color: var(--drift); text-transform: uppercase; margin-top: 8px; }
.login-err { color: var(--red); font-size: 12px; text-align: center; margin-top: 12px; min-height: 18px; }
.btn-login {
  width: 100%; padding: 15px;
  background: var(--espresso); color: var(--white);
  border: none; font-size: 10px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  cursor: pointer; transition: background .2s; margin-top: 8px;
  font-family: var(--font-b);
}
.btn-login:hover { background: var(--bark); }

/* Admin layout */
#app { display: block; min-height: 100vh; }
.sidebar {
  position: fixed; top: 0; left: 0;
  width: 224px; height: 100vh;
  background: var(--espresso);
  display: flex; flex-direction: column;
  z-index: 100;
  border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar-logo { padding: 28px 24px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-logo .brand { font-family: var(--font-d); font-size: 20px; font-style: italic; font-weight: 700; color: var(--white); letter-spacing: -.02em; }
.sidebar-logo .sub { font-size: 9px; letter-spacing: 4px; color: var(--gold); text-transform: uppercase; margin-top: 5px; }
.sidebar-logo .badge { font-size: 11px; color: rgba(255,255,255,.35); margin-top: 10px; }

nav.admin-nav { flex: 1; padding: 10px 0; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  color: rgba(255,255,255,.4); font-size: 11.5px;
  cursor: pointer; letter-spacing: .06em;
  border-left: 2px solid transparent;
  transition: all .15s;
  user-select: none;
  text-transform: uppercase;
}
.nav-item:hover { color: rgba(255,255,255,.8); background: rgba(255,255,255,.04); }
.nav-item.active { color: var(--gold); border-left-color: var(--gold); background: rgba(201,169,110,.08); }
.nav-item svg { width: 15px; height: 15px; flex-shrink: 0; }

.sidebar-footer { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,.08); }
.logout-btn {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.3); font-size: 11px;
  cursor: pointer; background: none; border: none;
  width: 100%; letter-spacing: .06em; text-transform: uppercase;
  transition: color .15s; font-family: var(--font-b);
}
.logout-btn:hover { color: rgba(255,255,255,.65); }
.main { margin-left: 224px; padding: 36px 40px; min-height: 100vh; }
@media(max-width: 768px) { .main { margin-left: 0; padding: 20px; } }

/* Admin topbar */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.page-title { font-family: var(--font-d); font-size: 36px; font-style: italic; font-weight: 600; color: var(--espresso); letter-spacing: -.01em; line-height: 1; }
.topbar-right { display: flex; gap: 10px; align-items: center; }

/* Admin stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; margin-bottom: 32px; background: var(--linen); border: 1px solid var(--linen); }
.stat-card { background: var(--white); padding: 24px 28px; position: relative; transition: box-shadow .2s; }
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card .label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--drift); font-weight: 500; }
.stat-card .value { font-family: var(--font-m); font-size: 36px; font-weight: 600; margin-top: 8px; color: var(--espresso); line-height: 1; }
.stat-card .sub { font-size: 12px; color: var(--drift); margin-top: 6px; }

/* Admin card */
.card { background: var(--white); border: 1px solid var(--linen); overflow: hidden; }
.card-header { padding: 18px 24px; border-bottom: 1px solid var(--linen); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--white); }
.card-header h2 { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--drift); flex: 1; }
.search-box {
  padding: 9px 14px;
  background: var(--cloud);
  border: 1px solid var(--linen);
  color: var(--espresso); font-size: 13px;
  outline: none; width: 220px;
  font-family: var(--font-b);
  transition: .2s;
}
.search-box:focus { border-color: var(--espresso); background: var(--white); }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 20px; text-align: left; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--drift); border-bottom: 1px solid var(--linen); font-weight: 500; background: var(--cloud); }
td { padding: 13px 20px; font-size: 13px; border-bottom: 1px solid var(--linen); vertical-align: middle; color: var(--espresso); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--cloud); transition: background .15s; }
.img-thumb { width: 44px; height: 44px; object-fit: cover; background: var(--cloud); }

/* Admin badges */
.badge-admin { display: inline-block; padding: 3px 10px; font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.badge-green  { background: rgba(42,92,63,.1);   color: var(--green); }
.badge-red    { background: rgba(155,35,53,.1);  color: var(--red); }
.badge-yellow { background: rgba(201,169,110,.15); color: #7a5a1f; }
.badge-blue   { background: rgba(30,58,95,.08);  color: var(--blue); }
.badge-purple { background: rgba(100,60,150,.1); color: #5a2090; }

/* Admin modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(28,25,21,.55); z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border: 1px solid var(--linen);
  width: 560px; max-width: 100%; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: fadeSlideUp .3s var(--ease);
}
.modal-header { padding: 24px 28px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--linen); }
.modal-header h3 { font-family: var(--font-d); font-size: 22px; font-style: italic; font-weight: 600; color: var(--espresso); }
.modal-close { background: none; border: none; color: var(--stone); cursor: pointer; font-size: 22px; line-height: 1; transition: color .15s; padding: 4px; }
.modal-close:hover { color: var(--espresso); }
.modal-body { padding: 24px 28px 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1/-1; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--linen); }

/* Tag input */
.tag-input-wrap {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 10px; background: var(--white);
  border: 1px solid var(--linen); min-height: 44px;
  cursor: text; transition: border-color .2s;
}
.tag-input-wrap:focus-within { border-color: var(--espresso); }
.tag { background: var(--espresso); color: var(--white); padding: 4px 10px; font-size: 11px; display: inline-flex; align-items: center; gap: 5px; letter-spacing: .04em; }
.tag-del { cursor: pointer; opacity: .5; transition: opacity .15s; }
.tag-del:hover { opacity: 1; }
.tag-real-input { border: none; outline: none; background: transparent; color: var(--espresso); font-size: 13px; min-width: 80px; flex: 1; font-family: var(--font-b); }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 6px; padding: 16px 24px; justify-content: flex-end; border-top: 1px solid var(--linen); background: var(--cloud); }
.page-btn { width: 32px; height: 32px; border: 1px solid var(--linen); background: var(--white); color: var(--drift); cursor: pointer; font-size: 12px; font-family: var(--font-b); transition: .15s; }
.page-btn:hover { border-color: var(--espresso); color: var(--espresso); }
.page-btn.active { background: var(--espresso); color: var(--white); border-color: var(--espresso); }
.page-info { font-size: 11px; color: var(--drift); letter-spacing: .04em; }

/* Switch */
.switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: var(--linen); transition: .2s; border: 1px solid var(--stone); }
.slider:before { content: ''; position: absolute; height: 12px; width: 12px; left: 3px; bottom: 3px; background: var(--stone); transition: .2s; }
input:checked + .slider { background: var(--espresso); border-color: var(--espresso); }
input:checked + .slider:before { transform: translateX(16px); background: var(--white); }
.img-preview { width: 100%; max-height: 160px; object-fit: cover; margin-top: 8px; display: none; }

/* Pedido detail */
.pedido-detail { padding: 0; }
.detail-section { padding: 18px 28px; border-bottom: 1px solid var(--linen); }
.detail-section:last-child { border-bottom: none; }
.detail-title { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; font-weight: 500; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-row { display: flex; flex-direction: column; gap: 3px; }
.detail-row .lbl { font-size: 11px; color: var(--drift); letter-spacing: .05em; text-transform: uppercase; }
.detail-row .val { font-size: 13px; color: var(--espresso); }
.items-list { display: flex; flex-direction: column; gap: 8px; }
.item-row { display: flex; gap: 14px; align-items: center; padding: 12px; background: var(--cloud); border: 1px solid var(--linen); }
.item-row img { width: 48px; height: 48px; object-fit: cover; flex-shrink: 0; background: var(--linen); }
.item-info { flex: 1; }
.item-info .name { font-size: 13px; font-weight: 500; }
.item-info .meta { font-size: 11px; color: var(--drift); margin-top: 2px; }
.item-price { text-align: right; }
.item-price .qty { font-size: 11px; color: var(--drift); }
.item-price .sub { font-family: var(--font-m); font-size: 17px; font-weight: 600; color: var(--espresso); }
.totales-table { width: 100%; font-size: 13px; }
.totales-table td { padding: 5px 0; }
.totales-table td:last-child { text-align: right; }
.totales-table .total-row td { font-family: var(--font-m); font-size: 20px; font-weight: 600; color: var(--espresso); padding-top: 12px; border-top: 1px solid var(--linen); }

/* Settings */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(max-width: 640px) { .settings-grid { grid-template-columns: 1fr; } }
.settings-card { background: var(--white); border: 1px solid var(--linen); padding: 28px; }
.settings-card h3 { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--drift); margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--linen); font-weight: 500; }
.settings-field { margin-bottom: 16px; }
.settings-field label { display: block; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--drift); margin-bottom: 7px; font-weight: 500; }
.settings-field input, .settings-field textarea, .settings-field select {
  width: 100%; padding: 11px 14px; background: var(--white); border: 1px solid var(--linen);
  color: var(--espresso); font-size: 13px; outline: none; transition: .2s; font-family: var(--font-b);
}
.settings-field input:focus, .settings-field textarea:focus, .settings-field select:focus { border-color: var(--espresso); }
.settings-field textarea { resize: vertical; min-height: 70px; }

/* Print */
@media print {
  body * { visibility: hidden; }
  #pos-print-area, #pos-print-area * { visibility: visible; }
  #pos-print-area { position: fixed; left: 0; top: 0; width: 80mm; font-family: monospace; font-size: 10pt; color: #000; background: #fff; padding: 4mm; }
}
#pos-print-area { display: none; }

/* ══════════════════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════════════════ */
#toast {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
  padding: 14px 22px;
  font-size: 13px;
  letter-spacing: .04em;
  transform: translateY(80px);
  opacity: 0;
  transition: all .35s var(--ease);
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 12px;
}
#toast.show { transform: translateY(0); opacity: 1; }
#toast.success { background: var(--espresso); color: var(--white); border-left: 3px solid var(--gold); }
#toast.error   { background: var(--espresso); color: var(--white); border-left: 3px solid var(--red); }
#toast.info    { background: var(--espresso); color: var(--white); border-left: 3px solid var(--bloom-d); }

/* ══════════════════════════════════════════════════════════════════
   LOADING SPINNER
   ══════════════════════════════════════════════════════════════════ */
.loader { display: flex; align-items: center; justify-content: center; padding: 60px; }
.spinner {
  width: 28px; height: 28px;
  border: 1.5px solid var(--linen);
  border-top-color: var(--espresso);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.page-loader {
  position: fixed; inset: 0;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  z-index: 9998;
  transition: opacity .4s, visibility .4s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: var(--font-d);
  font-size: 32px;
  font-style: italic;
  font-weight: 700;
  color: var(--espresso);
  opacity: 0;
  animation: logoAppear 1s var(--ease) .2s forwards;
}
@keyframes logoAppear {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════
   UTILITY
   ══════════════════════════════════════════════════════════════════ */
.hidden   { display: none !important; }
.show     { display: flex !important; }
.sr-only  { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.empty { text-align: center; padding: 60px; color: var(--drift); font-size: 14px; }
.precio { font-weight: 500; font-family: var(--font-m); font-size: 15px; }
.precio-antes { color: var(--stone); text-decoration: line-through; font-size: 12px; }
.stock-low { color: var(--red); font-weight: 500; }

/* ── Scroll-reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ── Focus visible ── */
:focus-visible { outline: 2px solid var(--espresso); outline-offset: 3px; }

/* ── Admin sidebar name badge ── */
.admin-name-badge {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  margin-top: 10px;
  font-family: var(--font-b);
}

/* ── Admin login field ── */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--drift);
  margin-bottom: 8px;
  font-weight: 500;
}
.field input {
  width: 100%;
  padding: 13px 16px;
  background: var(--white);
  border: 1px solid var(--linen);
  color: var(--espresso);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  font-family: var(--font-b);
}
.field input:focus { border-color: var(--espresso); }

/* ══════════════════════════════════════════════════════════════════
   COMPATIBILITY LAYER — original class names used in index.html
   All design improvements from actual/styles.css remain intact;
   these selectors map the old class names to the correct styles.
   ══════════════════════════════════════════════════════════════════ */


/* ── Section headings ── */
.section-label{font-size:11px;letter-spacing:.25em;text-transform:uppercase;color:var(--drift);margin-bottom:12px}
.section-title{font-family:var(--font-d);font-size:clamp(28px,4vw,44px);color:var(--espresso)}
.section-wrap{max-width:1280px;margin:0 auto;padding:0 20px}
@media(min-width:768px){.section-wrap{padding:0 32px}}

/* ── Products grid (old class names) ── */
.products-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
@media(min-width:640px){.products-grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1024px){.products-grid{grid-template-columns:repeat(4,1fr)}}
.product-card{position:relative;cursor:pointer}
.product-img{aspect-ratio:3/4;overflow:hidden;background:var(--cloud);position:relative}
.product-img img{width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.25,.46,.45,.94)}
.product-card:hover .product-img img{transform:scale(1.06)}
.product-tag{position:absolute;top:12px;left:12px;font-size:10px;letter-spacing:.1em;text-transform:uppercase;background:var(--espresso);color:var(--white);padding:4px 10px}
.product-wish{position:absolute;top:10px;right:10px;width:32px;height:32px;background:rgba(250,250,248,.9);backdrop-filter:blur(4px);border-radius:50%;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s;z-index:5}
.product-card:hover .product-wish{opacity:1}
.product-wish.wished{opacity:1;color:var(--bloom-d)}
.product-info{padding:12px 0 0}
.product-name{font-size:14px;color:var(--espresso);margin-bottom:4px}
.product-price{font-family:var(--font-m);font-size:12px;color:var(--drift)}
.product-price .old{text-decoration:line-through;color:var(--stone);margin-right:6px}
.product-price .new{color:var(--espresso)}
.quick-add{position:absolute;bottom:0;left:0;right:0;background:var(--espresso);color:var(--white);padding:12px;font-size:11px;letter-spacing:.15em;text-transform:uppercase;text-align:center;transform:translateY(100%);transition:transform .3s cubic-bezier(.25,.46,.45,.94)}
.product-card:hover .quick-add{transform:translateY(0)}
/* Táctil: mostrar botón siempre visible en dispositivos touch */
@media (hover: none) {
  .quick-add { transform: translateY(0) !important; }
  .product-img { overflow: hidden; }
}

/* ════════════════════════════════════════════════════════════════
   CATEGORIES GRID — Home page
   Layout inteligente: el JS calcula y aplica .cats-n-X según total
   ════════════════════════════════════════════════════════════════ */

/* ── Base ─────────────────────────────────────────────────────── */
.cats-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr;
}

.cat-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--linen);
  min-height: 180px;
}

.cat-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform .75s cubic-bezier(.25,.46,.45,.94);
}
.cat-card:hover .cat-img { transform: scale(1.06); }

.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,25,21,.78) 0%, rgba(28,25,21,.12) 50%, transparent 75%);
  transition: opacity .3s;
}
.cat-card:hover .cat-overlay { opacity: 1; }

.cat-info {
  position: absolute;
  bottom: 18px; left: 18px; right: 18px;
  z-index: 2;
}
.cat-label {
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 5px;
  text-shadow: 0 1px 10px rgba(0,0,0,.4);
}
.cat-sub {
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  font-family: var(--font-b);
  font-weight: 500;
  transition: color .2s, letter-spacing .2s;
}
.cat-card:hover .cat-sub { color: var(--white); letter-spacing: .26em; }

/* MOVIL */
@media (max-width: 599px) {
  .cat-card { aspect-ratio: 4/3; }
  .cat-label { font-size: 20px; }
}

/* TABLET */
@media (min-width: 600px) and (max-width: 1023px) {
  .cats-grid { grid-template-columns: 1fr 1fr; }
  .cat-card { aspect-ratio: 3/4; }
  .cats-grid .cat-card:first-child { grid-column: 1 / -1; aspect-ratio: 16/6; }
  .cats-grid.cats-odd .cat-card:last-child { grid-column: 1 / -1; aspect-ratio: 16/6; }
  .cat-info { bottom: 20px; left: 22px; right: 22px; }
  .cat-label { font-size: 22px; }
}

/* DESKTOP */
@media (min-width: 1024px) {
  .cat-info { bottom: 26px; left: 26px; right: 26px; }
  .cat-label { font-size: 26px; }
  .cat-card  { aspect-ratio: auto; }

  .cats-grid.cats-n-1 { grid-template-columns: 1fr; grid-auto-rows: 480px; }

  .cats-grid.cats-n-2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 520px; }

  .cats-grid.cats-n-3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 520px; }

  .cats-grid.cats-n-4 { grid-template-columns: 1.15fr 1fr 1fr; grid-auto-rows: 270px; }
  .cats-grid.cats-n-4 .cat-card:first-child { grid-row: span 2; }

  .cats-grid.cats-n-5 { grid-template-columns: 1.15fr 1fr 1fr; grid-auto-rows: 260px; }
  .cats-grid.cats-n-5 .cat-card:first-child { grid-row: span 2; }
  .cats-grid.cats-n-5 .cat-card:last-child  { grid-column: span 2; }

  .cats-grid.cats-n-6 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 320px; }

  .cats-grid.cats-n-7 { grid-template-columns: 1.1fr 1fr 1fr; grid-auto-rows: 240px; }
  .cats-grid.cats-n-7 .cat-card:first-child { grid-row: span 2; }
  .cats-grid.cats-n-7 .cat-card:last-child  { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 21/5; }

  .cats-grid.cats-n-8 { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 300px; }

  .cats-grid.cats-n-9 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; }

  .cats-grid.cats-n-10,
  .cats-grid.cats-n-11,
  .cats-grid.cats-n-12 { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; }

  .cats-grid.cats-n-many { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; }
}

.cat-pills{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}
.cat-pill{font-size:11px;letter-spacing:.12em;text-transform:uppercase;padding:8px 20px;border:1px solid var(--linen);color:var(--drift);cursor:pointer;transition:all .2s;background:var(--white);font-family:var(--font-b)}
.cat-pill:hover,.cat-pill.active{border-color:var(--espresso);color:var(--white);background:var(--espresso)}

/* ── Newsletter (old layout) ── */
.newsletter{background:var(--espresso);padding:64px 32px;color:var(--white)}
.nl-inner{max-width:1280px;margin:0 auto;display:flex;flex-direction:column;gap:32px}
@media(min-width:768px){.nl-inner{flex-direction:row;align-items:center;justify-content:space-between}}
.nl-label{font-size:11px;letter-spacing:.25em;text-transform:uppercase;color:var(--stone);margin-bottom:8px}
.nl-title{font-family:var(--font-d);font-size:clamp(26px,4vw,40px);font-style:italic}
.nl-form{display:flex;gap:0;border-bottom:1px solid rgba(255,255,255,.3);min-width:360px}
.nl-form input{flex:1;background:transparent;border:none;outline:none;font-size:14px;color:#fff;padding:14px 0}
.nl-form input::placeholder{color:var(--stone)}
.nl-form button{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:#fff;padding:14px 0 14px 16px;transition:color .2s;white-space:nowrap}
.nl-form button:hover{color:var(--bloom)}
.nl-note{font-size:11px;color:rgba(201,191,179,.6);margin-top:10px}

/* ── Footer (old class names) ── */
.footer-main{background:var(--cloud);border-top:1px solid var(--linen)}
.footer-grid{max-width:1280px;margin:0 auto;padding:64px 32px 40px;display:grid;grid-template-columns:1fr 1fr;gap:40px}
@media(min-width:768px){.footer-grid{grid-template-columns:2fr 1fr 1fr 1fr}}
.footer-brand-desc{font-size:13px;color:var(--drift);line-height:1.7;margin:16px 0 24px;max-width:220px}
.social-link{width:36px;height:36px;border:1px solid var(--linen);display:flex;align-items:center;justify-content:center;color:var(--drift);transition:all .2s}
.social-link:hover{color:var(--espresso);border-color:var(--espresso);transform:translateY(-2px)}
.footer-col-title{font-size:11px;letter-spacing:.25em;text-transform:uppercase;color:var(--stone);margin-bottom:20px}
.footer-links{list-style:none;display:flex;flex-direction:column;gap:12px}
.footer-links a{font-size:13px;color:var(--drift);transition:color .2s}
.footer-links a:hover{color:var(--espresso)}

/* ── Shop filters ── */
/* ══════════════════════════════════════════════════════════════════
   FILTROS — Sidebar de la tienda
   ══════════════════════════════════════════════════════════════════ */

/* Cabecera del panel de filtros */
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--linen);
}
.filter-label {
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--espresso);
  font-weight: 700;
}
.filter-clear-all {
  font-size: 11px;
  color: var(--drift);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: var(--font-b);
  transition: color .2s;
  padding: 0;
}
.filter-clear-all:hover { color: var(--espresso); }

/* Sección colapsable */
.filter-section { border-bottom: 1px solid var(--linen); }
.filter-section:last-child { border-bottom: none; }

.filter-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  cursor: pointer;
  user-select: none;
}
.filter-section-head:hover .filter-title { color: var(--espresso); }
.filter-sec-chevron { transition: transform .22s; flex-shrink: 0; color: var(--stone); }
.filter-title {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bark);
  font-weight: 600;
  transition: color .2s;
  margin: 0;
}

/* Body colapsable */
.filter-section-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease, padding .3s ease;
  padding-bottom: 0;
}
.filter-section-body.open {
  max-height: 400px;
  padding-bottom: 16px;
}

/* Opción de categoría con radio visual */
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  cursor: pointer;
  font-size: 13px;
  color: var(--drift);
  transition: color .15s, background .15s;
  border-radius: 4px;
  position: relative;
}
.filter-option:hover { color: var(--espresso); background: var(--cloud); }
.filter-option.active { color: var(--espresso); font-weight: 600; }

.filter-radio {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--stone);
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
  position: relative;
}
.filter-radio::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--espresso);
  transform: scale(0);
  transition: transform .15s;
}
.filter-radio.active {
  border-color: var(--espresso);
}
.filter-radio.active::after { transform: scale(1); }

.filter-option-count {
  margin-left: auto;
  font-size: 10px;
  color: var(--stone);
  font-family: var(--font-m);
}

/* Filtro de tallas */
.size-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.size-filter-btn {
  border: 1px solid var(--linen);
  background: var(--white);
  color: var(--drift);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  font-family: var(--font-b);
  padding: 8px 4px;
  cursor: pointer;
  transition: all .18s;
  border-radius: 4px;
  text-align: center;
}
.size-filter-btn:hover {
  border-color: var(--bark);
  color: var(--espresso);
  background: var(--cloud);
}
.size-filter-btn.active {
  border-color: var(--espresso);
  background: var(--espresso);
  color: var(--white);
}

/* Rango de precio mejorado */
.price-range-wrap { display: flex; flex-direction: column; gap: 10px; }
.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--drift);
  font-family: var(--font-m);
}
#price-display { color: var(--espresso); font-weight: 600; }
.price-range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: transparent;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.price-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--espresso);
  border: 2px solid var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  cursor: pointer;
  transition: transform .15s;
}
.price-range-input::-webkit-slider-thumb:hover { transform: scale(1.2); }
.price-range-input::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--espresso);
  border: 2px solid var(--white);
  cursor: pointer;
}
.price-range-bar {
  height: 2px;
  background: var(--linen);
  border-radius: 99px;
  overflow: hidden;
  margin-top: -12px;
  position: relative;
  z-index: 1;
}
.price-range-fill {
  height: 100%;
  background: var(--espresso);
  border-radius: 99px;
  transition: width .1s;
}

/* Checkboxes de disponibilidad */
.filter-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--drift);
  transition: color .15s;
}
.filter-check-row:hover { color: var(--espresso); }
.filter-check-row input[type=checkbox] {
  width: 15px;
  height: 15px;
  accent-color: var(--espresso);
  cursor: pointer;
  flex-shrink: 0;
}

/* Botón de filtros en móvil (dentro del topbar) */
.mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-b);
  padding: 9px 14px;
  border: 1px solid var(--linen);
  background: var(--white);
  color: var(--espresso);
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 4px;
}
.mobile-filter-btn:hover { border-color: var(--espresso); background: var(--cloud); }
@media(max-width: 767px) { .mobile-filter-btn { display: flex !important; } }
@media(min-width: 768px)  { .mobile-filter-btn { display: none !important; } }
.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:80px 20px;text-align:center;gap:16px}
.empty-title{font-family:var(--font-d);font-size:32px;color:var(--espresso)}
.empty-desc{font-size:14px;color:var(--drift);max-width:300px}

/* ── Auth pages ── */
.auth-grid{display:grid;min-height:calc(100vh - 100px)}
@media(min-width:1024px){.auth-grid{grid-template-columns:1fr 1fr}}
.auth-img{display:none;position:relative;overflow:hidden}
@media(min-width:1024px){.auth-img{display:block}}
.auth-img-bg{position:absolute;inset:0;background-size:cover;background-position:center}
.auth-img-overlay{position:absolute;inset:0;background:rgba(28,25,21,.2)}
.auth-quote{position:absolute;bottom:48px;left:48px;right:48px}
.auth-quote p{font-family:var(--font-d);font-style:italic;font-size:34px;color:#fff;line-height:1.3}
.auth-quote span{font-size:12px;color:rgba(255,255,255,.6);letter-spacing:.2em;text-transform:uppercase;margin-top:12px;display:block}
.auth-form-side{display:flex;align-items:center;justify-content:center;padding:48px 32px;background:var(--white)}
.auth-form-inner{width:100%;max-width:400px}
.auth-form-label{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--drift);margin-bottom:8px;display:block}
.auth-input{width:100%;border:none;border-bottom:1px solid var(--linen);padding:12px 0;font-size:14px;color:var(--espresso);background:transparent;outline:none;transition:border-color .3s}
.auth-input:focus{border-bottom-color:var(--espresso)}
.auth-input.error{border-bottom-color:var(--bloom-d)}
.auth-field{margin-bottom:24px;position:relative}
.auth-error{font-size:11px;color:var(--bloom-d);margin-top:6px}
.auth-server-error{background:#fef2f2;border:1px solid #fca5a5;padding:12px 16px;font-size:13px;color:#dc2626;margin-bottom:20px}
.auth-pass-toggle{position:absolute;right:0;top:12px;color:var(--drift);cursor:pointer;transition:color .2s}
.auth-pass-toggle:hover{color:var(--espresso)}

/* Botones dentro del formulario de auth: fondo negro, texto blanco */
.auth-form-side .btn-primary,
.auth-form-side button.btn-primary {
  background: var(--espresso);
  color: var(--white);
  width: 100%;
  justify-content: center;
  border: 2px solid var(--espresso);
}
.auth-form-side .btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(28,25,21,.25);
  transform: translateY(-1px);
}
.auth-form-side .btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* ── Form helpers ── */
.form-label{display:block;font-size:11px;letter-spacing:.15em;text-transform:uppercase;color:var(--drift);margin-bottom:8px}
.form-input{width:100%;border:1px solid var(--linen);padding:12px 16px;font-size:14px;color:var(--espresso);background:transparent;outline:none;transition:border-color .3s;font-family:var(--font-b)}
.form-input:focus{border-color:var(--espresso)}
.form-input:disabled{background:var(--cloud);color:var(--stone);cursor:not-allowed}
.form-note{font-size:11px;color:var(--stone);margin-top:4px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.mb-4{margin-bottom:16px}
.mb-6{margin-bottom:24px}

/* ── Checkout ── */
.checkout-wrap{max-width:1100px;margin:0 auto;padding:40px 20px}
@media(min-width:768px){.checkout-wrap{padding:60px 32px}}
.checkout-steps{display:flex;gap:0;margin-bottom:32px;border-bottom:1px solid var(--linen)}
.checkout-step{flex:1;padding:14px 0;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--stone);border-bottom:2px solid transparent;text-align:center;transition:all .3s}
.checkout-step.active{color:var(--espresso);border-bottom-color:var(--espresso)}
.checkout-step.done{color:var(--drift)}

/* ── Cart total row ── */
.cd-total{display:flex;justify-content:space-between;margin-bottom:16px}
.cd-total span{font-size:14px;color:var(--drift)}
.cd-total strong{font-family:var(--font-m);font-size:16px;color:var(--espresso)}

/* ── Orders ── */
.orders-list{display:flex;flex-direction:column;gap:12px}
.order-info{flex:1}
.order-code{font-family:var(--font-m);font-size:11px;color:var(--drift);margin-bottom:4px}
.order-detail{font-size:13px;color:var(--drift)}
.order-status{font-size:11px;padding:3px 10px;display:inline-block}
.status-pendiente{background:#fefce8;color:#a16207}
.status-pagado{background:#eff6ff;color:#1d4ed8}
.status-preparando{background:#faf5ff;color:#6d28d9}
.status-enviado{background:#eef2ff;color:#3730a3}
.status-entregado{background:#f0fdf4;color:#15803d}
.status-cancelado{background:#fef2f2;color:#dc2626}
.os-title{font-family:var(--font-d);font-size:20px;margin-bottom:16px}
.os-item{display:flex;gap:12px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid var(--linen)}
.os-img{width:56px;height:70px;overflow:hidden;background:var(--white);flex-shrink:0}
.os-img img{width:100%;height:100%;object-fit:cover}
.os-name{font-size:13px;color:var(--espresso);margin-bottom:3px}
.os-meta{font-size:11px;color:var(--drift)}
.os-price{font-family:var(--font-m);font-size:13px;color:var(--espresso);margin-left:auto;flex-shrink:0}
.os-totals{padding-top:12px}
.os-row{display:flex;justify-content:space-between;margin-bottom:8px;font-size:13px;color:var(--drift)}
.os-row.total{font-size:15px;color:var(--espresso);font-weight:600;padding-top:8px;border-top:1px solid var(--linen)}
.os-row.total span:last-child{font-family:var(--font-m)}

/* ── Product detail (pd-) ── */
.pd-wrap{max-width:1280px;margin:0 auto;padding:0}
.pd-related{max-width:1280px;margin:0 auto;padding:60px 20px 40px;border-top:1px solid var(--linen)}
@media(min-width:768px){.pd-related{padding:80px 32px 60px}}
.pd-breadcrumb{font-size:12px;color:var(--drift);margin-bottom:16px}
.pd-breadcrumb span{cursor:pointer;transition:color .2s}
.pd-breadcrumb span:hover{color:var(--espresso)}
.pd-old{font-family:var(--font-m);font-size:16px;color:var(--stone);text-decoration:line-through}
.pd-label{font-size:11px;letter-spacing:.15em;text-transform:uppercase;color:var(--drift);margin-bottom:10px}
.pd-qty-row{display:flex;align-items:center;gap:0;border:1px solid var(--linen);width:fit-content;margin-bottom:20px}
.pd-qty-row button{width:40px;height:42px;font-size:18px;color:var(--espresso);transition:background .2s;background:none;border:none}
.pd-qty-row button:hover{background:var(--cloud)}
.pd-qty-row span{width:48px;text-align:center;font-family:var(--font-m);font-size:15px}
.pd-add-btn{width:100%;padding:18px;background:var(--espresso);color:var(--white);font-size:11px;letter-spacing:.2em;text-transform:uppercase;margin-bottom:12px;transition:background .3s;border:none;cursor:pointer;font-family:var(--font-b)}
.pd-add-btn:hover{background:var(--ink)}
.pd-add-btn:disabled{opacity:.5;cursor:not-allowed}
.pd-accord{border-top:1px solid var(--linen)}
.pd-accord-item{border-bottom:1px solid var(--linen)}
.pd-accord-head{display:flex;justify-content:space-between;align-items:center;padding:16px 0;cursor:pointer;font-size:13px;letter-spacing:.05em;color:var(--espresso);user-select:none}
.pd-accord-body{font-size:13px;color:var(--drift);line-height:1.8;padding-bottom:16px;display:none}
.pd-accord-body.open{display:block}
.pd-accord-chevron{transition:transform .3s;color:var(--drift)}
.pd-accord-chevron.open{transform:rotate(180deg)}

/* ── Color / size pickers ── */
.size-grid{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.color-grid{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.color-dot{width:28px;height:28px;border-radius:50%;cursor:pointer;transition:transform .2s;border:2px solid transparent}
.color-dot:hover{transform:scale(1.1)}
.color-dot.active{border-color:var(--espresso);transform:scale(1.05)}
.color-swatch-btn{background:transparent;transition:border-color .2s,transform .2s;outline:none;}
.color-swatch-btn:not(.agotado):hover{transform:scale(1.08);}
.color-swatch-btn.active{transform:scale(1.05);}
.color-swatch-btn.agotado{cursor:not-allowed;}

/* ── Account page ── */
.account-header{border-bottom:1px solid var(--linen);background:rgba(242,239,233,.4)}
.account-header-inner{max-width:1280px;margin:0 auto;padding:40px 24px}
.account-nav{display:flex;flex-direction:row;overflow-x:auto;gap:0;border-bottom:1px solid var(--linen);padding-bottom:1px}
@media(min-width:768px){.account-nav{flex-direction:column;width:220px;flex-shrink:0;border-bottom:none}}
.acc-tab{display:flex;align-items:center;gap:10px;padding:12px 16px;font-size:13px;color:var(--drift);cursor:pointer;transition:all .2s;white-space:nowrap;border-bottom:2px solid transparent}
@media(min-width:768px){.acc-tab{border-bottom:none}}
.acc-tab:hover{color:var(--espresso)}
.acc-tab.active{color:var(--white);background:var(--espresso)}
.account-content{flex:1;min-width:0}

/* ── Addresses ── */
.addr-grid{display:grid;grid-template-columns:1fr;gap:14px}
@media(min-width:640px){.addr-grid{grid-template-columns:1fr 1fr}}
.addr-card{border:1px solid var(--linen);padding:20px;position:relative}
.addr-card.default{border-color:var(--espresso)}
.addr-badge{position:absolute;top:12px;right:12px;font-size:10px;letter-spacing:.12em;text-transform:uppercase;background:var(--espresso);color:var(--white);padding:3px 8px}
.addr-add{border:1px dashed var(--linen);padding:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;cursor:pointer;min-height:140px;transition:border-color .3s}
.addr-add:hover{border-color:var(--stone)}

/* ── Wishlist ── */
.wishlist-wrap{max-width:1280px;margin:0 auto;padding:48px 20px}
@media(min-width:768px){.wishlist-wrap{padding:64px 32px}}

/* ── Search overlay input row ── */
.search-input-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--espresso);padding-bottom:16px}
.search-input-row input{flex:1;border:none;outline:none;background:transparent;font-family:var(--font-m);font-size:28px;font-style:italic;color:var(--espresso);padding:8px 0}
.search-input-row input::placeholder{color:var(--stone)}
.search-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.search-tag{font-size:11px;letter-spacing:.12em;text-transform:uppercase;padding:8px 16px;border:1px solid var(--linen);color:var(--drift);cursor:pointer;transition:all .2s;background:none}
.search-tag:hover{border-color:var(--espresso);color:var(--espresso)}

/* ── Admin panel (legacy class names) ── */
.admin-wrap{display:flex;min-height:100vh;background:var(--cloud)}
.admin-sidebar{width:200px;background:var(--white);border-right:1px solid var(--linen);padding:24px 0;flex-shrink:0}
.admin-sidebar-header{padding:0 24px 24px;border-bottom:1px solid var(--linen);margin-bottom:16px}
.admin-tab-btn{display:block;width:100%;text-align:left;padding:10px 24px;font-size:13px;color:var(--drift);cursor:pointer;transition:all .2s;background:none;border:none;font-family:var(--font-b)}
.admin-tab-btn:hover{background:var(--cloud);color:var(--espresso)}
.admin-tab-btn.active{background:var(--espresso);color:var(--white)}
.admin-content{flex:1;padding:32px;overflow:auto}
.admin-grid4{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:32px}
@media(min-width:1024px){.admin-grid4{grid-template-columns:repeat(4,1fr)}}
.admin-table{width:100%;border-collapse:collapse;background:var(--white);border:1px solid var(--linen);font-size:13px}
.admin-table th{background:var(--cloud);padding:10px 16px;text-align:left;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--drift);border-bottom:1px solid var(--linen)}
.admin-table td{padding:12px 16px;border-bottom:1px solid var(--linen);color:var(--espresso)}
.admin-table tr:hover td{background:var(--cloud)}
.admin-select{font-size:12px;border:1px solid var(--linen);padding:4px 8px;color:var(--espresso);cursor:pointer;background:var(--white);font-family:var(--font-b)}

/* ══════════════════════════════════════════════════════════════════
   Reglas adicionales (migradas del inline del index.html)
   ══════════════════════════════════════════════════════════════════ */

/* Shop header */
.shop-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; flex-wrap:wrap; gap:12px; }

/* OTP Login */
.otp-digit { width:44px; height:54px; text-align:center; font-size:22px; font-family:var(--font-m); font-weight:600; color:var(--espresso); border:none; border-bottom:2px solid var(--linen); background:transparent; outline:none; transition:border-color .2s; caret-color:#C9A96E; }
.otp-digit:focus { border-bottom-color:var(--espresso); }

/* Order cards */
.order-card { border:1px solid var(--linen); padding:0; cursor:pointer; transition:all .3s; background:var(--white); margin-bottom:12px; }
.order-card:hover { border-color:var(--stone); box-shadow:0 4px 20px rgba(28,25,21,.06); }
.order-card-head { display:flex; align-items:center; gap:16px; padding:18px 22px; flex-wrap:wrap; }
.order-card-head:hover { background:rgba(232,226,217,.15); }

/* Payment status badges */
.status-pago_pendiente { background:#fff7ed; color:#c2410c; }
.status-pago_rechazado { background:#fef2f2; color:#dc2626; }

/* Toast notifications */
.toast-item { background:var(--espresso); color:var(--white); padding:14px 20px; font-size:13px; min-width:260px; transform:translateX(120%); transition:transform .3s cubic-bezier(.25,.46,.45,.94); pointer-events:all; }
.toast-item.show { transform:translateX(0); }
.toast-item.success { background:var(--espresso); }
.toast-item.error { background:#dc2626; }

/* ══════════════════════════════════════════════════════════════════
   REDESIGN B&W — Botones, efectos, tema blanco y negro
   ══════════════════════════════════════════════════════════════════ */

/* ── Variables B&N globales ───────────────────────────────────── */
:root {
  --bw-black:  #0F0E0D;
  --bw-white:  #FAFAF8;
  --bw-mid:    #6B6460;
  --bw-border: rgba(28,25,21,.12);
  --bw-hover:  rgba(28,25,21,.06);
  --btn-radius: 0px;
  --btn-ease: cubic-bezier(.4,0,.2,1);
}

/* ── Botón primario (negro sólido) ────────────────────────────── */
.pd-add-btn {
  width: 100%;
  padding: 17px 24px;
  background: var(--bw-black);
  color: var(--bw-white);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-family: var(--font-b);
  font-weight: 600;
  border: 2px solid var(--bw-black);
  cursor: pointer;
  transition: background .25s var(--btn-ease), color .25s var(--btn-ease), transform .15s;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: var(--btn-radius);
}
.pd-add-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.1);
  transform: translateX(-100%);
  transition: transform .35s var(--btn-ease);
}
.pd-add-btn:hover:not(:disabled)::after { transform: translateX(0); }
.pd-add-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.pd-add-btn:active:not(:disabled) { transform: translateY(0); }
.pd-add-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ── Botón favoritos (outline negro) ─────────────────────────── */
.pd-wish-btn {
  width: 100%;
  height: 50px;
  border: 2px solid var(--bw-black);
  background: transparent;
  color: var(--bw-black);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-family: var(--font-b);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background .25s var(--btn-ease), color .25s var(--btn-ease), transform .15s;
  border-radius: var(--btn-radius);
  padding: 0 20px;
  margin-bottom: 24px;
}
.pd-wish-btn:hover { background: var(--bw-black); color: var(--bw-white); transform: translateY(-1px); }
.pd-wish-btn svg { transition: fill .2s, stroke .2s; }
.pd-wish-btn:hover svg { stroke: var(--bw-white); }

/* ── Botón talla ─────────────────────────────────────────────── */
.size-btn {
  min-width: 48px;
  height: 48px;
  border: 1.5px solid var(--bw-border);
  font-size: 12px;
  font-family: var(--font-b);
  font-weight: 600;
  color: var(--bw-black);
  cursor: pointer;
  transition: all .2s var(--btn-ease);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bw-white);
  letter-spacing: .04em;
  border-radius: var(--btn-radius);
  position: relative;
}
.size-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bw-black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--btn-ease);
}
.size-btn span { position: relative; z-index: 1; }
.size-btn:hover { border-color: var(--bw-black); color: var(--bw-black); }
.size-btn.active {
  background: var(--bw-black);
  color: var(--bw-white);
  border-color: var(--bw-black);
}
.size-btn.agotado,
.size-btn.agotada { opacity: .35; cursor: not-allowed; pointer-events: none; text-decoration: line-through; }

/* ── Tarjetas producto: hover refinado ───────────────────────── */
.product-card {
  cursor: pointer;
  transition: transform .3s var(--btn-ease), box-shadow .3s var(--btn-ease);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.product-card:hover .product-img img { transform: scale(1.06); }
.product-img { overflow: hidden; position: relative; }
.product-img img { transition: transform .5s var(--btn-ease); }

/* ── Quick add button refinado ───────────────────────────────── */
.quick-add {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--bw-black);
  color: var(--bw-white);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: var(--font-b);
  font-weight: 600;
  padding: 14px 8px;
  text-align: center;
  transform: translateY(100%);
  transition: transform .3s var(--btn-ease);
  cursor: pointer;
  border: none;
}
.product-card:hover .quick-add { transform: translateY(0); }

/* ── Botones nav / outline generales ─────────────────────────── */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border: 2px solid var(--bw-black);
  background: transparent;
  color: var(--bw-black);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: var(--font-b);
  font-weight: 600;
  cursor: pointer;
  transition: background .22s var(--btn-ease), color .22s var(--btn-ease), transform .15s;
  text-decoration: none;
  border-radius: var(--btn-radius);
}
.btn-outline:hover { background: var(--bw-black); color: var(--bw-white); transform: translateY(-1px); }

/* ── Botón dark / CTA principal ──────────────────────────────── */
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  background: var(--bw-black);
  color: var(--bw-white);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-family: var(--font-b);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--bw-black);
  transition: background .22s var(--btn-ease), color .22s var(--btn-ease), transform .15s, box-shadow .22s;
  text-decoration: none;
  border-radius: var(--btn-radius);
}
.btn-dark:hover { background: transparent; color: var(--bw-black); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.12); }

/* ── Hero CTA ─────────────────────────────────────────────────── */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.85);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-family: var(--font-b);
  font-weight: 600;
  cursor: pointer;
  transition: background .25s, color .25s, transform .15s;
  border-radius: var(--btn-radius);
}
.hero-cta:hover { background: #fff; color: var(--bw-black); transform: translateY(-2px); }

/* ── Checkout / carrito botones ──────────────────────────────── */
.checkout-btn, .cart-checkout-btn {
  width: 100%;
  padding: 17px;
  background: var(--bw-black);
  color: var(--bw-white);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-family: var(--font-b);
  font-weight: 600;
  border: 2px solid var(--bw-black);
  cursor: pointer;
  transition: background .22s, color .22s, transform .15s;
  border-radius: var(--btn-radius);
}
.checkout-btn:hover, .cart-checkout-btn:hover {
  background: transparent;
  color: var(--bw-black);
  transform: translateY(-1px);
}

/* ── Cantidad ─────────────────────────────────────────────────── */
.pd-qty-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
  border: 1.5px solid var(--bw-border);
  width: fit-content;
}
.pd-qty-row button {
  width: 44px;
  height: 44px;
  background: var(--bw-white);
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--bw-black);
  transition: background .2s;
  font-family: var(--font-b);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-qty-row button:hover { background: var(--bw-black); color: var(--bw-white); }
.pd-qty-row span {
  width: 52px;
  text-align: center;
  font-family: var(--font-m);
  font-size: 16px;
  font-weight: 600;
  color: var(--bw-black);
  border-left: 1.5px solid var(--bw-border);
  border-right: 1.5px solid var(--bw-border);
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Label sección en producto ─────────────────────────────────── */
.pd-label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bw-mid);
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 20px;
}

/* ── Breadcrumb producto ──────────────────────────────────────── */
.pd-breadcrumb {
  font-size: 12px;
  color: var(--bw-mid);
  letter-spacing: .04em;
  margin-bottom: 16px;
}
.pd-breadcrumb span { cursor: pointer; transition: color .2s; }
.pd-breadcrumb span:hover { color: var(--bw-black); }

/* ── Precio producto ──────────────────────────────────────────── */
.pd-price { font-family: var(--font-m); font-size: 28px; font-weight: 700; color: var(--bw-black); letter-spacing: -.01em; }
.pd-old   { font-family: var(--font-m); font-size: 16px; color: var(--bw-mid); text-decoration: line-through; }

/* ══════════════════════════════════════════════════════════════════
   CHAT FLOTANTE
   ══════════════════════════════════════════════════════════════════ */
#chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: var(--bw-black);
  color: var(--bw-white);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
  z-index: 1200;
  transition: transform .3s var(--btn-ease), box-shadow .3s;
}
#chat-fab:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(0,0,0,.3); }
#chat-fab .chat-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: #EF4444;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 2px solid var(--bw-white);
  animation: chat-pulse 2s infinite;
}
@keyframes chat-pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

#chat-window {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 360px;
  max-height: 520px;
  background: var(--bw-white);
  border: 1.5px solid var(--bw-border);
  box-shadow: 0 16px 48px rgba(0,0,0,.16);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: scale(.92) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s var(--btn-ease), opacity .3s;
  transform-origin: bottom right;
  border-radius: 2px;
}
#chat-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}
@media(max-width:480px) {
  #chat-window { right: 12px; left: 12px; width: auto; bottom: 88px; }
  #chat-fab { bottom: 20px; right: 20px; }
}
.chat-head {
  background: var(--bw-black);
  color: var(--bw-white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.chat-head-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.chat-head-info { flex: 1; min-width: 0; }
.chat-head-name { font-size: 13px; font-weight: 700; letter-spacing: .03em; }
.chat-head-status { font-size: 11px; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 5px; }
.chat-head-status::before { content:''; width:7px;height:7px;border-radius:50%;background:#4ade80;flex-shrink:0; }
.chat-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
}
.chat-close:hover { background: rgba(255,255,255,.25); }

.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.chat-msgs::-webkit-scrollbar { width: 4px; }
.chat-msgs::-webkit-scrollbar-thumb { background: var(--bw-border); border-radius: 2px; }

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 2px;
  animation: bubble-in .25s var(--btn-ease);
}
@keyframes bubble-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.chat-bubble.bot {
  background: #F3F0EB;
  color: var(--bw-black);
  align-self: flex-start;
  border-bottom-left-radius: 0;
}
.chat-bubble.user {
  background: var(--bw-black);
  color: var(--bw-white);
  align-self: flex-end;
  border-bottom-right-radius: 0;
}
.chat-bubble.typing {
  background: #F3F0EB;
  align-self: flex-start;
  padding: 12px 16px;
}
.chat-typing-dots { display: flex; gap: 4px; align-items: center; }
.chat-typing-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bw-mid);
  animation: dot-bounce .9s infinite;
}
.chat-typing-dots span:nth-child(2) { animation-delay: .15s; }
.chat-typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dot-bounce { 0%,60%,100% { transform:translateY(0); } 30% { transform:translateY(-6px); } }

.chat-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
  flex-shrink: 0;
}
.chat-quick-btn {
  padding: 7px 13px;
  background: transparent;
  border: 1.5px solid var(--bw-border);
  color: var(--bw-black);
  font-size: 12px;
  font-family: var(--font-b);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  border-radius: 99px;
  white-space: nowrap;
}
.chat-quick-btn:hover { background: var(--bw-black); color: var(--bw-white); border-color: var(--bw-black); }

.chat-wa-btn {
  margin: 0 16px 10px;
  width: calc(100% - 32px);
  padding: 12px;
  background: #25D366;
  color: #fff;
  border: none;
  font-size: 12px;
  font-family: var(--font-b);
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, transform .15s;
  border-radius: 2px;
  text-decoration: none;
  flex-shrink: 0;
}
.chat-wa-btn:hover { background: #128C7E; transform: translateY(-1px); }

.chat-input-row {
  display: flex;
  border-top: 1.5px solid var(--bw-border);
  flex-shrink: 0;
}
.chat-input-row input {
  flex: 1;
  padding: 13px 16px;
  border: none;
  outline: none;
  font-size: 13px;
  font-family: var(--font-b);
  background: var(--bw-white);
  color: var(--bw-black);
  min-width: 0;
}
.chat-input-row input::placeholder { color: var(--bw-mid); }
.chat-send-btn {
  width: 46px;
  background: var(--bw-black);
  color: var(--bw-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
}
.chat-send-btn:hover { background: #333; }

/* ══════════════════════════════════════════════════════════════════
   BOTONES UNIFICADOS — Carrito, Checkout, Auth, Sesión
   ══════════════════════════════════════════════════════════════════ */

/* ── Carrito: pie del drawer ──────────────────────────────────── */
.cd-foot {
  padding: 20px 26px 28px;
  border-top: 1.5px solid var(--linen);
  background: var(--white);
}
.cd-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--linen);
}
.cd-total span {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--drift);
  font-family: var(--font-b);
}
.cd-total strong {
  font-family: var(--font-m);
  font-size: 22px;
  font-weight: 700;
  color: var(--espresso);
  letter-spacing: -.02em;
}

/* Finalizar compra — negro sólido full width */
.cd-foot .btn-primary {
  width: 100%;
  padding: 17px;
  background: var(--espresso);
  color: var(--white);
  border: 2px solid var(--espresso);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-family: var(--font-b);
  font-weight: 700;
  cursor: pointer;
  transition: background .22s, transform .15s, box-shadow .22s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0;
}
.cd-foot .btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(28,25,21,.2);
}

/* Seguir comprando — outline negro */
.cd-foot .btn-outline {
  width: 100%;
  padding: 13px;
  background: transparent;
  color: var(--espresso);
  border: 1.5px solid var(--espresso);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-family: var(--font-b);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}
.cd-foot .btn-outline:hover { background: var(--espresso); color: var(--white); }

/* ── Checkout: botones de pasos ──────────────────────────────── */
.checkout-step-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.checkout-step-actions .btn-primary {
  flex: 1;
  min-width: 200px;
  padding: 17px 24px;
  font-size: 11px;
  letter-spacing: .2em;
  background: var(--espresso);
  color: var(--white);
  border: 2px solid var(--espresso);
  font-family: var(--font-b);
  font-weight: 700;
  cursor: pointer;
  transition: background .22s, transform .15s, box-shadow .22s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.checkout-step-actions .btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(28,25,21,.2);
}
.checkout-step-actions .btn-outline {
  padding: 15px 24px;
  background: transparent;
  color: var(--espresso);
  border: 2px solid var(--espresso);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: var(--font-b);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.checkout-step-actions .btn-outline:hover { background: var(--espresso); color: var(--white); }

/* Botón inline en checkout (continuar al pago, confirmar) */
.checkout-content .btn-primary {
  width: 100%;
  padding: 17px;
  background: var(--espresso);
  color: var(--white);
  border: 2px solid var(--espresso);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-family: var(--font-b);
  font-weight: 700;
  cursor: pointer;
  transition: background .22s, transform .15s, box-shadow .22s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.checkout-content .btn-primary:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(28,25,21,.2);
}
.checkout-content .btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.checkout-content .btn-outline {
  padding: 14px 20px;
  background: transparent;
  color: var(--espresso);
  border: 2px solid var(--espresso);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: var(--font-b);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.checkout-content .btn-outline:hover { background: var(--espresso); color: var(--white); transform: translateY(-1px); }

/* ── Auth: Iniciar sesión, Registrar, Recuperar ──────────────── */
.auth-form-side .btn-primary,
.auth-form-side button.btn-primary,
#login-btn, #reg-btn, #forgot-btn, #reset-btn,
#otp-send-btn, #otp-verify-btn {
  width: 100%;
  padding: 17px 24px;
  background: var(--espresso);
  color: var(--white);
  border: 2px solid var(--espresso);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-family: var(--font-b);
  font-weight: 700;
  cursor: pointer;
  transition: background .22s, transform .15s, box-shadow .22s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.auth-form-side .btn-primary::after,
#login-btn::after, #reg-btn::after, #forgot-btn::after,
#reset-btn::after, #otp-send-btn::after, #otp-verify-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.08);
  transform: translateX(-100%);
  transition: transform .35s;
}
.auth-form-side .btn-primary:hover::after,
#login-btn:hover::after, #reg-btn:hover::after { transform: translateX(0); }
.auth-form-side .btn-primary:hover:not(:disabled),
#login-btn:hover:not(:disabled), #reg-btn:hover:not(:disabled),
#forgot-btn:hover:not(:disabled), #reset-btn:hover:not(:disabled),
#otp-send-btn:hover:not(:disabled), #otp-verify-btn:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(28,25,21,.25);
}
.auth-form-side .btn-primary:disabled,
#login-btn:disabled, #reg-btn:disabled, #forgot-btn:disabled,
#reset-btn:disabled, #otp-send-btn:disabled, #otp-verify-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Inputs de auth — estilo limpio B&N */
.auth-input {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--linen);
  outline: none;
  font-size: 15px;
  font-family: var(--font-b);
  color: var(--espresso);
  transition: border-color .2s;
  box-sizing: border-box;
}
.auth-input:focus { border-bottom-color: var(--espresso); }
.auth-input::placeholder { color: var(--stone); font-size: 14px; }

/* Tabs auth — activo con línea negra */
.auth-tab {
  padding: 12px 0;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: var(--font-b);
  font-weight: 600;
  color: var(--stone);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  background: transparent;
  border-top: none; border-left: none; border-right: none;
}
.auth-tab.active { color: var(--espresso); border-bottom-color: var(--espresso); }

/* Link "¿Olvidaste tu contraseña?" */
.auth-forgot-link {
  font-size: 12px;
  color: var(--drift);
  text-decoration: none;
  display: block;
  text-align: right;
  margin-bottom: 24px;
  transition: color .2s;
}
.auth-forgot-link:hover { color: var(--espresso); text-decoration: underline; }

/* Hero: btn-outline en fondo oscuro — override */
.hero .btn-outline,
.hero-cta {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.85);
  width: auto;
}
.hero .btn-outline:hover,
.hero-cta:hover {
  background: #fff;
  color: var(--espresso);
  transform: translateY(-2px);
}

/* ── Botones secundarios (Ver tienda, Ver mis pedidos) ─────────── */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: transparent;
  color: var(--espresso);
  border: 1.5px solid var(--linen);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-family: var(--font-b);
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--espresso); background: var(--cloud); }

/* ── Botón sm ─────────────────────────────────────────────────── */
.btn-sm {
  padding: 10px 20px !important;
  font-size: 10px !important;
  letter-spacing: .14em !important;
}

/* ══════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Fixes completos
   ══════════════════════════════════════════════════════════════════ */

/* ── Producto detalle: fix superposición en mobile ─────────────── */
@media(max-width: 768px) {
  /* Quitar sticky en galería — es el causante del overlap */
  .pd-gallery {
    position: relative !important;
    top: auto !important;
  }
  .pd-layout {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 0 0 40px !important;
  }
  /* Imagen principal más alta en mobile */
  .pd-main-img {
    aspect-ratio: 4/5;
    margin-bottom: 8px;
  }
  /* Thumbnails scrollables horizontalmente */
  .pd-thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pd-thumbs::-webkit-scrollbar { display: none; }
  .pd-thumb {
    width: 58px;
    height: 72px;
    flex-shrink: 0;
  }
  /* Info del producto sin padding extra */
  .pd-info {
    padding: 16px 16px 0 !important;
  }
  .pd-name {
    font-size: 26px !important;
    margin-bottom: 12px !important;
  }
  .pd-price { font-size: 22px !important; }
  .pd-breadcrumb { padding: 12px 16px 0; font-size: 11px; }
  /* Color grid en mobile: swatches más grandes */
  .color-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  /* Tallas más compactas */
  .size-grid { gap: 6px !important; }
  .size-btn { min-width: 42px !important; height: 42px !important; }
  /* Botones full width en mobile */
  .pd-add-btn { font-size: 11px !important; padding: 16px !important; }
  .pd-wish-btn { height: 46px !important; font-size: 10px !important; }
  /* Acordeón descripción */
  .pd-accord { margin-top: 8px; }
  /* Related productos */
  .pd-related .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .pd-related { padding: 0 16px; }
}

/* ── Tienda: grid de productos en mobile ───────────────────────── */
@media(max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .product-info { padding: 8px 0 0 !important; }
  .product-name { font-size: 12px !important; }
  .product-price { font-size: 11px !important; }
}

/* ── Pantallas muy pequeñas <=380px ─── */
@media(max-width: 380px) {
  .shop-layout {
    padding: 12px 8px 32px !important;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  .product-name { font-size: 11px !important; }
  .product-price { font-size: 10.5px !important; }
  .quick-add { font-size: 9px !important; padding: 9px 4px !important; letter-spacing: .1em !important; }
}

/* ── Shop layout mobile: sidebar como chips horizontales ───────── */
@media(max-width: 768px) {
  .shop-layout {
    flex-direction: column !important;
    padding: 16px 12px 40px !important;
    gap: 16px !important;
    overflow-x: hidden !important;
  }
  .shop-sidebar {
    width: 100% !important;
    position: static !important;
  }
  .shop-main {
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .products-grid {
    width: 100% !important;
  }
  /* En mobile, la sidebar de filtros se oculta y se usan los pills */
  .shop-sidebar .filter-group-title,
  .shop-sidebar .filter-group:not(.cat-filter-group),
  #cat-filter-list,
  .shop-sidebar .filter-head {
    display: none !important;
  }
  /* Pills de categoría scrollables */
  #cat-pills-mobile {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding: 4px 0 8px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  #cat-pills-mobile::-webkit-scrollbar { display: none !important; }
  .cat-pill {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 8px 18px !important;
    font-size: 11px !important;
  }
  .shop-main { padding: 0 !important; }
  .shop-topbar {
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }
}

/* ── Checkout mobile ───────────────────────────────────────────── */
@media(max-width: 768px) {
  .checkout-layout {
    flex-direction: column !important;
    padding: 16px 12px !important;
    gap: 24px !important;
  }
  .checkout-main { min-width: 0 !important; }
  .checkout-summary { width: 100% !important; }
  .checkout-steps {
    padding: 12px 16px !important;
    gap: 0 !important;
  }
  .checkout-step-label {
    font-size: 9px !important;
    letter-spacing: .1em !important;
  }
  .checkout-step-actions {
    flex-direction: column-reverse !important;
    gap: 10px !important;
  }
  .checkout-step-actions .btn-outline {
    width: 100% !important;
    justify-content: center !important;
  }
  .form-grid-2 {
    grid-template-columns: 1fr !important;
  }
}

/* ── Carrito drawer mobile ─────────────────────────────────────── */
@media(max-width: 480px) {
  #cart-drawer {
    width: 100vw !important;
  }
  .cd-head { padding: 16px 18px !important; }
  .cd-body { padding: 12px 16px !important; }
  .cd-foot { padding: 16px !important; }
}

/* ── Auth pages mobile ─────────────────────────────────────────── */
@media(max-width: 768px) {
  .auth-layout {
    flex-direction: column !important;
    min-height: unset !important;
  }
  .auth-img-side {
    display: none !important;
  }
  .auth-form-side {
    width: 100% !important;
    padding: 40px 24px !important;
    min-height: unset !important;
  }
  .auth-tabs { margin-bottom: 24px !important; }
}

/* ── Header mobile: compacto ───────────────────────────────────── */
@media(max-width: 480px) {
  .nav-inner { height: 58px !important; }
  .logo-name { font-size: 22px !important; }
  .logo-store { font-size: 7px !important; }
  .nav-actions { gap: 0 !important; }
  .nav-btn { width: 36px !important; height: 36px !important; }
  #announcement-bar {
    font-size: 10px !important;
    padding: 7px 12px !important;
    letter-spacing: .06em !important;
  }
}

/* ── Chat FAB: no interferir con navegación mobile ─────────────── */
@media(max-width: 480px) {
  #chat-fab {
    bottom: 16px !important;
    right: 16px !important;
    width: 50px !important;
    height: 50px !important;
  }
  #chat-window {
    bottom: 76px !important;
    right: 10px !important;
    left: 10px !important;
    width: auto !important;
    max-height: 70vh !important;
  }
}

/* ── Wish btn: siempre visible en touch ────────────────────────── */
@media(max-width: 768px) {
  .product-wish { opacity: 1 !important; }
  .quick-add { transform: translateY(0) !important; font-size: 9px !important; padding: 10px 4px !important; letter-spacing: .08em !important; }
}

/* ── Hero mobile ───────────────────────────────────────────────── */
@media(max-width: 480px) {
  .hero { min-height: 85vh !important; }
  .hero-content { left: 20px !important; right: 20px !important; bottom: 60px !important; }
  .hero-title { font-size: 36px !important; }
  .hero-sub { font-size: 9px !important; }
  .hero-cta { padding: 13px 28px !important; font-size: 10px !important; }
}

/* ── Home: sección destacados mobile ──────────────────────────── */
@media(max-width: 480px) {
  #home-products.products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 12px !important;
  }
  .section-label { font-size: 9px !important; }
  .section-title { font-size: 24px !important; }
}

/* ── Detección IA de color ────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.vc-row {
  transition: box-shadow .3s ease;
}
.vc-row[data-detecting] {
  border-color: rgba(139,92,246,.4) !important;
  box-shadow: 0 0 0 3px rgba(139,92,246,.15);
}

/* ══════════════════════════════════════════════════════════════════
   MEJORAS VISUALES — Nav, Search, Shop Mobile, Banner
   ══════════════════════════════════════════════════════════════════ */

/* ── Wishlist badge en nav ── */
.wish-badge {
  position: absolute;
  top: -1px; right: -1px;
  width: 15px; height: 15px;
  background: #c0392b;
  color: #fff;
  font-size: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-m);
  line-height: 1;
  font-weight: 600;
}
.wish-badge.hidden { display: none; }

/* ── Nav link Ofertas — acento rojo ── */
.nav-link-offer {
  color: #c0392b !important;
  font-weight: 600 !important;
}
.nav-link-offer::after { background: #c0392b !important; }
.nav-link-offer:hover { color: #96231d !important; }

/* ── Nav mejorado en móvil: logo más pequeño, acciones más densas ── */
@media(max-width: 767px) {
  .nav-inner {
    height: 56px;
    padding: 0 14px;
    gap: 10px;
  }
  .logo-name { font-size: 22px; }
  .logo-m    { font-size: 11px; }
  .logo-store { font-size: 7.5px; letter-spacing: .3em; }
  .logo-bottom svg { display: none; }
  .nav-actions { gap: 0; }
  .nav-btn { width: 34px; height: 34px; }
  .nav-btn svg { width: 17px; height: 17px; }
}

/* ── Announcement bar móvil más compacto ── */
@media(max-width: 767px) {
  #ann-bar {
    font-size: 10.5px;
    padding: 7px 12px;
    letter-spacing: .06em;
  }
}

/* ══════════════════════════════════════════════════════════════════
   SEARCH OVERLAY — Mejorado para todos los tamaños
   ══════════════════════════════════════════════════════════════════ */
#search-overlay {
  padding-top: 14vh;
}
.search-inner {
  width: 100%;
  max-width: 720px;
  padding: 0 24px;
}
.search-row input {
  font-size: clamp(22px, 5vw, 38px);
}
/* Resultados de búsqueda */
.search-results {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
@media(min-width: 640px) {
  .search-results { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

@media(max-width: 767px) {
  #search-overlay { padding-top: 10vh; }
  .search-inner { padding: 0 16px; }
  .search-label { font-size: 9px; letter-spacing: .22em; margin-bottom: 12px; }
  .search-row input {
    font-size: 26px;
    padding: 6px 0;
  }
  .search-row { border-bottom-width: 1.5px; }
  .search-close { padding: 6px; }
  .search-popular {
    margin-top: 20px;
    font-size: 11px;
    color: var(--drift);
    letter-spacing: .08em;
  }
  .search-popular span {
    display: inline-block;
    margin: 4px 4px 0 0;
    padding: 5px 12px;
    border: 1px solid var(--linen);
    font-size: 11px;
    color: var(--espresso);
    cursor: pointer;
    transition: background .2s;
  }
  .search-popular span:hover { background: var(--cloud); }
}

/* ══════════════════════════════════════════════════════════════════
   HERO BANNER — Mejorado
   ══════════════════════════════════════════════════════════════════ */
/* Texto hero más legible en móvil */
@media(max-width: 767px) {
  .hero { min-height: 88svh; }
  .hero-content {
    bottom: 48px;
    left: 20px;
    right: 20px;
  }
  .hero-title {
    font-size: clamp(36px, 11vw, 56px);
    margin-bottom: 20px;
  }
  .hero-sub {
    font-size: 10px;
    letter-spacing: .22em;
    margin-bottom: 12px;
  }
  .hero-cta {
    padding: 13px 24px;
    font-size: 10px;
    letter-spacing: .16em;
  }
  .hero-dots { margin-top: 18px; }
  /* Logo sobre hero más visible */
  .hero-logo-name { font-size: 26px; }
  .hero-logo-store { font-size: 8px; letter-spacing: .35em; }
}

/* Barra de badges sobre el hero (Nuevo · Ofertas · Favorito) */
.hero-badges {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-b);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 2px;
  cursor: pointer;
  transition: transform .2s;
}
.hero-badge-pill:hover { transform: translateX(-3px); }
.hero-badge-pill.offer  { background: rgba(192,57,43,.85); color: #fff; }
.hero-badge-pill.new    { background: rgba(250,250,248,.88); color: var(--espresso); }
.hero-badge-pill.wish   { background: rgba(28,25,21,.6); color: rgba(255,255,255,.9); }

/* ══════════════════════════════════════════════════════════════════
   SHOP PAGE — Móvil: filtros colapsables, grid correcto
   ══════════════════════════════════════════════════════════════════ */
@media(max-width: 767px) {
  .shop-layout {
    flex-direction: column;
    padding: 16px 14px 40px;
    gap: 0;
  }

  /* Sidebar se convierte en panel colapsable */
  .shop-sidebar {
    width: 100%;
    position: static;
    margin-bottom: 0;
  }

  /* Botón toggle de filtros */
  .shop-filter-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 16px;
    background: var(--cloud);
    border: 1px solid var(--linen);
    border-radius: 4px;
    font-size: 12px;
    font-family: var(--font-b);
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--espresso);
    cursor: pointer;
    margin-bottom: 12px;
    transition: background .2s;
  }
  .shop-filter-toggle:hover { background: var(--linen); }
  .shop-filter-toggle svg { transition: transform .25s; }
  .shop-filter-toggle.open svg { transform: rotate(180deg); }

  /* Contenido del sidebar colapsado por defecto en móvil */
  .shop-sidebar-inner {
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s ease;
  }
  .shop-sidebar-inner.open {
    max-height: 1000px;
  }

  /* Topbar shop en móvil */
  .shop-topbar {
    flex-wrap: nowrap;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }
  .shop-count { font-size: 11px; }
  .sort-label { display: none; }

  /* Grid productos en móvil: 2 columnas sin gap extra */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1px !important;
  }

  /* Tarjeta producto más compacta en móvil */
  .pc-info { padding: 10px 10px 12px; }
  .pc-name { font-size: 12.5px; }
  .pc-price { font-size: 13px; }
  .pc-old   { font-size: 11px; }
  .pc-actions { padding: 0 10px 10px; }
  .pc-add-btn { font-size: 10px; padding: 9px 12px; letter-spacing: .1em; }
}

/* Botón toggle de filtros — oculto en desktop */
.shop-filter-toggle { display: none; }

/* ══════════════════════════════════════════════════════════════════
   MOBILE MENU — link Ofertas rojo
   ══════════════════════════════════════════════════════════════════ */
.mm-link-offer { color: #c0392b !important; font-weight: 500; }
.mm-link-offer:hover { color: #96231d !important; padding-left: 4px; }

/* ══════════════════════════════════════════════════════════════════
   CHECKOUT MOBILE
   ══════════════════════════════════════════════════════════════════ */
@media(max-width: 767px) {
  .checkout-layout {
    flex-direction: column !important;
  }
  .order-summary {
    order: -1;
    margin-bottom: 8px;
  }
  .checkout-wrap { padding: 16px 14px; }
  .checkout-steps {
    gap: 4px;
    margin-bottom: 20px;
  }
  .checkout-step { font-size: 10px; padding: 6px 10px; }
}

/* ══════════════════════════════════════════════════════════════════
   PRODUCT DETAIL MOBILE
   ══════════════════════════════════════════════════════════════════ */
@media(max-width: 767px) {
  .pd-wrap { padding: 0; }
  .pd-layout { padding: 0 0 48px; }
  .pd-info { padding: 16px 16px 0; }
  .pd-name { font-size: 28px; }
  .pd-price { font-size: 24px; }
  .pd-gallery { position: static; }
  .pd-main-img { aspect-ratio: 4/5; }
  .pd-thumbs { padding: 0 12px; gap: 6px; }
  .pd-thumb { width: 60px; height: 74px; }
  .pd-add-btn, .pd-wish-btn {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .pd-qty-row button { width: 40px; height: 40px; }
}

/* ══════════════════════════════════════════════════════════════════
   CART DRAWER MOBILE
   ══════════════════════════════════════════════════════════════════ */
@media(max-width: 767px) {
  #cart-drawer { max-width: 100vw; }
  .cd-head { padding: 18px 18px; }
  .cd-body { padding: 12px 18px; }
  .cd-foot { padding: 16px 18px; }
  .cd-img { width: 64px; height: 82px; }
}

/* ══════════════════════════════════════════════════════════════════
   SECCIÓN CATEGORÍAS MOBILE
   ══════════════════════════════════════════════════════════════════ */
@media(max-width: 767px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .cat-item { height: 140px !important; }
  .cat-name { font-size: 13px !important; }
}

/* ══════════════════════════════════════════════════════════════════
   FOOTER MOBILE
   ══════════════════════════════════════════════════════════════════ */
@media(max-width: 560px) {
  .footer-inner { padding: 0 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; padding-bottom: 36px; }
  .nl-row { flex-direction: column; }
  .nl-row input { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); }
  .nl-row button { padding: 14px; }
}

/* ══════════════════════════════════════════════════════════════════
   LOGO IMAGE (Logo-pagina.svg) — reemplaza el logo tipográfico
   ══════════════════════════════════════════════════════════════════ */

/* Logo en navbar y footer */
.logo-img {
  display: block;
  width: auto;
  height: 52px;          /* altura proporcional en navbar */
  max-width: 180px;
  object-fit: contain;
  transition: opacity .2s;
}
.logo:hover .logo-img { opacity: .75; }

/* Logo en el hero (fondo oscuro — filtro para hacerlo visible) */
.logo-img--hero {
  height: 60px;
  max-width: 210px;
  filter: brightness(0) invert(1);   /* blanco puro sobre imagen oscura */
}

/* Logo en menú móvil */
.mm-head .logo .logo-img {
  height: 44px;
}

/* Logo en footer */
.logo[style*="margin-bottom"] .logo-img {
  height: 48px;
}

/* Login / auth panel */
.login-logo .logo-img,
.auth-logo .logo-img {
  height: 64px;
  max-width: 220px;
  margin: 0 auto 8px;
}
.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

/* Admin sidebar logo */
.sidebar-logo .logo-img {
  height: 42px;
  max-width: 160px;
}

/* Admin mobile topbar */
.mobile-logo .logo-img {
  height: 36px;
  max-width: 140px;
}

/* Responsivo */
@media (max-width: 767px) {
  .logo-img         { height: 40px; max-width: 140px; }
  .logo-img--hero   { height: 46px; }
}
