/* ═══════════════════════════════════════════════════════════
   SAYÉ · Estilos
   Paleta y tipografías del manual de marca.
   ═══════════════════════════════════════════════════════════ */
:root {
  --ivory: #F6F1E8;
  --paper: #FBF8F3;
  --espresso: #2B211D;
  --espresso-2: #5A4B44;
  --gold: #B08A4A;          /* dorado para detalles y fondos */
  --gold-text: #7A5C28;     /* dorado oscuro, legible sobre marfil */
  --sand: #D8C9B8;
  --sand-soft: #EDE4D8;
  --blush: #E9A4B8;
  --cherry: #B92F3C;
  --vino: #7A1F2E;          /* rojo vino del logo */
  --cobalt: #2856C7;
  --emerald: #218267;
  --butter: #F3D66B;
  --rose: #F7D8DD;
  --line: #E3D8CA;

  --serif: "Playfair Display", "Bodoni MT", Didot, Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* Lo que está oculto (atributo hidden) nunca se muestra, aunque otra regla le ponga display */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--espresso); color: var(--ivory); padding: 10px 16px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* ── Tipografía ─────────────────────────────── */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.4vw, 64px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.eyebrow, .label {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
}
.eyebrow { color: var(--gold-text); display: block; margin-bottom: 14px; }
.lede { font-size: 17px; color: var(--espresso-2); max-width: 54ch; }
.muted { color: var(--espresso-2); }
em.it { font-style: italic; }

/* ── Botones ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 30px;
  font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--espresso); border-radius: var(--radius);
  background: var(--espresso); color: var(--ivory);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: #45362f; border-color: #45362f; }
.btn.ghost { background: transparent; color: var(--espresso); }
.btn.ghost:hover { background: var(--espresso); color: var(--ivory); }
.btn.wa { background: transparent; color: var(--espresso); }
.btn.wa:hover { background: #1f6f4a; border-color: #1f6f4a; color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; }
.link-arrow { font-size: 11.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }

/* ── Barra superior y header ─────────────────── */
.topbar { background: var(--espresso); color: var(--ivory); text-align: center; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; padding: 9px 16px; }
.topbar a { text-decoration: none; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(246,241,232,.94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.header > .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 88px; }
.nav { border-top: 1px solid var(--line); }
.nav .wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 44px; padding-block: 12px; }
.nav a { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; padding-block: 6px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--espresso); }
.tools { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; background: none; border: 0; position: relative; text-decoration: none; }
.icon-btn svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #fff; font-size: 10px; font-weight: 600; line-height: 18px; text-align: center; }
.cart-count[data-n="0"] { display: none; }
.menu-btn { display: none; }

/* Logo: SAYE con la gota de la marca sobre la E */
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; color: var(--vino); }
.wordmark { font-family: var(--serif); font-weight: 400; font-size: 38px; letter-spacing: .12em; padding-left: .12em; position: relative; display: inline-block; }
.wordmark .e { position: relative; display: inline-block; }
.wordmark .e svg { position: absolute; width: .3em; height: .6em; left: .26em; top: -.5em; fill: currentColor; }
.logo small { font-size: 7.5px; letter-spacing: .38em; text-transform: uppercase; margin-top: 7px; padding-left: .38em; }

/* ── Menú móvil ──────────────────────────────── */
.mnav { position: fixed; inset: 0; z-index: 60; background: var(--ivory); padding: 90px var(--gutter) 40px; transform: translateX(-100%); transition: transform .35s var(--ease); visibility: hidden; overflow-y: auto; }
.mnav.open { transform: none; visibility: visible; }
.mnav a { display: block; font-family: var(--serif); font-size: 30px; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mnav .small a { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; border: 0; padding: 8px 0; }
.mnav .close { position: absolute; top: 16px; right: var(--gutter); }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header > .wrap { height: 64px; }
  .wordmark { font-size: 25px; }
}

/* ── Hero ────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: min(78vh, 720px); border-bottom: 1px solid var(--line); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(48px, 7vw, 96px) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.hero-copy h1 { max-width: 13ch; margin-bottom: 22px; }
.hero-copy h1 em { font-style: italic; color: var(--gold-text); }
.hero-copy .lede { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; background: var(--sand-soft); overflow: hidden; min-height: 380px; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-mark { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-mark .mono { font-family: var(--serif); font-size: clamp(180px, 26vw, 360px); line-height: 1; color: var(--espresso); position: relative; }
.hero-mark .mono svg { position: absolute; width: .19em; height: .38em; left: .34em; top: -.3em; fill: var(--espresso); }
.hero-mark .caption { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase; }
.pattern { position: absolute; inset: 0; background-image: url("img/pattern.svg"); background-size: 220px; opacity: .45; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 44px var(--gutter) 40px; }
  .hero-art { min-height: 300px; order: -1; }
}

/* ── Secciones ───────────────────────────────── */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.tight { padding-block: clamp(40px, 5vw, 64px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 38px; flex-wrap: wrap; }
.section-head p { margin: 10px 0 0; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Categorías */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat { display: block; text-decoration: none; }
.cat .media { display: block; aspect-ratio: 4 / 5; background: #F8F8F8; overflow: hidden; }
.cat .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat:hover .media img { transform: scale(1.05); }
.cat .cap { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 16px; text-align: center; }
.cat .cap b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; }
.cat .cap span { font-size: 10px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--espresso-2); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .3s; }
.cat:hover .cap span { border-color: currentColor; }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; } .cats .cat:last-child { grid-column: 1 / -1; width: calc(50% - 6px); justify-self: center; } .cat .cap b { font-size: 20px; } }

/* Productos */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 20px; }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; } }
.card { position: relative; display: flex; flex-direction: column; }
.card .media { position: relative; aspect-ratio: 4 / 5; background: #F8F8F8; border: 1px solid var(--line); overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .4s; }
.card .media img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .media img.alt { opacity: 1; }
.card:hover .media img:first-child { transform: scale(1.03); }
.card .badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--ivory); padding: 5px 9px; font-size: 9.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.card .badge.sold { background: var(--espresso); color: var(--ivory); }
.card .badge.low { background: var(--rose); }
.card .quick { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ivory); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(43,33,29,.12); opacity: 0; transform: translateY(6px); transition: .3s var(--ease); }
.card .quick svg { width: 18px; height: 18px; stroke: var(--espresso); fill: none; stroke-width: 1.4; }
.card:hover .quick, .card .quick:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .card .quick { opacity: 1; transform: none; } }
.card .info { padding-top: 14px; }
.card h3 { font-size: 17px; line-height: 1.3; margin-bottom: 4px; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .mat { font-size: 11px; letter-spacing: .08em; color: var(--espresso-2); margin-bottom: 6px; }
.price { font-weight: 500; letter-spacing: .04em; }
.price s { color: var(--espresso-2); font-weight: 400; margin-left: 8px; }
.card.sold .media img { filter: grayscale(.7); opacity: .7; }

/* Beneficios */
.perks { background: var(--espresso); color: var(--ivory); }
.perks .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-block: 56px; }
.perk svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 1.2; margin-bottom: 16px; }
.perk h3 { font-size: 20px; margin-bottom: 8px; }
.perk p { font-size: 13.5px; color: #d9cdc0; margin: 0; }
@media (max-width: 900px) { .perks .wrap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .perks .wrap { grid-template-columns: 1fr; } }

/* Historia */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.story .quote { font-family: var(--serif); font-style: italic; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; color: var(--espresso); }
.story .quote::after { content: ""; display: block; width: 56px; height: 1px; background: var(--gold); margin-top: 26px; }
@media (max-width: 800px) { .story { grid-template-columns: 1fr; } }

/* Colores */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 26px 0 32px; }
.swatches span { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(0,0,0,.06); }

/* ── Migas y encabezado de página ─────────────── */
.crumbs { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--espresso-2); padding-block: 22px 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--sand); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head { padding-block: 30px 34px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.page-head h1 { margin-bottom: 14px; }
.page-head .lede { margin: 0; }

/* Filtros */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; padding: 9px 16px; border: 1px solid var(--line); background: transparent; border-radius: 40px; }
.chip:hover { border-color: var(--espresso); }
.chip[aria-current="page"], .chip[aria-pressed="true"] { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.field { font: inherit; font-size: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; min-height: 42px; color: var(--espresso); }
.count { font-size: 12px; color: var(--espresso-2); letter-spacing: .06em; }
.empty { text-align: center; padding: 60px 0; color: var(--espresso-2); }

/* Texto SEO de categoría */
.seo-copy { max-width: 760px; margin: 72px auto 0; padding-top: 48px; border-top: 1px solid var(--line); }
.seo-copy h2 { font-size: 28px; margin-bottom: 14px; }
.seo-copy h3 { font-size: 20px; margin: 26px 0 8px; }

/* ── Página de producto ──────────────────────── */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); padding-block: 26px 40px; align-items: start; }
.gallery { display: grid; grid-template-columns: 78px 1fr; gap: 12px; position: sticky; top: 96px; }
.gallery .main { aspect-ratio: 4 / 5; background: #F8F8F8; border: 1px solid var(--line); overflow: hidden; grid-column: 2; grid-row: 1; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; flex-direction: column; gap: 10px; grid-column: 1; grid-row: 1; }
.thumbs button { padding: 0; border: 1px solid var(--line); background: var(--paper); aspect-ratio: 4 / 5; }
.thumbs button[aria-current="true"] { border-color: var(--espresso); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy h1 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 10px; }
.buy .mat { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 18px; }
.buy .price { font-size: 20px; margin-bottom: 8px; }
.buy .note { font-size: 12.5px; color: var(--espresso-2); margin-bottom: 26px; }
.stock { font-size: 12.5px; font-weight: 500; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }
.stock.low::before { background: var(--gold); }
.stock.out::before { background: var(--cherry); }
.buy .short { font-size: 15.5px; margin-bottom: 24px; }
.qty-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; margin-bottom: 10px; }
.qty { display: grid; grid-template-columns: 38px 1fr 38px; border: 1px solid var(--espresso); height: 50px; }
.qty button { background: none; border: 0; font-size: 18px; }
.qty input { width: 100%; border: 0; background: transparent; text-align: center; font: inherit; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.trust { list-style: none; padding: 20px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 13px; }
.trust li { display: flex; gap: 10px; align-items: center; }
.trust svg { width: 18px; height: 18px; stroke: var(--gold-text); fill: none; stroke-width: 1.3; flex: none; }
details.acc { border-top: 1px solid var(--line); }
details.acc:last-of-type { border-bottom: 1px solid var(--line); }
details.acc summary { list-style: none; cursor: pointer; padding: 18px 0; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; display: flex; justify-content: space-between; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-size: 18px; font-weight: 300; line-height: 1; }
details.acc[open] summary::after { content: "–"; }
details.acc .body { padding-bottom: 20px; font-size: 14px; }
details.acc ul { padding-left: 18px; margin: 0; }
.specs { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.specs th, .specs td { text-align: left; padding: 8px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.specs th { font-weight: 500; width: 40%; color: var(--espresso-2); }
@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery .main { grid-column: 1; }
  .thumbs { flex-direction: row; grid-row: 2; }
  .thumbs button { width: 64px; }
}

/* ── Texto largo (guías y políticas) ─────────── */
.prose { max-width: 720px; margin: 0 auto; font-size: 16px; }
.prose h2 { font-size: 30px; margin: 44px 0 14px; }
.prose h3 { font-size: 21px; margin: 30px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 24px; font-size: 14.5px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.prose .box { background: var(--paper); border: 1px solid var(--line); padding: 20px 22px; margin: 26px 0; }
.prose .box p:last-child { margin: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--serif); font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding-bottom: 18px; }
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide { display: block; text-decoration: none; background: var(--paper); border: 1px solid var(--line); padding: 28px; }
.guide:hover { border-color: var(--espresso); }
.guide h3 { font-size: 22px; margin: 8px 0 10px; }
.guide p { font-size: 14px; color: var(--espresso-2); margin: 0; }
@media (max-width: 800px) { .guides { grid-template-columns: 1fr; } }

/* ── Bolsa (carrito) ─────────────────────────── */
.scrim { position: fixed; inset: 0; background: rgba(43,33,29,.36); z-index: 70; opacity: 0; visibility: hidden; transition: .3s; }
.scrim.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100%); background: var(--ivory); z-index: 80; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s var(--ease); visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-size: 24px; }
.drawer .items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper); border: 1px solid var(--line); }
.line h3 { font-size: 16px; margin-bottom: 2px; }
.line .sub { font-size: 11.5px; color: var(--espresso-2); }
.line .mini-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 8px; }
.line .mini-qty button { width: 28px; height: 28px; background: none; border: 0; }
.line .mini-qty span { min-width: 24px; text-align: center; font-size: 13px; }
.line .rm { background: none; border: 0; font-size: 11px; text-decoration: underline; color: var(--espresso-2); padding: 0; margin-top: 8px; display: block; }
.drawer footer { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--paper); }
.ship-bar { font-size: 12px; margin-bottom: 14px; }
.ship-bar .bar { height: 3px; background: var(--line); margin-top: 8px; }
.ship-bar .bar i { display: block; height: 100%; background: var(--gold); width: 0; transition: width .4s var(--ease); }
.totals { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.drawer [data-card-checkout] { margin-top: 12px; }
.drawer .fine { font-size: 11.5px; color: var(--espresso-2); margin: 10px 0 0; text-align: center; }
.drawer .empty-cart { text-align: center; padding: 60px 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--espresso); color: var(--ivory); padding: 12px 20px; font-size: 13px; z-index: 90; opacity: 0; transition: .3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Footer ──────────────────────────────────── */
.footer { background: var(--sand-soft); border-top: 1px solid var(--line); margin-top: 40px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; padding-block: 64px 40px; }
.footer h2 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 13.5px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .about p { font-size: 13.5px; color: var(--espresso-2); max-width: 34ch; margin-top: 18px; }
.footer .legal { border-top: 1px solid var(--line); padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 11.5px; color: var(--espresso-2); }
@media (max-width: 800px) { .footer .cols { grid-template-columns: 1fr 1fr; } .footer .about { grid-column: 1 / -1; } }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 54px; height: 54px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ── Versión B: portada con producto ─────────── */
.hero-b { display: grid; grid-template-columns: 1fr 1.05fr; grid-template-areas: "top collage" "bottom collage"; align-items: end; column-gap: clamp(32px, 5vw, 72px); row-gap: 22px; max-width: var(--wrap); margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--gutter); border-bottom: 1px solid var(--line); }
.hb-top { grid-area: top; }
.hb-top h1 { max-width: 13ch; }
.hb-top h1 em { font-style: italic; color: var(--gold-text); }
.hb-bottom { grid-area: bottom; align-self: start; display: grid; gap: 26px; }
.hb-top .lede { margin: 14px 0 0; max-width: 46ch; }
.hb-top .lede strong { font-weight: 600; color: var(--espresso); }
.hb-collage { grid-area: collage; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hb-collage a { position: relative; display: block; aspect-ratio: 4 / 5; background: #F8F8F8; overflow: hidden; text-decoration: none; }
.hb-collage img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hb-collage a:hover img { transform: scale(1.05); }
.hb-collage span { position: absolute; left: 10px; bottom: 10px; right: 10px; font-size: 10.5px; letter-spacing: .08em; background: rgba(246,241,232,.92); padding: 6px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) {
  .hero-b { grid-template-columns: 1fr; grid-template-areas: "top" "collage" "bottom"; padding-block: 24px 36px; row-gap: 18px; }
  .hb-top h1 { font-size: 32px; }
  .hb-top .eyebrow { margin-bottom: 8px; }
  .hb-collage { gap: 8px; }
  .hb-collage a { aspect-ratio: 1 / 1; }
  .hb-collage span { display: none; }
  .hb-bottom { gap: 18px; }
  .hb-top .lede { font-size: 15px; margin-top: 10px; }
}

/* ── Versión B: barra fija de compra (celular) ── */
.buybar { display: none; }
@media (max-width: 860px) {
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--ivory); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(43,33,29,.08); transform: translateY(110%); transition: transform .3s var(--ease); }
  .buybar.show { transform: none; }
  .bb-info { display: grid; min-width: 0; }
  .bb-info b { font-family: var(--serif); font-weight: 400; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bb-info span { font-size: 13px; font-weight: 500; }
  .buybar .btn { min-height: 46px; padding: 0 18px; flex: none; }
  body:has(.buybar.show) .wa-float { bottom: 84px; }
}

/* ── Notifícame (pieza vendida) ───────────────── */
.notify { display: grid; gap: 12px; padding: 18px; background: var(--paper); border: 1px solid var(--line); }
.notify-lede { margin: 0; font-size: 14px; }
.notify form { display: grid; gap: 10px; }
.notify .field { width: 100%; }
.notify-ok { margin: 0; font-weight: 500; color: var(--emerald); }
.notify-wa { justify-self: start; font-size: 10.5px; }
.card .notify-chip { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2; white-space: nowrap; background: var(--espresso); color: var(--ivory); text-decoration: none; font-size: 9px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: 7px 12px; transition: background .25s var(--ease); }
.card .notify-chip:hover { background: #45362f; }
#notificame { scroll-margin-top: 140px; }

/* ── Pago con tarjeta ──────────────────────────── */
.co-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.co-form { display: grid; gap: 14px; }
.co-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 500; letter-spacing: .06em; }
.co-form .field { width: 100%; font-size: 15px; }
.co-sum { background: var(--paper); border: 1px solid var(--line); padding: 22px; position: sticky; top: 140px; }
.co-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.co-line img { background: #F8F8F8; aspect-ratio: 4 / 5; object-fit: cover; }
.co-tot { display: flex; justify-content: space-between; font-size: 14px; padding-top: 10px; }
.co-tot.big { font-size: 17px; font-weight: 600; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; }
.co-error { margin: 0; background: #F8E5E2; color: #8E2B2B; padding: 12px 14px; font-size: 14px; }
.co-test { display: inline-block; margin: 0 0 6px; background: var(--butter); padding: 6px 12px; font-size: 13px; }
.pg-spin { width: 34px; height: 34px; margin: 26px auto; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 800px) { .co-grid { grid-template-columns: 1fr; } .co-sum { position: static; order: -1; } }

/* ── Aviso "Artículo agregado a tu bolsa" ─────── */
.added { position: fixed; z-index: 85; top: 132px; right: max(16px, calc((100vw - var(--wrap)) / 2 + 16px)); width: min(380px, calc(100vw - 32px));
  background: var(--ivory); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(43,33,29,.18); padding: 18px 20px 16px; display: grid; gap: 12px;
  opacity: 0; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.added:not(.show) { pointer-events: none; }
.added.show { opacity: 1; transform: none; }
.added-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 500; }
.added-head span { display: flex; align-items: center; gap: 8px; }
.added-head svg { width: 18px; height: 18px; stroke: var(--emerald); fill: none; stroke-width: 1.8; }
.added-head .icon-btn { width: 32px; height: 32px; margin: -6px -8px -6px 0; }
.added-item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding-bottom: 4px; }
.added-item img { aspect-ratio: 4 / 5; object-fit: cover; background: #F8F8F8; border: 1px solid var(--line); }
.added-item b { display: block; font-family: var(--serif); font-weight: 400; font-size: 17px; line-height: 1.25; }
.added-item span { font-size: 13px; color: var(--espresso-2); }
.added .btn { min-height: 46px; }
.added-link { background: none; border: 0; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; padding: 6px; justify-self: center; }
@media (max-width: 860px) {
  .added { top: auto; bottom: 0; right: 0; left: 0; width: 100%; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateY(16px); }
}

/* ── Retiro en tienda ──────────────────────────── */
.trust .pickup svg { stroke: var(--emerald); stroke-width: 1.8; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--gold-text); }
.drawer.retiro { z-index: 81; }
.retiro-body { padding: 22px; display: grid; gap: 14px; align-content: start; }
.retiro-body .label { margin: 0; font-weight: 600; letter-spacing: .14em; }
.retiro-ok { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.retiro-ok svg { width: 18px; height: 18px; flex: none; margin-top: 3px; stroke: var(--emerald); fill: none; stroke-width: 1.8; }
.retiro-body address { font-style: normal; font-size: 14px; line-height: 1.7; color: var(--espresso-2); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.retiro-body .link-arrow { justify-self: start; }

.mapa { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--line); background: var(--paper); margin: 8px 0 14px; overflow: hidden; }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── No disponible (apartada o agotada) ───────── */
.line-img { position: relative; display: block; }
.nd { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(43,33,29,.82); color: var(--ivory); font-size: 8.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 5px 2px; }
.nd-big { top: 14px; left: 14px; right: auto; bottom: auto; z-index: 3; font-size: 10px; padding: 7px 11px; letter-spacing: .2em; }
.no-disp img { filter: grayscale(.8); opacity: .6; }
.no-disp h3 a, .co-line.no-disp > span:not(.line-img) { color: var(--espresso-2); }
.nd { color: var(--ivory) !important; }
.co-line .nd-txt { font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cherry); white-space: nowrap; }
.co-line .line-img { display: block; width: 56px; overflow: hidden; }
.co-line .line-img img { display: block; width: 56px; height: 70px; }
.co-line .nd { font-size: 7px; letter-spacing: .06em; padding: 4px 0; line-height: 1.2; }
.line .nd { letter-spacing: .08em; }

.co-wa { margin-top: 10px; gap: 10px; }
.co-wa svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ── Sello de confianza en la página de pago ── */
.co-trust { display: grid; gap: 8px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(43,33,29,.06); }
.co-trust p { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--espresso-2); }
.co-trust p svg { width: 16px; height: 16px; flex: none; margin-top: 1px; fill: none; stroke: var(--emerald); stroke-width: 1.7; }
.co-cards { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--espresso-2); }
.co-cards .visa { width: 52px; height: 18px; }
.co-cards .mc { width: 34px; height: 22px; }

/* ── Fotos WebP: <picture> no cambia el diseño ── */
picture { display: contents; }

/* ── Colección compacta en celular: las piezas aparecen en la primera pantalla ── */
@media (max-width: 720px) {
  .page-head { padding-block: 12px 14px; margin-bottom: 14px; }
  .page-head .eyebrow { display: none; }
  .page-head h1 { font-size: 30px; margin-bottom: 6px; }
  .page-head .lede { font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; padding: 8px 14px; }
  .filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .filters .field { min-height: 42px; }
  .count { margin: 0 0 10px; }
}
