/* Milenni storefront. Mobile first: base styles target 360 px; wider screens add columns.
   Colours from the Milenni logo, checked for WCAG AA contrast. No external fonts or assets. */
:root {
  color-scheme: only light;
  /* Brand palette taken from Milenni's logo sheet: rose gold, cocoa, blush. */
  --bg: #FBF4EE;
  --surface: #FFFFFF;
  --text: #4A2F2E;
  --muted: #6C4A49;
  --brand: #8E5246;
  --accent: #8E5246;
  --accent-text: #FFFFFF;
  --wa: #5E3B37;
  --wa-text: #FFFFFF;
  --line: #F0D9D2;
  --blush: #FFDFD8;
  --field-border: #6C4A49;
  --in-bg: #E3F0E6;  --in-text: #2F5A3E;
  --low-bg: #FBE8C8; --low-text: #7A4A1C;
  --zero-bg: #F9E1E4; --zero-text: #8A2E3F;
  --focus: #1A4F8B;
  --radius: 12px;
  --gap: 16px;
  --tap: 44px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: var(--bg); color: var(--text); font-size: 1rem; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 var(--gap); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip-link { position: absolute; left: var(--gap); top: -100px; background: var(--surface); color: var(--text); padding: 12px 16px; border-radius: var(--radius); z-index: 10; }
.skip-link:focus { top: 8px; }

.dev-banner { flex: 1 1 100%; background: var(--low-bg); color: var(--low-text); text-align: center; font-size: .875rem; padding: 4px 8px; margin: 0; border-radius: 8px; }

/* Header (S-01): logo, name and slogan visible without scrolling at 360 px (CAT-01 c1). */
.site-header { background: var(--surface); border-bottom: 3px solid var(--blush); padding: 12px var(--gap); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-height: var(--tap); flex: 1 1 auto; min-width: 0; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.store-name { font-size: 1.375rem; font-weight: 700; color: var(--brand); line-height: 1.2; letter-spacing: .01em; }
.slogan { margin: 0; font-size: .9375rem; color: var(--muted); line-height: 1.3; }
/* Fixed box so a missing or broken logo never grows or collapses the header (CAT-01 c5). */
.logo { width: 56px; height: 56px; flex: 0 0 56px; object-fit: contain; border-radius: 50%; background: var(--bg); overflow: hidden; color: transparent; font-size: 0; }

/* WhatsApp buttons (WA-01, AX-11). */
.wa-block { display: flex; flex-direction: column; gap: 4px; }
.wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 10px 16px; border-radius: 999px; background: var(--wa); color: var(--wa-text); font-weight: 600; text-decoration: none; text-align: center; }
.wa::before { content: ""; width: 18px; height: 18px; flex: 0 0 18px; background: url("wa-icon.5c1cd041ebb2.svg") center / contain no-repeat; }
.wa-disabled { background: var(--line); color: var(--text); }
.wa-disabled::before { display: none; }
.wa-fallback { font-size: .875rem; color: var(--muted); }
.site-header .wa-block { flex: 1 1 100%; }
.site-header .wa { width: 100%; }

main { padding: var(--gap); max-width: 1080px; margin: 0 auto; }

/* Catalog (S-02): two columns at 360 px, more on wider screens. */
.catalog { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-link { display: block; color: var(--text); text-decoration: none; min-height: var(--tap); }
.card-link:hover .name { text-decoration: underline; }
.card-img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; background: var(--bg); }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-link .name { display: block; padding: 10px 12px 0; font-weight: 600; line-height: 1.3; }
.price { font-weight: 700; font-size: 1.0625rem; margin: 0; }

/* Stock label (D-14): text always present, colour only supports it (AX-05). */
.stock { display: inline-block; align-self: flex-start; font-size: .875rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; margin: 0; background: var(--in-bg); color: var(--in-text); }
.stock-low .stock, .stock-low_1 .stock { background: var(--low-bg); color: var(--low-text); }
.stock-zero .stock { background: var(--zero-bg); color: var(--zero-text); }

.pager { display: flex; justify-content: space-between; gap: var(--gap); margin-top: var(--gap); }
.pager a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px; }

.notice-title { font-size: 1.25rem; margin: 0 0 4px; }
.empty, .notice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--gap); margin: 0 0 var(--gap); }
.notice p { margin: 0; }
.notice a { display: inline-flex; align-items: center; min-height: var(--tap); }

/* Product page (S-03). */
.product { display: grid; gap: var(--gap); }
.gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.product-info { display: grid; gap: 10px; align-content: start; }
.product-info h1 { margin: 0; }
.product-info .stock { justify-self: start; }
.product-info .price { font-size: 1.375rem; }
.zero-note { background: var(--zero-bg); color: var(--zero-text); border-radius: var(--radius); padding: 12px; margin: 0; }
.description { margin: 0; }

.add-to-cart { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--gap); }
.add-to-cart label { font-weight: 600; }
.add-to-cart input { width: 100%; min-height: var(--tap); font-size: 1rem; padding: 8px 12px; border: 2px solid var(--field-border); border-radius: 8px; background: var(--surface); color: var(--text); }
.btn-primary { min-height: var(--tap); width: 100%; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 700; padding: 10px 16px; cursor: pointer; }
.short-msg { margin: 0; color: var(--low-text); background: var(--low-bg); border-radius: 8px; padding: 10px 12px; }
.short-msg:empty { display: none; }

/* Footer. */
.site-footer { border-top: 1px solid var(--line); padding: var(--gap); margin-top: calc(2 * var(--gap)); color: var(--muted); font-size: .875rem; text-align: center; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }

@media (min-width: 600px) {
  .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
  .site-header { padding: 12px 24px; }
  .site-header .wa-block { flex: 0 0 auto; align-items: flex-end; }
  .site-header .wa { width: auto; }
  .gallery:not(.single) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery:not(.single) img:first-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .btn-primary, .add-to-cart input { max-width: 360px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* P09B: cart, checkout, confirmation and status (Increment 2 look). Builds on the P08B functional styles.
   Same palette and tokens as P07B; no new colours. Mobile first; two columns from 900 px. */

/* Header cart link: bag icon + count; the visible text stays "Carrito (n)". */
.cart-link { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 14px; border-radius: 999px; border: 2px solid var(--accent); color: var(--accent); background: var(--surface); font-weight: 600; text-decoration: none; white-space: nowrap; }
.cart-link::before { content: ""; width: 20px; height: 20px; flex: 0 0 20px; background: url("cart-icon.db8e5f4e0044.svg") center / contain no-repeat; }
.cart-link:hover { background: var(--blush); }

/* Messages. */
.flash, .notice-alert { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 12px; margin: 0 0 var(--gap); }
.flash p { margin: 0; }
.flash p + p { margin-top: 4px; }
.notice-alert[hidden] { display: none; }

/* Buttons. */
.btn-secondary, .btn-link { min-height: var(--tap); padding: 0 16px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--accent); background: var(--surface); color: var(--accent); text-decoration: none; }
.btn-secondary:hover { background: var(--blush); }
.btn-link { border: 0; background: none; color: var(--accent); text-decoration: underline; padding: 0 8px; }
a.btn-primary { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn-primary:hover { background: var(--wa); }
.btn-primary[aria-disabled="true"] { opacity: .75; cursor: progress; }
.btn-wide { width: 100%; }

/* Line cards (cart, summary, status). Thumbnail left, text right. */
.cart-lines, .summary-lines { list-style: none; margin: 0 0 var(--gap); padding: 0; display: grid; gap: 12px; }
.cart-line, .summary-lines li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; gap: 12px; align-items: flex-start; }
.cart-line.has-shortage, .summary-line.has-shortage { border-left: 4px solid var(--low-text); }
.line-thumb { width: 64px; height: 64px; flex: 0 0 64px; object-fit: cover; border-radius: 8px; background: var(--bg); }
.summary-lines .line-thumb { width: 56px; height: 56px; flex-basis: 56px; }
.line-body { display: grid; gap: 6px; flex: 1 1 auto; min-width: 0; }
.line-body p { margin: 0; }
.cart-name { font-weight: 600; }
.cart-name a { color: var(--text); display: inline-flex; align-items: center; min-height: var(--tap); }
.cart-price { color: var(--muted); }
.line-amount { color: var(--text); font-weight: 700; }
.line-attrs { color: var(--muted); font-size: .9375rem; }
.pending-part { color: var(--low-text); font-weight: 600; }
.recheck { color: var(--zero-text); background: var(--zero-bg); border-radius: 8px; padding: 8px 12px; }

.cart-qty { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 2px; }
.cart-qty label { flex: 1 1 100%; font-weight: 600; font-size: .9375rem; }
.cart-qty input { flex: 0 0 76px; width: 76px; text-align: center; }
.cart-qty button { white-space: nowrap; }

/* Fields. */
.cart-qty input, .checkout input[type=text], .checkout input[type=tel], .checkout input[type=email], .checkout input[type=password], .checkout textarea { width: 100%; min-height: var(--tap); font: inherit; padding: 8px 12px; border: 2px solid var(--field-border); border-radius: 8px; background: var(--surface); color: var(--text); }
.checkout textarea { resize: vertical; }
.checkout [aria-invalid="true"] { border-color: var(--zero-text); background: #FFF8F9; }
.ref-input { text-transform: uppercase; letter-spacing: .15em; font-weight: 700; }

/* Cart page: list, then the total with the main button. On phones the total stays at the bottom of the screen. */
.cart-layout { display: grid; gap: var(--gap); }
.cart-summary { position: sticky; bottom: 0; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -4px 16px rgba(74, 47, 46, .10); padding: 12px var(--gap); margin: 0 calc(-1 * var(--gap)); display: grid; gap: 8px; }
.cart-total { font-weight: 700; font-size: 1.125rem; margin: 0; }
/* The catalog mode's summary (texts, delivery box, button) is taller than a phone screen; stuck to
   the bottom it covered the whole list. On phones it now follows the list, after the products. */
@media (max-width: 899px) { .cart-summary.cart-summary-tall { position: static; box-shadow: none; border-radius: var(--radius); margin: 0; } }
.empty-cart { text-align: center; padding: calc(2 * var(--gap)) var(--gap); }
.empty-cart::before { content: ""; display: block; width: 56px; height: 56px; margin: 0 auto 12px; background: url("cart-icon.db8e5f4e0044.svg") center / contain no-repeat; opacity: .6; }
.empty-cart p { margin: 0; }
.empty-cart a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; }

/* Checkout: one page, sections as cards; summary column on wide screens. */
.checkout { display: grid; gap: 12px; }
.checkout-grid { display: grid; gap: var(--gap); }
.checkout-main, .checkout-side { display: grid; gap: 12px; align-content: start; }
.checkout-main h1 { margin: 0; }
.checkout label { font-weight: 600; }
.field { display: grid; gap: 6px; }
.checkout fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 0; display: grid; gap: 8px; background: var(--surface); min-width: 0; }
.checkout legend { font-weight: 700; padding: 0 4px; }
.checkout fieldset.has-error { border: 2px solid var(--zero-text); }
.checkout h2 { margin: 0; font-size: 1.25rem; }
.choice { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.checkout .choice { font-weight: 400; }
.choice input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; accent-color: var(--accent); }
.choice-text { display: grid; gap: 2px; }
.choice-title { font-weight: 600; }
.choice:hover { border-color: var(--muted); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--bg); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choices-row { grid-template-columns: minmax(0, 1fr); }
.delivery-fields { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
/* Pickup chosen: address fields and the delivery-fee line are not needed (data minimization, D-11). */
.checkout:has(input[name=fulfilment][value=pickup]:checked) .delivery-fields,
.checkout:has(input[name=fulfilment][value=pickup]:checked) .ship-pending { display: none; }
.checkout:has(input[name=fulfilment][value=delivery]:checked) .delivery-hint { display: none; }
.checkout-side { background: var(--blush); border-radius: var(--radius); padding: 12px; }
.checkout-side .summary-lines { margin: 0; gap: 8px; }
.totals { display: grid; gap: 4px; background: var(--surface); border-radius: 10px; padding: 12px; }
.totals p { margin: 0; }
.hint { color: var(--muted); font-size: .9375rem; margin: 0; }
.field-error { color: var(--zero-text); font-weight: 600; margin: 0; }
.field-error::before { content: "! " / ""; font-weight: 700; }
.ship-msg, .pay-note { margin: 0; }
.pay-note { background: var(--surface); border-radius: 10px; padding: 10px 12px; }
.shortage-confirm { background: var(--low-bg); color: var(--low-text); border: 2px solid var(--low-text); border-radius: var(--radius); padding: 12px; display: grid; gap: 10px; }
.shortage-confirm.has-error { border-color: var(--zero-text); }
.shortage-confirm p { margin: 0; }
.shortage-confirm label { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; cursor: pointer; }
.shortage-confirm input { width: 24px; height: 24px; flex: 0 0 24px; margin: 0; accent-color: var(--low-text); }
.checkout-side .hint { color: var(--text); }

/* Confirmation and status. */
.narrow { max-width: 640px; margin: 0 auto; display: grid; gap: var(--gap); }
.narrow > * { margin: 0; }
.confirm-hero { background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: var(--radius); padding: var(--gap); display: grid; gap: 8px; text-align: center; }
.confirm-hero::before { content: "✓" / ""; display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-size: 1.5rem; font-weight: 700; }
.confirm-hero h1, .confirm-hero p { margin: 0; }
.link-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.link-actions .btn-secondary { flex: 1 1 200px; }
.link-actions .btn-secondary[hidden] { display: none; }
.copy-msg { flex: 1 1 100%; }
.copy-msg:empty { display: none; }
.order-ref { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--brand); }

.status-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--gap); display: grid; gap: 10px; }
.status-box h2, .status-box p { margin: 0; }
.status-name { font-weight: 600; color: var(--muted); }
.status-badge { display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 1.125rem; background: var(--blush); color: var(--text); }
.status-processed .status-badge, .status-delivered .status-badge { background: var(--in-bg); color: var(--in-text); }
.status-waiting_stock .status-badge { background: var(--low-bg); color: var(--low-text); }
.status-ready .status-badge { background: var(--accent); color: var(--accent-text); }
.status-cancelled .status-badge { background: var(--zero-bg); color: var(--zero-text); }

/* Progress: three steps joined by a line; the current one is filled. Decorative (aria-hidden). */
.steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: .875rem; color: var(--muted); }
.step::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.step:first-child::before { display: none; }
.step-dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); background: var(--surface); }
.step-done .step-dot { background: var(--accent); border-color: var(--accent); }
.step-done::before, .step-current::before { background: var(--accent); }
.step-current .step-dot { border-color: var(--accent); background: var(--blush); box-shadow: 0 0 0 4px var(--bg); }
.step-current .step-label { color: var(--text); font-weight: 700; }
.status-waiting_stock .step-current .step-dot { border-color: var(--low-text); background: var(--low-bg); }

.order-card { display: grid; gap: 12px; }
.order-card .summary-lines { margin: 0; }
.fulfil-tag { justify-self: start; margin: 0; padding: 2px 12px; border-radius: 999px; background: var(--blush); font-weight: 600; font-size: .9375rem; }
.card-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--gap); }

.hp, .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 600px) {
  .choices-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .choices-row legend, .choices-row .hint, .choices-row .field-error { grid-column: 1 / -1; }
  .cart-summary { border-radius: var(--radius); margin: 0; }
  .btn-wide { width: auto; }
}
@media (min-width: 900px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .cart-summary { position: sticky; top: var(--gap); bottom: auto; box-shadow: none; }
  .cart-summary .btn-primary { max-width: none; }
  .checkout-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .checkout-side { position: sticky; top: var(--gap); }
  .checkout-side .btn-primary { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .btn-primary, .choice { transition: none; } }

/* Footer links and legal pages */
.site-footer a { color: inherit; display: inline-block; min-height: 44px; line-height: 44px; padding: 0 4px; }
.legal { max-width: 46rem; margin: 0 auto; padding: 0 var(--gap); line-height: 1.55; overflow-wrap: anywhere; }
.legal h2 { font-size: 1.125rem; margin-top: 1.5em; }
.legal-date { color: var(--muted); font-size: .875rem; }
.legal-pending { background: #FFF4D6; border: 1px solid #E0B44A; padding: 8px 12px; border-radius: 8px; }
.privacy-short { font-size: .875rem; }
/* Compact simplified privacy notice before the checkout fields */
.privacy-box { border: 1px solid var(--line, #ddd); border-radius: 8px; padding: .75rem 1rem; margin: 0 0 1rem;
  font-size: .875rem; background: var(--surface, transparent); }
.privacy-box-title { font-size: .9375rem; margin: 0 0 .375rem; }
.privacy-box ul { margin: 0; padding-left: 1.125rem; }
.privacy-box li { margin: .125rem 0; }

/* Made-to-order label, search form, categories. */
:root { --order-bg: #EFE4F5; --order-text: #5A2F6E; }
.stock-order .stock { background: var(--order-bg); color: var(--order-text); }
.order-note { background: var(--order-bg); color: var(--order-text); }
.search-form { display: grid; gap: 6px; margin: 0 0 var(--gap); }
.search-form label { font-weight: 600; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; min-width: 0; min-height: var(--tap); padding: 0 12px; border: 1px solid var(--field-border); border-radius: 8px; font: inherit; color: var(--text); background: var(--surface); }
.search-count { color: var(--muted); margin: 0 0 12px; }
.categories ul { list-style: none; margin: 0 0 var(--gap); padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.category-tile { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; font-weight: 600; min-height: var(--tap); }
.category-tile img { width: 96px; height: 96px; object-fit: cover; }
.category-tile:hover span { text-decoration: underline; }
.category-hero { display: grid; gap: 12px; margin: 0 0 var(--gap); }
.category-hero h1 { margin: 0; }
.category-img { width: 100%; height: auto; max-height: 320px; object-fit: cover; border-radius: var(--radius); }
.category-desc { margin: 4px 0 0; color: var(--muted); }
.product-category { margin: 0; font-size: .9375rem; }
.product-category a { display: inline-flex; align-items: center; min-height: var(--tap); }
@media (min-width: 720px) {
  .categories ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-hero { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; }
}
.search-row .btn-primary { width: auto; flex: 0 0 auto; }

/* Header search, menu of categories and
   brands, home banner and shelves, sort and filter controls. Same palette and tokens; no new colours; mobile first. */
.header-search { flex: 1 1 100%; display: flex; gap: 8px; margin: 0; }
.header-search input { flex: 1; min-width: 0; min-height: var(--tap); padding: 0 12px; border: 1px solid var(--field-border); border-radius: 999px; font: inherit; color: var(--text); background: var(--bg); }
.header-search .btn-primary { width: auto; flex: 0 0 auto; }
.main-nav { flex: 1 1 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * var(--gap)); padding: 0 var(--gap); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; white-space: nowrap; }
.main-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px; border-radius: 999px; color: var(--text); font-weight: 600; text-decoration: none; }
.main-nav a:hover { background: var(--blush); }

.hero { background: var(--blush); border-radius: var(--radius); padding: calc(1.5 * var(--gap)) var(--gap); margin: 0 0 calc(1.5 * var(--gap)); display: grid; gap: 8px; justify-items: start; }
.hero-kicker { margin: 0; font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.hero h1 { margin: 0; font-size: 1.75rem; }
.hero-text { margin: 0; color: var(--muted); }
.hero-cta { width: auto; display: inline-flex; align-items: center; text-decoration: none; margin-top: 4px; }

main h2 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 12px; }
.shelf { margin: 0 0 calc(1.5 * var(--gap)); }
/* Shelves scroll sideways on a phone and become a grid on wider screens. */
.shelf-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(150px, 46%); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; }
.shelf-row > li { scroll-snap-align: start; }
.all-products { margin-top: var(--gap); }

.list-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 0 0 var(--gap); }
.list-controls .control { display: grid; gap: 4px; flex: 1 1 140px; }
.list-controls label { font-size: .875rem; font-weight: 600; }
.list-controls select { min-height: var(--tap); padding: 0 8px; border: 1px solid var(--field-border); border-radius: 8px; font: inherit; color: var(--text); background: var(--surface); }
.list-controls .control-check { display: flex; align-items: center; gap: 8px; min-height: var(--tap); }
.list-controls .control-check input { width: 22px; height: 22px; accent-color: var(--accent); }
.list-controls .clear-link { display: inline-flex; align-items: center; min-height: var(--tap); }
.pager-pos { align-self: center; color: var(--muted); font-size: .875rem; }

.brand-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.brand-list a { display: flex; align-items: center; min-height: var(--tap); padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font-weight: 600; text-decoration: none; }
.brand-list a:hover { background: var(--blush); }
.breadcrumbs { font-size: .875rem; color: var(--muted); margin: 0 0 8px; }

@media (min-width: 600px) {
  .header-search { flex: 1 1 320px; max-width: 480px; order: 3; }
  .main-nav { order: 4; margin: 0; padding: 0; }
  .hero { padding: calc(2 * var(--gap)); }
  .hero h1 { font-size: 2.125rem; }
  .shelf-row { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; }
  .brand-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .shelf-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brand-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Folded simplified notice and the required checkbox for the purchase conditions. */
.privacy-fold summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-height: var(--tap); list-style-position: outside; }
.privacy-fold summary .privacy-box-title { display: inline; margin: 0; }
.privacy-fold .fold-hint { font-size: .875rem; color: var(--accent); text-decoration: underline; }
.privacy-fold[open] .fold-hint { display: none; }
.privacy-fold ul { margin-top: 8px; }
.accept-terms { margin: var(--gap) 0 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.accept-terms .accept-choice { display: flex; gap: 10px; align-items: flex-start; }
.accept-terms input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; accent-color: var(--accent); }
.accept-terms.has-error { border-color: var(--zero-text); }

/* ===== Colour tokens, steppers and side panel =====
   "Cacao" (the block after this one) is the only palette; the Marfil values below are its base tokens.
   Contrast checked for WCAG AA: text #4A2F2E on #FFFDFB 12.9:1; muted #6B5A57 on #FFFDFB 6.9:1; accent #8E5246 on
   white 6.6:1; white on #4A2F2E 12.9:1; #F6D3C8 on #4A2F2E 9.4:1. Style only: no new data, no new customer texts
   except the labels listed in fix-record-r16c1.md. */
:root {
  --bg: #FFFDFB;
  --surface: #FFFFFF;
  --text: #4A2F2E;
  --muted: #6B5A57;
  --brand: #8E5246;
  --accent: #8E5246;
  --blush: #FBF1EC;
  --line: #F1E2DA;
  --field-border: #8C7470;
  --chrome-bg: var(--surface);
  --chrome-text: var(--text);
  --chrome-muted: var(--muted);
  --chrome-hover: var(--blush);
  --chrome-focus: var(--focus);
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --shadow: 0 1px 2px rgba(74, 47, 46, .06), 0 4px 14px rgba(74, 47, 46, .06);
}
:root {
  --bg: #FFFFFF;
  --blush: #F6D3C8;
  --line: #EED9D1;
  --chrome-bg: #4A2F2E;
  --chrome-text: #FFFFFF;
  --chrome-muted: #F6D3C8;
  --chrome-hover: rgba(255, 255, 255, .14);
  --chrome-focus: #FFFFFF;
}

h1, h2, .store-name, .hero h1 { font-family: var(--serif); font-weight: 700; letter-spacing: .005em; }
main h2 { font-size: 1.375rem; }

/* Header: one row with the logo on the left and search, WhatsApp and cart on the right; the menu below. */
.site-header { background: var(--chrome-bg); color: var(--chrome-text); border-bottom: 1px solid var(--line); gap: 8px; padding: 10px var(--gap) 0; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--chrome-focus); }
.header-row { flex: 1 1 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; }
.header-tools { display: contents; }
.brand { color: var(--chrome-text); }
.store-name { color: var(--chrome-text); font-size: 1.5rem; }
.slogan { color: var(--chrome-muted); font-size: .875rem; }
.logo { width: 52px; height: 52px; flex-basis: 52px; background: var(--surface); }
.header-search { grid-column: 1 / -1; order: 5; display: flex; gap: 0; margin: 2px 0 0; position: relative; }
.header-search input { padding: 0 52px 0 16px; background: var(--surface); border: 1px solid var(--field-border); }
.search-btn { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--blush) url("search-icon.66274a6afcdd.svg") center / 20px no-repeat; cursor: pointer; }
.search-btn:hover { background-color: var(--line); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); flex: 0 0 var(--tap); border-radius: 50%; border: 0; background: var(--blush); cursor: pointer; text-decoration: none; }
.wa-icon-btn { background: var(--blush) url("wa-icon-accent.56251720b76d.svg") center / 22px no-repeat; }
.icon-btn:hover { filter: brightness(.96); }
.cart-link { border-color: var(--accent); background: var(--surface); padding: 0 12px; }
.site-header .main-nav { margin-top: 2px; }
.main-nav a { color: var(--chrome-text); font-weight: 600; border-radius: 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { background: var(--chrome-hover); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
:root .main-nav a[aria-current="page"] { border-bottom-color: var(--blush); }
.dev-banner { margin-bottom: 4px; }

@media (min-width: 760px) {
  .site-header { padding: 12px 24px 0; }
  .header-row { display: flex; justify-content: space-between; }
  .header-tools { display: flex; align-items: center; gap: 10px; flex: 0 1 560px; justify-content: flex-end; }
  .header-search { flex: 1 1 320px; max-width: 380px; margin: 0; order: 0; }
  .logo { width: 60px; height: 60px; flex-basis: 60px; }
  .store-name { font-size: 1.75rem; }
}

/* Home: banner with one call to action; shelves of four with "Ver todos". */
.hero { background: linear-gradient(135deg, var(--blush), var(--surface)); border: 1px solid var(--line); }
.hero-kicker { color: var(--accent); }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.shelf-head h2 { margin: 0 0 12px; }
.see-all { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; white-space: nowrap; }
.category-tile { box-shadow: var(--shadow); border-color: var(--line); }
.category-tile span { font-family: var(--serif); font-size: 1.125rem; }
.category-tile:not(:has(img)) { grid-template-columns: minmax(0, 1fr); padding: 12px 16px; }

/* Product card: whole photo on white, brand above the name, name on two lines at most, one "Agregar" button. */
/* position: relative keeps the hidden button text inside the card, so a sideways shelf never widens the page. */
.product-card { position: relative; border-color: var(--line); box-shadow: var(--shadow); transition: box-shadow .15s ease; }
.product-card:hover { box-shadow: 0 6px 20px rgba(74, 47, 46, .12); }
.card-img { object-fit: contain; background: #FFFFFF; padding: 8px; }
.card-brand { display: block; padding: 10px 12px 0; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-brand + .name { padding-top: 2px; }
.card-link .name { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; box-sizing: content-box; line-height: 1.3; height: 2.6em; }
.card-body .stock { font-size: .8125rem; }
.card-add { margin: auto 0 0; padding-top: 4px; }
.card-add .btn-secondary { width: 100%; min-height: 40px; }

/* Buttons: two styles only. Primary = filled; secondary = outline (WhatsApp on the product page included). */
.btn-primary { background: var(--accent); }
.btn-primary:hover { background: var(--wa); }
.product-info .wa { background: var(--surface); color: var(--accent); border: 2px solid var(--accent); }
.product-info .wa::before { background-image: url("wa-icon-accent.56251720b76d.svg"); }
.product-info .wa:hover { background: var(--blush); }

/* Product page: breadcrumbs, brand above the name, quantity stepper. */
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 6px; }
.breadcrumbs li + li::before { content: "›" / ""; margin-right: 6px; color: var(--muted); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--muted); }
.breadcrumbs [aria-current] { display: inline-flex; align-items: center; min-height: var(--tap); }
.product-brand { margin: 0; font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.product-brand a { color: inherit; display: inline-flex; align-items: center; min-height: var(--tap); }
.gallery img { object-fit: contain; background: #FFFFFF; border: 1px solid var(--line); }
.product-info .price { font-size: 1.5rem; color: var(--text); }
.add-to-cart { box-shadow: var(--shadow); }

.stepper { display: inline-flex; align-items: stretch; border: 2px solid var(--field-border); border-radius: 999px; background: var(--surface); overflow: hidden; width: max-content; }
.stepper input, .add-to-cart .stepper input, .cart-qty .stepper input { width: 56px; flex: 0 0 56px; min-height: 40px; border: 0; border-radius: 0; padding: 0 4px; text-align: center; font: inherit; font-weight: 600; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-btn { display: none; width: var(--tap); border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 1.25rem; font-weight: 700; cursor: pointer; }
.js .step-btn { display: inline-flex; align-items: center; justify-content: center; }
.step-btn:hover { background: var(--blush); }
.js .update-btn { display: none; }
.add-to-cart .stepper { max-width: none; }

/* Cart lines: brand, name, price; quantity stepper and a bin to remove. */
.line-brand { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.line-thumb { object-fit: contain; background: #FFFFFF; border: 1px solid var(--line); }
.cart-qty { gap: 8px 10px; }
.cart-qty label { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.bin-btn { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.bin-btn::before { content: ""; width: 20px; height: 20px; flex: 0 0 20px; background: url("bin-icon.f751511cd646.svg") center / contain no-repeat; }
.bin-btn:hover { background: var(--blush); }

/* Steps of the purchase: Carrito › Tus datos › Solicitud enviada. */
.purchase-steps { list-style: none; margin: 0 0 var(--gap); padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .875rem; color: var(--muted); }
.purchase-steps li { display: inline-flex; align-items: center; gap: 8px; }
.purchase-steps li + li::before { content: "›" / ""; color: var(--muted); }
.purchase-steps .is-current { color: var(--text); font-weight: 700; }
.purchase-steps .is-current span { text-decoration: underline 2px var(--accent); text-underline-offset: 6px; }
.purchase-steps .is-done { color: var(--accent); }

/* Legal texts stay on their own pages: only small links near the button. */
.legal-links { margin: 4px 0 0; font-size: .8125rem; color: var(--muted); text-align: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 12px; }
.legal-links a { color: var(--muted); display: inline-flex; align-items: center; min-height: 32px; }

/* Cart side panel (opens on "Agregar" and on the cart link; the full cart page stays). */
.cart-panel { position: fixed; inset: 0; z-index: 50; }
.cart-panel[hidden] { display: none; }
.cart-panel-backdrop { position: absolute; inset: 0; background: rgba(74, 47, 46, .45); }
.cart-panel-box { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: var(--surface); color: var(--text); display: flex; flex-direction: column; box-shadow: -8px 0 24px rgba(74, 47, 46, .18); }
.cart-panel-box:focus { outline: none; }
.cart-panel-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px var(--gap); border-bottom: 1px solid var(--line); }
.cart-panel-head h2 { margin: 0; flex: 1; font-size: 1.25rem; }
.cart-panel-full { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 8px; font-weight: 600; }
.close-btn { background: transparent url("close-icon.5e6237354d51.svg") center / 20px no-repeat; }
.close-btn:hover { background-color: var(--blush); }
.cart-panel-body { flex: 1; overflow-y: auto; padding: 12px var(--gap); }
.panel-content { display: grid; gap: 12px; }
.panel-content .cart-lines { margin: 0; }
.panel-content .cart-line { box-shadow: none; }
.panel-content .flash { margin: 0; }
.panel-total { background: var(--surface); border-top: 1px solid var(--line); padding: 12px 0 0; display: grid; gap: 8px; }
.panel-total p { margin: 0; }
.panel-total .hint { font-size: .875rem; }
.panel-total .btn-link { justify-self: center; }
.panel-loading { color: var(--muted); }
body.panel-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .cart-panel:not([hidden]) .cart-panel-box { animation: panel-in .2s ease-out; }
  @keyframes panel-in { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
}

/* Checkout: "Antes de enviar" folded, with a short line visible. */
.terms-fold summary { cursor: pointer; min-height: var(--tap); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.terms-fold summary h2 { display: inline; }
.terms-fold .fold-hint { font-size: .875rem; color: var(--accent); text-decoration: underline; }
.terms-fold[open] .fold-hint { display: none; }
.terms-short { font-size: .9375rem; }
.terms-fold { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px; }
.terms-fold .terms-summary h3 { display: none; }
.terms-fold .terms-summary ul { margin: 4px 0 8px; padding-left: 1.125rem; font-size: .9375rem; }
.narrow .purchase-steps { justify-content: center; }

/* Footer: contact and legal links. Cacao is the only palette, no colour option. */
.site-footer { background: var(--chrome-bg); color: var(--chrome-muted); border-top: 1px solid var(--line); padding: calc(1.5 * var(--gap)) var(--gap); display: grid; gap: 12px; justify-items: center; }
.site-footer a { color: var(--chrome-text); }
.footer-contact { display: grid; gap: 8px; justify-items: center; max-width: 420px; }
.footer-brand { margin: 0; font-family: var(--serif); font-size: 1.125rem; font-weight: 700; color: var(--chrome-text); }
.site-footer .wa { display: inline-flex; min-height: var(--tap); line-height: normal; padding: 10px 18px; color: var(--wa-text); }
.site-footer .wa-disabled { color: var(--text); }
.site-footer .wa-fallback { color: var(--chrome-muted); }
:root .site-footer .wa { background: var(--blush); color: #4A2F2E; }
:root .site-footer .wa::before { background-image: url("wa-icon-accent.56251720b76d.svg"); }

/* ===== Store look =====
   Same palettes as above. Fonts of the sample, served by the store itself (no request to Google; OFL 1.1, fonts/). */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("fonts/cormorant-garamond-latin.ec4225ec161b.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 700; font-display: swap;
  src: url("fonts/cormorant-garamond-italic-latin.d5d59e2f23c8.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/mulish-latin.ce75879fa69c.woff2") format("woff2"); }
:root {
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Mulish, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-family: var(--sans);
}
body { font-size: .9375rem; line-height: 1.45; }
h1, h2, .store-name, .hero h1, .product-info h1, .footer-brand { font-family: var(--serif); font-weight: 700; letter-spacing: 0; }
main { max-width: 1120px; }
main h2 { font-size: 1.5625rem; line-height: 1.1; margin: 26px 0 12px; }

/* Header: logo, italic name (slogan small under it), icons; menu underneath with the current page underlined. */
.site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "banner banner" "brand tools" "search search" "nav nav";
  align-items: center; gap: 0 12px; padding: 12px max(16px, env(safe-area-inset-left, 0px)) 0; background: var(--chrome-bg); color: var(--chrome-text); border-bottom: 1px solid var(--line); }
.site-header > .dev-banners { grid-area: banner; display: grid; gap: 4px; margin-bottom: 8px; }
.site-header > .dev-banners:not(:has(*)) { display: none; }
.site-header .dev-banner { margin: 0; }
.site-header .brand { grid-area: brand; gap: 12px; min-height: 48px; }
.logo { width: 44px; height: 44px; flex: 0 0 44px; }
.store-name { font-style: italic; font-size: 1.875rem; line-height: 1; color: var(--chrome-text); }
.slogan { font-size: .75rem; color: var(--chrome-text); opacity: .85; margin-top: 2px; }
/* On the narrowest phones (320 px) the name gets a smaller size and a tighter gap so «Milenni» stays whole. */
@media (max-width: 359px) { .site-header .brand { gap: 8px; } .store-name { font-size: 1.5rem; } }
.header-tools { grid-area: tools; display: flex; align-items: center; gap: 4px; }
.site-header .icon-btn { position: relative; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: transparent; color: var(--chrome-text); border: 0; display: inline-flex; align-items: center; justify-content: center; }
.site-header .icon-btn:hover { background: var(--chrome-hover); filter: none; }
.site-header .icon-btn[hidden] { display: none; }
.wa-icon-btn { background: transparent; }
.cart-link.icon-btn { padding: 0; min-height: 44px; border: 0; background: transparent; color: var(--chrome-text); }
.cart-link.icon-btn::before { content: none; }
.cart-badge { position: absolute; top: 0; right: -4px; min-width: 20px; padding: 1px 6px; border-radius: 9px; background: var(--accent); color: #FFFFFF; font-size: .6875rem; font-weight: 800; line-height: 1.4; text-align: center; box-shadow: 0 0 0 2px var(--chrome-bg); }
.cart-badge[hidden] { display: none; }
.header-search { grid-area: search; position: relative; display: flex; margin: 4px 0 8px; }
.js .header-search { display: none; }
.js .header-search.is-open { display: flex; }
.header-search input { min-height: 44px; padding: 0 48px 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: .875rem; }
.header-search input::placeholder { color: var(--muted); }
.search-btn { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.search-btn:hover { background: var(--blush); }
.site-header .main-nav { grid-area: nav; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 4px max(16px, env(safe-area-inset-left, 0px)) 0; }
.main-nav ul { gap: 20px; }
.main-nav a { min-height: 40px; padding: 0 0 4px; border-radius: 0; color: var(--chrome-text); font-weight: 400; font-size: .90625rem; border-bottom: 2px solid transparent; }
.main-nav a:hover { background: transparent; border-bottom-color: var(--line); }
.main-nav a[aria-current="page"], :root .main-nav a[aria-current="page"] { font-weight: 800; border-bottom-color: currentColor; }
@media (min-width: 760px) {
  .site-header { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "banner banner banner" "brand search tools" "nav nav nav"; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
  .js .header-search, .header-search { display: flex; justify-self: end; width: 100%; max-width: 320px; margin: 0; }
  .search-toggle, .js .search-toggle { display: none; }
  .site-header .main-nav { margin: 0 calc(-1 * max(24px, env(safe-area-inset-left, 0px))); padding-left: max(24px, env(safe-area-inset-left, 0px)); }
  .logo { width: 48px; height: 48px; flex-basis: 48px; }
}

/* Banner: text left, photo right, on the tint colour. */
.hero, .hero.has-photo { margin: 18px 0; padding: 0; border: 0; border-radius: 20px; background: var(--blush); display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; gap: 0; }
.hero.has-photo { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.hero-text-box { padding: 22px 18px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; min-width: 0; }
.hero-kicker { margin: 0; font-size: .65625rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero h1 { margin: 0; font-size: clamp(1.625rem, 5vw, 3rem); line-height: 1.05; text-wrap: balance; }
.hero-cta { margin-top: 2px; }
.hero-img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
@media (min-width: 760px) { .hero.has-photo { grid-template-columns: 1fr 1fr; } .hero-text-box { padding: 40px 36px; } }

/* Categories: round icons with the name under them. */
.categories h2 { margin-top: 26px; }
.categories .cat-circles { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); text-decoration: none; font-size: .75rem; text-align: center; min-height: var(--tap); }
.cat-icon { width: 58px; height: 58px; border-radius: 50%; background: var(--blush); display: flex; align-items: center; justify-content: center; color: var(--text); transition: transform .15s ease; }
.cat:hover .cat-icon { transform: translateY(-2px); }
.cat:hover .cat-name { text-decoration: underline; }
/* Six columns only from 600 px; below that three, so a name such as «Accesorios» is never split (430 px). */
@media (min-width: 600px) { .categories .cat-circles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* On a computer the row spans the page width like the banner and the shelves,
   one equal column per category, instead of sitting on the left. */
/* Only while there are 8 categories or fewer (data-row); with more the 6-column grid wraps */
.cat-name { overflow-wrap: break-word; }
@media (min-width: 900px) { .categories[data-row] .cat-circles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
/* From 600 px the circles are centred rows
   (5 + 4 for nine on a tablet); from 1000 px up to nine share one row, more wrap in centred rows of nine. */
@media (min-width: 600px) { .categories .cat-circles { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 8px; }
  .categories .cat-circles > li { flex: 0 0 18%; min-width: 0; } }
@media (min-width: 1000px) { .categories .cat-circles > li { flex: 0 0 calc(100% / 9 - 8px); }
  .categories[data-row] .cat-circles { flex-wrap: nowrap; justify-content: space-between; gap: 4px; }
  .categories[data-row] .cat-circles > li { flex: 1 1 0; } }
@media (prefers-reduced-motion: reduce) { .cat-icon { transition: none; } .cat:hover .cat-icon { transform: none; } }

/* Shelves and lists: a 2-column grid on a phone, 4 on a computer (no sideways scroll). */
.shelf-head { margin: 26px 0 12px; }
.shelf-head h2 { margin: 0; }
.see-all { font-size: .8125rem; font-weight: 800; }
.shelf-row { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; padding: 0; }
@media (min-width: 760px) { .catalog, .shelf-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* A shelf with fewer than four products fills the row instead of leaving a gap; one or
   two cards keep a reasonable size. */
@media (min-width: 760px) {
  .shelf-row.shelf-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shelf-row.shelf-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 66%; }
  .shelf-row.shelf-n1 { grid-template-columns: minmax(0, 1fr); max-width: 33%; }
}

/* Card: photo on white, brand, name (2 lines), price, then the label and a small filled "Agregar" on one row. */
.product-card { border-radius: 14px; box-shadow: none; }
.product-card:hover { box-shadow: 0 6px 18px rgba(74, 47, 46, .10); }
.card-img { padding: 0; aspect-ratio: 1 / 1; }
.card-brand { padding: 10px 11px 0; font-size: .65625rem; letter-spacing: .11em; font-weight: 800; }
.card-link .name { padding: 3px 11px 0; font-size: .84375rem; font-weight: 600; }
.card-link .card-brand + .name { padding-top: 3px; }
.card-body { padding: 3px 11px 12px; gap: 3px; }
.card-body .price { font-size: 1.0625rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.card-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 6px; }
.card-row .stock { font-size: .6875rem; font-weight: 800; padding: 3px 8px; border-radius: 9px; align-self: center; }
.card-add { margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.card-qty { min-height: 40px; min-width: 44px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: inherit; font: inherit; font-size: .8125rem; font-weight: 700; text-align: center; cursor: pointer; }
.add-btn { min-height: 40px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--accent); color: #FFFFFF; font: inherit; font-size: .75rem; font-weight: 800; cursor: pointer; }
.add-btn:hover { background: var(--wa); }

/* Buttons. */
.btn-primary { font-weight: 800; font-size: .875rem; padding: 12px 20px; }
.btn-secondary { border-width: 1.5px; font-weight: 800; font-size: .875rem; }

/* Product page: one white card; photo left, details right on a computer. */
.product { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; gap: 18px; margin-top: 6px; }
.gallery img { border: 0; border-radius: 12px; }
.breadcrumbs, .breadcrumbs a, .breadcrumbs [aria-current] { font-size: .78125rem; min-height: 32px; }
.breadcrumbs a { color: var(--accent); }
.product-brand { font-size: .65625rem; letter-spacing: .11em; font-weight: 800; margin-top: 4px; }
.product-info h1 { font-size: 1.875rem; line-height: 1.1; text-wrap: balance; }
.product-info .price { font-size: 1.625rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.product-info .stock { font-size: .6875rem; font-weight: 800; border-radius: 9px; padding: 3px 8px; }
.description { color: var(--muted); }
.add-to-cart { border: 0; box-shadow: none; padding: 0; background: transparent; gap: 10px; margin-top: 4px; }
.add-to-cart label { font-size: .8125rem; color: var(--muted); }
.stepper { border: 1.5px solid var(--text); }
.step-btn { color: var(--text); font-size: 1.125rem; }
.add-to-cart .btn-primary { width: 100%; max-width: none; }
.product-info .wa-block .wa { width: 100%; border-width: 1.5px; font-weight: 800; }
@media (min-width: 760px) { .product { grid-template-columns: 1fr 1fr; padding: 24px; gap: 30px; align-items: start; } }

/* Footer: three columns on a computer. */
.site-footer { margin-top: 34px; padding: 22px max(16px, env(safe-area-inset-left, 0px)); justify-items: stretch; text-align: left; font-size: .8125rem; color: var(--chrome-text); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 14px 30px; max-width: 1120px; width: 100%; margin: 0 auto; }
.footer-contact { justify-items: start; gap: 5px; }
.footer-brand { font-size: 1.125rem; }
.footer-place { margin: 0; }
.site-footer .wa-block { align-items: flex-start; }
.site-footer .footer-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.site-footer .footer-legal a { min-height: 32px; line-height: 32px; padding: 0; }
/* The simplified notice of the WhatsApp mode, readable below the columns. */
.footer-privacy { max-width: 1120px; width: 100%; margin: 14px auto 0; line-height: 1.5; overflow-wrap: anywhere; }
.price .price-cur { font-weight: 600; font-size: .6875rem; color: var(--muted); letter-spacing: .02em; }
.price .price-size { font-weight: 600; font-size: .8125rem; color: var(--muted); }
.product-info .price .price-cur { font-size: .8125rem; }
/* Product page: photo at its own shape, small photos below, the quantity label kept for screen readers only. */
.gallery, .gallery:not(.single) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.gallery img.gallery-main, .gallery > img { width: 100%; height: auto; aspect-ratio: auto; max-height: 70vh; object-fit: contain; border-radius: 12px; background: transparent; }
.thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs a { display: block; width: 56px; height: 56px; border-radius: 8px; border: 2px solid transparent; overflow: hidden; }
.thumbs a[aria-current] { border-color: var(--accent); }
.thumbs a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gallery .thumbs img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0; }
.add-to-cart > label[for="qty"] { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.product-info .breadcrumbs { margin: 0; }
.product-info .product-brand { margin: 4px 0 0; }
.product-info h1 { margin: 2px 0 6px; }
.product-info .price { margin: 0 0 4px; }
.product-info { gap: 6px; }
.product-info .product-brand a, .product-info .breadcrumbs a, .product-info .breadcrumbs [aria-current] { min-height: 32px; }
.product-info .stock { justify-self: start; }
.facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; font-size: .8125rem; color: var(--muted); }
.facts li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; }
.facts svg { color: var(--text); margin-top: 1px; }
.facts a { color: var(--accent); }

/* ---- Customer accounts (Mi cuenta, Entrar, Crear cuenta) and the account box on «Tus datos» ---- */
.account-page .lead { color: var(--muted); }
.account-page .btn-secondary { width: 100%; }
/* On a computer the main button of the account
   forms spans the form like the fields and «Crear cuenta», instead of the 360 px cap of other pages. */
.account-page .btn-primary, .account-page .btn-danger { max-width: none; }
.account-alt { margin: 0; text-align: center; font-size: .9375rem; }
.account-alt a, .account-switch a:not(.btn-secondary), .account-end a { color: var(--accent); }
.account-switch { display: grid; gap: 8px; text-align: center; }
.account-switch p { margin: 0; }
.account-section { display: grid; gap: 12px; }
.account-section h2 { margin: 0; }
.account-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.account-orders li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.account-orders .ref { font-weight: 700; letter-spacing: .04em; }
.account-orders .when { color: var(--muted); font-size: .9375rem; }
.account-orders .state { margin-left: auto; font-weight: 600; }
.account-end { justify-items: center; text-align: center; }
.notice-ok { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--wa); border-radius: 8px; padding: 10px 12px; margin: 0; }
.btn-danger { min-height: var(--tap); width: 100%; border: 2px solid var(--accent); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-weight: 700; padding: 10px 16px; cursor: pointer; }
.btn-danger:hover { background: var(--blush); }
.checkout-account { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px var(--gap); display: grid; gap: 8px; }
.checkout-account p { margin: 0; }
.checkout-account .account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.checkout-account .account-actions .btn-secondary { min-height: 40px; }

/* ---- Filters apply when chosen; chosen filters as small labels with × ---- */
.js .list-controls .apply-btn { display: none; }
.filter-chips { flex: 1 0 100%; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-chips .chip { display: inline-flex; align-items: center; gap: 2px; background: var(--blush); color: var(--text); border-radius: 999px; padding: 0 2px 0 12px; font-size: .875rem; font-weight: 600; min-height: 32px; }
.filter-chips .chip-x { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: var(--text); text-decoration: none; font-size: 1.125rem; line-height: 1; }
.filter-chips .chip-x:hover { background: var(--surface); }
.filter-chips .clear-link { font-size: .875rem; min-height: 32px; display: inline-flex; align-items: center; color: var(--accent); }
.list-controls { scroll-margin-top: 16px; }

/* More than four featured products slide sideways (snap to each card), with a
   card peeking at the edge; arrows when JavaScript runs. Four or fewer fill the row (rules above). */
.carousel { position: relative; }
.shelf-row.shelf-carousel { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(150px, 44%);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px; max-width: none; }
.shelf-row.shelf-carousel > li { scroll-snap-align: start; }
@media (min-width: 760px) {
  .shelf-row.shelf-carousel { grid-template-columns: none; grid-auto-columns: calc((100% - 3 * var(--gap)) / 3.5); }
}
.car-btn { position: absolute; top: 38%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--brand);
  background: var(--surface); color: var(--brand); font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(74, 47, 46, .18); display: flex; align-items: center; justify-content: center; }
.car-btn[hidden] { display: none; }
.car-btn:disabled { opacity: 0; pointer-events: none; }
.car-prev { left: -10px; }
.car-next { right: -10px; }
@media (max-width: 759px) { .car-btn { display: none; } }   /* a phone slides the row with the finger */
@media (prefers-reduced-motion: reduce) { .shelf-row.shelf-carousel { scroll-behavior: auto; } }


/* The title font (Cormorant Garamond) uses old-style figures by default, so a "4" or a
   "9" drops below the line in "Pedido N8W4ZS" or a price. Every number uses lining figures, all the same height. */
body { font-variant-numeric: lining-nums; }

/* Checkout with short checkboxes and link-like folds only. */
.link-fold { margin: 4px 0; background: none; border: 0; padding: 0; }
.link-fold > summary { display: inline-block; min-height: var(--tap); box-sizing: border-box; padding: 11px 0; line-height: 1.4; cursor: pointer; color: var(--accent);
  text-decoration: underline; font-size: .9375rem; list-style: none; }
.link-fold > summary::-webkit-details-marker { display: none; }
.link-fold > summary::after { content: "›"; margin-left: 6px; display: inline-block; transition: transform .15s; }
.link-fold[open] > summary::after { transform: rotate(90deg); }
.link-fold .privacy-box { margin: 4px 0 8px; }
.link-fold .terms-summary { font-size: .875rem; }
.link-fold .terms-summary h3 { display: none; }
.link-fold .terms-summary ul { margin: 4px 0 8px; padding-left: 1.125rem; }
.checks { display: grid; gap: 8px; margin: var(--gap) 0 8px; }
.checks .accept-terms { margin: 0; padding: 10px 12px; }
.checks .shortage-confirm { padding: 10px 12px; gap: 4px; }
.checks .shortage-confirm .link-fold > summary { color: inherit; }
.accept-label a { color: var(--accent); }
.checks .notice-version { font-size: .8125rem; margin: 0 0 8px; }

/* «Vaciar carrito»: a quiet link; the question appears in place. */
.cart-clear { display: grid; justify-items: center; }
.cart-clear .clear-open { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--muted); font-size: .9375rem; }
.cart-clear .clear-open[hidden], .cart-clear .clear-box[hidden] { display: none; }
.clear-box { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--surface); }
.clear-box .clear-q { margin: 0 0 8px; }
.clear-box .clear-q:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.clear-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.clear-actions .btn-primary { width: auto; flex: 1 1 auto; }
.clear-actions .btn-secondary { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; }
.clear-confirm .clear-actions { margin-top: var(--gap); }

/* Small floating note: bottom corner, no backdrop, the page behind stays usable. */
.cart-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: min(320px, calc(100vw - 32px));
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(74, 47, 46, .18); padding: 10px 8px 12px 14px; display: flex; gap: 4px; align-items: flex-start; }
.cart-float[hidden] { display: none; }
.cart-float-body { flex: 1; min-width: 0; }
.cart-float .mini-title { margin: 8px 0 4px; font-weight: 700; }
.cart-float .mini-msg { margin: 8px 0 4px; font-weight: 600; }
.cart-float .mini-msg + .mini-msg { margin-top: 0; font-weight: 400; font-size: .875rem; }
.cart-float .mini-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.cart-float .mini-actions .btn-primary, .cart-float .mini-actions .btn-secondary { width: auto; flex: 1 1 auto; display: inline-flex;
  align-items: center; justify-content: center; text-decoration: none; padding: 0 14px; }
.cart-float .float-close { flex: 0 0 var(--tap); background: transparent; color: var(--text); }
.cart-float .float-close:hover { background: var(--blush); }
@media (prefers-reduced-motion: no-preference) {
  .cart-float:not([hidden]) { animation: float-in .18s ease-out; }
  @keyframes float-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
  .cart-link.bump .cart-badge { animation: badge-bump .35s ease-out; }
  @keyframes badge-bump { 50% { transform: scale(1.35); } }
}
@media (prefers-reduced-motion: reduce) { .link-fold > summary::after { transition: none; } }
/* On a phone the note goes to the top, so it never covers «Agregar al carrito» or the page's buttons below. */
@media (max-width: 600px) {
  .cart-float { top: var(--float-top, 8px); bottom: auto; right: 8px; width: calc(100vw - 16px); }
  @media (prefers-reduced-motion: no-preference) {
    .cart-float:not([hidden]) { animation-name: float-in-top; }
    @keyframes float-in-top { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
  }
}
/* «Sí, vaciar» never looks like the main action; old browsers never show a <template>. */
.btn-danger { border-color: var(--zero-text); color: var(--zero-text); }
.cart-layout + .cart-clear { margin-top: var(--gap); }
.clear-actions .btn-secondary { width: auto; }
template { display: none; }

/* «n en tu carrito» under each product and the «✓ Agregado» moment of the button. */
.in-cart { margin: 6px 0 0; font-size: .75rem; font-weight: 700; color: var(--accent); }
.in-cart::before { content: "\2713\00a0"; }
.product-card .in-cart { text-align: right; }
.add-btn.is-added, .btn-primary.is-added { background: var(--wa); }
@media (prefers-reduced-motion: no-preference) {
  .in-cart.bump { animation: badge-bump .35s ease-out; }
}
/* Order by WhatsApp from the cart */
.btn-wa-order { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.wa-order-note { margin-top: 8px; }
.nowrap { white-space: nowrap; }
.site-footer a.inline-link { display: inline; min-height: 0; line-height: inherit; padding: 0; text-decoration: underline; }

/* «Enviar pedido por WhatsApp» is a form now (C-2); the delivery notice (C-4) above it, in the footer
   and on the confirmation page (D-W1). Same tokens, no new colours. */
.wa-order-form { margin: 0; }
.wa-order-form .btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.delivery-area { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--blush); color: var(--text); font-size: .875rem; line-height: 1.45; text-align: left; }
.delivery-area p { margin: 0; }
.delivery-area p + p { margin-top: 4px; }
.footer-delivery { margin: 8px auto 0; max-width: 34rem; font-size: .8125rem; line-height: 1.45; }
.footer-delivery p { margin: 0; }
.footer-delivery p + p { margin-top: 2px; }
.wa-sent { max-width: 40rem; margin: 0 auto; display: grid; gap: 12px; }
.wa-sent h1 { margin-bottom: 0; }
.wa-sent-folio { margin: 0; font-size: 1.75rem; font-weight: 800; letter-spacing: .04em; font-variant-numeric: lining-nums tabular-nums; color: var(--accent); }
.wa-sent .btn-wa-order { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.wa-sent-lines { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.wa-sent-lines th, .wa-sent-lines td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: break-word; }
.wa-sent-lines td:nth-child(2), .wa-sent-lines td:last-child { text-align: right; white-space: nowrap; }
.wa-sent-lines tfoot th, .wa-sent-lines tfoot td { font-weight: 800; border-bottom: 0; }

/* Compact cart and the privacy layer */
.wa-cart-brief { margin: 10px 0 8px; line-height: 1.45; }
.wa-accept { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; line-height: 1.45; }
.wa-accept input[type=checkbox] { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.wa-accept label { overflow-wrap: anywhere; }
.wa-accept a { text-decoration: underline; }
.wa-accept-msg { color: #a0281e; margin: 4px 0 8px; font-weight: 600; }
.wa-privacy-open { margin: 10px 0 0; }
.wa-privacy-open a, .footer-privacy a, .wa-privacy-link { text-decoration: underline; }
.wa-privacy-link { display: inline-block; margin-top: 4px; font-size: .8125rem; }
.privacy-layer { max-width: 1120px; margin: 0 auto; padding: 16px; line-height: 1.5; overflow-wrap: anywhere; background: var(--surface); border-top: 1px solid var(--line); }
.privacy-layer h2 { font-size: 1.05rem; margin: 0 0 6px; }
.privacy-layer-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 10px 0 0; }
.privacy-layer.is-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; max-width: none; max-height: 70vh; overflow-y: auto; box-shadow: 0 -4px 18px rgba(0,0,0,.18); }
.privacy-layer.is-sheet > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.privacy-layer[hidden] { display: none; }
.legal-simplified { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 12px 0 18px; }

/* Catalog and consultations. The saved list of interest and its printed form («Lista de productos»). */
.cat-save-note { margin: 0 0 8px; font-weight: 700; }
.cat-prices { margin: 0 0 8px; }
.cat-list { max-width: 44rem; margin: 0 auto; display: grid; gap: 16px; }
.cat-list-screen { display: grid; gap: 12px; }
.cat-list-screen h1 { margin-bottom: 0; }
.cat-list-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cat-list-actions .btn-wa-order { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.cat-list-screen a[data-list-link], .cat-copy-url { overflow-wrap: anywhere; }
.cat-copy-status:empty { display: none; }
.cat-print { border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 10px; background: #fff; color: #111; }
.cat-print-head { display: flex; align-items: center; gap: 10px; }
.cat-print-logo { width: 40px; height: 40px; object-fit: contain; }
.cat-print-store { margin: 0; font-size: 1.25rem; font-weight: 800; }
.cat-print-title { margin: 0; font-size: 1.25rem; }
.cat-print-meta { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; }
.cat-print-meta div { display: flex; gap: 6px; }
.cat-print-meta dt { font-weight: 700; }
.cat-print-meta dd { margin: 0; font-variant-numeric: tabular-nums; }
.cat-print-lines td:nth-child(3) { text-align: right; white-space: nowrap; }
.cat-print-lines .ref { display: block; font-weight: 400; font-size: .8125rem; color: #555; }
@media (max-width: 480px) {
  .cat-print { padding: 12px; }
  .cat-print-lines { font-size: .8125rem; }
  .cat-print-lines th, .cat-print-lines td { padding: 6px 3px; }
}
@media print {
  body:has([data-cat-print]) .site-header, body:has([data-cat-print]) .site-footer,
  body:has([data-cat-print]) .cart-panel, body:has([data-cat-print]) .privacy-layer, .no-print { display: none !important; }
  .cat-print { border: 0; padding: 0; }
  .cat-list { max-width: none; }
}

/* The banner shows the Milenni logo on a soft panel (no product photo). */
.hero-logo-box { display: grid; place-items: center; padding: 28px 18px; background: var(--surface, #fff); min-height: 190px; }
.hero-logo { width: min(100%, 340px); height: auto; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 10px 30px rgba(74, 47, 46, .12); }
@media (min-width: 760px) { .hero-logo-box { padding: 40px; } }

/* Design C2: option C with the search of option B and the
   original Cacao palette (chrome #4A2F2E, rose gold #8E5246, blush #F6D3C8, white background). No new colours. */

/* Header with the banner inside (home page only): logo, phrase and «Ver productos →»; no separate banner block, so the
   categories show at once («el landing page se me hace muy grande», «el banner y el logo … en el header»). */
.header-hero { grid-area: hero; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 6px 0 8px; min-width: 0; }
.header-hero-title { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; color: var(--chrome-text); text-wrap: balance; }
.header-hero-link { color: var(--blush); font-weight: 800; text-decoration: none; white-space: nowrap; min-height: 32px; display: inline-flex; align-items: center; }
.header-hero-link:hover { text-decoration: underline; }
.site-header:has(> .header-hero) { grid-template-areas: "banner banner" "brand tools" "search search" "hero hero" "nav nav"; }
.site-header:has(> .header-hero) .logo { width: 52px; height: 52px; flex-basis: 52px; }
/* Tablet (an iPad mini is 768px): the phrase gets its own row under the logo and the search, so it is never squeezed. */
@media (min-width: 760px) and (max-width: 1099px) {
  .site-header:has(> .header-hero) { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "banner banner banner" "brand search tools" "hero hero hero" "nav nav nav"; column-gap: 20px; }
  .site-header:has(> .header-hero) .header-hero { margin: 8px 0 4px; }
  .header-hero-title { font-size: 1.5rem; }
  .site-header:has(> .header-hero) .logo { width: 60px; height: 60px; flex-basis: 60px; }
}
@media (min-width: 1100px) {
  .site-header:has(> .header-hero) { grid-template-columns: auto minmax(0, 1fr) minmax(200px, 320px) auto; grid-template-areas: "banner banner banner banner" "brand hero search tools" "nav nav nav nav"; column-gap: 20px; }
  .site-header:has(> .header-hero) .header-hero { margin: 0; padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .2); }
  .header-hero-title { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
  .site-header:has(> .header-hero) .logo { width: 60px; height: 60px; flex-basis: 60px; }
}
#todos, #cat-title, #filtros { scroll-margin-top: 16px; }

/* Side filters (option B): a column on the left on a computer; on a phone a sheet from below opened by
   «Filtrar y ordenar (n)». Without JavaScript the form is a block above the products. */
.list-split { display: grid; gap: 16px; }
.list-main { min-width: 0; }
.list-main > .search-count { margin-top: 0; }
.list-controls { display: grid; align-items: start; gap: 12px; padding: 12px 14px; font-size: .875rem; }
.list-controls .side-head { display: none; }
.list-controls .side-title { margin: 0; font-weight: 800; font-size: 1rem; }
.list-controls fieldset.control { border: 0; margin: 0; padding: 0; display: grid; gap: 2px; min-width: 0; }
.list-controls legend { font-weight: 800; padding: 0; margin-bottom: 4px; font-size: .875rem; }
.list-controls .opt { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: .875rem; font-weight: 400; cursor: pointer; }
.list-controls .opt input { width: 18px; height: 18px; margin: 0; flex: 0 0 18px; accent-color: var(--accent); }
.list-controls .opt-n { color: var(--muted); }
.list-controls .opt-sub { padding-left: 22px; }
.list-controls .filter-chips { flex: none; }
.filters-open { width: auto; justify-self: start; min-height: 40px; padding: 0 16px; }
.filters-open[hidden] { display: none; }
@media (max-width: 899px) {
  .js .list-controls { display: none; }
  .js .list-controls.is-open { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 80vh; overflow-y: auto;
    margin: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(74, 47, 46, .25); padding: 14px max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-bottom, 0px)); }
  .js .list-controls.is-open .side-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; top: -14px; background: var(--surface); padding: 4px 0 8px; }
  .list-controls .side-done { width: auto; min-height: 40px; padding: 0 16px; }
  .list-controls .side-done[hidden] { display: none; }
  .list-controls .opt { min-height: 40px; }
  body.sheet-open::after { content: ""; position: fixed; inset: 0; background: rgba(74, 47, 46, .35); z-index: 59; }
}
@media (min-width: 900px) {
  .list-split { grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 24px; }
  .list-split .filters-open { display: none; }
  .list-controls { position: sticky; top: 12px; margin: 0; }
  .list-split .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .list-split .catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Kits Skin Care: underline tabs with how many kits each brand has; every brand stays visible. */
.kit-tabs { margin: 4px 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.kit-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.kit-tabs a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; }
.kit-tabs a:hover { color: var(--text); }
.kit-tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.kit-tabs .tab-n { font-weight: 400; margin-left: 4px; }

/* After every item added: a slim dark bar at the bottom centre with «Ver …» (the reminder keeps its own look). */
.cart-float[data-kind="added"] { left: 50%; right: auto; top: auto; bottom: 18px; transform: translateX(-50%); width: min(440px, calc(100vw - 24px));
  background: var(--text); color: #FFFFFF; border: 0; border-radius: 12px; padding: 6px 4px 6px 16px; align-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.cart-float[data-kind="added"] .cart-float-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; }
.cart-float[data-kind="added"] .mini-content { display: contents; }
.cart-float[data-kind="added"] .mini-msg { margin: 0; font-weight: 600; font-size: .875rem; }
.cart-float[data-kind="added"] .mini-msg + .mini-msg { font-weight: 400; font-size: .8125rem; opacity: .9; }
.cart-float[data-kind="added"] .mini-actions { margin: 0; gap: 4px; }
.cart-float[data-kind="added"] .mini-actions .btn-primary, .cart-float[data-kind="added"] .mini-actions .btn-secondary { background: transparent; color: var(--blush); border: 0; min-height: 36px; padding: 0 8px; font-weight: 800; flex: none; }
.cart-float[data-kind="added"] .float-close { color: #FFFFFF; flex: 0 0 40px; width: 40px; height: 40px; }
.cart-float[data-kind="added"] .float-close:hover { background: rgba(255, 255, 255, .14); }
.cart-float[data-kind="added"] :focus-visible { outline-color: #FFFFFF; }
@media (max-width: 600px) { .cart-float[data-kind="added"] { top: auto; bottom: max(12px, env(safe-area-inset-bottom, 0px)); right: auto; } }
@media (prefers-reduced-motion: no-preference) {
  .cart-float[data-kind="added"]:not([hidden]) { animation: snack-in .18s ease-out; }
  @keyframes snack-in { from { transform: translate(-50%, 12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
}

/* Saving the list: the delivery box sits in a blush «Antes de guardar» panel above the button. */
.cat-delivery { background: var(--blush); border-radius: 12px; padding: 12px; margin: 0 0 12px; display: grid; gap: 4px; }
.cat-delivery-head { margin: 0; font-weight: 800; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.cat-delivery .wa-accept { margin: 0; }
.cat-delivery .wa-accept input[type=checkbox] { accent-color: var(--accent); }
.cat-delivery .wa-accept.has-error { outline: 2px solid #a0281e; outline-offset: 4px; border-radius: 4px; }
.cat-delivery .wa-accept-msg { margin: 4px 0 0; }

/* The header lines up with the page content: on a wide screen the logo, the search, the menu and the filters all start
   at the same left edge (the content is 1120px wide and centred). */
@media (min-width: 760px) {
  .site-header { padding-left: max(var(--gap), calc((100% - 1120px) / 2 + var(--gap))); padding-right: max(var(--gap), calc((100% - 1120px) / 2 + var(--gap))); }
  .site-header .main-nav { margin: 0; padding-left: 0; padding-right: 0; }
  /* every menu entry on screen on a tablet or a narrow window: the row wraps instead of hiding entries off the edge */
  .site-header .main-nav[data-store-nav] { overflow-x: visible; }
  .site-header .main-nav[data-store-nav] ul { flex-wrap: wrap; row-gap: 0; }
}

/* R3.9 change #3 (11 Nov 2026, option A): on a phone the store menu row (it slid off the screen) gives way to the
   circles: the home page shows its own, the other pages small text-only tags that wrap
   into rows, none off the screen. Every button on a phone is at least 44px high. On a computer nothing changes. */
.cat-strip { display: none; }
@media (max-width: 759px) {
  .site-header .main-nav[data-store-nav] { display: none; }
  .cat-strip { display: block; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 0 6px; }
  /* text-only section tags (option A, 11 Nov 2026): small, they wrap into as many rows as needed, none off the screen */
  .cat-strip ul { list-style: none; margin: 0; padding: 0 var(--gap); display: flex; flex-wrap: wrap; gap: 6px; }
  .cat-strip a { position: relative; display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border: 1px solid #d8bdb5; border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .875rem; line-height: 1.15; white-space: nowrap; }
  .cat-strip a::after { content: ""; position: absolute; inset: -5px -3px; }   /* 44px tap area */
  .cat-strip a[aria-current="page"] { background: var(--chrome-bg); border-color: var(--chrome-bg); color: var(--chrome-text); font-weight: 700; }
  .header-hero-link { display: inline-flex; align-items: center; min-height: 44px; }
  .breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .filters-open { min-height: 44px; }
}
/* The filter sheet on a phone: the choices are pills that wrap, «Quitar filtros» and «Ver resultados» stay at the bottom. */
.list-controls .side-foot { display: none; }
@media (max-width: 899px) {
  .js .list-controls.is-open .side-foot { display: flex; gap: 10px; position: sticky; bottom: calc(-1 * max(16px, env(safe-area-inset-bottom, 0px))); background: var(--surface); border-top: 1px solid var(--line); padding: 12px 0 max(4px, env(safe-area-inset-bottom, 0px)); margin-top: 4px; }
  .list-controls .side-foot > * { flex: 1 1 0; min-height: 48px; width: auto; justify-content: center; display: inline-flex; align-items: center; }
  .js .list-controls.is-open .side-head { position: static; }
  .js .list-controls.is-open fieldset.control:not(:last-of-type) { display: flex; flex-wrap: wrap; gap: 8px; }
  .js .list-controls.is-open fieldset.control legend { flex: 1 1 100%; }
  .js .list-controls.is-open fieldset.control:not(:last-of-type) .opt { position: relative; min-height: 44px; padding: 0 14px; border: 1px solid var(--field-border); border-radius: 999px; font-size: .875rem; }
  .js .list-controls.is-open fieldset.control:not(:last-of-type) .opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
  .js .list-controls.is-open fieldset.control:not(:last-of-type) .opt:has(input:checked) { background: var(--chrome-bg); color: var(--chrome-text); border-color: var(--chrome-bg); font-weight: 700; }
  .js .list-controls.is-open fieldset.control:not(:last-of-type) .opt:has(input:checked) .opt-n { color: inherit; }
  .js .list-controls.is-open fieldset.control:not(:last-of-type) .opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
  .js .list-controls.is-open .filter-chips { display: none; }
}

/* a card without its own photo shows the collection's photo, labelled as illustrative */
.gallery figure.illustrative { margin: 0; }
.gallery figure.illustrative img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; border-radius: 12px; }
.gallery figure.illustrative figcaption { margin-top: 6px; font-size: 0.8125rem; color: var(--muted, #6b6b6b); text-align: center; }
/* Fragrances: the reference line under the key and title */
.card-link .card-inspired { display: block; padding: 4px 11px 0; font-size: .78125rem; line-height: 1.35; color: var(--muted); }
.product-info h1 .h1-sub { font-size: .55em; font-weight: 600; color: var(--muted); white-space: nowrap; }
.product-info .frag-ref { margin: 4px 0 8px; font-size: 1rem; }
/* Catalog mode: the footer links in one straight column. */
.site-footer .footer-legal { justify-content: flex-start; }
.site-footer .wa-privacy-link { display: inline-block; min-height: 0; line-height: 1.5; padding: 0; margin-top: 2px; }
@media (min-width: 760px) { .footer-cols { padding: 0 var(--gap); } }
.site-footer .footer-legal a { line-height: 1.4; padding: 6px 0; min-height: 32px; }
/* Sales-clarity texts (shown only with MILENNI_CAT_TEXTOS_VENTA=1) */
.cat-share { margin: 0 0 12px; }
.cat-share p { margin: 0 0 4px; }
.price-per-ml { display: inline-block; font-size: .9375rem; font-weight: 400; color: var(--muted); white-space: nowrap; }
.season-banner { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 12px; margin: 0 0 var(--gap); }
.season-banner p { margin: 0; }
/* Seasonal campaign window on the catalog home (opened by store.js when the visitor arrives from outside the store) */
.season-pop { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; border: 0; border-radius: 18px; padding: 28px 24px 22px;
  background: var(--surface); color: var(--text); text-align: center; box-shadow: 0 24px 60px rgba(74, 47, 46, .35); }
.season-pop::backdrop { background: rgba(40, 20, 18, .55); }
.season-pop h2 { font-size: 1.75rem; line-height: 1.15; margin: 4px 0 10px; color: var(--accent); }
.season-pop-icon { font-size: 2.5rem; line-height: 1.1; margin: 0; overflow-wrap: anywhere; }
.season-deco { font-size: .85em; }
.season-pop-line { margin: -8px 0 16px; color: var(--accent); letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: clip; max-width: 100%; }
.season-pop-text { margin: 0 0 18px; font-size: 1.0625rem; line-height: 1.5; }
.season-pop-date { display: inline-block; background: #F6D3C8; color: #4A2F2E; font-weight: 800; padding: 2px 10px; border-radius: 999px; margin: 2px 0; }
.season-pop-close { position: absolute; top: 10px; right: 10px; margin: 0; }
.season-pop-close button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--text); font-size: 1.75rem; line-height: 1; cursor: pointer; }
.season-pop-close button:hover { background: #FBF1EC; }
.season-pop-go { margin: 0; }
.season-pop-go .btn-primary { max-width: 280px; font-size: 1.0625rem; }
.has-season-pop .season-banner { display: none; }
@media (prefers-reduced-motion: no-preference) { .season-pop[open] { animation: season-in .22s ease-out; } }
@keyframes season-in { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
/* The 404 page offers the search and the main sections. */
.notfound .search-form { margin: 12px 0; }
.notfound-links { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.notfound-links a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--accent); background: var(--surface); }

/* T-4 and P-1: the three steps above «Mi lista de interés» and the pay-on-delivery note */
.cat-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cat-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; font-size: .95rem; line-height: 1.4; }
.cat-step.is-current { background: var(--blush); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }   /* the current step (2026-11-24) */
.cat-step.is-done { background: var(--in-bg); border-color: var(--in-bg); }
.cat-step.is-done strong { color: var(--in-text); }
.cat-step.is-done strong::before { content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; border-radius: 50%; background: var(--in-text) url("step-done-icon.f882feea0812.svg") center / 14px no-repeat; }
.cat-list .cat-steps { margin-top: 12px; }
.cat-step strong { display: block; color: var(--text); }
.cat-step span { color: var(--muted); }
.cat-pay { margin: 0 0 var(--gap); padding: 10px 12px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem; line-height: 1.4; }
.cat-pay strong { color: var(--text); }
@media (max-width: 599px) { .cat-steps { grid-template-columns: minmax(0, 1fr); gap: 6px; } .cat-step { padding: 8px 12px; } .cat-step strong { display: inline; } }
/* T-5: the line under the home phrase, catalog mode only */
.header-hero-text { flex-basis: 100%; margin: 2px 0 0; font-size: .95rem; line-height: 1.4; color: var(--chrome-text); opacity: .92; max-width: 70ch; }
/* Home photo chosen in the panel: above the phrase on a phone, beside it from a tablet up. Without a
   photo the header stays as before. */
.header-hero-photo { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 6px 16px; }
.header-hero-photo > * { min-width: 0; }
.header-hero-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 170px; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.header-hero-photo .header-hero-link { justify-self: start; }
@media (min-width: 760px) {
  .header-hero-photo { grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); }
  .header-hero-photo .header-hero-img { grid-column: 1; grid-row: 1 / span 3; max-height: none; }
  .header-hero-photo > :not(.header-hero-img) { grid-column: 2; }
}
/* Computer: the phrase shares the row with the logo and the search, so the photo stays small beside it. */
@media (min-width: 1100px) { .header-hero-photo { grid-template-columns: 150px minmax(0, 1fr); align-items: center; } }

/* Promotions: the store shows the normal price crossed out, the promotion price and how long it lasts. */
.price .price-was { font-weight: 500; font-size: .8125rem; color: var(--muted); margin-right: 4px; }
.product-info .price .price-was { font-size: 1rem; }
.promo-note { margin: 2px 0 0; font-size: .75rem; color: var(--zero-text); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.product-info .promo-note { font-size: .875rem; margin: 0 0 6px; }
.promo-tag { display: inline-block; background: var(--zero-bg); color: var(--zero-text); font-weight: 800; border-radius: 999px; padding: 0 8px; white-space: nowrap; }
.promo-lim { font-weight: 800; }
.promo-when { color: var(--muted); }

/* Kits armados: badge, saving line, the products a kit holds, and a mosaic of their photos when the kit has none. */
.kit-badge { display: inline-block; align-self: flex-start; background: var(--blush); color: var(--text); font-size: .75rem; font-weight: 800; border-radius: 999px; padding: 1px 10px; margin: 0 0 4px; }
.kit-saving { margin: 2px 0 0; font-size: .8125rem; color: var(--muted); }
.kit-saving b { color: var(--in-text); }
.product-info .kit-saving { font-size: .9375rem; margin: 0 0 6px; }
.kit-includes { margin: 12px 0; }
.kit-includes h2 { font-size: 1.0625rem; margin: 0 0 6px; }
.kit-includes ul { margin: 0; padding-left: 20px; }
.kit-includes li { margin: 3px 0; }
.kit-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 2px; aspect-ratio: 1 / 1; width: 100%; max-width: 100%; background: var(--line); overflow: hidden; }
.kit-mosaic img { width: 100%; height: 100%; object-fit: contain; background: #FFFFFF; padding: 4px; aspect-ratio: auto; border: 0; border-radius: 0; }
.kit-mosaic-3 img:first-child { grid-row: 1 / -1; }
.kit-mosaic-2 img { grid-row: 1 / -1; }
.kit-mosaic-1 img { grid-column: 1 / -1; grid-row: 1 / -1; }
.kit-mosaic-page { border-radius: var(--radius); border: 1px solid var(--line); }
.kit-includes-line { display: block; font-size: .8125rem; color: var(--muted); font-weight: 400; }
.product-info .kit-badge { width: fit-content; }

/* Promos de Fragancias: sizes, gift promos and the Fragancias
   campaigns (Milenni look, or the Christmas look «navidad»). */
.frag-band { background: transparent; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; margin: 0 0 var(--gap); display: grid; gap: 4px; }
.frag-band p { margin: 0; }
.frag-band-icon { font-size: 1.4rem; letter-spacing: .1em; }
.frag-band-title { font-size: 1.15rem; color: var(--accent); }
.frag-band-line { letter-spacing: .12em; white-space: nowrap; overflow: hidden; max-width: 100%; }
.frag-band-btn { justify-self: start; margin-top: 4px; background: var(--accent); color: #FFFFFF; border-radius: 10px; padding: 8px 16px; font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
/* Colour of the band and the window: a palette of the store's own tones (no colour = the band blends with the page). */
.frag-c-rubor { --fc-bg: #FBEAE4; --fc-fg: #4A2F2E; --fc-ac: #8E5246; }
.frag-c-arena { --fc-bg: #F4EBDF; --fc-fg: #4A2F2E; --fc-ac: #7A4A1C; }
.frag-c-salvia { --fc-bg: #E5EEE6; --fc-fg: #2F4A3A; --fc-ac: #2F5A3E; }
.frag-c-lavanda { --fc-bg: #EEE6F3; --fc-fg: #4A2F5A; --fc-ac: #5A2F6E; }
.frag-c-niebla { --fc-bg: #E6ECF2; --fc-fg: #2E3E52; --fc-ac: #1A4F8B; }
.frag-c-oro { --fc-bg: #E9C9B8; --fc-fg: #4A2F2E; --fc-ac: #5E3B37; }
.frag-c-cacao { --fc-bg: #5E3B37; --fc-fg: #FFFFFF; --fc-ac: #F3D9CF; }
.frag-c-navidad { --fc-bg: #9B2335; --fc-fg: #FFFFFF; --fc-ac: #F3E3B5; }
.frag-band.frag-c { background: var(--fc-bg); color: var(--fc-fg); border: 0; border-radius: var(--radius); padding: 14px 16px; }
.frag-band.frag-c .frag-band-title, .frag-band.frag-c .frag-band-line { color: var(--fc-ac); }
.frag-band.frag-c .frag-band-btn { background: var(--fc-fg); color: var(--fc-bg); }
.season-pop.frag-c { background: var(--fc-bg); color: var(--fc-fg); }
.season-pop.frag-c h2, .season-pop.frag-c .season-pop-line { color: var(--fc-ac); }
.season-pop.frag-c .season-pop-close button, .season-pop.frag-c .link-btn { color: var(--fc-fg); }
.season-pop.frag-c-cacao .btn-primary { background: var(--fc-ac); color: var(--fc-bg); }
.season-pop.frag-xmas h2 { color: #F3E3B5; }
.season-pop.frag-xmas .btn-primary { background: #2E5E45; color: #FFFFFF; border: 1px solid rgba(255, 255, 255, .45); }
.season-pop.frag-xmas { background: #9B2335; color: #FFFFFF; }
.season-pop.frag-xmas .season-pop-close button, .season-pop.frag-xmas .link-btn { color: #FFFFFF; }
.season-pop.frag-xmas .season-pop-line { color: #F3E3B5; }
.season-pop-later { margin: 10px 0 0; }
.season-pop-later .link-btn { background: none; border: 0; text-decoration: underline; font: inherit; color: var(--text); cursor: pointer; min-height: 44px; }
.season-pop-go a.btn-primary { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.gift-note { margin: 4px 0 0; font-size: .8125rem; color: #2F5A3E; font-weight: 700; }
.gift-badge { display: inline-block; background: #2F5A3E; color: #FFFFFF; border-radius: 999px; padding: 0 8px; font-size: .75rem; font-weight: 800; }
.sizes-also { margin: 2px 0 0; font-size: .8125rem; color: var(--muted, #6C4A49); }
.gift-box { background: #E8F3EC; color: #2F5A3E; border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.gift-box p { margin: 0; }
.gift-title { font-weight: 800; }
.gift-tail { font-size: .875rem; margin-top: 4px !important; }
.size-pick { border: 0; padding: 0; margin: 0 0 12px; }
.size-pick legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.size-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.size-opt { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; min-height: 44px; background: var(--surface); }
.size-opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.size-opt input { width: 20px; height: 20px; min-height: 0; flex: 0 0 20px; margin: 0; accent-color: var(--accent); }
.size-ml, .size-price { white-space: nowrap; }
.size-ml { font-weight: 700; }
.size-price { color: var(--muted, #6C4A49); font-variant-numeric: tabular-nums; }
.gift-pick { margin: 0 0 12px; display: grid; gap: 4px; }
.gift-pick select { width: 100%; max-width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; text-overflow: ellipsis; }
.gift-pick { min-width: 0; }
.gift-pick .hint { margin: 0; font-size: .8125rem; }
.gift-filter { margin: 0 0 var(--gap); }
.gift-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--text); font-weight: 700; min-height: 44px; }
.gift-chip[aria-current] { background: #2F5A3E; color: #FFFFFF; border-color: #2F5A3E; }
.line-gift { margin-top: 8px; background: #E8F3EC; color: #2F5A3E; border-radius: 8px; padding: 8px 10px; font-size: .875rem; }
.line-gift p { margin: 0; }
.line-gift .gift-why { font-size: .8125rem; }
.line-gift .gift-pick { margin: 6px 0 0; }
.line-size { font-weight: 400; color: var(--muted, #6C4A49); }
.frag-socials-lead { margin: 6px 0 0; font-weight: 700; }
.frag-socials { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0 0; }
.frag-band .frag-socials { justify-content: flex-start; }
.frag-social { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; font-weight: 800; text-decoration: none; color: inherit; background: transparent; border: 1.5px solid currentColor; }
.frag-social:hover { background: rgba(255, 255, 255, .12); }
.frag-social:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
/* ===== FR-01: estilo fino de tarjeta, ficha rápida y ficha técnica ===== */
:root { --blush-soft: #FCEDE8; --blush-hover: #F9E0D8; }
.product-card { border-color: #F5E6E0; transition: box-shadow .2s ease, border-color .2s ease; }
.product-card:hover { box-shadow: 0 10px 30px rgba(74,47,46,.10); border-color: var(--line); }
.product-card .card-link { overflow: hidden; }
.product-card .card-img, .product-card .kit-mosaic { transition: transform .35s ease; }
.product-card:hover .card-img, .product-card:hover .kit-mosaic { transform: scale(1.04); }
/* disponibilidad: punto de color + el mismo texto */
.card-row { margin-top: auto; padding-top: 6px; }
.card-row .stock, .product-info .stock { display: inline-flex; align-items: center; gap: 6px; background: none !important; padding: 0; border-radius: 0; font-size: .75rem; font-weight: 800; color: var(--in-text); }
.product-info .stock { font-size: .875rem; }
.card-row .stock::before, .product-info .stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.stock-low .stock, .stock-low_1 .stock { color: var(--low-text) !important; }
.stock-low .stock::before, .stock-low_1 .stock::before { background: #D9A441; }
.stock-zero .stock { color: var(--zero-text) !important; }
.stock-order .stock { color: var(--order-text) !important; }
/* acciones: cantidad en círculo rosa + AGREGAR en píldora café; «Ver ficha →» abajo */
.card-actions { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.card-add { width: 100%; gap: 6px; }
.card-qty { appearance: none; -webkit-appearance: none; border: 0; min-height: 44px; min-width: 52px; padding: 0 24px 0 14px; border-radius: 999px; color: var(--accent); font-weight: 800; text-align: left;
  background: var(--blush-soft) url("caret-icon.fe58c71e956a.svg") no-repeat right 10px center; }
.card-qty:hover { background-color: var(--blush-hover); }
.card-add .add-btn { flex: 1; min-height: 44px; text-transform: uppercase; letter-spacing: .04em; font-size: .75rem; transition: background .15s; }
.card-add .add-btn:hover { background: var(--text); }
.quick-link { display: inline-flex; align-self: center; align-items: center; gap: 4px; min-height: 36px; padding: 0 8px; font-size: .8125rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.quick-link:hover { color: var(--accent); }
.product-card .in-cart { text-align: center; }
/* ficha (página y ficha rápida): cantidad rosa, botón en píldora, WhatsApp en contorno */
.product-info .stepper { border: 0; border-radius: 999px; background: var(--blush-soft); overflow: hidden; }
.product-info .stepper input { background: transparent; border: 0; color: var(--accent); font-weight: 800; }
.product-info .step-btn { background: transparent; color: var(--accent); border: 0; }
.product-info .step-btn:hover { background: var(--blush-hover); }
.add-to-cart .btn-primary { border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.add-to-cart .btn-primary:hover { background: var(--text); }
.product-info .wa-link, .product-info .btn-wa, .product-info a.wa { background: var(--surface) !important; color: var(--wa) !important; border: 1.5px solid var(--wa) !important; }
.product-info .wa-link:hover, .product-info .btn-wa:hover, .product-info a.wa:hover { background: var(--wa) !important; color: #fff !important; }
/* pestañas */
.ptabs { margin-top: 8px; }
.ptabs-list { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.ptabs-list button { border: 0; background: none; padding: 10px 12px; min-height: 44px; font: inherit; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; }
.ptabs-list button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.ptabs.is-tabs .ptab-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ptab-h { font-size: 1rem; margin: 14px 0 4px; }
.ptab { padding-top: 6px; color: var(--muted); }
dl.ft { display: grid; grid-template-columns: max-content minmax(0, 1fr); margin: 4px 0 0; }
dl.ft dt, dl.ft dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
dl.ft dt { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text); padding-right: 18px; }
/* ficha rápida */
dialog.quick { border: 0; padding: 0; width: min(980px, 94vw); max-height: 90vh; border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: 0 24px 80px rgba(40,20,18,.35); overflow: auto; }
dialog.quick::backdrop { background: rgba(58,33,30,.55); }
dialog.quick[aria-busy="true"] { opacity: .7; }
.quick-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; gap: 6px; padding: 12px 14px 0; pointer-events: none; }
.quick-ic { pointer-events: auto; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); font-size: 1.1rem; cursor: pointer; }
.quick-ic:disabled { opacity: .35; cursor: default; }
dialog.quick .product { margin: 0; padding: 4px 24px 24px; border: 0; box-shadow: none; }
dialog.quick .gallery-main { max-height: 440px; object-fit: contain; }
.quick-full { display: inline-block; margin-top: 14px; font-size: .875rem; font-weight: 700; color: var(--accent); }
@media (max-width: 700px) {
  dialog.quick { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  dialog.quick .product { padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
  dialog.quick .gallery-main { max-height: 260px; }
}
@media (prefers-reduced-motion: reduce) { .product-card .card-img, .product-card .kit-mosaic { transition: none; } }
/* two cards per row on a phone: «AGREGAR» stays on one line */
.card-add .add-btn { white-space: nowrap; padding-left: 10px; padding-right: 10px; }
@media (max-width: 479px) { .card-qty { min-width: 46px; padding: 0 20px 0 11px; background-position: right 8px center; } .card-add .add-btn { letter-spacing: .02em; } }
/* ===== FR-02: header fijo, siempre visible al bajar ===== */
.site-header { position: sticky; top: 0; z-index: 30; }
.site-header.is-compact { padding-top: 6px; box-shadow: 0 6px 18px rgba(74, 47, 46, .10); }
.site-header.is-compact > .dev-banners, .site-header.is-compact > .header-hero, .site-header.is-compact .slogan { display: none; }
.site-header.is-compact .brand { min-height: 40px; }
.site-header.is-compact .logo, .site-header.is-compact:has(> .header-hero) .logo { width: 36px; height: 36px; flex-basis: 36px; }
.site-header.is-compact .store-name { font-size: 1.5rem; }
html { scroll-padding-top: calc(var(--head-h, 0px) + 8px); }
@media (min-width: 900px) { .list-controls { top: calc(var(--head-h, 0px) + 12px); } }
@media (min-width: 900px) { .checkout-side, .cart-summary { top: calc(var(--head-h, 0px) + var(--gap)); } }
/* «Mi lista»: the gift is saved as soon as another scent is chosen, so its button shows only without JavaScript */
.js [data-gift-save] { display: none !important; }
