﻿*, *::before, *::after {
  box-sizing: border-box;
}

/* 2026-05-17: native-feel polish para webviews FB / IG / Add-to-home.
   - overscroll-behavior: contain → elimina pull-to-refresh y bounce blanco
     que delata "esto es un browser" en mobile.
   - scroll-behavior: smooth → scroll programático (anchor-jump) suave.
   - tap-highlight-color transparent → desaparece el flash gris azulado
     que algunos browsers ponen al tocar enlaces / botones.
   - touch-action: manipulation → quita el delay de 300ms al tocar (legacy
     iOS) y bloquea pinch-zoom (que ya está bloqueado en viewport meta). */
html {
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
body {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button,
a,
.card,
.chip-scroll button,
.whatsapp-fab,
.instagram-fab {
  -webkit-tap-highlight-color: transparent;
}

/* 2026-05-17: brand intro curtain — full-screen parchment with monograma +
   statement tagline + pulsing dots. Removed by JS after window 'load' or
   1.6s timeout (whichever fires last). Defined high in the file so it
   paints before any other style cascade lands. */
.brand-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f5ece1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  padding: 24px;
  transition:
    opacity 0.85s cubic-bezier(0.65, 0, 0.35, 1),
    transform 0.95s cubic-bezier(0.65, 0, 0.35, 1),
    filter 0.85s ease;
  pointer-events: auto;
  transform-origin: center 40%;
}

.brand-intro.is-hidden {
  /* Curtain "alejándose": fade + zoom-in micro + blur progressive.
     Combina con el .site-shell.is-entering que entra simultáneamente,
     creando un cross-dissolve cinemático en lugar de overlay-snap. */
  opacity: 0;
  transform: scale(1.04) translateY(-4%);
  filter: blur(10px);
  pointer-events: none;
}

.brand-intro-monogram {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  color: #2c2c2c;
  text-indent: 0.32em; /* compensate trailing letter-spacing */
  opacity: 0;
  transform: translateY(8px);
  animation: brand-intro-rise 0.7s 0.05s ease-out forwards;
}

.brand-intro-tagline {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(1.05rem, 3.4vw, 1.4rem);
  color: #5a5042;
  text-align: center;
  letter-spacing: 0.04em;
  max-width: 28ch;
  opacity: 0;
  transform: translateY(8px);
  animation: brand-intro-rise 0.7s 0.25s ease-out forwards;
}

.brand-intro-tagline em {
  font-style: italic;
  color: #2c2c2c;
}

.brand-intro-dots {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  opacity: 0;
  animation: brand-intro-rise 0.6s 0.55s ease-out forwards;
}

.brand-intro-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d6c3a3;
  opacity: 0.35;
  animation: brand-intro-pulse 1.2s ease-in-out infinite;
}

.brand-intro-dots span:nth-child(2) { animation-delay: 0.2s; }
.brand-intro-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes brand-intro-rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes brand-intro-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.2); background: #be9a7a; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-intro-monogram,
  .brand-intro-tagline,
  .brand-intro-dots { animation: none; opacity: 1; transform: none; }
  .brand-intro-dots span { animation: none; opacity: 0.7; }
}

/* 2026-05-17: choreographed entrance of the catalog when the brand-intro
   curtain dismisses. Triggered by `.is-revealing` which JS adds on the
   SAME tick the curtain starts fading out — so the animations and the
   curtain fade run together (true cross-dissolve). Removed after the
   choreography duration so subsequent re-renders (tab switch, filters)
   don't re-animate. */
.is-revealing .site-shell {
  animation: site-shell-enter 0.85s 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

@keyframes site-shell-enter {
  from { opacity: 0; transform: scale(0.985); }
  to   { opacity: 1; transform: scale(1); }
}

/* Stagger the first batch of cards so they descend like a cascade.
   Cap at the 12th card so deep scrolls don't animate (and tab switches
   beyond the initial batch don't either, since .is-first-load is
   only present for the first ~1.4 s). */
.is-revealing .card {
  animation: card-enter 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.is-revealing .card:nth-child(1)  { animation-delay: 0.32s; }
.is-revealing .card:nth-child(2)  { animation-delay: 0.38s; }
.is-revealing .card:nth-child(3)  { animation-delay: 0.44s; }
.is-revealing .card:nth-child(4)  { animation-delay: 0.50s; }
.is-revealing .card:nth-child(5)  { animation-delay: 0.56s; }
.is-revealing .card:nth-child(6)  { animation-delay: 0.62s; }
.is-revealing .card:nth-child(7)  { animation-delay: 0.68s; }
.is-revealing .card:nth-child(8)  { animation-delay: 0.74s; }
.is-revealing .card:nth-child(n+9) { animation-delay: 0.80s; }

@keyframes card-enter {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero settles last — letter-spacing breathes into final value, evoking
   "el texto encuentra su sitio" como en Hermès / Net-a-Porter. */
.is-revealing .hero-title {
  animation: hero-title-settle 1.1s 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

@keyframes hero-title-settle {
  from { opacity: 0; letter-spacing: 0.18em; transform: translateY(6px); }
  to   { opacity: 1; letter-spacing: normal; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .is-revealing .site-shell,
  .is-revealing .card,
  .is-revealing .hero-title { animation: none; }
}


html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

:root {
  --paper-0: #f7f5f2;
  --paper-1: #ffffff;
  --paper-2: #f1ebe6;
  --ink-0: #2c2c2c;
  --ink-1: #6a6a6a;
  --line-0: #e6dbd0;
  --accent-0: #d6c3a3;
  --accent-dark: #3b2f2f;
  --cta-green: #22c55e;
  --bg-0: var(--paper-0);
  --bg-1: var(--paper-1);
  --bg-2: var(--paper-2);
  --surface-0: #ffffff;
  --surface-1: var(--paper-1);
  --surface-2: var(--paper-2);
  --line-soft: var(--line-0);
  --line-strong: #d8c9ba;
  --text-0: var(--ink-0);
  --text-1: #3b3531;
  --text-2: var(--ink-1);
  --gold-0: #efe2d3;
  --gold-1: var(--accent-0);
  --green-0: var(--cta-green);
  --green-1: #169b54;
  --red-0: #d1a39a;
  --red-1: #b47a72;
  --ig-0: #e1cbb8;
  --ig-1: #d4b9b4;
  --ig-2: #bca9b0;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-soft: 0 10px 20px rgba(60, 44, 34, 0.08);
  --shadow-mid: 0 16px 28px rgba(60, 44, 34, 0.1);
  --ease: 160ms cubic-bezier(0.22, 0.82, 0.34, 1);
}

body {
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-0);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  overflow-x: hidden;
}


.site-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 10px 156px;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 8px;
  z-index: 40;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--paper-1);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.topbar-main {
  min-height: 78px;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-1);
}

.topbar-core {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: var(--paper-1);
  color: var(--text-1);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color var(--ease), transform var(--ease), background var(--ease);
}

.icon-btn:hover {
  border-color: rgba(168, 142, 117, 0.6);
  transform: translateY(-1px);
  background: #fef9f4;
}

.icon-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-block {
  min-width: 0;
  text-align: center;
  justify-self: center;
}

.brand-block h1 {
  margin: 0;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-0);
}

.brand-home {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.brand-home span {
  display: inline-block;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-0);
}

.brand-home:focus-visible {
  outline: 2px solid rgba(190, 154, 122, 0.6);
  outline-offset: 4px;
  border-radius: 12px;
}

.brand-block p {
  margin: 6px auto 0;
  color: var(--text-2);
  font-size: clamp(0.78rem, 0.95vw, 0.9rem);
  font-weight: 400;
  max-width: 58vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mini-link,
.mini-pill {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-1);
  background: var(--paper-1);
}

.mini-link {
  background: var(--paper-1);
}

.mini-pill {
  background: var(--paper-1);
}

.mini-cart {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--paper-1);
  color: var(--text-0);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 0.83rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: none;
}

.mini-cart svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-cart span {
  display: none;
}

.topbar-nav-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px 12px;
}

/* Compartir sección · feature 2026-05-26 per Ana · botón compacto al lado
 * derecho del chip-rail. Mobile: solo icono (label hidden). Desktop: icono +
 * label "Compartir". Estilo "ghost" pegado al tono del topbar para no
 * dominar el chip-rail. */
.share-section-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
  flex-shrink: 0;
}
.share-section-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.22);
}
.share-section-btn:active {
  background: rgba(0, 0, 0, 0.08);
}
.share-section-btn svg {
  flex-shrink: 0;
}
.share-section-btn-label {
  white-space: nowrap;
}
@media (max-width: 640px) {
  /* Mobile: icono solo (label off) · ahorra ancho para los chips */
  .share-section-btn { padding: 8px; }
  .share-section-btn-label { display: none; }
}

.chip-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  flex-wrap: nowrap;
  padding: 0 8px;
  -webkit-overflow-scrolling: touch;
}

.chip-scroll button {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--paper-1);
  color: var(--text-1);
  padding: 0 18px;
  white-space: nowrap;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--ease), transform var(--ease), color var(--ease), background var(--ease);
  flex-shrink: 0;
}

.chip-scroll button:hover {
  border-color: rgba(190, 154, 122, 0.8);
  color: var(--text-0);
  transform: translateY(-1px);
}

.chip-scroll button.active {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #ffffff;
  font-weight: 500;
}

.chip-scroll button.chip-on-request {
  border-color: var(--accent-0);
  color: var(--text-1);
  background: var(--paper-1);
}

.chip-scroll button.chip-on-request.active {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #ffffff;
}

.chip-filter-btn {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--paper-1);
  color: var(--text-1);
  padding: 0 16px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip-filter-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-strip {
  margin: 8px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.service-strip {
  display: none;
}

.service-copy {
  min-width: 0;
}

.service-kicker {
  margin: 0 0 6px;
  color: #8ea1c2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.875rem;
  font-weight: 500;
}

.service-summary {
  margin: 0;
  color: #dbe7f8;
  font-size: 0.9rem;
  line-height: 1.35;
}

.service-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.service-btn {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  padding: 0 16px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--ease), border-color var(--ease), background var(--ease);
}

.service-btn:hover {
  transform: translateY(-1px);
}

.direct-product-status {
  margin: 2px 0 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: #fffaf4;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.direct-product-status.is-warn {
  border-color: rgba(201, 164, 116, 0.55);
  background: #fff4e6;
}

.direct-product-status.is-error {
  border-color: rgba(199, 104, 104, 0.55);
  background: #ffecec;
}

.direct-product-kicker {
  margin: 0 0 6px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.875rem;
  font-weight: 500;
}

.direct-product-status h2 {
  margin: 0 0 6px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.direct-product-status p {
  margin: 0;
  color: var(--text-1);
  line-height: 1.45;
}

.direct-product-actions {
  display: flex;
  justify-content: flex-end;
}

.service-btn-primary {
  background: var(--paper-1);
  border-color: rgba(162, 255, 205, 0.48);
  color: #f5fff9;
}

.service-btn-secondary {
  background: #f7eee4;
  color: var(--text-1);
}

.pill-reference {
  border-color: rgba(201, 164, 116, 0.45);
  background: rgba(201, 164, 116, 0.18);
  color: #7a5434;
}

.pill {
  min-height: 35px;
  border-radius: 999px;
  border: 1px solid rgba(191, 168, 144, 0.6);
  background: #fffaf4;
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  max-width: min(100%, 460px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-sync.sync-ok {
  border-color: rgba(111, 179, 155, 0.6);
  background: rgba(111, 179, 155, 0.18);
  color: #3d6b5b;
}

.pill-sync.sync-error {
  border-color: rgba(199, 104, 104, 0.6);
  background: rgba(212, 120, 120, 0.18);
  color: #8a4c4a;
}

.catalog-toolbar {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: #fffdfb;
  padding: 12px;
  margin-top: 8px;
  transition: max-height var(--ease), opacity var(--ease), transform var(--ease), margin var(--ease), padding var(--ease),
    border-color var(--ease), box-shadow var(--ease);
}

.catalog-toolbar.toolbar-collapsed {
  display: none;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  overflow: hidden;
  pointer-events: none;
  box-shadow: none;
}

.catalog-toolbar.is-open {
  display: block;
  max-height: 460px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  border-color: var(--line-soft);
  box-shadow: var(--shadow-soft);
}

.toolbar-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.toolbar-title p {
  margin: 0;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.875rem;
  font-weight: 500;
}

.toolbar-title h2 {
  margin: 6px 0 0;
  font-size: 1.05rem;
}

.toolbar-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ghost-btn,
.solid-btn {
  min-height: 44px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--ease), border-color var(--ease), filter var(--ease), background var(--ease);
}

.ghost-btn {
  border: 1px solid var(--line-soft);
  background: #fffaf4;
  color: var(--text-1);
  padding: 0 14px;
}

.ghost-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(190, 154, 122, 0.8);
}

.solid-btn {
  border: 1px solid transparent;
  background: linear-gradient(130deg, var(--gold-0), var(--gold-1));
  color: #241b0b;
  padding: 0 16px;
  box-shadow: 0 12px 24px rgba(223, 182, 95, 0.28);
}

.solid-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.toolbar-panel {
  margin-top: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: #fffaf4;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.toolbar-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.toolbar-kicker {
  margin: 0;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.875rem;
  font-weight: 500;
}

.toolbar-panel-header h3 {
  margin: 5px 0 0;
  font-size: 1rem;
}

.toolbar-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.filter-field-full {
  grid-column: 1 / -1;
}

.filter-field {
  display: grid;
  gap: 6px;
}

.filter-field span {
  color: var(--text-2);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.filter-field select {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: #fffdfb;
  color: var(--text-0);
  font-family: inherit;
  font-size: 0.93rem;
  padding: 0 12px;
}

.filter-field select:focus-visible {
  outline: 2px solid rgba(243, 211, 129, 0.45);
  outline-offset: 1px;
}

.toolbar-actions {
  display: flex;
  justify-content: flex-end;
}

.toolbar-backdrop {
  display: none;
}

.main-catalog {
  margin-top: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  transition: opacity 0.15s ease, transform 0.15s ease;
  contain: layout;
}

.card {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  overflow: hidden;
  background: #fffdfb;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(193, 162, 133, 0.9);
  box-shadow: 0 18px 44px rgba(77, 55, 35, 0.18), 0 0 0 1px rgba(193, 162, 133, 0.25);
}

.card.is-sold {
  border-color: rgba(231, 118, 128, 0.55);
}

.media-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #f2e7dd;
  overflow: hidden;
}

.media-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(196, 165, 135, 0.16) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover .media-wrap::before {
  opacity: 1;
}

/* 2026-05-17: breathing dual-tone parchment + soft gold glow.
   Distintivo del shimmer horizontal estándar de e-commerce: la card
   "respira" entre 2 tonos de parchment y un anillo dorado MUY sutil
   en el borde pulsa al unísono. Evoca un boutique en silencio, no
   un loading bar. Sincronizado a 2.6s para sentirse natural. */
.media-wrap.is-loading {
  animation: card-breathing-bg 2.6s ease-in-out infinite;
}

.media-wrap.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  animation: card-breathing-glow 2.6s ease-in-out infinite;
}

@keyframes card-breathing-bg {
  0%, 100% { background-color: #f2e7dd; }
  50%      { background-color: #e0cdb3; }
}

@keyframes card-breathing-glow {
  0%, 100% {
    box-shadow:
      inset 0 0 0 1px rgba(214, 195, 163, 0),
      inset 0 0 0 rgba(214, 195, 163, 0);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(190, 154, 122, 0.32),
      inset 0 0 28px rgba(214, 195, 163, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .media-wrap.is-loading,
  .media-wrap.is-loading::after { animation: none; }
}

.media-wrap.sold::before {
  content: "Agotado";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(11, 14, 22, 0.64);
  color: #f7fafc;
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: auto;
}

.badge-row {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: calc(100% - 16px);
}

.badge {
  min-height: 27px;
  border-radius: 999px;
  padding: 4px 10px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: none;
  background: #efe2d6;
  border: 1px solid #e3d4c3;
  color: #3b2f2f;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-stock {
  text-transform: none;
  letter-spacing: 0.02em;
  max-width: 122px;
}

.badge.visible {
  display: inline-flex;
}

.badge-new {
  background: #efe2d6;
  color: #3b2f2f;
  animation: none;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: none;
  }
}

.badge-hq {
  border: 1px solid #e3d4c3;
  background: #efe2d6;
  color: #3b2f2f;
  transition: all 0.2s ease;
}

.card:hover .badge-hq {
  border-color: #e3d4c3;
  background: #efe2d6;
  transform: none;
}

.badge-stock {
  border: 1px solid #e3d4c3;
  background: #efe2d6;
  color: #3b2f2f;
}

.badge-stock.status-agotado {
  border-color: #e3d4c3;
  background: #efe2d6;
  color: #3b2f2f;
}

.badge-stock.status-preventa {
  border-color: #e3d4c3;
  background: #efe2d6;
  color: #3b2f2f;
}

.badge-stock.status-bajo-pedido {
  border-color: #e3d4c3;
  background: #efe2d6;
  color: #3b2f2f;
}

.badge-demo {
  border: 1px solid #e3d4c3;
  background: #efe2d6;
  color: #3b2f2f;
}

.badge-limited {
  border: 1px solid #e3d4c3;
  background: #efe2d6;
  color: #3b2f2f;
  font-weight: 500;
}

.badge-popular {
  border: 1px solid #e3d4c3;
  background: #efe2d6;
  color: #3b2f2f;
  font-weight: 500;
}

@media (max-width: 640px) {
  .badge-row {
    gap: 4px;
    max-width: calc(100% - 18px);
  }

  .badge {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 0.875rem;
    max-width: 92px;
    letter-spacing: 0.03em;
  }

  .badge-stock {
    max-width: 118px;
    font-size: 0.875rem;
  }
}

/* 2026-05-17 v1: Net-a-Porter pattern — gesture-first card navigation
   (tap-half + swipe) with minimal dots indicator. Arrows hidden.
   2026-05-21 v2: REGRESIÓN reportada por la clienta (Ana, anashopmx.com) ·
   sin arrows visibles, las clientas no descubren que el grid permite
   ver más fotos sin abrir el detalle. Net-a-Porter SÍ muestra arrows
   en grid hover (desktop) + dots indicator visible en mobile. Aquí
   restauramos las arrows con estilo minimal + low-opacity default +
   full-opacity on hover (desktop) o always-visible-subtle (mobile). */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  background: rgba(58, 44, 35, 0.55);
  color: #fff7ef;
  font-size: 18px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;             /* hidden until card hover (desktop) */
  transition: opacity 160ms ease, background 160ms ease, transform 120ms ease;
  z-index: 4;             /* arriba de .media-gestures (z=3) si se mezcla */
  padding: 0;
  font-weight: 700;
}

.carousel-btn.left  { left: 8px; }
.carousel-btn.right { right: 8px; }

/* Desktop: aparecen al hover del card · UX clásica de e-commerce. */
.card:hover .carousel-btn { opacity: 0.78; }
.carousel-btn:hover {
  opacity: 1;
  background: rgba(58, 44, 35, 0.75);
  transform: translateY(-50%) scale(1.08);
}

/* Mobile (touch · no hover): siempre visibles a baja opacidad porque
   sin hover-state las clientas no las descubrirían. Diseño Net-a-Porter
   en móvil mantiene chevrons sutiles permanentes + swipe. */
@media (hover: none) {
  .carousel-btn { opacity: 0.62; }
  .card:hover .carousel-btn { opacity: 0.62; }
}

/* Esconderlas en cards con UNA sola imagen · no tiene sentido el control. */
.card.is-single-image .carousel-btn { display: none; }

/* Gesture overlay: invisible tap targets for prev/next halves of the image.
   Sits above the image, below the dots. Stops click from opening the modal
   on accidental swipe-end. */
.media-gestures {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  pointer-events: none; /* enabled per half via children */
  z-index: 3;
}
.media-gestures > button {
  pointer-events: auto;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  /* Hint chevron on hover (desktop only) — fades in to confirm interactivity. */
  position: relative;
  outline: none;
}
.media-gestures > button::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(34, 24, 18, 0.42);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='15 6 9 12 15 18'/></svg>");
  background-position: center;
  background-size: 14px 14px;
  background-repeat: no-repeat;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.media-gestures > button.gesture-prev::after { left: 8px;  }
.media-gestures > button.gesture-next::after {
  right: 8px;
  transform: translateY(-50%) scaleX(-1);
}
.card:hover .media-gestures > button::after,
.product-modal-media:hover .media-gestures > button::after { opacity: 0.85; }
@media (hover: none) {
  /* Mobile: render chevron permanently faded so users discover the tap zones. */
  .media-gestures > button::after { opacity: 0.55; }
}

/* 2026-05-17 v6: explicit lightbox trigger ("lupita +"). Sits on the modal
   media wrap with z-index above .media-gestures (z=3), so it stays clickable
   even when the tap-half overlay covers the photo. Net-a-Porter convention:
   single discreet glyph in top-right, glass-blur background for legibility
   over any photo. Renders only inside the product modal, not on grid cards. */
.lightbox-trigger {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(34, 24, 18, 0.62);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.96);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
  pointer-events: auto;
  opacity: 0.85;
}
.lightbox-trigger svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.lightbox-trigger:hover,
.lightbox-trigger:focus-visible {
  transform: scale(1.06);
  background: rgba(34, 24, 18, 0.82);
  opacity: 1;
  outline: none;
}
@media (hover: none) {
  .lightbox-trigger { opacity: 0.92; }
}

/* Minimal dots indicator — appears only when >1 image. */
.media-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 4;
  pointer-events: none;
}
.media-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(58, 44, 35, 0.34);
  transition: background 0.25s ease, transform 0.25s ease;
}
.media-dots span.is-active {
  background: rgba(58, 44, 35, 0.92);
  transform: scale(1.25);
}

/* Hide dots when there's only one image. */
.media-dots[data-count="1"],
.media-dots[data-count="0"] { display: none; }

.card-copy {
  background: #fdf8f3;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
}

.product-name {
  margin: 6px 0 0;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  text-transform: uppercase;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #3b2c24;
  order: 2;
}

.product-price {
  margin: 0;
  color: #4a3529;
  font-size: 19px;
  font-family: "Playfair Display", "Times New Roman", serif;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  order: 1;
}

.product-category {
  margin: 5px 0 0;
  color: #6c5a52;
  font-size: 0.93rem;
  order: 3;
}

.product-status {
  display: none;
}

.card.is-sold .card.is-on-request {
  border-color: rgba(124, 169, 255, 0.42);
}

.card.is-reference {
  box-shadow: 0 18px 36px rgba(10, 15, 30, 0.18);
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-soft);
  border-radius: 16px;
  background: #fffaf4;
  padding: 30px 18px;
  text-align: center;
}

.empty-state h3 {
  margin: 0;
  font-size: 1.34rem;
}

.empty-state p {
  margin: 8px 0 0;
  color: var(--text-2);
}

.empty-state::before {
  content: "";
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M30 40 L30 80 C30 85 32 87 37 87 L63 87 C68 87 70 85 70 80 L70 40' fill='none' stroke='%23f8da94' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M37 35 Q50 25 63 35' fill='none' stroke='%23f8da94' stroke-width='5' stroke-linecap='round'/%3E%3Ccircle cx='50' cy='60' r='8' fill='%23f8da94' opacity='0.3'/%3E%3C/svg%3E");
  background-size: contain;
  opacity: 0.4;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.catalog-banner,
.social-proof,
.purchase-flow,
.special-request,
.faq-section,
.site-footer {
  margin-top: 40px;
  padding: 24px 16px;
  background: transparent;
}

.catalog-banner-inner,
.social-proof-card,
.purchase-flow-inner,
.special-card,
.faq-card,
.footer-inner {
  text-align: center;
  background: var(--paper-1);
  border: 1px solid var(--line-0);
  box-shadow: var(--shadow-soft);
}

.catalog-banner-inner {
  text-align: center;
  padding: 14px 14px;
  background: #fff7ef;
}

.catalog-banner-inner h2 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  color: var(--text-0);
}

.catalog-banner-inner p {
  margin: 8px auto 0;
  max-width: 940px;
  color: var(--text-2);
  font-size: 0.9rem;
}

.social-proof-card {
  padding: 14px 16px;
  background: #fffdfb;
}

.social-proof-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.875rem;
  font-weight: 500;
  color: #8a6a52;
}

.social-proof-card h2 {
  margin: 8px 0 0;
  font-size: clamp(1.4rem, 2.4vw, 2.05rem);
}

.social-proof-card p {
  margin: 6px 0 0;
  color: #5a3b2b;
}

.social-proof-card a {
  margin-top: 10px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid #d7c2ae;
  background: var(--paper-1);
  color: #3b2c24;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0 15px;
  font-weight: 500;
}

.purchase-flow-inner {
  padding: 16px;
  background: #fffdfb;
}

.purchase-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.875rem;
  font-weight: 500;
  color: #8a6a52;
}

.purchase-flow-inner h2 {
  margin: 8px 0 5px;
  font-size: clamp(1.45rem, 2.4vw, 2.16rem);
}

.purchase-intro {
  margin: 0;
  color: #5a3b2b;
  max-width: 920px;
}

.purchase-steps {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.purchase-step {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: #fffaf4;
  padding: 12px;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: flex-start;
}

.purchase-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 12px;
  border: 1px solid rgba(201, 164, 116, 0.45);
  background: linear-gradient(145deg, rgba(228, 205, 175, 0.6), rgba(201, 164, 116, 0.35));
  color: #7a5434;
  display: grid;
  place-items: center;
}

.purchase-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.purchase-step h3 {
  margin: 0;
  font-size: 0.98rem;
}

.purchase-step p {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 0.9rem;
}

.special-card {
  padding: 16px;
  background:
    radial-gradient(860px 240px at 80% -58%, rgba(232, 202, 166, 0.28), transparent 56%),
    #fffdfb;
}

.special-card h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.3vw, 2.08rem);
}

.special-card p {
  margin: 8px 0 0;
  color: var(--text-2);
  max-width: 860px;
}

.special-btn {
  margin-top: 14px;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(164, 255, 205, 0.52);
  background: linear-gradient(130deg, var(--green-0), var(--green-1));
  color: #f3fff8;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.faq-card {
  background: var(--paper-1);
  border: 1px solid var(--line-0);
  box-shadow: var(--shadow-soft);
}

.faq-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 12px;
  align-items: end;
}

.faq-kicker {
  margin: 0;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.875rem;
  font-weight: 500;
}

.faq-card h2 {
  margin: 6px 0 0;
  font-size: clamp(1.2rem, 2.1vw, 1.72rem);
}

.faq-intro {
  margin: 0;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.45;
}

.faq-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.faq-item {
  background: #FDF8F3;
  border: 1px solid var(--line-0);
  color: var(--ink-0);
  border-radius: 14px;
}

.faq-item h3 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.35;
  color: var(--text-0);
}

.faq-item p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.5;
}

.faq-more-btn {
  margin-top: 14px;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: #fffaf4;
  color: var(--text-1);
  padding: 0 18px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--ease), transform var(--ease), background var(--ease);
}

.faq-more-btn:hover {
  border-color: rgba(190, 154, 122, 0.8);
  background: #fffaf4;
  transform: translateY(-1px);
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.footer-logo {
  font-family: "Sora", sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-0);
  letter-spacing: 0.02em;
}

.footer-tagline {
  margin: 0;
  color: var(--text-2);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: #fffaf4;
  color: var(--text-1);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.footer-social:hover {
  border-color: rgba(190, 154, 122, 0.8);
  background: #f6e8da;
  transform: translateY(-2px);
}

.footer-trust {
  margin: 0;
  color: var(--text-2);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.footer-copy {
  margin: 0;
  color: var(--text-2);
  font-size: 0.82rem;
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: grid;
  justify-items: end;
  align-items: flex-end;
  gap: 10px;
  pointer-events: auto;
  transition: transform var(--ease), opacity var(--ease);
}

.floating-cta-actions {
  display: grid;
  gap: 10px;
  pointer-events: auto;
}

.floating-cta.is-hidden {
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
}

.floating-cta-toggle {
  display: none;
  pointer-events: auto;
  border: 1px solid var(--line-soft);
  background: var(--paper-1);
  color: var(--text-0);
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform var(--ease), border-color var(--ease), opacity var(--ease);
}

.floating-cta-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 195, 163, 0.7);
}

.whatsapp-fab,
.instagram-fab {
  pointer-events: auto;
  min-height: 58px;
  max-width: min(92vw, 320px);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  text-decoration: none;
  border: 1px solid var(--line-0);
  box-shadow: var(--shadow-soft);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.whatsapp-fab:hover,
.instagram-fab:hover {
  transform: translateY(-2px);
}

.whatsapp-fab {
  background: var(--cta-green);
  border-color: rgba(34, 197, 94, 0.45);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(34, 197, 94, 0.2);
}

.whatsapp-fab:hover {
  box-shadow: 0 14px 24px rgba(34, 197, 94, 0.26);
}

.instagram-fab {
  background: #f2e4d7;
  color: var(--text-0);
}

.social-fab-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.6);
}

.whatsapp-fab .social-fab-icon {
  color: #0f5132;
  background: rgba(255, 255, 255, 0.78);
}

.instagram-fab .social-fab-icon {
  color: #3b2f2f;
}

.social-fab-icon svg {
  width: 18px;
  height: 18px;
}

.social-fab-copy {
  display: grid;
  line-height: 1.1;
}

.social-fab-copy strong {
  font-size: 0.9rem;
  font-weight: 500;
}

.social-fab-copy small {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 400;
}
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(86vw, 380px);
  height: 100dvh;
  padding: 14px;
  border-right: 1px solid var(--line-soft);
  background: #fffdfb;
  transform: translateX(-103%);
  transition: transform 180ms ease;
  z-index: 65;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
  z-index: 62;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.drawer-kicker {
  margin: 0;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.875rem;
  font-weight: 500;
}

.drawer-header h3 {
  margin: 6px 0 0;
}

.drawer-links {
  display: grid;
  gap: 8px;
}

.drawer-links a,
.drawer-inline-btn {
  min-height: 44px;
  border-radius: 11px;
  border: 1px solid var(--line-soft);
  background: #fffaf4;
  color: var(--text-1);
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.92rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.drawer-foot {
  margin-top: auto;
  color: var(--text-2);
  font-size: 0.84rem;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.product-modal.open {
  display: block;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(47, 35, 26, 0.18);
  backdrop-filter: blur(6px);
}

/* 2026-05-17: monogram + pulsing dots while modal content downloads.
   Overlay sits absolute inside .product-modal-card, faded out by default
   and faded in via JS (.is-loading class) at openProductModal time. */
.modal-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: var(--paper-1);
  border-radius: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.modal-loading-overlay.is-loading {
  opacity: 1;
  pointer-events: auto;
}

.modal-loading-monogram {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--text-0);
}

.modal-loading-dots {
  display: flex;
  gap: 10px;
}

.modal-loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-0);
  opacity: 0.3;
  animation: modal-loading-pulse 1.2s ease-in-out infinite;
}

.modal-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.modal-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes modal-loading-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.15); background: var(--accent-dark); }
}

.modal-loading-text {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-2);
  font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
  .modal-loading-dots span { animation: none; opacity: 0.7; }
}

/* Skeleton loading variant (shimmer recorre la silueta).
   Comparte el patrón con .modal-loading-overlay: sits absolute encima del
   card, JS añade .is-loading al abrir el modal y la quita al onload. */
.modal-loading-skeleton {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  background: var(--paper-1);
  border-radius: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.modal-loading-skeleton.is-loading {
  opacity: 1;
  pointer-events: auto;
}

.skeleton-media {
  border-radius: 14px;
  min-height: 320px;
}

.skeleton-copy {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-top: 8px;
}

.skeleton-line {
  border-radius: 6px;
}

.skeleton-badges {
  display: flex;
  gap: 8px;
}

.skeleton-badges span {
  width: 64px;
  height: 22px;
  border-radius: 999px;
}

.skeleton-shimmer {
  position: relative;
  overflow: hidden;
  background: #f0e8df;
}

.skeleton-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 100%
  );
  animation: skeleton-shimmer-slide 1.4s linear infinite;
}

@keyframes skeleton-shimmer-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (max-width: 900px) {
  .modal-loading-skeleton {
    grid-template-columns: 1fr;
  }
  .skeleton-media { min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-shimmer::after { animation: none; }
}

.product-modal-card {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100vw - 24px));
  margin: 16px auto;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: #fffdfb;
  padding: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 18px;
  box-shadow: 0 30px 62px rgba(0, 0, 0, 0.44);
}

.product-modal-back {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #fffaf4;
  color: var(--text-1);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: none;
}

.product-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  color: #1c1c1c;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  z-index: 20;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.product-modal-close:hover,
.product-modal-close:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
  outline: none;
}

.product-modal-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.product-modal-media {
  display: grid;
  gap: 10px;
}

.modal-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(6, 12, 20, 0.8);
  color: var(--text-1);
  border: 1px solid #2f4056;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: none; /* 2026-05-17: replaced by .media-gestures overlay */
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.product-modal-media {
  position: relative;
}

.modal-carousel-btn:hover {
  background: rgba(39, 221, 127, 0.12);
  border-color: #27dd7f;
}

.modal-carousel-btn.left {
  left: 10px;
}

.modal-carousel-btn.right {
  right: 10px;
}

.product-modal-media {
  /* Parchment background visible durante el preload + crossfade entre
     fotos, para que nunca se vea blanco. */
  background: #f6ece2;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  /* 2026-05-21 v2: el container debe reservar espacio aunque el <img>
     aún no tenga src. Si solo el img tiene min-height, el container
     puede colapsar antes de que finalize() corra el setTimeout 180ms. */
  min-height: 320px;
  min-width: 200px;
}

.product-modal-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  /* 2026-05-17 v3: producto completo con letterbox parchment. Para ver
     detalle, tap sobre la foto abre un lightbox fullscreen separado
     (no escalado transform dentro del modal). */
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: #f6ece2;
  touch-action: pan-y pinch-zoom;
  cursor: zoom-in;
  transition: filter 0.2s ease, opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

/* Breathing skeleton overlay durante crossfade entre fotos (>250ms wait).
   Reusa el lenguaje visual del breathing-card-skeleton del catálogo:
   dual-tone parchment + glow dorado sutil. Coherente con el resto. */
.product-modal-media.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  border-radius: 14px;
  animation: modal-photo-breathing 1.8s ease-in-out infinite;
}

@keyframes modal-photo-breathing {
  0%, 100% {
    background: rgba(246, 236, 226, 0.0);
    box-shadow: inset 0 0 0 1px rgba(214, 195, 163, 0);
  }
  50% {
    background: rgba(232, 216, 196, 0.55);
    box-shadow:
      inset 0 0 0 1px rgba(190, 154, 122, 0.28),
      inset 0 0 32px rgba(214, 195, 163, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-modal-media.is-loading::after { animation: none; opacity: 0.5; }
}

.product-modal-media img:hover {
  filter: brightness(0.97);
}

/* Lightbox: overlay fullscreen para foto ampliada. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(20, 15, 12, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.lightbox.is-open {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Pinch-to-zoom nativo. CSS clamp para que no exceda viewport. */
  touch-action: pinch-zoom;
  cursor: zoom-out;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  border-radius: 8px;
  animation: lightbox-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 250, 244, 0.96);
  border: 0;
  color: #2c2c2c;
  cursor: pointer;
  z-index: 10001;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
  transition: transform 0.18s ease;
}
.lightbox-close:hover { transform: scale(1.06); }
.lightbox-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  fill: none;
}

@media (prefers-reduced-motion: reduce) {
  .product-modal-media img { animation: none; }
}

@media (max-width: 768px) {
  .product-modal-media img {
    min-height: 55vh;
    aspect-ratio: 4 / 5;
  }

  .product-modal-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-modal-thumbs {
    grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  }

  .product-modal-thumbs button {
    aspect-ratio: 1 / 1;
    padding: 4px;
  }

  .modal-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product-modal-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
}

.product-modal-thumbs button {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 6px;
  background: #f8f1e9;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-modal-thumbs button.active {
  border-color: var(--gold-0);
}

.product-modal-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

/* Modal carousel dots indicator */
.modal-dots-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #344861;
  transition: all 0.2s ease;
  cursor: pointer;
}

.modal-dot.active {
  background: #f8da94;
  width: 24px;
  border-radius: 4px;
}

.modal-badge-row {
  display: flex;
  gap: 8px;
  margin: 0;
  flex-wrap: wrap;
}

.modal-badge-row .badge {
  display: inline-flex;
  align-items: center;
  background: #f6ece2;
  border: 1px solid var(--line-soft);
  color: var(--text-1);
}

.modal-badge-row .badge-stock {
  background: #e7eef8;
  border-color: rgba(146, 170, 210, 0.55);
  color: #1d2b42;
}

.product-modal-copy h2 {
  margin: 8px 0 4px;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 500;
}

.product-modal-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: #fffaf4;
  align-self: stretch;
}

.modal-sku {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-price {
  margin: 0;
  font-size: 1.8rem;
  color: var(--text-0);
  font-weight: 600;
}


/* El cliente pidió eliminar textos descriptivos y priorizar características. */
.modal-description,
.modal-reference-note {
  display: none;
}

.modal-meta {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  grid-auto-rows: minmax(64px, auto);
}

.modal-meta-optional {
  display: none;
}

.modal-meta div {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fff7ef;
  padding: 9px 10px;
  display: grid;
  gap: 3px;
  min-height: 64px;
}

.modal-meta span {
  color: var(--text-2);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.modal-meta strong {
  color: var(--text-0);
}

.modal-tags {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.modal-tags span {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #f6ece2;
  color: var(--text-1);
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 500;
}

.modal-actions {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-buy-wa,
.modal-ig-link {
  min-height: 46px;
  border-radius: 12px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 500;
}

.modal-buy-wa {
  background: linear-gradient(130deg, var(--green-0), var(--green-1));
  color: #f2fff8;
}

.modal-ig-link {
  border: 1px solid var(--line-soft);
  background: #fffaf4;
  color: var(--text-1);
}

.search-disabled .toolbar-title p::after {
  content: " | compra guiada";
}

@media (min-width: 901px) {
  .toolbar-panel-header #filters-close {
    display: none;
  }
}

@media (max-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1060px) {
  .site-shell {
    padding: 9px 9px 150px;
  }

  .topbar-main {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .topbar-actions {
    justify-content: center;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .purchase-steps {
    grid-template-columns: 1fr;
  }

  .product-modal-card {
    grid-template-columns: 1fr;
  }

  .modal-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-shell {
    padding: 8px 8px 144px;
  }

  .topbar {
    top: 6px;
  }

  .topbar-main {
    min-height: auto;
    padding: 10px 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-items: stretch;
  }

  .topbar.is-condensed .topbar-main {
    padding: 7px 8px;
  }

  .topbar-core {
    width: 100%;
    gap: 7px;
  }

  .topbar-actions {
    display: inline-flex;
    justify-content: flex-end;
    width: auto;
    order: 0;
  }

  .topbar-actions .mini-link,
  .topbar-actions .mini-pill {
    display: none;
  }

  .mini-cart {
    margin-left: 0;
  }

  .brand-block h1 {
    font-size: clamp(1.5rem, 6.8vw, 1.95rem);
  }

  .brand-block p {
    display: none !important;
  }

  .topbar.is-condensed .brand-block h1 {
    font-size: clamp(1.24rem, 5.6vw, 1.5rem);
  }

  .topbar-nav-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 10px 10px;
    align-items: center;
    position: sticky;
    top: 72px;
    z-index: 39;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
  }

  .topbar.is-condensed .topbar-nav-row {
    padding: 6px 8px 7px;
    top: 58px;
  }

  .chip-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 11px;
    font-size: 0.82rem;
    border-radius: 11px;
  }

  .chip-scroll button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .pill {
    min-height: 34px;
    font-size: 0.875rem;
    padding: 0 10px;
    max-width: 88vw;
  }

  .status-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    margin: 5px 0 5px;
    padding-bottom: 2px;
  }

  .pill.is-hidden-mobile-pill {
    display: none;
  }

  .catalog-toolbar {
    margin-top: 5px;
    padding: 6px 8px;
    border-radius: 12px;
    background: var(--paper-1);
  }

  .catalog-toolbar.is-open {
    max-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
    box-shadow: none;
  }

  .catalog-toolbar.toolbar-collapsed {
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
    overflow: hidden;
    pointer-events: none;
  }

  .toolbar-head {
    display: none;
  }

  .toolbar-head-actions {
    width: auto;
  }

  .toolbar-head-actions .ghost-btn {
    width: auto;
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.875rem;
    justify-content: center;
  }

  .toolbar-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    z-index: 81;
    max-height: 84vh;
    overflow: auto;
    transform: translateY(104%);
    transition: transform var(--ease);
    box-shadow: 0 -24px 50px rgba(59, 47, 47, 0.12);
    padding: 14px 12px 14px;
    display: grid;
  }

  .toolbar-panel.open {
    transform: translateY(0);
  }

  .toolbar-panel-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--paper-1);
    padding-bottom: 8px;
  }

  .toolbar-filters {
    grid-template-columns: 1fr;
  }

  .toolbar-actions {
    position: sticky;
    bottom: 0;
    background: transparent;
    padding-top: 10px;
  }

  .toolbar-actions .solid-btn {
    width: 100%;
  }

  .product-modal-backdrop {
  background: rgba(44, 36, 28, 0.18);
}

.product-modal-card {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  border-radius: 18px;
  background: var(--paper-1);
  box-shadow: 0 24px 48px rgba(59, 47, 47, 0.18);
}

.modal-carousel-btn {
  background: rgba(59, 47, 47, 0.65);
  border-color: rgba(214, 195, 163, 0.5);
  color: #ffffff;
}

.product-modal-copy h2 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.modal-meta div {
  border: 1px solid var(--line-0);
  border-radius: 12px;
  background: #fdf8f3;
  padding: 10px;
}

.modal-meta span {
  color: var(--text-2);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.modal-meta strong {
  font-weight: 500;
  color: var(--text-0);
}

.modal-actions {
  margin-top: 12px;
  gap: 10px;
}

.modal-buy-wa {
  background: var(--accent-dark);
  color: #ffffff;
  border: 1px solid var(--accent-dark);
  font-weight: 500;
}

.modal-ig-link {
  background: transparent;
  border: 1px solid var(--line-0);
  color: var(--text-0);
  font-weight: 500;
}

.product-modal-thumbs button {
  background: #fdf8f3;
  border-color: var(--line-0);
}

.product-modal-thumbs img {
  object-fit: contain;
}

.card.is-direct-focus {
  box-shadow: 0 18px 36px rgba(59, 47, 47, 0.2), 0 0 0 2px rgba(214, 195, 163, 0.6);
}

.card:focus-visible,
.icon-btn:focus-visible,
.chip-scroll button:focus-visible,
.hero-btn:focus-visible,
.whatsapp-fab:focus-visible,
.instagram-fab:focus-visible,
.modal-buy-wa:focus-visible,
.modal-ig-link:focus-visible {
  outline: 2px solid rgba(214, 195, 163, 0.9);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .hero-btn,
  .whatsapp-fab,
  .instagram-fab {
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .hero-banner {
    padding: 22px 16px;
  }

  .hero-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .floating-cta {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    gap: 6px;
  }

  /* 2026-05-17: cliente reportó que los FAB siguen tapando productos en
     mobile aún compactados. Patrón premium (Mr Porter / Net-a-Porter):
     por default mobile el FAB es solo un icono circular (52px) — el texto
     se oculta. Cuando el usuario lo toca, expande temporalmente (clase
     .is-expanded vía JS por 2.5 s). Combinado con scroll-aware hide
     (.floating-cta.is-hidden cuando el usuario scrollea hacia abajo). */
  .whatsapp-fab,
  .instagram-fab {
    width: 52px;
    min-height: 52px;
    max-width: 52px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
    justify-content: center;
    overflow: hidden;
    transition:
      width 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
      max-width 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
      padding 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
      border-radius 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
      transform 0.25s ease,
      box-shadow 0.25s ease;
  }

  .whatsapp-fab .social-fab-copy,
  .instagram-fab .social-fab-copy {
    display: none;
  }

  .whatsapp-fab.is-expanded,
  .instagram-fab.is-expanded {
    width: auto;
    max-width: 220px;
    padding: 6px 14px 6px 8px;
    gap: 8px;
    border-radius: 999px;
    justify-content: flex-start;
  }

  .whatsapp-fab.is-expanded .social-fab-copy,
  .instagram-fab.is-expanded .social-fab-copy {
    display: grid;
  }

  .whatsapp-fab .social-fab-icon,
  .instagram-fab .social-fab-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }

  .whatsapp-fab .social-fab-icon svg,
  .instagram-fab .social-fab-icon svg {
    width: 16px;
    height: 16px;
  }

  .whatsapp-fab .social-fab-copy strong,
  .instagram-fab .social-fab-copy strong {
    font-size: 0.85rem;
  }

  /* Hide the subtitle line (@ana.shoptravelmx / Catálogo activo) — adds
     noise without value when space is tight. */
  .whatsapp-fab .social-fab-copy small,
  .instagram-fab .social-fab-copy small {
    display: none;
  }
}

.load-more-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 16px;
  margin-top: 24px;
  gap: 12px;
}

/* 2026-04-23 — reservation timer pill on product card. WhatsApp-native
   flow: admin reserves a product during a chat, other customers browsing
   the storefront see "Apartado hasta HH:MM" so they don't duplicate
   inquiries. Positioned top-left of media area; same stacking as stock
   badges (top-right) so they don't collide. */
.product-card .reserved-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 10px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #5a3d2b;
  background: rgba(253, 243, 232, 0.96);
  border: 1px solid #e7d2b8;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.product-card.is-reserved .media-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 1;
}

/* 2026-04-23 UX Bug #2: inline notice that replaces the blocking alert()
   when "load more products" fails. Styled as advisory (not alarming) so the
   customer understands they can retry without panic. */
.load-more-notice {
  max-width: 480px;
  padding: 10px 16px;
  font-size: 14px;
  color: #5a3d2b;
  background: #fdf3e8;
  border: 1px solid #e7d2b8;
  border-radius: 8px;
  text-align: center;
}

#load-more-btn {
  min-width: 200px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 500;
  background: var(--accent-dark);
  color: #ffffff;
  border: 1px solid var(--accent-dark);
  border-radius: 999px;
  cursor: pointer;
}





/* === Old-money storefront overrides (v2) === */
:root {
  --paper-0: #F7F5F2;
  --paper-1: #FFFFFF;
  --paper-2: #F1EBE6;
  --ink-0: #2C2C2C;
  --ink-1: #6A6A6A;
  --line-0: #E6DBD0;
  --accent-0: #D6C3A3;
  --accent-dark: #3B2F2F;
}

body {
  background: var(--paper-0);
  color: var(--ink-0);
  font-weight: 400;
}

.topbar {
  border: 1px solid var(--line-0);
  background: var(--paper-1);
  box-shadow: 0 6px 16px rgba(59, 47, 47, 0.06);
}

.topbar-main {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-0);
}

.brand-home span {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-0);
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
}

.brand-block p {
  color: var(--ink-1);
  font-size: clamp(0.78rem, 0.95vw, 0.9rem);
  font-weight: 400;
  display: none;
}

.topbar-actions {
  gap: 10px;
}

.mini-cart {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(59, 47, 47, 0.12);
}

/* 2026-05-16: previously this hid the tab nav in mobile and the client
   couldn't reach "Bajo pedido". Restored as a horizontal scroll strip. */
.topbar-nav-row {
  display: block;
  padding: 6px 8px 8px;
}

.chip-scroll {
  justify-content: flex-start;
  overflow-x: auto;
  gap: 8px;
}

.chip-scroll button {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--paper-1);
  color: var(--ink-0);
  font-weight: 500;
  border: 1px solid var(--line-0);
}

.chip-scroll button.active {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  font-weight: 500;
}

.chip-filter-btn {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-0);
  background: var(--paper-1);
  color: var(--ink-0);
  font-weight: 500;
}

.hero-banner {
  border-radius: 0;
  padding: 22px 0 10px;
  margin: 10px auto 8px;
  max-width: 1100px;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-inner {
  display: grid;
  gap: 10px;
  justify-items: center;
  max-width: 560px;
  margin: 0 auto;
}

.hero-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.875rem;
  color: var(--ink-1);
}

.hero-title {
  margin: 0;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color: var(--ink-0);
  letter-spacing: 0.02em;
  text-transform: none;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-1);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.hero-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line-0);
  border-radius: 999px;
  background: #fdf8f3;
  color: var(--ink-0);
  cursor: pointer;
  font-family: "Sora", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  min-height: 42px;
  padding: 8px 24px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 14px rgba(59, 47, 47, 0.08);
}

.hero-btn-primary {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(59, 47, 47, 0.22);
}

.hero-btn-secondary {
  border-color: var(--accent-0);
  color: var(--ink-0);
  background: #ffffff;
}

.status-strip {
  margin: 8px 0 10px;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.status-strip .pill {
  flex: 0 0 auto;
}

.status-strip .pill#catalog-count {
  flex: 0 0 auto;
}

.status-strip .status-filter-btn {
  flex: 0 0 auto;
}
.status-strip .pill {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--ink-1);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.status-strip .pill:not(#catalog-count) {
  display: none !important;
}

#reference-pill,
#active-filter,
#sync-pill {
  display: none !important;
}

.status-filter-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  border: 1px solid var(--line-0);
  background: var(--paper-1);
  color: var(--ink-0);
}

.mini-cart {
  min-width: 38px;
  padding: 0;
  justify-content: center;
  background: var(--paper-1);
  border-color: var(--line-0);
  box-shadow: none;
  color: var(--ink-0);
}

.mini-cart span {
  display: none;
}

.mini-cart svg {
  stroke-width: 1.6;
}

.product-grid {
  gap: 22px;
}

.card {
  border: 1px solid var(--line-0);
  border-radius: 20px;
  background: var(--paper-1);
  box-shadow: 0 8px 18px rgba(59, 47, 47, 0.07);
}

.media-wrap {
  background: #efe7df;
}

.badge {
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #efe2d6;
  border: 1px solid #e3d4c3;
  color: #3b2f2f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.875rem;
  font-weight: 400;
}

.badge-stock,
.badge-stock.status-agotado,
.badge-stock.status-preventa,
.badge-stock.status-bajo-pedido {
  background: #efe2d6;
  border: 1px solid #e3d4c3;
  color: #3b2f2f;
  text-transform: none;
  letter-spacing: 0.02em;
  max-width: 124px;
}

.card-copy {
  background: var(--paper-1);
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-category {
  order: 1;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-1);
  font-weight: 400;
  margin: 0;
}

.product-name {
  order: 2;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 400;
  font-size: 0.98rem;
  color: var(--ink-0);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.16;
  margin: 0;
}

.product-price {
  order: 3;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 400;
  font-size: 0.96rem;
  color: var(--ink-0);
  letter-spacing: 0.04em;
  text-transform: none;
  margin: 0;
}

@media (max-width: 640px) {
  .product-category {
    font-size: 0.875rem;
    letter-spacing: 0.16em;
  }

  .product-name {
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0.06em;
  }

  .product-price {
    font-size: 0.9rem;
  }
}

.product-status {
  display: none;
}

.modal-price,
.product-modal-copy h2 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 500;
  color: var(--ink-0);
  text-transform: none;
}

.modal-meta div {
  background: #fdf8f3;
  border-color: var(--line-0);
}

.modal-buy-wa {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.modal-ig-link {
  border-color: var(--line-0);
  color: var(--ink-0);
}

.product-modal-thumbs button {
  background: #fdf8f3;
  border-color: var(--line-0);
}

.product-modal-thumbs img {
  object-fit: contain;
}

.faq-section {
  background: transparent;
}

.faq-card {
  background: var(--paper-1);
  border: 1px solid var(--line-0);
}

.whatsapp-fab {
  background: var(--cta-green);
  border-color: rgba(34, 197, 94, 0.45);
  color: #fff;
}

.instagram-fab {
  background: #f2e4d7;
  color: var(--accent-dark);
}

@media (max-width: 900px) {
  .hero-banner {
    padding: 16px 8px 6px;
  }

  .hero-title {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .status-strip {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .product-modal-card {
    width: min(calc(100vw - 12px), 560px);
    max-height: calc(100vh - 12px);
    margin: 6px auto;
    padding: 12px;
    gap: 12px;
    grid-template-columns: 1fr;
    align-content: start;
  }

  .product-modal-media {
    gap: 10px;
  }

  .product-modal-media img {
    min-height: min(54vh, 460px);
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .product-modal-thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(84px, 92px);
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .product-modal-thumbs button {
    width: 100%;
    min-height: 84px;
    aspect-ratio: 1 / 1;
  }

  .product-modal-copy {
    padding: 12px;
    gap: 10px;
  }

  .product-modal-copy h2 {
    font-size: clamp(1.35rem, 8vw, 1.8rem);
    line-height: 1.04;
    letter-spacing: 0.02em;
  }

  .modal-sku {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
  }

  .modal-price {
    font-size: 1.7rem;
  }

  .modal-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .modal-meta div {
    min-height: 58px;
    padding: 9px 10px;
  }

  .modal-tags {
    gap: 6px;
  }

  .modal-tags span {
    font-size: 0.875rem;
    padding: 4px 9px;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .modal-buy-wa,
  .modal-ig-link {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  .product-modal-card {
    width: min(calc(100vw - 8px), 100vw);
    max-height: calc(100vh - 8px);
    margin: 4px auto;
    padding: 10px;
    gap: 10px;
    border-radius: 16px;
  }

  .product-modal-media img {
    min-height: 44vh;
    max-height: 56vh;
  }

  .product-modal-copy {
    padding: 8px 4px 4px;
    gap: 8px;
  }

  .product-modal-copy h2 {
    font-size: clamp(1.15rem, 8.6vw, 1.5rem);
    line-height: 1.05;
    letter-spacing: 0.015em;
  }

  .modal-price {
    font-size: 1.45rem;
  }

  .modal-meta {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .modal-meta div {
    min-height: 0;
    padding: 8px 10px;
  }

  .modal-tags {
    gap: 5px;
  }

  .modal-tags span,
  .modal-badge-row .badge {
    font-size: 0.875rem;
    padding: 4px 8px;
  }

  .product-modal-thumbs {
    grid-auto-columns: 78px;
    gap: 6px;
  }

  .product-modal-thumbs button {
    min-height: 78px;
    padding: 4px;
  }

  .product-modal-close {
    width: 40px;
    height: 40px;
  }
}

/* === Product modal structural recovery === */
.product-modal-card {
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  align-items: start;
}

.product-modal-media,
.product-modal-copy {
  min-width: 0;
}

.product-modal-copy {
  gap: 10px;
}

.product-modal-copy h2 {
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  line-height: 1.04;
  letter-spacing: 0.04em;
  text-wrap: balance;
}

.modal-price {
  font-size: clamp(1.55rem, 2.2vw, 1.95rem);
}

.modal-tags span {
  max-width: 100%;
}

@media (min-width: 901px) {
  .product-modal-copy {
    position: sticky;
    top: 0;
    align-self: start;
  }
}

@media (max-width: 900px) {
  .product-modal-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: min(calc(100vw - 12px), 560px) !important;
    max-height: calc(100vh - 10px) !important;
    margin: 5px auto !important;
    padding: 12px !important;
    gap: 10px !important;
    align-content: start !important;
  }

  .product-modal-media,
  .product-modal-copy {
    width: 100%;
    min-width: 0;
  }

  .product-modal-media {
    order: 1;
    gap: 8px;
  }

  .product-modal-copy {
    order: 2;
    position: static !important;
    padding: 4px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .product-modal-media img {
    min-height: 0 !important;
    max-height: min(56vh, 480px);
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }

  .product-modal-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    grid-auto-flow: unset !important;
    grid-auto-columns: unset !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .product-modal-thumbs button {
    flex: 0 0 84px;
    width: 84px;
    min-height: 84px !important;
    aspect-ratio: 1 / 1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .modal-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .modal-buy-wa,
  .modal-ig-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .product-modal-card {
    width: calc(100vw - 8px) !important;
    max-height: calc(100vh - 8px) !important;
    margin: 4px auto !important;
    padding: 10px !important;
    gap: 10px !important;
    border-radius: 18px;
  }

  .product-modal-close {
    width: 44px;
    height: 44px;
    top: 12px;
    right: 12px;
    background: #ffffff;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  }

  .product-modal-close svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.6;
  }

  .modal-sku {
    font-size: 0.875rem !important;
    letter-spacing: 0.08em !important;
    word-break: break-word;
  }

  .product-modal-copy h2 {
    font-size: clamp(1.18rem, 8.8vw, 1.58rem) !important;
    line-height: 1.05 !important;
    letter-spacing: 0.03em !important;
  }

  .modal-price {
    font-size: 1.5rem !important;
  }

  .modal-meta {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .modal-meta div {
    min-height: 0;
    padding: 8px 10px;
  }

  .modal-badge-row {
    gap: 6px;
  }

  .modal-badge-row .badge,
  .modal-tags span {
    font-size: 0.875rem;
    padding: 4px 8px;
  }

  .product-modal-thumbs button {
    flex-basis: 78px;
    width: 78px;
    min-height: 78px !important;
  }
}

/* === Product modal final authority === */
#product-modal .product-modal-card {
  width: min(calc(100vw - 24px), 1240px);
  max-height: calc(100vh - 24px);
  padding: 16px;
  gap: 18px;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  align-items: start;
}

#product-modal .product-modal-card > * {
  min-width: 0;
}

#product-modal .product-modal-media {
  display: grid;
  gap: 12px;
  align-content: start;
  /* 2026-05-22 v3 · defensive min-height even on desktop so the
     container never collapses to 0 (which would hide the entire
     media block before src finalize() runs). */
  min-height: 320px;
}

#product-modal .product-modal-media img {
  width: 100%;
  min-height: min(68vh, 720px);
  max-height: min(68vh, 720px);
  object-fit: contain;
  background: #f6ede3;
}

#product-modal .product-modal-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 8px;
  align-items: start;
}

#product-modal .product-modal-thumbs button {
  width: 100%;
  min-height: 84px !important;
  aspect-ratio: 1 / 1 !important;
  padding: 6px;
}

#product-modal .product-modal-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#product-modal .product-modal-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 4px 0 0;
}

#product-modal .product-modal-copy h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.08rem);
  line-height: 1.02;
  letter-spacing: 0.025em;
  text-wrap: balance;
}

#product-modal .modal-price {
  font-size: clamp(1.55rem, 2.1vw, 1.95rem);
}

#product-modal .modal-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

#product-modal .modal-meta div {
  min-height: 58px;
  padding: 9px 10px;
}

#product-modal .modal-meta strong {
  overflow-wrap: anywhere;
}

#product-modal .modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
}

#product-modal .modal-tags:empty {
  display: none !important;
}

#product-modal .modal-tags span {
  max-width: 100%;
  font-size: 0.875rem;
  padding: 4px 9px;
}

#product-modal .modal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

#product-modal .modal-buy-wa,
#product-modal .modal-ig-link {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  text-align: center;
}

@media (min-width: 901px) {
  #product-modal .product-modal-copy {
    position: sticky;
    top: 0;
    max-height: calc(100vh - 72px);
    overflow: auto;
    padding-right: 4px;
  }
}

@media (max-width: 900px) {
  #product-modal .product-modal-card {
    display: flex !important;
    flex-direction: column !important;
    width: min(calc(100vw - 12px), 620px) !important;
    max-height: calc(100vh - 8px) !important;
    margin: 4px auto !important;
    padding: 12px !important;
    gap: 12px !important;
  }

  #product-modal .product-modal-media,
  #product-modal .product-modal-copy {
    width: 100% !important;
    min-width: 0 !important;
  }

  #product-modal .product-modal-media {
    order: 1;
    /* 2026-05-22 v3 fix · anashop mobile image hidden regression
       (Ana reportó 4ta vez). Higher-specificity #product-modal rule
       was overriding the lower-specificity .product-modal-media
       min-height. Force the CONTAINER (not just child img) to
       reserve at least 280px even before any src loads. */
    min-height: 280px !important;
    display: block !important;
    background: #f6ece2 !important;
  }

  #product-modal .product-modal-copy {
    order: 2;
    position: static !important;
    overflow: visible !important;
    max-height: none !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #product-modal .product-modal-media img {
    /* 2026-05-22 fix (Ana reportó): aspect-ratio: auto colapsa el alto a 0
       durante load (img sin dimensiones intrínsecas), y queda sin altura
       reservada → el área de foto desaparece y el modal abre directo en
       el bloque de texto. Restaurado el 4:5 explícito + min-height fallback
       defensivo en case extreme. */
    min-height: 240px !important;
    max-height: min(54vh, 520px);
    aspect-ratio: 4 / 5;
    object-fit: contain !important;
  }

  #product-modal .product-modal-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    padding-bottom: 4px;
    grid-template-columns: none !important;
    grid-auto-flow: unset !important;
    grid-auto-columns: unset !important;
  }

  #product-modal .product-modal-thumbs button {
    flex: 0 0 84px;
    width: 84px !important;
    min-width: 84px;
    min-height: 84px !important;
  }

  #product-modal .modal-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  #product-modal .product-modal-card {
    width: calc(100vw - 8px) !important;
    max-height: calc(100vh - 8px) !important;
    padding: 10px !important;
    gap: 10px !important;
    border-radius: 18px !important;
  }

  #product-modal .product-modal-media img {
    /* @640px override · respeta el aspect-ratio + min-height del breakpoint 900px */
    max-height: min(46vh, 420px);
    min-height: 220px !important;
    aspect-ratio: 4 / 5;
  }

  #product-modal .product-modal-copy h2 {
    font-size: clamp(1.2rem, 8vw, 1.62rem) !important;
    line-height: 1.04 !important;
    letter-spacing: 0.015em !important;
  }

  #product-modal .modal-price {
    font-size: 1.48rem !important;
  }

  #product-modal .modal-meta {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  #product-modal .modal-meta div {
    min-height: 0;
    padding: 8px 10px;
  }

  #product-modal .modal-tags span,
  #product-modal .modal-badge-row .badge {
    font-size: 0.875rem;
    padding: 4px 8px;
  }

  #product-modal .product-modal-thumbs button {
    flex-basis: 76px;
    width: 76px !important;
    min-width: 76px;
    min-height: 76px !important;
  }
}


} /* close pre-existing un-terminated @media (max-width: 900px) opened at L2551 — without this, every rule below was being nested inside that media-query and only applied at narrow viewports */

/* ──────────────────────────────────────────────────────────────────────
   Cart · luxury redesign (2026-05-20) · brand-aligned · backdrop blur
   Palette: --paper-0 · --accent-0 (champagne gold) · --ink-0 · Playfair
   Pattern: side drawer overlay (position:fixed inset:0 · panel slides
   from right · backdrop blurs page behind without scroll-jacking the body)
   ────────────────────────────────────────────────────────────────────── */

/* Trigger button · matches .icon-btn shape but with badge + monochrome */
.cart-button {
  position: relative;
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: var(--paper-1);
  color: var(--text-1);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--ease), transform var(--ease), background var(--ease), box-shadow var(--ease);
}
.cart-button:hover {
  border-color: var(--accent-0);
  transform: translateY(-1px);
  background: #fef9f4;
  box-shadow: 0 6px 14px rgba(60, 44, 34, 0.10);
}
.cart-button:active { transform: scale(0.96); }
.cart-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* Estructural · ev.target nunca cae en SVG/path · el botón siempre recibe el click.
     Cerro la 5ª vuelta del bug "el botón del carrito no funciona". */
  pointer-events: none;
}
.cart-button svg * { pointer-events: none; }
.cart-button__label {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-dark);
  color: var(--gold-0);
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--paper-1), 0 2px 6px rgba(59, 47, 47, 0.32);
}
.cart-button--bump { animation: cart-bump 0.52s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes cart-bump {
  0% { transform: scale(1); }
  45% { transform: scale(1.14); }
  72% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

/* ─── Floating cart FAB · hover-peek (2026-05-20 iter-cart-floating) ────
   Sale del flujo del topbar y vive como floating action button anclado al
   viewport top-right. No invade el bottom-right (WhatsApp Comprar vive ahí).
   En desktop hover expande un panel lateral a la izquierda con preview de
   las últimas piezas + subtotal. En mobile/tablet sin hover, un tap abre
   el drawer completo como siempre.
   ──────────────────────────────────────────────────────────────────── */
.cart-fab {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1080;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  /* Bridge invisible · el cursor puede deslizarse del botón al peek sin que
     se cierre — clásico problema de menús-hover que cierran mal. */
  pointer-events: none;
  /* Graceful exit cuando un overlay (product modal · lightbox · drawer)
     se abre: el FAB queda en top:22px right:22px y colisiona con el
     close-X del modal (también top:10px right:10px relativo a la card).
     Usuario lo reportó vía screenshot 2026-05-21: "el carrito flotante
     colisiona o tapa el X de cerrar la vista". Móvil sufre peor porque
     el modal-card cubre ~100% del viewport.
     Pattern: opacity + transform + pointer-events:none (NO display:none,
     que romperia animaciones + accesibilidad de tab-order). */
  transition: opacity 180ms ease, transform 180ms ease;
}
.cart-fab > * { pointer-events: auto; }

/* Cuando hay un overlay activo · cart.js le pone .is-obscured al FAB.
   Reaparece sólo cuando todos los overlays se cierran. */
.cart-fab.is-obscured {
  opacity: 0;
  transform: translateY(-12px) scale(0.92);
  pointer-events: none !important;
}
.cart-fab.is-obscured > * { pointer-events: none !important; }

/* 2026-05-22 · CSS-ONLY fallback · cart.js wireObscureOnOverlay() puede no estar
   en builds anteriores a iter6 (commit 03a55d3). Si JS no está, este selector
   CSS funciona porque body.no-scroll se aplica en TODOS los modal-open paths
   (app.js openProductModal · openCartDrawer · openLightbox · openFiltersDrawer).
   Defensa de capa-CSS que sobrevive a builds JS-stale. */
body.no-scroll .cart-fab {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-12px) scale(0.92) !important;
}

.cart-fab__btn {
  /* Hereda .cart-button (mismo tamaño y estilo) · solo cambia el box-shadow
     para "elevar" más, ahora que flota sobre la página. */
  box-shadow: 0 10px 28px rgba(60, 44, 34, 0.16), 0 2px 6px rgba(60, 44, 34, 0.08);
  background: var(--paper-0);
}
.cart-fab__btn:hover {
  box-shadow: 0 14px 36px rgba(60, 44, 34, 0.22), 0 3px 8px rgba(60, 44, 34, 0.10);
}

/* Peek panel · slide-in a la izquierda del botón
   Editorial spacing (luxury = breathing room) · gold hairlines · stagger fade-in.
   Width 420px (no 380) · thumb 64px (no 48) · respira como una página de revista. */
.cart-fab__peek {
  margin-right: 12px;
  width: 420px;
  background: var(--paper-0);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow:
    0 24px 64px rgba(60, 44, 34, 0.18),
    0 4px 12px rgba(60, 44, 34, 0.10),
    inset 0 0 0 1px rgba(214, 195, 163, 0.18); /* sutil halo champagne interno */
  padding: 22px 22px 18px;
  font-family: inherit;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.22, 0.82, 0.34, 1);
  pointer-events: none;
}
.cart-fab[data-cart-state="expanded"] .cart-fab__peek {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.cart-fab__peek[hidden] { display: none !important; }

/* Header del peek · serif title + hairline gold con doble línea editorial */
.cart-fab__peek-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.0rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-0);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--accent-0);
  position: relative;
}
/* Doble línea estilo editorial · accent corto bajo el separator principal */
.cart-fab__peek-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 32px;
  height: 1px;
  background: var(--accent-dark);
}
.cart-fab__peek-title small {
  font-family: inherit;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
  color: var(--text-2);
  margin-left: 6px;
}

/* Lista editorial · thumb 64px (hero) · hairlines gold entre items · stagger fade-in */
.cart-fab__peek-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 0;
}
.cart-fab__peek-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid rgba(214, 195, 163, 0.32); /* hairline champagne · sutil */
  transition: background var(--ease);
  /* Stagger fade-in · cada fila aparece 80ms después · feels editorial.
     El nth-child supone máx 5 visibles en peek (cap 3 + safety). */
  opacity: 0;
  animation: peek-row-in 0.36s cubic-bezier(0.22, 0.82, 0.34, 1) forwards;
}
.cart-fab__peek-item:first-child { border-top: 0; padding-top: 0; }
.cart-fab__peek-item:last-child { padding-bottom: 0; }
.cart-fab__peek-item:nth-child(1) { animation-delay: 0.04s; }
.cart-fab__peek-item:nth-child(2) { animation-delay: 0.12s; }
.cart-fab__peek-item:nth-child(3) { animation-delay: 0.20s; }
.cart-fab__peek-item:nth-child(4) { animation-delay: 0.28s; }
.cart-fab__peek-item:hover {
  background: rgba(254, 249, 244, 0.6);
  border-radius: 8px;
}
.cart-fab__peek-item:hover .cart-fab__peek-thumb {
  transform: scale(1.04);
  border-color: var(--accent-0);
}
@keyframes peek-row-in {
  from { opacity: 0; transform: translateX(6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.cart-fab__peek-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  transition: transform var(--ease), border-color var(--ease);
}
.cart-fab__peek-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cart-fab__peek-item-center {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0; /* permite truncation correcto */
}
.cart-fab__peek-name {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-0);
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-fab__peek-price {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
}

/* Row de controles inline · qty −/+ · precio · × remove */
.cart-fab__peek-item-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.cart-fab__peek-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper-1);
  box-shadow: inset 0 0 0 1px rgba(214, 195, 163, 0.10);
}
.cart-fab__peek-qty-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--text-1);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--ease), color var(--ease);
}
.cart-fab__peek-qty-btn:hover {
  background: #fef9f4;
  color: var(--text-0);
}
.cart-fab__peek-qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-0);
  letter-spacing: 0.02em;
}
.cart-fab__peek-price {
  margin-left: auto; /* empuja a la derecha · justo antes del × */
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 500;
}
.cart-fab__peek-remove {
  width: 26px;
  height: 26px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.cart-fab__peek-remove:hover {
  background: #fef2f2;
  border-color: #f3c2c2;
  color: #b54545;
}

/* "+ N piezas más" hint cuando el carrito excede 3 ítems en el peek */
.cart-fab__peek-more {
  font-size: 0.72rem;
  color: var(--text-2);
  text-align: center;
  margin: -4px 0 8px;
  letter-spacing: 0.02em;
  font-style: italic;
}

/* Auto-flash · cuando se agrega un ítem, el peek se autoexpande y resalta */
.cart-fab__peek-item--flash {
  animation: peek-flash 1.8s ease;
}
@keyframes peek-flash {
  0%, 100% { background: transparent; }
  25%, 60% { background: #fef9f4; }
}

/* Subtotal strip */
.cart-fab__peek-sub {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  margin-bottom: 10px;
}
.cart-fab__peek-sub-label {
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-2);
}
.cart-fab__peek-sub-amount {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-0);
}

/* CTA · "Ver carrito completo" */
.cart-fab__peek-cta {
  width: 100%;
  background: var(--text-0);
  color: var(--paper-0);
  border: none;
  border-radius: 10px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.cart-fab__peek-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }
.cart-fab__peek-cta:active { transform: scale(0.98); }

/* Empty-state peek */
.cart-fab__peek-empty {
  text-align: center;
  color: var(--text-2);
  font-size: 0.82rem;
  padding: 14px 6px 8px;
  line-height: 1.5;
}

/* Mobile · sin hover · el peek se desactiva, solo queda el botón flotante */
@media (max-width: 720px), (hover: none) {
  .cart-fab__peek { display: none !important; }
  .cart-fab { top: 14px; right: 14px; }
}

/* ─── Dialog luxe para "Vaciar carrito" (reemplaza window.confirm) ─────
   Aparece dentro del footer del drawer, no como modal native. Mantiene
   coherencia visual con el resto del cart (cream paper · Playfair). */
.cart-clear-confirm {
  background: var(--paper-1);
  border: 1px solid var(--accent-0);
  border-radius: 14px;
  padding: 16px 18px 14px;
  margin-bottom: 12px;
  animation: clear-confirm-in 0.28s cubic-bezier(0.22, 0.82, 0.34, 1);
}
@keyframes clear-confirm-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cart-clear-confirm__title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-0);
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}
.cart-clear-confirm__hint {
  font-size: 0.78rem;
  color: var(--text-2);
  margin: 0 0 12px;
  line-height: 1.5;
}
.cart-clear-confirm__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cart-clear-confirm__btn {
  border-radius: 10px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.cart-clear-confirm__btn--cancel {
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--text-1);
}
.cart-clear-confirm__btn--cancel:hover {
  border-color: var(--text-1);
  color: var(--text-0);
}
.cart-clear-confirm__btn--confirm {
  background: #b54545;
  border: 1px solid #b54545;
  color: var(--paper-0);
}
.cart-clear-confirm__btn--confirm:hover { background: #9a3838; border-color: #9a3838; }

/* Toast · floats above drawer · matches Anashop typography */
.cart-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 90px);
  background: var(--accent-dark);
  color: var(--gold-0);
  padding: 13px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  z-index: 1200;
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.26s ease;
  box-shadow: 0 14px 32px rgba(59, 47, 47, 0.32), 0 0 0 1px var(--gold-0);
  pointer-events: none;
  max-width: min(360px, 90vw);
  text-align: center;
}
.cart-toast--visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ─── Drawer scaffold ───────────────────────────────────────────────── */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
}
.cart-drawer[aria-hidden="false"] { pointer-events: auto; }

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 32, 26, 0.28);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  opacity: 0;
  transition: opacity 0.32s ease;
}
.cart-drawer[aria-hidden="false"] .cart-drawer__backdrop { opacity: 1; }

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 94vw);
  background: var(--paper-0);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.46s cubic-bezier(0.22, 0.82, 0.34, 1);
  box-shadow: -24px 0 56px rgba(44, 32, 26, 0.22), -1px 0 0 var(--accent-0);
}
.cart-drawer[aria-hidden="false"] .cart-drawer__panel { transform: translateX(0); }
body.cart-drawer-open { overflow: hidden; }

/* ─── Header · serif title + gold hairline ──────────────────────────── */
.cart-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 26px 20px;
  background: var(--paper-1);
  position: relative;
}
.cart-drawer__header::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--accent-0) 18%,
    var(--accent-0) 82%,
    transparent 100%
  );
}
.cart-drawer__title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-0);
  margin: 0;
  text-transform: uppercase;
}
.cart-drawer__subtitle {
  font-size: 11.5px;
  color: var(--text-2);
  margin: 6px 0 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cart-drawer__close {
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--text-1);
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
  flex-shrink: 0;
}
.cart-drawer__close:hover {
  background: #fef9f4;
  border-color: var(--accent-0);
  transform: rotate(90deg);
}
.cart-drawer__close svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
  /* Estructural · ev.target nunca cae en SVG/path · el botón siempre recibe el click. */
  pointer-events: none;
}
.cart-drawer__close svg * { pointer-events: none; }

/* ─── Empty state · centered with serif emphasis ────────────────────── */
.cart-drawer__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 32px;
  gap: 10px;
}
/* Override the explicit display rules so [hidden] attribute wins · without
   these, browser default [hidden]{display:none} loses against .cart-*{display:flex} */
.cart-drawer__empty[hidden],
.cart-drawer__summary[hidden],
.cart-drawer__actions[hidden],
.cart-badge[hidden] {
  display: none !important;
}
.cart-drawer__empty-icon {
  width: 64px; height: 64px;
  fill: none;
  stroke: var(--accent-0);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}
.cart-drawer__empty-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-0);
  letter-spacing: 0.04em;
  margin: 16px 0 4px;
}
.cart-drawer__empty-hint {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0 0 22px;
  max-width: 280px;
}
.cart-drawer__cta-empty {
  padding: 12px 28px;
  background: var(--accent-dark);
  color: var(--gold-0);
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.cart-drawer__cta-empty:hover {
  background: var(--ink-0);
  transform: translateY(-1px);
}

/* ─── List · each item as a card · 84px thumb · serif accents ───────── */
.cart-drawer__list {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 18px 18px 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-drawer__list::-webkit-scrollbar { width: 6px; }
.cart-drawer__list::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}
.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 14px;
  background: var(--paper-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line-soft);
  transition: box-shadow var(--ease), transform var(--ease);
}
.cart-item:hover {
  box-shadow: var(--shadow-mid);
  transform: translateY(-1px);
}
.cart-item__img {
  width: 84px;
  height: 100px;
  flex-shrink: 0;
  background: var(--paper-2);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
}
.cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-item__img-fallback {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 36px;
  color: var(--accent-0);
  line-height: 1;
}
.cart-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cart-item__name {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-0);
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item__sku {
  font-size: 10.5px;
  color: var(--text-2);
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cart-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.cart-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--paper-2);
  border-radius: 999px;
  padding: 2px;
  border: 1px solid var(--line-soft);
}
.cart-qty-btn {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-1);
  transition: background var(--ease), color var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-qty-btn:hover {
  background: var(--paper-1);
  color: var(--accent-dark);
}
.cart-qty-value {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 14px;
  font-weight: 500;
  min-width: 26px;
  text-align: center;
  color: var(--text-0);
}
.cart-item__total {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-0);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.cart-item__remove {
  background: transparent;
  border: 0;
  color: var(--text-2);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--ease);
  align-self: flex-start;
}
.cart-item__remove:hover { color: var(--red-1); text-decoration: underline; }

/* ─── Summary · serif total with gold hairline ──────────────────────── */
.cart-drawer__summary {
  padding: 20px 26px 14px;
  background: var(--paper-1);
  position: relative;
}
.cart-drawer__summary::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--accent-0) 18%,
    var(--accent-0) 82%,
    transparent 100%
  );
}
.cart-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.cart-summary__row > span {
  font-size: 11.5px;
  color: var(--text-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cart-summary__row strong {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--text-0);
  letter-spacing: 0.02em;
}
.cart-summary__note {
  font-size: 11px;
  color: var(--text-2);
  margin: 6px 0 0;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* ─── Actions · checkout WA (full width) + ghost clear (text) ───────── */
.cart-drawer__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 26px 26px;
  background: var(--paper-1);
}
.cart-drawer__checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--cta-green);
  color: #fff;
  padding: 16px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.28);
}
.cart-drawer__checkout:hover {
  background: var(--green-1);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.36);
}
.cart-drawer__checkout:active { transform: translateY(0); }
.cart-drawer__checkout svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round;
}
.cart-drawer__clear {
  background: transparent;
  border: 0;
  color: var(--text-2);
  padding: 6px 0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--ease);
  align-self: center;
}
.cart-drawer__clear:hover { color: var(--red-1); text-decoration: underline; }

/* ─── Modal add-to-cart · cream pill matching modal-buy-wa ──────────── */
.modal-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1.4px solid var(--accent-dark);
  background: var(--paper-1);
  color: var(--accent-dark);
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.modal-add-cart:hover {
  background: var(--accent-dark);
  color: var(--gold-0);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(59, 47, 47, 0.22);
}
.modal-add-cart:active { transform: translateY(0); }
.modal-add-cart svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.modal-add-cart--added {
  background: var(--accent-dark);
  color: var(--gold-0);
  border-color: var(--accent-dark);
  pointer-events: none;
}
.modal-add-cart--added svg { stroke: var(--gold-0); }

@media (max-width: 640px) {
  .cart-drawer__panel { width: 100vw; }
  .cart-drawer__header { padding: 22px 22px 18px; }
  .cart-drawer__title { font-size: 1.35rem; }
  .cart-drawer__list { padding: 14px 14px 8px; gap: 12px; }
  .cart-item { grid-template-columns: 72px 1fr; gap: 12px; padding: 12px; }
  .cart-item__img { width: 72px; height: 86px; }
  .cart-drawer__summary, .cart-drawer__actions { padding-left: 22px; padding-right: 22px; }
}
