@import url('https://fonts.googleapis.com/css2?family=Playlist+Script&family=Poppins:wght@500;600;700;800&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --bg: #FFFFFF;
  --bg-soft: #FDE9EE;
  --surface: #FFFFFF;
  --border: #FBC3D2;
  --ink: #2A1E22;
  --ink-soft: #8A7480;
  --wine: #6E1830;
  --wine-dark: #4A0F20;
  --wine-soft: #F3DCE1;
  --gold: #B8935A;
  --gold-dark: #8C6A3A;
  --blush: #FD849D;
  --star: #B8935A;
  --success: #3F8F5F;
  --shadow: rgba(80, 30, 45, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Montserrat', system-ui, sans-serif;
}

.brand-word, h1, h2, .btn-add, .hero-band h1 { font-family: 'Poppins', system-ui, sans-serif; }
.hero-band h1 span, .script-accent { font-family: 'Playlist Script', cursive; font-weight: 400; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wine-dark); background: var(--wine-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }

a { color: inherit; }
img { max-width: 100%; display: block; }

.frame { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Top announcement bar */
.announce {
  background: var(--blush);
  color: var(--wine-dark);
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 16px;
}

/* Header */
header.site { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
nav.main { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 20px; padding: 12px 0; min-height: 48px; }
.brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand img { height: 48px; width: auto; border-radius: 0; }
@media (max-width: 480px) { .brand img { height: 36px; } }
.brand-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 600; }
.nav-links a { text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 3px; }
.nav-links a.active, .nav-links a:hover { border-bottom-color: var(--wine); color: var(--wine-dark); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-account { display: flex; align-items: center; gap: 8px; font-size: 12.5px; white-space: nowrap; }
.nav-account a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.nav-account a:first-child { color: var(--wine-dark); }
.nav-account a:hover { text-decoration: underline; }
.nav-account-logout { font-weight: 500 !important; color: var(--ink-soft) !important; }
@media (max-width: 820px) { .nav-account { display: none; } }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-soft); color: var(--ink); display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer; flex-shrink: 0; }
.icon-btn svg { width: 17px; height: 17px; }
.cart-count { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 3px; background: var(--wine); color: #fff; font-size: 9.5px; font-weight: 700; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* Search bar in header — icon-only toggle, opens as a floating dropdown */
.search-box { display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); margin: 0; padding: 8px; width: min(480px, calc(100vw - 40px)); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 10px 24px var(--shadow); z-index: 25; }
.search-box.is-open { display: block; }
.search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-soft); pointer-events: none; }
.search-box input { width: 100%; box-sizing: border-box; height: 36px; padding: 0 14px 0 36px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-soft); font-family: 'Montserrat'; font-size: 13px; color: var(--ink); }
.search-box input::placeholder { color: var(--ink-soft); }
.search-box input:focus { outline: none; border-color: var(--wine); background: var(--surface); box-shadow: 0 0 0 3px var(--wine-soft); }
.mobile-search-btn { display: flex; }

/* Desktop: el buscador queda siempre visible adentro del header, en vez de
   ser un dropdown flotante -- el dropdown (arriba) tapaba la barra de
   categorías de abajo apenas se abría. El ícono de lupa queda solo para
   mobile/tablet, donde sí hace falta el toggle por espacio. */
@media (min-width: 821px) {
  nav.main { justify-content: space-between; }
  .mobile-search-btn { display: none; }
  .search-box,
  .search-box.is-open {
    display: flex;
    align-items: center;
    position: relative;
    top: auto; left: auto; transform: none;
    margin: 0;
    padding: 0;
    width: 280px;
    max-width: 280px;
    background: none;
    border: none;
    box-shadow: none;
    z-index: auto;
  }
}

/* Category bar (plain text links below header) */
.cat-bar { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cat-bar-row { display: flex; align-items: center; justify-content: flex-start; gap: 0; overflow-x: auto; scrollbar-width: none; padding: 14px 20px; }
/* Centrado con márgenes automáticos: si el menú entra, queda centrado; si desborda (móvil), se puede scrollear desde el primer ítem. */
.cat-pill:first-child { margin-left: auto; }
.cat-pill:last-child { margin-right: auto; }
.cat-bar-row::-webkit-scrollbar { display: none; }
.cat-pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 0; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; flex-shrink: 0; background: none !important; }
.cat-pill svg, .cat-pill-count { display: none; }
.cat-pill:not(:first-child) { margin-left: 22px; }
.cat-pill:not(:first-child)::before { content: '•'; color: var(--ink-soft); margin-right: 22px; font-weight: 400; }
.cat-pill:hover, .cat-pill.active { color: var(--wine); }

/* ===== Móvil: menú ☰ + drawer lateral, y cat-bar como chips ===== */
.menu-btn { display: none; }
.drawer, .drawer-backdrop { display: none; }
@media (max-width: 820px) {
  .menu-btn { display: flex; width: 44px; height: 44px; margin-right: auto; }
  .menu-btn svg { width: 20px; height: 20px; }

  /* En móvil las categorías viven en el drawer (☰); la fila de chips se oculta. */
  .cat-bar { display: none; position: relative; }
  .cat-bar::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; background: linear-gradient(to right, rgba(255,255,255,0), var(--surface) 70%); pointer-events: none; transition: opacity 0.2s; }
  .cat-bar.is-end::after { opacity: 0; }
  .cat-bar-row { padding: 10px 16px; gap: 8px; scroll-padding: 0 16px; }
  .cat-pill, .cat-pill:first-child, .cat-pill:last-child, .cat-pill:not(:first-child) { margin: 0; }
  .cat-pill::before { content: none !important; }
  .cat-pill { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-soft) !important; font-size: 14px; }
  .cat-pill.active { background: var(--wine) !important; border-color: var(--wine); color: #FFF6F2; }
  .cat-pill--util { display: none; }

  .drawer-backdrop { display: block; position: fixed; inset: 0; background: rgba(42, 30, 34, 0.5); z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
  .drawer { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 82vw); background: var(--surface); z-index: 210; transform: translateX(-100%); transition: transform 0.25s ease; overflow-y: auto; }
  body.drawer-open .drawer { transform: none; box-shadow: 4px 0 30px rgba(74, 15, 32, 0.25); }
  body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
  body.drawer-open { overflow: hidden; }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .drawer-brand img { height: 36px; width: auto; display: block; }
  .drawer-close { width: 44px; height: 44px; }
  .drawer-nav { padding: 8px 8px 16px; }
  .drawer-nav h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin: 12px 12px 4px; }
  .drawer-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
  .drawer-nav a:active { background: var(--bg-soft); }
  .drawer-nav a.active { background: var(--wine-soft); color: var(--wine-dark); }
  .drawer-nav a.drawer-all { color: var(--wine-dark); }
  .drawer-count { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
  .drawer-sep { border: 0; border-top: 1px solid var(--border); margin: 10px 12px; }
  .drawer-foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--border); }
  .drawer-foot a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--success); font-weight: 700; font-size: 14px; text-decoration: none; }
  .drawer-foot svg { width: 20px; height: 20px; }
}

/* Footer */
footer.site { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 32px 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
footer.site h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin: 0 0 10px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
footer.site p.tag { font-size: 12px; color: var(--ink-soft); margin: 0; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-pay { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.fp-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-right: 2px; }
.pay-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.pay-chip svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--wine-dark); }

/* Brand strip */
.brand-strip { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.brand-strip .frame { display: flex; align-items: center; gap: 26px; padding-top: 14px; padding-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.brand-strip .frame::-webkit-scrollbar { display: none; }
.bs-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); white-space: nowrap; flex-shrink: 0; }
.bs-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15px; color: var(--ink-soft); white-space: nowrap; opacity: 0.7; }
.bs-name:hover { color: var(--wine-dark); opacity: 1; }

/* Buttons */
.btn-add { border: none; border-radius: 10px; background: var(--wine); color: #FFF6F2; font-weight: 700; font-size: 15px; cursor: pointer; padding: 12px 22px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-add:hover { background: var(--wine-dark); }
.btn-outline { border: 2px solid var(--gold); border-radius: 10px; background: transparent; color: var(--ink); font-weight: 700; font-family: 'Poppins'; font-size: 15px; padding: 10px 20px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }

/* Product card (shared by home + catalogo) */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: box-shadow 0.15s ease, transform 0.15s ease; }
.card:hover { box-shadow: 0 10px 26px var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 1/1; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-media svg { width: 58%; height: 58%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; }
.badge--new { background: var(--gold); color: #3A2A10; }
.badge--sale { background: var(--wine); color: #fff; font-size: 13px; padding: 6px 11px; box-shadow: 0 3px 8px rgba(110,24,48,0.4); }
.badge--best { background: var(--ink); color: var(--bg); }
.quick-add { position: absolute; bottom: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--surface); box-shadow: 0 4px 12px var(--shadow); display: flex; align-items: center; justify-content: center; color: var(--wine-dark); cursor: pointer; font-size: 18px; }
.card-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-brand { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.card-name { font-size: 13.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.rating { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-soft); }
.stars { color: var(--star); letter-spacing: 1px; font-size: 12px; }
.price-row { display: flex; align-items: baseline; gap: 5px 7px; margin-top: 2px; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.card-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.card-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.card-stock--no::before { background: var(--ink-soft); opacity: 0.6; }
.price { font-weight: 700; font-size: 15px; color: var(--ink); }
.price.on-sale { color: var(--wine-dark); }
.price-compare { font-size: 12px; color: var(--ink-soft); text-decoration: line-through; }
.price-tbd { font-size: 12.5px; font-weight: 700; color: var(--wine-dark); }
.swatches { display: flex; gap: 5px; margin-top: 2px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px var(--border), 0 0 0 2px var(--surface) inset; }

/* ===== HOME ===== */
.hero-band { background: var(--blush); text-align: center; padding: 40px 20px; }
.hero-band h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.15; margin: 0; font-weight: 800; color: #fff; text-wrap: balance; }
.hero-band h1 span { display: inline-block; color: var(--ink); font-size: 1.2em; margin-left: 6px; }
.hero-sub { text-align: center; padding: 28px 20px 8px; }
.hero-sub .lead { font-size: 15.5px; color: var(--wine-dark); max-width: 56ch; margin: 0 auto 22px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn-pill { border: 2px solid var(--ink); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 700; font-family: 'Poppins'; font-size: 14.5px; padding: 11px 26px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-pill:hover { background: var(--ink); color: #fff; }

.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 28px 20px; margin: 36px auto 0; background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item svg { width: 30px; height: 30px; flex-shrink: 0; color: var(--wine-dark); }
.trust-item strong { display: block; font-size: 13.5px; font-weight: 700; }
.trust-item span { font-size: 12px; color: var(--ink-soft); }
@media (max-width: 900px) { .trust-bar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust-bar { gap: 12px 10px; padding: 18px 16px; margin-top: 24px; } .trust-item { gap: 8px; } .trust-item svg { width: 24px; height: 24px; } .trust-item strong { font-size: 12.5px; } .trust-item span { font-size: 11px; } }

.section { padding: 8px 20px 48px; max-width: 1180px; margin: 0 auto; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-size: 21px; font-weight: 700; margin: 0; }
.section-head a { font-size: 13px; font-weight: 700; color: var(--wine-dark); text-decoration: none; }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; text-decoration: none; color: var(--ink); }
.cat-card:hover { box-shadow: 0 10px 26px var(--shadow); transform: translateY(-2px); }
.cat-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--wine-soft); color: var(--wine-dark); }
.cat-icon svg { width: 26px; height: 26px; }
.cat-card span { font-weight: 700; font-size: 14px; font-family: 'Poppins', sans-serif; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.promo-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--ink); color: var(--bg); border-radius: 20px; padding: 32px; flex-wrap: wrap; }
.promo-banner h2 { color: var(--bg); margin: 0 0 6px; font-size: 22px; }
.promo-banner p { margin: 0; color: #D8CCC3; font-size: 14px; }

.sucursales-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.suc-card { border: 1px solid var(--border); border-radius: 14px; padding: 16px; font-size: 13px; }
.suc-card strong { display: block; font-family: 'Poppins'; font-size: 14.5px; margin-bottom: 4px; }
.suc-card span { color: var(--ink-soft); }

/* ===== CATALOGO ===== */
.titlebar { padding: 20px 0 4px; }
.crumb { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.crumb a { text-decoration: none; }
.titlebar-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.titlebar h1 { font-size: 26px; font-weight: 700; margin: 0; }
.result-count { font-size: 13px; color: var(--ink-soft); }
.busqueda-movil { display: none; position: relative; margin-top: 12px; }
.busqueda-movil svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-soft); pointer-events: none; }
.busqueda-movil input { width: 100%; box-sizing: border-box; height: 44px; padding: 0 14px 0 42px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-soft); font-family: 'Montserrat'; font-size: 15px; color: var(--ink); }
.busqueda-movil input:focus { outline: none; border-color: var(--wine); background: var(--surface); box-shadow: 0 0 0 3px var(--wine-soft); }
@media (max-width: 820px) { .busqueda-movil { display: block; } }

.plp { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 16px 0 56px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 74px; }
.filtros-toggle { display: none; }
@media (max-width: 900px) {
  .plp { grid-template-columns: 1fr; gap: 16px; }
  .filtros-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); font-family: 'Poppins'; font-weight: 700; font-size: 14px; cursor: pointer; width: fit-content; }
  .filtros-toggle svg { width: 18px; height: 18px; }
  .filtros-toggle .filtros-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--wine); color: #FFF6F2; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
  .filtros-toggle .filtros-count:empty { display: none; }
  .sidebar { display: none; position: static; gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
  .sidebar.is-open { display: flex; }
  .filter-opt { padding: 10px 0; font-size: 15px; min-height: 44px; }
  .filter-opt input { width: 20px; height: 20px; }
}
.filter-group h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin: 0 0 10px; font-weight: 700; }
.filter-opt { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 5px 0; cursor: pointer; }
.filter-opt input { accent-color: var(--wine); }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; min-height: 30px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; background: var(--bg-soft); }
.chip button { border: none; background: none; color: var(--ink-soft); font-size: 13px; cursor: pointer; line-height: 1; }
.chip--clear { text-decoration: underline; border: none; background: none; color: var(--wine-dark); font-weight: 600; }

.toolbar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
select.sort { font-family: 'Montserrat'; font-size: 13px; font-weight: 600; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); }

@media (max-width: 1100px) { .grid, .cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .grid, .cats, .sucursales-row { grid-template-columns: repeat(2, 1fr); } }

/* ===== PRODUCTO (PDP) ===== */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 20px 0 8px; align-items: start; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 20px; } }

.gallery-main { aspect-ratio: 1/1; background: var(--bg-soft); border-radius: 16px; display: flex; align-items: center; justify-content: center; position: relative; }
.gallery-main svg { width: 62%; height: 62%; }
.gallery-badge { position: absolute; top: 14px; left: 14px; background: var(--gold); color: #3A2A10; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 10px; border-radius: 999px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--bg-soft); border: 2px solid transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.thumb.active { border-color: var(--wine); }
.thumb svg { width: 60%; height: 60%; }

.pdp-brand { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.pdp-title { font-size: 24px; font-weight: 700; margin: 4px 0 8px; line-height: 1.2; text-wrap: balance; }
.pdp-rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.pdp-rating .stars { color: var(--star); font-size: 14px; letter-spacing: 1px; }
.pdp-rating a { text-decoration: underline; }

.price-block { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.price-now { font-size: 26px; font-weight: 700; color: var(--wine-dark); }
.price-was { font-size: 15px; color: var(--ink-soft); text-decoration: line-through; }
.price-save { font-size: 12px; font-weight: 700; color: #fff; background: var(--wine); padding: 3px 8px; border-radius: 6px; }
.price-note { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 16px; }

.pdp-desc { font-size: 14px; line-height: 1.6; margin-bottom: 16px; }

.includes { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.includes li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; }
.includes svg { width: 16px; height: 16px; color: var(--wine-dark); flex-shrink: 0; margin-top: 2px; }

.field-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 8px; display: block; }
.variant-row { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.variant-swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--border); cursor: pointer; }
.variant-swatch.selected { border-color: var(--wine); box-shadow: 0 0 0 1px var(--surface), 0 0 0 3px var(--wine); }

.qty-add-row { display: flex; gap: 12px; margin-bottom: 14px; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty-stepper button { width: 36px; height: 44px; border: none; background: var(--bg-soft); font-size: 16px; cursor: pointer; color: var(--ink); }
.qty-stepper span { width: 36px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.stock-alert { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--wine-dark); margin-bottom: 14px; }
.stock-alert::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--wine); }

.wa-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--success); text-decoration: none; margin-bottom: 16px; }
.wa-link svg { width: 16px; height: 16px; }

.pickup { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; font-size: 13px; }
.pickup strong { display: block; margin-bottom: 4px; }
.pickup select { font-family: 'Montserrat'; width: 100%; margin-top: 6px; padding: 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); }

.pickup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.pickup-sub { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 500; margin-top: 2px; }
.locate-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--wine); background: var(--wine-soft); color: var(--wine-dark); font-family: 'Montserrat'; font-weight: 700; font-size: 12px; padding: 7px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.locate-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.locate-btn:hover { background: var(--wine); color: #fff; }
.locate-btn:disabled { opacity: 0.65; cursor: default; }

.branch-list { display: flex; flex-direction: column; gap: 8px; }
.branch-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.branch-opt input { accent-color: var(--wine); }
.branch-opt:has(input:checked) { border-color: var(--wine); background: var(--wine-soft); }
.branch-opt.nearest { box-shadow: 0 0 0 2px var(--gold); }
.branch-info { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.branch-info strong { display: block; margin: 0; font-size: 13px; }
.branch-info span { font-size: 11.5px; color: var(--ink-soft); }
.nearest-tag { display: inline-block; font-size: 10px; font-weight: 700; color: var(--gold-dark); background: #FBEFDD; padding: 2px 6px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.nearest-tag[hidden] { display: none; }
.branch-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.stock-badge { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.stock-badge--in { background: #E1F3E7; color: var(--success); }
.stock-badge--out { background: #F1E6E4; color: #A2493C; }
.branch-dist { font-size: 11px; font-weight: 700; color: var(--wine-dark); }
.locate-status { font-size: 12px; color: var(--ink-soft); margin: 10px 0 0; }

.sections { margin-top: 40px; display: flex; flex-direction: column; gap: 30px; padding-bottom: 40px; }
.sec h2 { font-size: 19px; font-weight: 700; margin: 0 0 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--bg-soft); border-radius: 12px; padding: 16px; font-size: 13.5px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--wine); color: #fff; font-weight: 700; font-size: 12px; margin-bottom: 8px; }

.reviews { display: flex; flex-direction: column; gap: 14px; }
.review { border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.review-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.review-head .stars { color: var(--star); font-size: 13px; }
.review p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 700px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
.r-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); }
.r-media { aspect-ratio: 1/1; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.r-media svg { width: 55%; height: 55%; }
.r-body { padding: 10px 12px 12px; }
.r-name { font-size: 12.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.r-price { font-size: 13.5px; font-weight: 700; color: var(--wine-dark); margin-top: 4px; }

.sticky-bar { display: none; }
@media (max-width: 860px) {
  .sticky-bar {
    display: flex; align-items: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .sticky-bar .price-now { font-size: 17px; }
  /* Con la barra fija visible, el botón del resumen pasa a secundario (un solo primario por pantalla). */
  .cart-summary #js-continuar { background: transparent; color: var(--ink); border: 2px solid var(--gold); }
  body.has-sticky-bar { padding-bottom: 76px; }
}

/* ===== CARRITO ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding: 20px 0 56px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.cart-head h1 { font-size: 24px; font-weight: 700; margin: 0; }

.cart-line { display: grid; grid-template-columns: 84px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-line-media { width: 84px; height: 84px; border-radius: 12px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-line-media svg { width: 60%; height: 60%; }
.cart-line-body { display: flex; flex-direction: column; gap: 3px; }
.cart-line-name { font-size: 14.5px; font-weight: 700; text-decoration: none; color: var(--ink); }
.cart-line-variant { font-size: 12px; color: var(--ink-soft); }
.cart-line-remove { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; border: none; background: none; padding: 8px 0; min-height: 32px; font-size: 12px; color: var(--ink-soft); cursor: pointer; width: fit-content; }
.cart-line-remove svg { width: 13px; height: 13px; }
.cart-line-remove:hover { color: var(--wine-dark); }
.cart-line-price { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 600px) { .cart-line { grid-template-columns: 60px 1fr; grid-template-rows: auto auto; } .cart-line-price { grid-column: 2; justify-self: end; } .qty-stepper { grid-column: 2; } }

.cart-continue { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 13.5px; font-weight: 700; color: var(--wine-dark); text-decoration: none; }

.cart-summary { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px; padding: 22px; position: sticky; top: 74px; }
.cart-summary h2 { font-size: 17px; font-weight: 700; margin: 0 0 14px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.summary-free { color: var(--success); font-weight: 700; }
.summary-note { font-size: 12px; color: var(--ink-soft); margin-bottom: 10px; }
.summary-total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; font-size: 17px; font-weight: 700; }
.promo-form { display: flex; gap: 8px; margin: 10px 0 4px; }
.promo-form input { flex: 1; min-width: 0; font-family: 'Montserrat'; font-size: 13px; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); }

/* ===== CHECKOUT ===== */
.checkout-steps { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.checkout-steps .step.done { color: var(--success); }
.checkout-steps .step.active { color: var(--wine-dark); }
.checkout-steps .step-sep { color: var(--border); }
@media (max-width: 700px) { .checkout-steps { display: none; } }

.checkout-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding: 24px 0 56px; align-items: start; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }

.checkout-form { display: flex; flex-direction: column; gap: 26px; }
.ck-section h2 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; margin: 0 0 14px; }
.ck-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--wine); color: #fff; font-size: 12.5px; font-family: 'Montserrat'; }

.ck-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .ck-grid-2 { grid-template-columns: 1fr; } }

.ck-field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 14px; }
.ck-field input, .ck-field select { font-family: 'Montserrat'; font-size: 14px; font-weight: 500; color: var(--ink); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }

.ck-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.ck-options--pay { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .ck-options--pay { grid-template-columns: 1fr; } }
.ck-option { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-size: 13px; }
.ck-option.selected, .ck-option:has(input:checked) { border-color: var(--wine); background: var(--wine-soft); }
.ck-option input { margin-top: 3px; accent-color: var(--wine); }
.ck-option strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
.ck-option span { color: var(--ink-soft); }

.ck-mini-line { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 4px 0; color: var(--ink-soft); }
.ck-mini-line span:last-child { white-space: nowrap; flex-shrink: 0; }

/* ===== CONFIRMACION ===== */
.confirm-box { max-width: 560px; margin: 0 auto; padding: 48px 20px 64px; text-align: center; }
.confirm-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.confirm-icon svg { width: 28px; height: 28px; }
.confirm-lead { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin: 10px 0 26px; }
.confirm-summary { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; text-align: left; margin-bottom: 20px; }
.confirm-info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; margin-bottom: 28px; }
@media (max-width: 560px) { .confirm-info { grid-template-columns: 1fr; } }
.confirm-info div { border: 1px solid var(--border); border-radius: 12px; padding: 14px; font-size: 13px; }
.confirm-info strong { display: block; margin-bottom: 4px; font-size: 13.5px; }
.confirm-info span { color: var(--ink-soft); }
.confirm-ctas { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.confirm-ctas .btn-add, .confirm-ctas .btn-outline { width: 100%; justify-content: center; }

:focus-visible { outline: 2px solid var(--wine-dark); outline-offset: 2px; }

