/* Storefront theme (spec 025). Editorial layout: full-bleed banners, photos edge to edge, few lines.
   Colors and fonts come from StoreSettings as CSS variables (base_store.html); the rest is derived from
   them with color-mix, so the same theme works for a dark store (Cocoreta) or a light one. */
:root {
  --brand: #111827;
  --accent: #db2777;
  --ink: #1f2937;
  --ground: #ffffff;
  --button: #111827;
  --button-ink: #ffffff;
  --accent-ink: #ffffff;
  --surface: color-mix(in srgb, var(--ink) 5%, var(--ground));
  --surface-2: color-mix(in srgb, var(--ink) 10%, var(--ground));
  --line: color-mix(in srgb, var(--ink) 18%, var(--ground));
  --muted: color-mix(in srgb, var(--ink) 62%, var(--ground));
  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 2px;
  --gutter: clamp(16px, 3vw, 40px);
  --max: 1440px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--ground);
  color-scheme: light dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; font-family: var(--font-body, inherit); background: var(--ground); color: var(--ink);
  -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[x-cloak] { display: none !important; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; }
.skip-link:focus { left: 0; }
.icon { flex: none; }
/* The header switches to the hamburger menu below 1100px, where the menu stops fitting in one line */
@media (max-width: 1099px) { .only-desktop { display: none !important; } }
@media (min-width: 1100px) { .only-mobile { display: none !important; } }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading, inherit); font-weight: 400; line-height: 1.15; color: var(--brand); margin: 0 0 .6em; }
.page-title { font-size: clamp(1.9rem, 3.4vw, 3rem); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 1.2rem; }
.section-title { font-size: clamp(1.5rem, 2.6vw, 2.3rem); text-transform: uppercase; letter-spacing: .03em; text-align: center; margin: 0 0 1.6rem; }
.eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs { font-size: .78rem; color: var(--muted); margin: 0 0 .8rem; letter-spacing: .02em; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.rich-text { max-width: 760px; }
.rich-text p { margin: 0 0 1em; }
.muted { color: var(--muted); }

/* Announcement bar: the messages scroll; paused when the visitor prefers less motion */
.announcement { background: var(--bar, var(--accent)); color: var(--bar-ink, var(--accent-ink)); font-size: .74rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; overflow: hidden; }
.announcement a { color: inherit; text-decoration: none; display: block; }
.marquee { overflow: hidden; padding: .5rem 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-group { display: flex; flex: none; }
.marquee-group span { padding: 0 2.2rem; white-space: nowrap; position: relative; }
.marquee-group span::after { content: "✦"; position: absolute; right: -.35rem; opacity: .7; }
.announcement:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; width: auto; justify-content: center; }
  .marquee-group[aria-hidden] { display: none; }
  html { scroll-behavior: auto; }
}

/* Veil between the store and a section (looks.js): the destination's background and logo */
.look-veil { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center;
  gap: 1.4rem; background: var(--veil-ground, var(--header-bg, var(--ground)));
  color: var(--veil-ink, var(--header-ink, var(--ink)));
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .45s ease, visibility 0s linear .45s; }
.look-veil img { width: min(240px, 55vw); height: auto; }
.look-reveal .look-veil, .look-leaving .look-veil { opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .3s ease; }
.look-reveal .look-veil { transition: none; }
.look-dots { display: flex; gap: .5rem; }
.look-dots i { width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; opacity: .25;
  animation: look-dot 1s ease-in-out infinite; }
.look-dots i:nth-child(2) { animation-delay: .15s; }
.look-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes look-dot { 40% { opacity: .9; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .look-veil { display: none; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--ground) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.site-header .bar { display: flex; align-items: center; gap: 2rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; text-decoration: none; font-family: var(--font-heading, inherit); font-size: 1.5rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand); flex: none; }
/* Sized by width, so a wide logo (Cocoreta) and a taller one (Mini Cocoreta) both read well. */
.brand img { width: clamp(130px, 12vw, 170px); height: auto; max-height: 60px; object-fit: contain; }
.primary-nav { display: flex; align-items: stretch; gap: .2rem; flex: 1; align-self: stretch; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: .25rem; padding: .4rem .8rem; text-decoration: none; color: var(--accent);
  font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; position: relative; white-space: nowrap; }
.nav-item > a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .1rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-item > a:hover::after, .nav-item > a[aria-current="page"]::after { transform: scaleX(1); }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 220px; padding: .6rem 0; background: var(--ground); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s var(--ease); }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: .5rem 1.1rem; text-decoration: none; font-size: .85rem; }
.dropdown a:hover { background: var(--surface); color: var(--accent); }
.actions { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.action { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .6rem; border: 0; background: none; cursor: pointer;
  text-decoration: none; font-size: .85rem; }
.action:hover { color: var(--accent); }
.cart-count { min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: .68rem; font-weight: 700; display: inline-grid; place-items: center; }
.icon-btn { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; background: none; cursor: pointer; padding: 0; }
.search-panel { border-top: 1px solid var(--line); background: var(--ground); }
.search { display: flex; align-items: center; gap: .8rem; padding: .9rem 0; color: var(--muted); }
.search input { flex: 1; border: 0; background: none; font: inherit; font-size: 1.25rem; color: var(--ink); padding: .3rem 0; outline: none; }
@media (max-width: 1099px) {
  :root { --header-h: 60px; }
  .site-header .bar { gap: .2rem; }
  .brand { position: absolute; left: 50%; transform: translateX(-50%); }
  .brand img { width: 120px; max-height: 46px; }
}

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); }
.drawer { position: fixed; inset: 0 auto 0 0; z-index: 41; width: min(360px, 88vw); background: var(--ground); border-right: 1px solid var(--line);
  overflow-y: auto; padding: 0 1.2rem 2rem; transform: translateX(-100%); visibility: hidden;
  transition: transform .28s var(--ease), visibility 0s .28s; }
.drawer.is-open { transform: none; visibility: visible; transition: transform .28s var(--ease); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); border-bottom: 1px solid var(--line);
  margin-bottom: .6rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.drawer > a, .drawer-group summary { display: flex; justify-content: space-between; align-items: center; padding: .95rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; cursor: pointer; list-style: none; }
.drawer-group summary::-webkit-details-marker { display: none; }
/* An entry shown as an image (a section's logo) and the way back from a section */
.nav-image > a::after { display: none; }
.nav-image img, .drawer-image img { display: block; height: 32px; width: auto; }
.drawer > a.drawer-back { justify-content: flex-start; gap: .4rem; }
.drawer-group[open] summary .icon { transform: rotate(180deg); }
.drawer-group a { display: block; padding: .6rem 0 .6rem 1rem; text-decoration: none; color: var(--muted); }
.drawer .drawer-contact { justify-content: flex-start; gap: .5rem; color: var(--accent); border: 0; margin-top: 1rem; }

/* Main */
main.page { min-height: 60vh; padding: 2rem 0 4rem; }
main.page-flush { min-height: 60vh; padding: 0 0 4rem; }
.alert { padding: .85rem 1rem; margin: 0 0 1rem; border: 1px solid var(--line); background: var(--surface); }
.alert-warn { border-color: color-mix(in srgb, var(--warn) 60%, var(--ground)); }
.alert-error { border-color: color-mix(in srgb, var(--danger) 60%, var(--ground)); }
.alert-ok { border-color: color-mix(in srgb, var(--ok) 60%, var(--ground)); }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .7rem 1.6rem; border-radius: var(--radius);
  border: 1px solid transparent; font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-accent { background: var(--button); color: var(--button-ink); }
.btn-primary:hover, .btn-accent:hover { background: color-mix(in srgb, var(--button) 85%, var(--ink)); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-whatsapp { background: #25d366; color: #06301a; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }
label { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 1rem 0 .4rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: .75rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: var(--ground); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
.field-error { color: var(--danger); font-size: .82rem; margin-top: .3rem; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem .75rem; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem 1rem; } }
@media (min-width: 900px) { .grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 720px) { .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: .8rem; text-decoration: none; color: var(--ink); }
/* Product photos are 4:5, like the studio shots (spec 026) */
.card .media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform .8s var(--ease); }
.card .media .alt { opacity: 0; }
.card:hover .media .alt { opacity: 1; }
/* Touch screens have no hover: hidden, the lazy second photo is never downloaded (spec 026) */
@media (hover: none) { .card .media .alt { display: none; } }
.card:hover .media img { transform: scale(1.03); }
.card .media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-family: var(--font-heading, inherit);
  letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; }
.labels { position: absolute; top: .7rem; left: .7rem; right: .7rem; display: flex; flex-wrap: wrap; gap: .35rem; pointer-events: none; }
.label-tag { display: inline-block; padding: .3rem .55rem; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink); }
.label-tag.light { background: var(--ground); color: var(--ink); }
.label-tag.muted { background: var(--surface-2); color: var(--muted); }
.card .info { display: flex; flex-direction: column; gap: .2rem; }
.card .name { font-size: .95rem; line-height: 1.35; }
.card.is-out .media img { opacity: .55; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; }
.price { font-weight: 700; color: var(--brand); font-size: 1rem; }
.price-old { text-decoration: line-through; color: var(--muted); font-weight: 400; font-size: .88rem; }
.price-transfer { color: var(--accent); font-size: .82rem; }
.price-transfer strong { font-weight: 700; }
.installments { color: var(--muted); font-size: .8rem; }
.installments strong { color: var(--ink); font-weight: 600; }
.badge { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .5rem;
  background: var(--accent); color: var(--accent-ink); }
.badge-muted { background: var(--surface-2); color: var(--muted); }
.promo-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* Listing */
.listing-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.listing-head .page-title { margin: 0; }
.listing-tools { display: flex; gap: .6rem; align-items: center; }
.listing-tools select { width: auto; min-width: 11rem; padding: .6rem 2rem .6rem .8rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.listing-tools .btn { min-height: 2.6rem; padding: .5rem 1rem; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; font-size: .82rem; color: var(--muted);
  letter-spacing: .04em; }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 3rem; }
.empty { padding: 3rem 1rem; text-align: center; border: 1px solid var(--line); color: var(--muted); }

/* Filters: a panel from the right on every width, so the grid keeps its full width */
.filters-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); }
.filters { position: fixed; inset: 0 0 0 auto; z-index: 41; width: min(400px, 92vw); overflow-y: auto; background: var(--ground);
  border-left: 1px solid var(--line); padding: 0 1.4rem 2rem; transform: translateX(100%); transition: transform .28s var(--ease); visibility: hidden; }
.filters.is-open { transform: none; visibility: visible; }
.filters-head { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); border-bottom: 1px solid var(--line);
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.filters h3 { font-family: var(--font-body, inherit); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 1.6rem 0 .7rem; }
.filters .chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; min-height: 2.3rem; padding: .3rem .8rem; border: 1px solid var(--line); font-size: .82rem;
  text-decoration: none; cursor: pointer; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 0; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.filters .price-range { display: flex; gap: .5rem; }
.filters-actions { display: flex; gap: .6rem; margin-top: 2rem; }
.filters-actions > * { flex: 1; }

/* Product page */
.product { display: grid; gap: 2rem; }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; } }
.gallery { position: relative; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 5; background: var(--surface); }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots { display: flex; justify-content: center; gap: .4rem; margin-top: .8rem; }
.gallery-dots span { width: .45rem; height: .45rem; border-radius: 999px; background: var(--line); transition: background .2s, width .2s; }
.gallery-dots span.is-on { background: var(--ink); width: 1.2rem; }
@media (min-width: 900px) {
  .gallery-track { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; overflow: visible; margin: 0; }
  /* An odd number of photos: the first one goes full width so the rest pair up */
  .gallery-track figure:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .gallery-dots { display: none; }
}
.gallery .labels { z-index: 2; }
.buy-box { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.buy-box h1 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin-bottom: .8rem; }
.buy-box .price-row .price { font-size: 1.6rem; font-weight: 600; }
.buy-box .price-row .price-old { font-size: 1.05rem; }
.buy-box .price-transfer { font-size: .95rem; margin-top: .3rem; display: block; }
.buy-box .installments { font-size: .9rem; display: block; margin-top: .15rem; }
.option-label { display: flex; justify-content: space-between; align-items: baseline; margin: 1.6rem 0 .6rem; font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); }
.option-label strong { color: var(--ink); font-weight: 600; letter-spacing: .04em; }
.sizes { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 .6rem; }
.size { min-width: 3.1rem; height: 3.1rem; padding: 0 .7rem; border: 1px solid var(--line); background: transparent; font: inherit; font-size: .9rem; cursor: pointer;
  transition: border-color .15s, background .15s; }
.size:hover:not(:disabled) { border-color: var(--ink); }
.size[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--ground); }
.size:disabled { color: var(--muted); cursor: not-allowed; background: linear-gradient(to top right, transparent calc(50% - .5px), var(--line), transparent calc(50% + .5px)); }
.stock-note { font-size: .85rem; color: var(--accent); font-weight: 600; margin: .3rem 0; }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: .6rem; margin-top: 1.4rem; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 3rem; }
.stepper button { width: 2.6rem; height: 100%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.stepper button:hover { color: var(--accent); }
.stepper input { width: 2.6rem; height: 100%; border: 0; text-align: center; padding: 0; background: none; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.size-hint { font-size: .82rem; color: var(--muted); margin: .5rem 0 0; min-height: 1.2em; }
.accordion { border-top: 1px solid var(--line); margin-top: 2rem; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; gap: .7rem; padding: 1.05rem 0; cursor: pointer; list-style: none; font-size: .78rem;
  letter-spacing: .13em; text-transform: uppercase; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .chev { margin-left: auto; transition: transform .2s; }
.accordion details[open] summary .chev { transform: rotate(180deg); }
.accordion .acc-body { padding: 0 0 1.2rem 2.1rem; color: var(--muted); font-size: .92rem; }
.accordion .acc-body p { margin: 0 0 .6em; }
.accordion .acc-body strong { color: var(--ink); font-weight: 600; }
.product-links { display: flex; gap: 1.2rem; margin-top: 1.2rem; font-size: .85rem; }
.product-links a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; color: var(--muted); }
.product-links a:hover { color: var(--accent); }
.related { margin-top: 5rem; }

/* Cart and checkout */
.panel { background: var(--surface); border: 1px solid var(--line); padding: 1.4rem; }
.two-cols { display: grid; gap: 2rem; }
@media (min-width: 900px) { .two-cols { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.line img { width: 84px; height: 84px; object-fit: cover; background: var(--surface-2); }
.line .meta { font-size: .82rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 2.2rem; height: 2.2rem; border: 0; background: none; cursor: pointer; }
.qty span { min-width: 2rem; text-align: center; }
.totals div { display: flex; justify-content: space-between; padding: .35rem 0; }
.totals .grand { font-size: 1.2rem; font-weight: 700; border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .8rem; }
.option { display: flex; gap: .7rem; align-items: flex-start; border: 1px solid var(--line); padding: .9rem; margin-bottom: .6rem; cursor: pointer;
  text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--ink); }
.option:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.htmx-request .spinner, .spinner.htmx-request { display: inline-block; }
.spinner { display: none; width: 1rem; height: 1rem; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.coupon { margin: .8rem 0; }
.coupon-form { display: flex; gap: .5rem; }
.coupon-form input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.field-row { display: grid; grid-template-columns: 1fr 7rem; gap: .6rem; }
.field-row > div { min-width: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 4rem 0 2rem; font-size: .88rem; color: var(--muted); }
.site-footer .cols { display: grid; gap: 2.4rem; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.site-footer h4 { font-family: var(--font-body, inherit); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 1rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer p { margin: 0 0 .8rem; }
.footer-brand img { width: 150px; height: auto; max-height: 64px; object-fit: contain; object-position: left; margin-bottom: 1rem; }
.social { display: flex; gap: .9rem; margin-top: 1rem; color: var(--ink); }
.legal { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .76rem; letter-spacing: .03em; }
.whatsapp-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 25; width: 3.5rem; height: 3.5rem; border-radius: 999px; display: grid;
  place-items: center; background: #25d366; color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); transition: transform .2s var(--ease); }
.whatsapp-float:hover { transform: scale(1.07); }

/* Page blocks (Wagtail). Image blocks go edge to edge; text blocks keep the page width. */
.block { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.block.flush { margin-bottom: clamp(.5rem, 1vw, .75rem); }
.block.flush + .block:not(.flush) { margin-top: clamp(2rem, 4vw, 3.5rem); }
.block-head { display: flex; flex-direction: column; align-items: center; gap: .4rem; margin-bottom: 1.8rem; }
.block-head .section-title { margin: 0; }
.see-all { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
.banner { position: relative; overflow: hidden; background: var(--surface); }
.banner img { width: 100%; height: auto; max-height: 82vh; object-fit: cover; }
.banner .copy, .slide .copy, .tile-copy { position: absolute; inset: auto 0 0 0; padding: clamp(1.2rem, 4vw, 3.5rem); color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.banner .copy h2, .slide .copy h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 3.4rem); text-transform: uppercase; margin: 0 0 .4rem; }
.banner .copy p, .slide .copy p { margin: 0 0 1rem; max-width: 40rem; }
.promo-strip { padding: .9rem 1rem; text-align: center; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); }
.promo-strip a { color: inherit; text-decoration: none; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { display: grid; place-items: center; min-height: 140px; border: 1px solid var(--line); text-decoration: none; font-family: var(--font-heading, inherit);
  background: color-mix(in srgb, var(--accent) 8%, var(--ground)); font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .1em; color: var(--brand); transition: border-color .2s, color .2s; }
.tile:hover { border-color: var(--accent); color: var(--accent); }

/* Slider */
.slider { position: relative; overflow: hidden; background: var(--surface); }
.slider .slides { display: flex; transition: transform .7s var(--ease); }
.slider .slide { flex: 0 0 100%; position: relative; }
.slider .slide img { width: 100%; height: auto; aspect-ratio: 79 / 30; object-fit: cover; }
@media (max-width: 719px) { .slider .slide img { aspect-ratio: 4 / 3; } }
.slider .arrow { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #fff; width: 3rem; height: 3rem;
  cursor: pointer; display: grid; place-items: center; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .6)); opacity: .8; }
.slider .arrow:hover { opacity: 1; }
.slider .arrow.prev { left: .5rem; }
.slider .arrow.next { right: .5rem; }
.slider .dots { position: absolute; bottom: 1rem; left: 0; right: 0; display: flex; justify-content: center; gap: .45rem; }
.slider .dots button { width: .5rem; height: .5rem; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .55); cursor: pointer; padding: 0;
  transition: width .25s, background .25s; }
.slider .dots button[aria-current="true"] { background: #fff; width: 1.4rem; }

/* Banner mosaic: one, two or four banners per row */
.mosaic { display: grid; gap: clamp(.5rem, 1vw, .75rem); grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .mosaic.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .mosaic.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) { .mosaic.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.mosaic a, .mosaic .tile-static { position: relative; display: block; overflow: hidden; text-decoration: none; background: var(--surface); }
.mosaic img { width: 100%; height: 100%; aspect-ratio: 2 / 1; object-fit: cover; transition: transform 1s var(--ease); }
.mosaic.cols-4 img { aspect-ratio: 3 / 4; }
.mosaic.cols-1 img { aspect-ratio: auto; height: auto; }  /* one per row: the image keeps its own shape */
.mosaic a:hover img { transform: scale(1.03); }
.mosaic .tile-copy { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.mosaic .label { font-family: var(--font-heading, inherit); font-size: clamp(1.1rem, 2vw, 1.6rem); text-transform: uppercase; letter-spacing: .06em; }
.mosaic .go { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid currentColor; white-space: nowrap; }

/* Services (icon, title, text) */
.services { display: grid; gap: 2.4rem; grid-template-columns: 1fr; text-align: center; padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  border-block: 1px solid var(--line); }
@media (min-width: 720px) { .services { grid-template-columns: repeat(var(--n, 3), 1fr); } }
.service .icon { color: var(--accent); margin: 0 auto 1rem; }
.service h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); margin: 0 0 .4rem; }
.service p { margin: 0 auto; color: var(--muted); max-width: 22rem; font-size: .9rem; }

/* Video: 16:9, plays muted on hover or when it enters the screen */
.video-block .frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
@media (max-width: 719px) { .video-block .frame { aspect-ratio: 4 / 5; } .video-block iframe { width: 300%; left: -100%; } }
.video-block .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.video-block .frame.is-playing .poster { opacity: 0; pointer-events: none; }
.video-block iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.video-block .play-hint { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; pointer-events: none; transition: opacity .3s; }
.video-block .play-hint span { width: 4.5rem; height: 4.5rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .8); display: grid; place-items: center;
  backdrop-filter: blur(4px); }
.video-block .frame.is-playing .play-hint { opacity: 0; }

/* Reveal on scroll (only when the browser supports scroll-driven animations) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(24px); } }
  }
}
.panel h2, .panel h3 { font-size: 1.15rem; margin: 1.8rem 0 .4rem; }
.panel h2:first-child, .panel h3:first-child { margin-top: 0; }

/* Header and footer in their own color (StoreSettings.header_background), e.g. Mini Cocoreta's sand.
   The derived colors are recomputed inside them, so text, lines and the menu stay readable. */
.has-header-color .site-header, .has-header-color .site-footer, .has-header-color .drawer, .has-header-color .search-panel,
.has-header-color .dropdown {
  --ground: var(--header-bg);
  --ink: var(--header-ink);
  --brand: var(--header-ink);
  --surface: color-mix(in srgb, var(--header-ink) 8%, var(--header-bg));
  --line: color-mix(in srgb, var(--header-ink) 22%, var(--header-bg));
  --muted: color-mix(in srgb, var(--header-ink) 72%, var(--header-bg));
  background: var(--header-bg);
  color: var(--header-ink);
}
.has-header-color .site-header { backdrop-filter: none; border-bottom-color: transparent; }
.has-header-color .nav-item > a { color: var(--header-ink); }
.has-header-color .site-footer { border-top: 0; }

/* Rounded corners (StoreSettings.rounded_corners): softer photos, buttons and labels. */
.rounded { --radius: 14px; }
.rounded .card .media, .rounded .gallery-track figure, .rounded .mosaic a, .rounded .mosaic .tile-static,
.rounded .panel, .rounded .alert, .rounded .empty, .rounded .tile, .rounded .dropdown, .rounded .line img,
.rounded .video-block .frame { border-radius: 18px; }
.rounded .btn, .rounded .chip, .rounded .label-tag, .rounded .badge, .rounded .stepper, .rounded .qty,
.rounded .listing-tools select { border-radius: 999px; }
.rounded .size { border-radius: 12px; }
.rounded input[type=text], .rounded input[type=email], .rounded input[type=tel], .rounded input[type=number],
.rounded select, .rounded textarea { border-radius: 12px; }
.rounded .mosaic { padding-inline: clamp(.5rem, 1vw, .75rem); }
@media (min-width: 900px) { .rounded .gallery-track { gap: .8rem; } }

/* Related products load on scroll (spec 026): keep their room so the page does not jump when they arrive */
.related.is-pending { min-height: 46rem; }
@media (min-width: 900px) { .related.is-pending { min-height: 30rem; } }

/* Handwriting (StoreSettings.script_font): the kicker over a title and the footer tagline. Without one,
   the kicker is a small caps line in the accent color. */
.kicker { margin: 0 0 .3rem; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.has-script .kicker { font-family: var(--font-script); font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.15; letter-spacing: 0;
  text-transform: none; color: var(--ink); }
.has-script .footer-tagline { font-family: var(--font-script); font-size: 1.4rem; line-height: 1.35; color: var(--ink); }

/* Titles as written (StoreSettings.uppercase_headings off), e.g. a brand whose logo is in lowercase:
   a heavier weight and tighter spacing hold them up without the capitals. */
.headings-as-written :is(h1, h2, h3, .page-title, .section-title, .banner .copy h2, .slide .copy h2, .mosaic .label, .tile) {
  text-transform: none; letter-spacing: -.015em; font-weight: 600; }
.headings-as-written .site-footer h4, .headings-as-written .filters h3 { letter-spacing: .16em; text-transform: uppercase; }

/* Text hero (HeroTextBlock): an opening made of words, with an optional photo beside it */
.hero-text { background: var(--ground); color: var(--ink); padding: clamp(3.5rem, 9vw, 7.5rem) 0; }
.hero-text.tone-surface { background: var(--surface); }
.hero-text.tone-brand { background: var(--brand); color: var(--brand-ink); }
.hero-text.tone-accent { background: var(--accent); color: var(--accent-ink); }
.hero-text-inner { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { text-align: center; max-width: 54rem; margin-inline: auto; }
.hero-text h1, .hero-text h2 { font-size: clamp(2.4rem, 6.2vw, 5.4rem); line-height: 1.02; margin: 0 0 1.4rem; color: inherit; }
.hero-text.tone-ground h1, .hero-text.tone-ground h2, .hero-text.tone-surface h1, .hero-text.tone-surface h2 { color: var(--brand); }
.hero-lead { font-size: clamp(1rem, 1.35vw, 1.18rem); max-width: 36rem; margin: 0 auto 2rem;
  color: color-mix(in srgb, currentColor 78%, transparent); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.1rem 2rem; }
.hero-text:is(.tone-brand, .tone-accent) :is(.kicker, .see-all) { color: inherit; }
.hero-text.tone-brand .btn-primary { background: var(--brand-ink); color: var(--brand); }
.hero-text.tone-accent .btn-primary { background: var(--accent-ink); color: var(--accent); }
.hero-figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .hero-text.has-image .hero-text-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .hero-text.has-image .hero-copy { text-align: left; margin: 0; }
  .hero-text.has-image .hero-lead { margin-left: 0; }
  .hero-text.has-image .hero-actions { justify-content: flex-start; }
}
.rounded .hero-figure { border-radius: 18px; }

/* A product without photos shows its name like a jar label, in the store's colors (_label_art.html) */
.card .media .label-art, .gallery-track .label-art { position: absolute; inset: 0; display: grid; place-items: stretch; padding: 8%;
  background: var(--surface); letter-spacing: 0; text-transform: none; font-size: inherit; color: var(--ink); }
.label-frame { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1rem .7rem;
  text-align: center; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); outline-offset: -6px; transition: border-color .3s var(--ease); }
.card:hover .label-frame { border-color: var(--accent); }
.label-frame small { font-family: var(--font-body, inherit); font-size: .6rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); }
.label-frame strong { font-family: var(--font-heading, inherit); font-weight: 600; font-size: clamp(.9rem, 1.5vw, 1.25rem); line-height: 1.18;
  color: var(--ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.label-frame strong + em::before { content: ""; display: block; width: 1.6rem; height: 2px; margin: 0 auto .7rem; background: var(--accent); }
.label-frame em { font-style: normal; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.has-script .label-frame em { font-family: var(--font-script); font-size: 1.1rem; letter-spacing: 0; text-transform: none; }
.card:hover .media .label-art { transform: none; }
.gallery-track figure.is-empty { position: relative; }
.gallery .label-frame { gap: 1rem; }
.gallery .label-frame small { font-size: .74rem; }
.gallery .label-frame strong { font-size: clamp(1.4rem, 3vw, 2.4rem); -webkit-line-clamp: 5; }
@media (min-width: 900px) { .gallery-track figure.is-empty { aspect-ratio: 1; } }
.thumb-empty { display: block; width: 84px; height: 84px; background: var(--surface);
  background-image: linear-gradient(var(--accent), var(--accent)); background-size: 1.4rem 2px; background-position: center; background-repeat: no-repeat; }
.rounded .label-frame, .rounded .thumb-empty { border-radius: 12px; }
.dot { color: var(--accent); }
.hero-text:is(.tone-brand, .tone-accent) .dot { color: inherit; opacity: .7; }
.headings-as-written .tile { font-size: clamp(1.2rem, 1.8vw, 1.6rem); }
