/* Tienda — "brasserie a media luz": lienzo olivo, acento limón, secciones crema, todo plano. */
.wrap { max-width: var(--page); margin: 0 auto; padding-inline: var(--gutter); }

/* ── Barra superior ────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.topbar-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); height: 80px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav-right { justify-content: flex-end; }
.nav-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 10px;
  background: none; border: 1px solid transparent; border-radius: var(--radius);
  font-size: 16px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; color: var(--fg);
  transition: border-color 0.15s;
}
.nav-link:hover { border-color: var(--line-strong); }
.nav-link.is-active { border-color: var(--white); }
.wordmark { font-size: 46px; font-weight: 500; letter-spacing: 0.04em; line-height: 1; text-transform: uppercase; text-decoration: none; color: var(--fg); }
.bag-count {
  min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center;
  background: var(--lemon); color: var(--olive); border-radius: var(--radius); font-size: 13px; font-weight: 700;
}
.bag-count[data-n='0'] { background: transparent; color: var(--fg); border: 1px solid var(--line-strong); }
.bag-icon svg { width: 18px; height: 18px; }

/* ── Hero ──────────────────────────────────────────────── */
.hero-inner { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(720px, calc(100dvh - 80px)); }
.hero-text { padding: 72px var(--gutter) 72px max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter))); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.hero-kicker { color: var(--fg-muted); }
.hero-sub { max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-art { position: relative; background: #c4573a; overflow: hidden; min-height: 420px; }
.hero-art svg { position: absolute; height: auto; }
.hero-art svg:nth-child(1) { left: 2%; bottom: -3%; width: 38%; }
.hero-art svg:nth-child(2) { left: 50%; bottom: 2%; width: 66%; transform: translateX(-50%); z-index: 1; }
.hero-art svg:nth-child(3) { right: 2%; bottom: -3%; width: 38%; }

/* ── Catálogo ──────────────────────────────────────────── */
.catalog { padding: 96px 0 100px; scroll-margin-top: 80px; }
.section-head { display: grid; gap: 16px; max-width: 640px; margin-bottom: 48px; }

.toolbar {
  display: grid; grid-template-columns: minmax(220px, 1.4fr) auto minmax(0, 1fr) minmax(0, 1fr);
  gap: 15px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-btn {
  min-height: 44px; padding: 8px 14px; background: none; border: 1px solid transparent; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg);
}
.seg-btn:hover { border-color: var(--line-strong); }
.seg-btn.is-active { border-color: var(--seg-bg); background: var(--seg-bg); color: var(--seg-fg); }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 28px; }
.result-bar .result-count { margin: 0; }

.grid { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 40px 30px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-tile {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 0;
  background: var(--tile); overflow: hidden; color: var(--olive);
}
.card-tile svg { position: absolute; inset: 7% 10% 5%; width: 80%; height: 88%; transition: transform 0.35s ease-out; }
.card-tile:hover svg { transform: scale(1.05); }
.card.is-out .card-tile svg { opacity: 0.55; filter: grayscale(0.7); }
.card-chips { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 1; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; flex: 1; }
.card-body h3 { font-size: 24px; line-height: 1.2; letter-spacing: 0.02em; color: var(--forest); }
.card-notes { font-size: 17px; line-height: 1.35; letter-spacing: 0.02em; color: var(--fg); }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-price { font-size: 20px; font-weight: 500; letter-spacing: 0.02em; }
.empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; display: grid; gap: 16px; justify-items: center; }

/* ── Pieza destacada ───────────────────────────────────── */
.feature-inner { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; }
.feature-text { padding: 80px var(--gutter) 80px max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter))); display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.feature-text p { max-width: 30em; }
.feature-art { background: var(--tile); min-height: 520px; position: relative; }
.feature-art svg { position: absolute; inset: 8% 25%; width: 50%; height: 84%; }
#destacado { scroll-margin-top: 80px; }

/* ── Pie ───────────────────────────────────────────────── */
.footer { padding: 64px 0 48px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-mark { margin-bottom: 16px; }
.footer-note { max-width: 28em; }
.footer-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 40px; height: 40px;
  display: grid; place-items: center; padding: 0;
  background: var(--forest); color: var(--cream); border: 0; border-radius: var(--radius-round);
}
.to-top:hover { background: var(--cream); color: var(--forest); }

/* ── Detalle de producto ───────────────────────────────── */
.pdialog { width: min(1040px, calc(100vw - 24px)); overflow: auto; }
.pd-close { position: absolute; top: 8px; right: 8px; z-index: 3; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pd-art { position: relative; background: var(--tile); min-height: 520px; }
.pd-art svg { position: absolute; inset: 10% 20% 8%; width: 60%; height: 82%; }
.pd-info { --pd-px: 40px; --pd-pb: 36px; padding: 48px var(--pd-px) var(--pd-pb); display: flex; flex-direction: column; gap: 18px; }
.pd-cta { display: grid; gap: 12px; }
.pd-desc { font-size: 18px; line-height: 1.4; color: var(--fg); }
.pd-notes { display: grid; gap: 4px; }
.pd-notes #pd-notes { font-size: 17px; }
.sizes { border: 0; padding: 0; margin: 0; }
.sizes legend { padding: 0; margin-bottom: 10px; color: var(--fg-muted); }
.size-list { display: flex; flex-wrap: wrap; gap: 10px; }
.size-opt { position: relative; display: grid; gap: 2px; min-width: 104px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; text-align: left; }
.size-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.size-opt .ml { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.size-opt .pr { font-size: 15px; color: var(--fg-muted); }
.size-opt:has(input:checked) { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.size-opt:has(input:checked) .pr { color: var(--bg); }
.size-opt:has(input:focus-visible) { outline: 2px solid var(--lemon); outline-offset: 3px; }
.size-opt.is-out { opacity: 0.5; cursor: not-allowed; }
.size-opt.is-out .ml { text-decoration: line-through; }
.size-opt.is-out input { cursor: not-allowed; }
.pd-buy { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.pd-price { color: var(--lemon); }
.stock-low { color: var(--lemon); }
.stock-out { color: #ffb4b4; }

/* ── Bolsa (cajón lateral) ─────────────────────────────── */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100vw); height: 100dvh; max-height: none; max-width: 100vw; border-width: 0 0 0 1px; display: none; flex-direction: column; }
.drawer[open] { display: flex; animation: slide-in 0.25s ease-out; }
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 20px 28px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow: auto; padding: 8px 28px; }
.drawer-foot { padding: 20px 28px 28px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.drawer-empty { display: grid; gap: 18px; justify-items: start; padding: 48px 0; }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line-art { position: relative; width: 76px; height: 76px; background: var(--tile); }
.line-art svg { position: absolute; inset: 8% 18%; width: 64%; height: 84%; }
.line-info { display: grid; gap: 6px; min-width: 0; }
.line-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.line-name { font-size: 18px; font-weight: 500; line-height: 1.2; }
.line-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; }

/* ── Finalizar compra ──────────────────────────────────── */
.cdialog { width: min(980px, calc(100vw - 24px)); overflow: auto; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.co-form { padding: 36px 36px 32px; display: grid; gap: 20px; align-content: start; }
.co-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.opts { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.opts legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; }
.opt:has(input:checked) { border-color: var(--lemon); background: rgb(247 234 72 / 0.08); }
.opt small { display: block; color: var(--fg-muted); font-size: 14px; letter-spacing: 0.02em; }
.co-summary { padding: 36px 32px; display: grid; gap: 14px; align-content: start; background: var(--forest); }
.co-summary .line { grid-template-columns: 56px minmax(0, 1fr); padding: 12px 0; }
.co-summary .line-art { width: 56px; height: 56px; }
.co-total { padding-top: 14px; border-top: 1px solid var(--line-strong); }
.demo-note { padding: 10px 12px; border: 1px dashed var(--line-strong); font-size: 14px; letter-spacing: 0.02em; color: var(--fg-muted); }
.co-done { padding: 56px 48px; display: grid; gap: 22px; justify-items: start; max-width: 640px; }
.co-done .big-check { color: var(--lemon); }
.co-done table { width: 100%; border-collapse: collapse; }
.co-done td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.co-done td:last-child { text-align: right; white-space: nowrap; }
.co-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid { --cols: 2; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar-search { grid-column: 1 / -1; }
  .seg { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .topbar-inner { grid-template-columns: auto 1fr; height: 68px; }
  .nav-left, .nav-admin { display: none; }
  .wordmark { font-size: 34px; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding-block: 56px 48px; }
  .hero-art { min-height: 320px; padding-top: 8%; }
  .catalog { padding-block: 64px 72px; }
  .feature-inner { grid-template-columns: 1fr; }
  .feature-art { min-height: 380px; order: -1; }
  .feature-text { padding-block: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .pd-grid, .co-grid { grid-template-columns: 1fr; }
  .pd-art { min-height: 300px; }
  .pd-info { --pd-px: 22px; --pd-pb: 24px; padding: 28px var(--pd-px) var(--pd-pb); }
  .co-form, .co-summary { padding: 24px 20px; }
}
@media (max-width: 560px) {
  .grid { --cols: 1; gap: 36px; }
  .toolbar { grid-template-columns: 1fr; }
  .co-row { grid-template-columns: 1fr; }
  .nav-bag span:nth-child(2) { display: none; }
}

/* ── Fotos ─────────────────────────────────────────────── */
.card-tile img, .pd-art img, .feature-art img, .line-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-img { opacity: 0; transition: opacity 0.7s ease-out; }
.tile-img.is-in { opacity: 1; }
.card-tile img { transition: opacity 0.7s ease-out, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card-tile:hover img { transform: scale(1.07); }
.card.is-out .card-tile img.is-in { opacity: 0.5; filter: grayscale(1); }

/* ── Movimiento ────────────────────────────────────────── */
.rise { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.mask { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.mask-in { display: block; animation: mask-up 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.mask:nth-child(1) .mask-in { animation-delay: 200ms; }
.mask:nth-child(2) .mask-in { animation-delay: 380ms; }
@keyframes mask-up { from { transform: translateY(108%); } }

.hero-art { animation: wipe 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 62% 50%; animation: kenburns 28s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.16) translate(-2%, -1.5%); } }

/* Franja de texto en desplazamiento */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-size: 26px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lemon); white-space: nowrap; }
.marquee-item svg { color: var(--cream); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Revelado al hacer scroll (solo si hay JS) */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Banda editorial con paralaje */
.band { position: relative; min-height: min(70vh, 640px); display: grid; place-items: center; overflow: hidden; }
.band[hidden] { display: none; }
.band-img { position: absolute; left: 0; top: -14%; width: 100%; height: 128%; object-fit: cover; will-change: transform; }
.band::after { content: ''; position: absolute; inset: 0; background: rgb(29 11 13 / 0.6); } /* velo plano, sin degradado */
.band-text { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: center; text-align: center; max-width: 920px; padding: 96px var(--gutter); }
.band-text .body-lg { max-width: 28em; }

/* Barra superior: se esconde al bajar y vuelve al subir */
.topbar { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.topbar.is-hidden { transform: translateY(-100%); }
.bag-count.bump { animation: bump 0.45s ease-out; }
@keyframes bump { 40% { transform: scale(1.5); } }

/* ── Filtros del catálogo ──────────────────────────────── */
.filters { display: grid; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.filters-top { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 260px) auto; gap: 15px; align-items: center; }
.filters-toggle { display: none; }
.filters-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 5px; background: var(--lemon); color: var(--olive); font-size: 12px; font-weight: 700; border-radius: var(--radius); }
.filters-count[hidden] { display: none; }
.filters-body { display: grid; gap: 14px; }
.filters-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.seg-btn small { font-size: 12px; letter-spacing: 0.02em; opacity: 0.65; margin-left: 2px; }
.seg-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.toggles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.chk { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.chk input { width: 18px; height: 18px; accent-color: var(--forest); margin: 0; }
.toggles .js-clear { margin-left: auto; }
.toggles .js-clear[hidden] { display: none; }

.was { font-weight: 400; font-size: 0.78em; opacity: 0.6; margin-left: 4px; text-decoration: line-through; }
/* Paginación */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding-top: 52px; }
.pager[hidden] { display: none; }
.pg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 6px 12px; background: none; border: 1px solid transparent; border-radius: var(--radius); font-size: 15px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg); }
.pg-btn:hover:not(:disabled):not([aria-current]) { border-color: var(--line-strong); }
.pg-btn[aria-current='page'] { background: var(--seg-bg); border-color: var(--seg-bg); color: var(--seg-fg); cursor: default; }
.pg-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pg-btn[aria-current='page']:disabled { opacity: 1; }
.pg-gap { min-width: 24px; text-align: center; color: var(--fg-muted); }
@media (max-width: 560px) { .pg-nav span { display: none; } .pager { gap: 4px; } }

/* Esqueletos mientras llegan los productos */
.skel .card-tile { background: var(--line); animation: pulse 1.3s ease-in-out infinite; }
.skel .card-body i { display: block; height: 16px; background: var(--line); animation: pulse 1.3s ease-in-out infinite; }
.skel .card-body i.short { width: 55%; }
@keyframes pulse { 50% { opacity: 0.45; } }

/* Marcas */
button.nav-link { cursor: pointer; }
.bdialog { width: min(760px, calc(100vw - 24px)); max-height: 86dvh; overflow: auto; }
.b-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px 28px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 1; }
.b-body { padding: 8px 28px 32px; display: grid; gap: 22px; }
.b-group { display: grid; gap: 10px; padding-top: 14px; }
.b-list { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-btn { min-height: 40px; padding: 6px 14px; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 15px; letter-spacing: 0.04em; }
.brand-btn:hover { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.brand-btn small { opacity: 0.6; margin-left: 4px; }
.footer-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.footer-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-admin { margin-top: 18px; font-size: 14px; opacity: 0.7; }

@media (max-width: 1024px) {
  .filters-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .filters-top { grid-template-columns: 1fr auto; }
  .filters-top .toolbar-search { grid-column: 1 / -1; }
  .filters-toggle { display: inline-flex; }
  .filters-body { display: none; }
  .filters.is-open .filters-body { display: grid; }
}
@media (max-width: 560px) {
  .filters-row { grid-template-columns: 1fr; }
  .b-body { padding-inline: 20px; }
}

/* Información */
.info-body { gap: 18px; }
.info-body section { display: grid; gap: 8px; }
.info-body p, .info-body li { font-size: 17px; line-height: 1.45; }
.info-body ul { margin: 0; padding-left: 20px; }
.info-dl { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 0; }
.info-dl dd { margin: 0; font-size: 17px; }
.info-dl a { color: inherit; }
.footer-links { margin-top: 18px; }
@media (max-width: 560px) { .info-dl { grid-template-columns: 1fr; gap: 2px; } .info-dl dd { margin-bottom: 12px; } }

/* ── Cómo ver los productos: lista, cuadrícula grande o pequeña ──────── */
.view-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.view-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; background: none; border: 0; border-radius: var(--radius); color: var(--fg); cursor: pointer; }
.view-btn:hover { background: var(--line); }
.view-btn[aria-pressed='true'] { background: var(--seg-bg); color: var(--seg-fg); }
.view-btn:focus-visible { outline: 2px solid var(--fg-accent); outline-offset: 1px; }

/* Cuadrícula pequeña: más columnas, textos compactos y un solo distintivo por foto */
.grid[data-layout='pequena'] .card-body { padding-top: 14px; gap: 5px; }
.grid[data-layout='pequena'] .card-body h3 { font-size: 17px; }
.grid[data-layout='pequena'] .card-notes, .grid[data-layout='pequena'] .link-arrow { display: none; }
.grid[data-layout='pequena'] .card-price { font-size: 16px; }
.grid[data-layout='pequena'] .card-chips { top: 8px; left: 8px; gap: 4px; }
.grid[data-layout='pequena'] .card-chips .badge:nth-child(n + 2), .grid[data-layout='lista'] .card-chips .badge:nth-child(n + 2) { display: none; }
:root[data-theme='limon'] .grid[data-layout='pequena'] { --cols: 4; gap: 28px 20px; }
@media (max-width: 1024px) { :root[data-theme='limon'] .grid[data-layout='pequena'] { --cols: 3; } }
@media (max-width: 560px) { :root[data-theme='limon'] .grid[data-layout='pequena'] { --cols: 2; gap: 26px 12px; } }

/* Lista: una fila por producto, con la foto a la izquierda */
:root[data-theme='limon'] .grid[data-layout='lista'] { --cols: 1; gap: 0; }
.grid[data-layout='lista'] .card { flex-direction: row; align-items: stretch; gap: 18px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.grid[data-layout='lista'] .card-tile { width: 128px; flex: none; }
.grid[data-layout='lista'] .card-body { padding-top: 0; justify-content: center; gap: 4px; }
.grid[data-layout='lista'] .card-body h3 { font-size: 20px; }
.grid[data-layout='lista'] .card-notes { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid[data-layout='lista'] .card-foot { margin-top: 0; padding-top: 6px; }
.grid[data-layout='lista'] .card-chips { top: 6px; left: 6px; gap: 4px; }
@media (max-width: 560px) {
  .grid[data-layout='lista'] .card { gap: 14px; }
  .grid[data-layout='lista'] .card-tile { width: 104px; }
  .grid[data-layout='lista'] .card-body h3 { font-size: 17px; }
  .grid[data-layout='lista'] .card-notes { font-size: 14px; -webkit-line-clamp: 1; }
  .grid[data-layout='lista'] .link-arrow { display: none; }
  .grid[data-layout='lista'] .card-price { font-size: 17px; }
}

/* Detalle del producto: en pantallas chicas o bajas, el precio y «Agregar a la bolsa» quedan siempre a la vista */
@media (max-width: 860px), (max-height: 720px) {
  .pd-cta { position: sticky; bottom: 0; z-index: 2; margin: 0 calc(var(--pd-px) * -1) calc(var(--pd-pb) * -1); padding: 12px var(--pd-px) 16px; background: var(--bg); border-top: 1px solid var(--line); }
  .pd-cta .pd-buy { margin-top: 0; padding-top: 0; border-top: 0; }
}

/* Distintivos de las fotos chicas: nunca se salen de la foto */
.grid[data-layout='pequena'] .card-chips, .grid[data-layout='lista'] .card-chips { right: 6px; }
.grid[data-layout='pequena'] .card-chips .badge, .grid[data-layout='lista'] .card-chips .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Quiénes somos ────────────────────────────────────────────────────── */
.about { padding: clamp(64px, 9vw, 120px) 0; }
.about-inner { display: grid; gap: clamp(40px, 6vw, 72px); }
.about-intro { display: grid; gap: 20px; max-width: 46rem; }
.about-lead { color: var(--fg-muted); max-width: 38em; }
.about-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.about-pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.about-pillars li { display: grid; align-content: start; gap: 8px; padding: 28px 24px 4px 0; }
.about-pillars li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.about-pillar-title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; letter-spacing: 0.03em; font-weight: 500; color: var(--fg-accent); }
.about-pillar-text { color: var(--fg-muted); font-size: 16px; line-height: 1.4; }
.about-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.about-card { display: grid; align-content: start; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.about-card p { margin: 0; font-size: 17px; line-height: 1.45; }
.about-where { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--fg-muted); }
.about-where svg { flex: none; color: var(--fg-accent); }
.about-note { margin: 0; max-width: 46rem; }
@media (max-width: 1024px) {
  .about-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-pillars li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .about-pillars li:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 24px; }
  .about-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .about-pillars { grid-template-columns: 1fr; }
  .about-pillars li, .about-pillars li + li { padding: 20px 0 4px; border-left: 0; margin-top: 0; }
  .about-pillars li + li { border-top: 1px solid var(--line); }
  .about-cards { gap: 14px; }
  .about-card { padding: 22px; }
  .about-cta .btn { flex: 1 1 100%; }
}

/* ── Páginas: los perfumes o «Quiénes somos» (la vista aparte reemplaza a la portada y al catálogo) ── */
body[data-page='nosotros'] main > :not(#nosotros) { display: none; }
body:not([data-page='nosotros']) #nosotros { display: none; }
body[data-page='nosotros'] #nav-cats .is-active { border-color: transparent; }
.nav-short { display: none; }
@media (max-width: 400px) { .nav-long { display: none; } .nav-short { display: inline; } }
#about-title:focus { outline: none; }
body[data-page='nosotros'] .about { min-height: calc(100dvh - 80px); }

/* ── Página de un producto (#producto/12-nombre) ─────────────────────────── */
body[data-page='producto'] main > :not(#producto) { display: none; }
body:not([data-page='producto']) #producto { display: none; }
.light { --star: #a8680a; --star-off: rgb(0 0 0 / 0.18); }
.dark, .forest { --star: #f2b01e; --star-off: rgb(255 255 255 / 0.28); }
.stars { position: relative; display: inline-block; font-size: 18px; line-height: 1; letter-spacing: 2px; white-space: nowrap; vertical-align: middle; color: var(--star-off); }
.stars::before { content: '★★★★★'; }
.stars::after { content: '★★★★★'; position: absolute; left: 0; top: 0; width: var(--pct, 0%); overflow: hidden; color: var(--star); }
.rating-n { font-weight: 600; }
.link-btn { padding: 0; background: none; border: 0; font: inherit; color: var(--fg); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.link-btn:hover { color: var(--fg-accent); }
.light .stock-low { color: #8a5a00; }
.light .stock-out { color: var(--red); }
.light .size-opt:has(input:focus-visible) { outline-color: var(--fg-accent); }
a.card-tile { text-decoration: none; }
.pd-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -8px 0 0; }
.pd-rating:empty { display: none; }
.pd-page { align-self: flex-start; }

.pp { padding: 32px 0 clamp(64px, 8vw, 110px); }
.pp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--fg-muted); }
.pp-crumbs a { color: inherit; text-decoration: none; }
.pp-crumbs a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.pp-crumbs [aria-current] { color: var(--fg); }
.pp-main { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pp-art { position: sticky; top: 100px; aspect-ratio: 1; background: var(--tile); overflow: hidden; }
.pp-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp-art svg { position: absolute; inset: 10% 20% 8%; width: 60%; height: 82%; }
.pp-info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pp-info > * { margin-block: 0; }
.pp-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-desc { font-size: 18px; line-height: 1.45; }
.pp-notes { font-size: 17px; }
.pp-buy { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.pp-price { color: var(--fg); }
.pp-perks { list-style: none; margin: 4px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; color: var(--fg-muted); font-size: 16px; }
.pp-perks li { display: flex; align-items: center; gap: 10px; }
.pp-perks svg { flex: none; color: var(--fg-accent); }

.pp-section { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.pp-section > h2 { margin: 0 0 28px; }
.pp-details { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px clamp(28px, 5vw, 72px); align-items: start; }
.pp-details-text { margin: 0; font-size: 18px; line-height: 1.5; max-width: 34em; }
.pp-facts { margin: 0; display: grid; }
.pp-facts > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pp-facts > div:first-child { border-top: 1px solid var(--line); }
.pp-facts dt, .pp-facts dd { margin: 0; }
.pp-facts dd { overflow-wrap: anywhere; }
.pp-details > .pp-facts:only-child { grid-column: 1 / -1; max-width: 48rem; }

.pp-rev-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px clamp(24px, 5vw, 72px); align-items: start; }
.pp-score { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.pp-score-n { margin: 0; font-size: clamp(56px, 7vw, 80px); line-height: 1; font-weight: 500; letter-spacing: -0.02em; }
.pp-score .stars { font-size: 22px; }
.pp-score-count { margin: 6px 0 0; }
.pp-dist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 26rem; }
.pp-dist li { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr) 2rem; align-items: center; gap: 12px; font-size: 15px; }
.pp-dist-bar { height: 8px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.pp-dist-bar i { display: block; height: 100%; background: var(--star); }
.pp-dist-c { text-align: right; font-variant-numeric: tabular-nums; color: var(--fg-muted); }
.pp-form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.pp-form h3 { margin: 0; }
.pp-rate { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.pp-rate legend { padding: 0; margin-bottom: 4px; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; width: max-content; }
.star-input label { cursor: pointer; font-size: 36px; line-height: 1; padding: 2px 4px; color: var(--star-off); transition: color 0.12s, transform 0.12s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--star); }
.star-input label:active { transform: scale(0.9); }
.star-input input:focus-visible + label { outline: 2px solid var(--fg-accent); outline-offset: 2px; }
.pp-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pp-rev-list { list-style: none; margin: 40px 0 0; padding: 0; max-width: 56rem; }
.pp-review { display: grid; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pp-review:first-child { border-top: 1px solid var(--line); }
.pp-review-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.pp-review-title { font-size: 18px; font-weight: 600; }
.pp-review-body { margin: 0; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.pp-review-by { margin: 0; }
.pp-empty { padding: 24px 0; }
.pp-more { margin: 24px 0 0; }
.pp-more .btn[hidden] { display: none; }
.pp-empty.empty { text-align: center; padding: 72px 0; }

.pp-skel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.pp-skel-art { aspect-ratio: 1; background: var(--line); animation: pp-pulse 1.4s ease-in-out infinite; }
.pp-skel-info { display: grid; align-content: start; gap: 16px; padding-top: 12px; }
.pp-skel-info i { display: block; height: 22px; background: var(--line); animation: pp-pulse 1.4s ease-in-out infinite; }
.pp-skel-info i.w { height: 44px; width: 80%; }
.pp-skel-info i.short { width: 40%; }
@keyframes pp-pulse { 50% { opacity: 0.45; } }

@media (max-width: 860px) {
  .pp { padding-top: 20px; }
  .pp-main, .pp-skel, .pp-details, .pp-rev-grid { grid-template-columns: 1fr; }
  .pp-art { position: relative; top: auto; }
  .pp-facts > div { grid-template-columns: 7.5rem minmax(0, 1fr); }
  .pp-score { margin-bottom: 16px; }
}
@media (max-width: 560px) {
  .pp-desc, .pp-details-text { font-size: 17px; }
  .star-input label { font-size: 40px; padding: 2px 5px; }
}
@media (prefers-reduced-motion: reduce) { .pp-skel-art, .pp-skel-info i { animation: none; } }
