/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--c-muted); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border: 0; border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.01em; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--c-primary); color: var(--c-on-primary); box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--c-primary-strong); transform: translateY(-1px); }
.btn-soft { background: var(--c-surface); color: var(--c-ink); box-shadow: var(--shadow-1); border: 1px solid var(--c-border); }
.btn-soft:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--c-ink-soft); }
.btn-ghost:hover { background: var(--c-bg-soft); }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: var(--fs-md); padding: 0 28px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: var(--r-pill); background: transparent; transition: background var(--t-fast);
}
.icon-btn:hover { background: var(--c-bg-soft); }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------- chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
}
.chip-stock { background: var(--c-success-soft); color: var(--c-success); }
.chip-order { background: var(--c-warning-soft); color: var(--c-warning); }
.chip-out { background: #f1e9ea; color: var(--c-muted); }
.chip-hot { background: var(--c-primary); color: var(--c-on-primary); }
.chip-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* -------------------------------------------------------------- header */
.announce {
  background: var(--c-ink); color: #fff; font-size: var(--fs-xs); font-weight: 600; text-align: center;
  padding: 9px var(--gutter); letter-spacing: 0.02em;
}
.announce strong { color: var(--c-accent); }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--c-bg) 86%, transparent); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--t-med), box-shadow var(--t-med);
}
.site-header.is-scrolled { border-color: var(--c-border); box-shadow: var(--shadow-1); }
.header-row { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; }
/* Briel's logo: a soft two-layer shadow gives it depth on the cream background without changing the drawing */
.brand-logo { height: 62px; width: auto; max-width: 220px; object-fit: contain;
  filter: drop-shadow(0 1px 1px rgb(47 26 34 / 0.16)) drop-shadow(0 6px 14px rgb(122 68 88 / 0.14));
  transition: transform var(--t-med) var(--ease), filter var(--t-med) var(--ease); }
a.brand:hover .brand-logo, .brand a:hover .brand-logo { transform: translateY(-1px); filter: drop-shadow(0 2px 2px rgb(47 26 34 / 0.18)) drop-shadow(0 10px 20px rgb(122 68 88 / 0.2)); }
.brand-logo.on-dark { filter: drop-shadow(0 2px 10px rgb(0 0 0 / 0.35)); }
.brand-logo.is-custom { filter: none; }
.site-footer .brand-logo { height: 64px; }
@media (max-width: 640px) { .brand-logo { height: 50px; } }
/* the flower of the logo next to the name, written in lowercase like the logo */
.brand { color: var(--c-ink); }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; color: var(--c-primary); flex: none; }
.brand-flower { width: 100%; height: 100%; }
.brand-name { text-transform: lowercase; letter-spacing: -0.01em; font-weight: 600; }
.site-footer .brand { color: inherit; }
.site-footer .brand-mark { color: var(--c-accent); }
.main-nav { display: flex; gap: 2px; margin-left: 8px; }
.main-nav a {
  padding: 8px 12px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink-soft);
  transition: background var(--t-fast), color var(--t-fast);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--c-surface); color: var(--c-ink); box-shadow: var(--shadow-1); }
.header-search { flex: 1; max-width: 380px; margin-left: auto; position: relative; }
.header-search input {
  width: 100%; height: 44px; padding: 0 16px 0 44px; border-radius: var(--r-pill);
  border: 1px solid var(--c-border); background: var(--c-surface); box-shadow: var(--shadow-1);
  transition: box-shadow var(--t-fast), border-color var(--t-fast);
}
.header-search input:focus { outline: none; border-color: var(--c-primary); box-shadow: var(--ring); }
.header-search .icon { position: absolute; left: 14px; top: 11px; color: var(--c-muted); width: 20px; height: 20px; }
.cart-btn .badge {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-pill);
  background: var(--c-primary); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--c-bg); transform: scale(0); transition: transform var(--t-med) var(--ease);
}
.cart-btn .badge.has-items { transform: scale(1); }
.cart-btn .badge.bump { animation: bump 420ms var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } }
.menu-btn { display: none; }
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; margin: 0 0 12px; }
  .header-row { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 8px; }
  .brand { margin-right: auto; }
}

/* -------------------------------------------------------------- drawers */
.scrim {
  position: fixed; inset: 0; z-index: 60; background: rgb(47 26 34 / 0.38); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity var(--t-med);
}
.scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 70; width: min(420px, 92vw); background: var(--c-surface);
  display: flex; flex-direction: column; box-shadow: var(--shadow-3); transition: transform var(--t-med) var(--ease);
}
.drawer-right { right: 0; transform: translateX(105%); border-radius: var(--r-lg) 0 0 var(--r-lg); }
.drawer-left { left: 0; transform: translateX(-105%); border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--c-border); }
.drawer-head h2 { font-size: var(--fs-lg); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--c-border); display: grid; gap: 10px; }
.mobile-nav a { display: flex; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--c-border); font-weight: 600; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; z-index: -1;
}
.hero::before { width: 520px; height: 520px; background: var(--c-primary-soft); top: -160px; right: -80px; }
.hero::after { width: 420px; height: 420px; background: var(--c-accent-soft); bottom: -200px; left: -120px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--c-surface); box-shadow: var(--shadow-1); font-size: var(--fs-xs); font-weight: 700; color: var(--c-primary);
}
.hero h1 { font-size: var(--fs-hero); margin: 18px 0 16px; }
.hero h1 em { font-style: italic; color: var(--c-primary); }
.hero p.lead { font-size: var(--fs-lg); color: var(--c-ink-soft); max-width: 46ch; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero-proof div { font-size: var(--fs-sm); color: var(--c-ink-soft); }
.hero-proof strong { display: block; font-size: var(--fs-lg); color: var(--c-ink); }
.hero-collage { position: relative; aspect-ratio: 1 / 1; max-width: 520px; justify-self: center; width: 100%; }
.float-card {
  position: absolute; background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  padding: 12px; transition: transform var(--t-med) var(--ease);
}
.float-card img { border-radius: var(--r-md); aspect-ratio: 1; object-fit: cover; width: 100%; background: #fff; }
.float-card .fc-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 4px 2px; font-size: var(--fs-sm); font-weight: 700; }
.float-card .fc-meta span:last-child { color: var(--c-primary); }
.float-card.a { width: 52%; left: 0; top: 16%; transform: rotate(-4deg); z-index: 2; }
.float-card.b { width: 40%; right: 2%; top: -4%; transform: rotate(5deg); z-index: 1; }
.float-card.c { width: 38%; right: -2%; bottom: -6%; transform: rotate(-3deg); z-index: 3; }
.float-card:hover { transform: rotate(0) translateY(-6px); z-index: 4; }
/* round sticker on the corner of the big card, like a price tag */
.float-badge {
  position: absolute; left: -4%; top: 6%; z-index: 5; width: 112px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; text-align: center; transform: rotate(-12deg);
  background: var(--c-primary); color: var(--c-on-primary, #fff); box-shadow: var(--shadow-3), inset 0 0 0 3px rgb(255 255 255 / .35);
  font-weight: 800; line-height: 1; pointer-events: none;
}
.float-badge strong { font-size: 1.9rem; letter-spacing: -0.03em; }
.float-badge b { font-size: 1rem; letter-spacing: 0.06em; margin-top: 1px; }
.float-badge span { font-size: 0.62rem; font-weight: 700; margin-top: 5px; opacity: .92; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-collage { max-width: 420px; }
}

/* ---------------------------------------------------------- trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-item {
  display: flex; gap: 12px; align-items: center; padding: 16px 18px; background: var(--c-surface);
  border-radius: var(--r-md); box-shadow: var(--shadow-1); border: 1px solid var(--c-border);
}
.trust-item .ti-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--c-primary-soft); color: var(--c-primary); }
.trust-item strong { display: block; font-size: var(--fs-sm); }
.trust-item span { font-size: var(--fs-xs); color: var(--c-muted); }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ sections */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: var(--fs-2xl); }
.section-head p { margin: 6px 0 0; color: var(--c-muted); }
.link-arrow { font-weight: 700; color: var(--c-primary); font-size: var(--fs-sm); white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

/* --------------------------------------------------------- categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-grid > :first-child { grid-row: span 2; min-height: 396px; }
.cat-grid > :first-child img { width: 92%; right: -14%; top: 4%; }
.cat-card {
  position: relative; display: flex; flex-direction: column; justify-content: end; min-height: 190px; padding: 18px;
  border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface); box-shadow: var(--shadow-1);
  border: 1px solid var(--c-border); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med);
  isolation: isolate;
}
.cat-card img {
  position: absolute; right: -8%; top: -6%; width: 62%; aspect-ratio: 1; object-fit: contain; z-index: -1;
  transition: transform var(--t-med) var(--ease); mix-blend-mode: multiply;
}
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, var(--tint, var(--c-primary-soft))); }
.cat-card strong { font-size: var(--fs-lg); }
.cat-card span { font-size: var(--fs-xs); color: var(--c-ink-soft); font-weight: 600; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.cat-card:hover img { transform: scale(1.06) rotate(-3deg); }
/* cut-out products sit centered on the card (left/right 0 + auto margins: the hover transform stays free) */
.cat-card.has-cutout img { mix-blend-mode: normal; width: 52%; left: 0; right: 0; margin-inline: auto; top: 8%; filter: drop-shadow(0 12px 18px rgb(47 26 34 / 0.18)); }
.cat-grid > .has-cutout:first-child img { width: 70%; top: 6%; }
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card { min-height: 160px; }
  .cat-grid > :first-child { min-height: 336px; }
}

/* ---------------------------------------------------------- product card */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
@media (max-width: 560px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.p-card {
  position: relative; display: flex; flex-direction: column; background: var(--c-surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); border: 1px solid var(--c-border); overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med);
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.p-media { position: relative; display: block; aspect-ratio: 1; background: #fff; overflow: hidden; }
.p-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform var(--t-med) var(--ease); }
.p-card:hover .p-media img { transform: scale(1.05); }
.p-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.p-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.p-brand { font-size: 11px; font-weight: 800; color: var(--c-primary); text-transform: uppercase; letter-spacing: 0.09em; }
.price .from { font-size: 0.62em; font-weight: 700; color: var(--c-ink-soft); }
.li-brand { font-size: 10.5px; font-weight: 800; color: var(--c-primary); text-transform: uppercase; letter-spacing: 0.08em; }
.p-name { font-weight: 700; font-size: var(--fs-sm); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.p-swatches { display: flex; align-items: center; gap: 0; margin-top: 2px; }
.p-swatches img {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #fff;
  border: 2px solid var(--c-surface); box-shadow: 0 0 0 1px var(--c-border); margin-right: -8px;
}
.p-swatches span { margin-left: 14px; font-size: var(--fs-xs); font-weight: 700; color: var(--c-ink-soft); }
.p-swatches:hover span { color: var(--c-primary); }
.p-price { display: flex; flex-direction: column; margin-top: auto; padding-top: 6px; }
.price { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.01em; }
.price-transfer { font-size: var(--fs-xs); color: var(--c-success); font-weight: 700; }
.p-add {
  position: absolute; right: 12px; bottom: 14px; width: 44px; height: 44px; border-radius: var(--r-pill); border: 0;
  display: grid; place-items: center; background: var(--c-primary); color: #fff; box-shadow: var(--shadow-primary);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast);
}
.p-add:hover { background: var(--c-primary-strong); transform: scale(1.06); }
.p-add .icon { width: 20px; height: 20px; stroke-width: 2.2; }
@media (max-width: 560px) {
  .p-body { padding: 10px 12px 12px; }
  .price { font-size: var(--fs-lg); }
  .p-add { width: 38px; height: 38px; right: 8px; bottom: 10px; }
}

/* ------------------------------------------------------------- banners */
.promo-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.promo {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); min-height: 280px;
  display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: 16px; box-shadow: var(--shadow-2); isolation: isolate;
}
.promo-copy { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.promo h3 { font-size: var(--fs-2xl); }
.promo p { margin: 0; }
.promo .btn { margin-top: 6px; }
.promo-media { position: relative; display: grid; place-items: center; height: 100%; min-height: 180px; }
.promo-media::before { content: ""; position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%; background: rgb(255 255 255 / 0.18); filter: blur(2px); }
.promo-media img { position: relative; max-height: 220px; width: auto; object-fit: contain; filter: drop-shadow(0 18px 26px rgb(47 26 34 / 0.30)); transform: rotate(-6deg); transition: transform var(--t-med) var(--ease); }
.promo:hover .promo-media img { transform: rotate(0) scale(1.04); }
.promo-xmas { background: linear-gradient(135deg, #2f1a22, #5a2f40 55%, #8e5868); color: #fff; }
.promo-xmas p { color: rgb(255 255 255 / 0.82); }
.promo-pro { background: linear-gradient(135deg, var(--c-accent-soft), #f1d9cf); }
.promo-pro .promo-media::before { background: rgb(255 255 255 / 0.6); }
@media (max-width: 1080px) { .promo-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .promo { grid-template-columns: 1fr; }
  .promo-media { min-height: 0; order: -1; }
  .promo-media img { max-height: 150px; }
}

/* mobile: categories as round chips under the header */
.cat-strip { display: none; gap: 14px; overflow-x: auto; padding: 14px var(--gutter) 6px; scrollbar-width: none; width: 100%; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip a { flex: none; display: grid; justify-items: center; gap: 6px; width: 72px; font-size: 11.5px; font-weight: 700; text-align: center; color: var(--c-ink-soft); }
.cat-strip span {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: var(--tint, var(--c-primary-soft)); box-shadow: var(--shadow-1); border: 2px solid var(--c-surface);
}
.cat-strip img { width: 74%; height: 74%; object-fit: contain; }
@media (max-width: 760px) {
  .cat-strip { display: flex; }
  .hide-mobile { display: none; }
  .hero { padding-top: 18px; }
  .hero h1 { font-size: 2rem; margin: 12px 0 10px; }
  .hero p.lead { font-size: var(--fs-md); margin-bottom: 18px; }
  .hero-proof, .hero-collage, .hero .eyebrow { display: none; }
  .hero-cta .btn { flex: 1; }
}

/* -------------------------------------------------------- brands & rails */
.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.brand-tile {
  position: relative; display: grid; gap: 4px; padding: 16px 14px 14px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--c-surface) 40%, var(--tint)); border: 1px solid var(--c-border); box-shadow: var(--shadow-1);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med);
}
.brand-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.bt-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.bt-count { font-size: var(--fs-xs); color: var(--c-muted); font-weight: 600; }
.bt-thumbs { display: flex; margin-top: 10px; }
.bt-thumbs img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: contain; background: #fff; padding: 4px;
  border: 2px solid var(--c-surface); box-shadow: var(--shadow-1); margin-right: -10px; transition: transform var(--t-fast) var(--ease);
}
.brand-tile:hover .bt-thumbs img:nth-child(2) { transform: translateY(-3px); }
.brand-tile:hover .bt-thumbs img:nth-child(3) { transform: translateY(-6px); }
@media (max-width: 1080px) { .brand-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) {
  .brand-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
  .brand-tile { flex: none; width: 150px; scroll-snap-align: start; }
}
.rail-section { padding-top: 8px; }
.rail-nav { display: flex; align-items: center; gap: 4px; }
.rail-btn { background: var(--c-surface); box-shadow: var(--shadow-1); border: 1px solid var(--c-border); }
.rail-btn:hover { background: var(--c-surface); box-shadow: var(--shadow-2); }
.icon.flip { transform: scaleX(-1); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 4px 18px; margin: -6px -4px 0;
}
.rail::-webkit-scrollbar { display: none; }
.rail > .p-card { scroll-snap-align: start; }
@media (max-width: 900px) { .rail { grid-auto-columns: calc((100% - 20px) / 2.3); } .rail-btn { display: none; } }
@media (max-width: 560px) { .rail { grid-auto-columns: 46%; gap: 12px; } }

/* future AdSense placements: kept out of cart/checkout on purpose */
.ad-slot { min-height: 120px; border-radius: var(--r-md); }

/* ------------------------------------------------------------- catalog */
.page-head { padding: 28px 0 8px; }
.breadcrumbs { display: flex; gap: 8px; font-size: var(--fs-xs); color: var(--c-muted); margin-bottom: 10px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--c-primary); }
.page-head h1 { font-size: var(--fs-2xl); }
.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding-bottom: 72px; }
.filters {
  position: sticky; top: calc(var(--header-h) + 16px); align-self: start; background: var(--c-surface); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--shadow-1); border: 1px solid var(--c-border); display: grid; gap: 18px;
}
.filters h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-muted); margin-bottom: 8px; }
.filter-list { display: grid; gap: 4px; }
.filter-option {
  display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 9px 12px; border-radius: var(--r-sm);
  border: 0; background: transparent; text-align: left; font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink-soft);
}
.filter-option:hover { background: var(--c-bg-soft); }
.filter-option[aria-pressed="true"] { background: var(--c-primary-soft); color: var(--c-primary-strong); }
.filter-option small { color: var(--c-muted); font-weight: 600; margin-left: 8px; }
.toggle { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--c-primary); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .count { color: var(--c-muted); font-size: var(--fs-sm); }
.toolbar-controls { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) { .toolbar-controls { width: 100%; } .toolbar-controls .select { flex: 1; min-width: 0; } }
.select {
  height: 42px; padding: 0 38px 0 14px; border-radius: var(--r-pill); border: 1px solid var(--c-border); background: var(--c-surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235e4d5f' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  appearance: none; box-shadow: var(--shadow-1); font-weight: 600; font-size: var(--fs-sm);
}
.select:focus { outline: none; box-shadow: var(--ring); }
.chip-row { display: none; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 8px; scrollbar-width: none; }
.chip-row .filter-option { width: auto; white-space: nowrap; background: var(--c-surface); box-shadow: var(--shadow-1); border-radius: var(--r-pill); }
.empty { text-align: center; padding: 60px 20px; background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .chip-row { display: flex; }
}

/* ------------------------------------------------------------- product */
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); padding: 8px 0 56px; }
.gallery { display: grid; gap: 12px; align-self: start; position: sticky; top: calc(var(--header-h) + 16px); }
.gallery-main { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-2); aspect-ratio: 1; overflow: hidden; border: 1px solid var(--c-border); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 4px; }
.thumb { flex: none; width: 76px; height: 76px; border-radius: var(--r-md); background: #fff; border: 2px solid transparent; box-shadow: var(--shadow-1); padding: 4px; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb[aria-pressed="true"] { border-color: var(--c-primary); }
.buybox { display: grid; gap: 18px; align-content: start; }
.buybox h1 { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; }
.buybox .price { font-size: 2.2rem; }
.price-box { display: grid; gap: 4px; padding: 18px; border-radius: var(--r-lg); background: var(--c-surface); box-shadow: var(--shadow-1); border: 1px solid var(--c-border); }
.price-box .price-transfer { font-size: var(--fs-sm); }
.option-group h3 { font-size: var(--fs-sm); margin-bottom: 10px; }
.option-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.option-pill {
  padding: 10px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--c-border); background: var(--c-surface);
  font-weight: 600; font-size: var(--fs-sm); box-shadow: var(--shadow-1); transition: border-color var(--t-fast), background var(--t-fast);
}
.option-pill:hover { border-color: var(--c-primary); }
.option-pill[aria-pressed="true"] { border-color: var(--c-primary); background: var(--c-primary-soft); color: var(--c-primary-strong); }
.variant-picker { display: grid; gap: 12px; }
.vp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--fs-sm); }
.vp-head strong { font-weight: 800; }
.vp-search { position: relative; display: block; }
.vp-search .icon { position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; color: var(--c-muted); }
.vp-search input {
  width: 100%; height: 40px; padding: 0 14px 0 38px; border-radius: var(--r-pill); border: 1px solid var(--c-border);
  background: var(--c-surface); font-size: var(--fs-sm);
}
.vp-search input:focus { outline: none; border-color: var(--c-primary); box-shadow: var(--ring); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.swatch {
  position: relative; display: grid; gap: 6px; align-content: start; padding: 6px 6px 8px; text-align: center;
  border-radius: var(--r-md); border: 1.5px solid var(--c-border); background: var(--c-surface); box-shadow: var(--shadow-1);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease);
}
.swatch:hover { border-color: var(--c-primary); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.swatch img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: #fff; }
.sw-label { font-size: 11.5px; font-weight: 700; line-height: 1.25; color: var(--c-ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sw-price { font-size: 11px; font-weight: 800; color: var(--c-ink); }
.sw-pack { font-size: 10px; font-weight: 800; color: var(--c-primary); text-transform: uppercase; letter-spacing: 0.04em; }
.presentations { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.presentation { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: var(--r-md); border: 1.5px solid var(--c-border); background: var(--c-surface); cursor: pointer; font: inherit; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.presentation:hover { border-color: var(--c-primary); }
.presentation[aria-checked="true"] { border-color: var(--c-primary); background: var(--c-primary-soft); box-shadow: var(--ring); }
.presentation b { font-size: var(--fs-sm); }
.presentation span { font-size: var(--fs-lg); font-weight: 800; }
.presentation small { font-size: var(--fs-xs); color: var(--c-success); font-weight: 700; }
.presentation[disabled] { opacity: 0.45; cursor: not-allowed; }
.p-also { font-size: var(--fs-xs); font-weight: 700; color: var(--c-primary); }
.chip-pack { background: var(--c-ink); color: #fff; }
.chip-sale { background: var(--c-danger); color: #fff; }
.was { margin-left: 8px; font-size: 0.62em; font-weight: 600; color: var(--c-muted); }
.sale-tag { display: inline-flex; justify-self: start; padding: 5px 12px; border-radius: var(--r-pill); background: var(--c-danger); color: #fff; font-size: var(--fs-xs); font-weight: 800; }
.promo-pink { background: linear-gradient(135deg, var(--c-primary-soft), #f0d3db); }
.promo-pink .promo-media::before { background: rgb(255 255 255 / 0.6); }
.per-unit { font-size: var(--fs-xs); font-weight: 700; color: var(--c-ink-soft); }
.price .per-unit { font-size: 0.42em; letter-spacing: 0; }
.pack-tag { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 5px 12px; border-radius: var(--r-pill); background: var(--c-ink); color: #fff; font-size: var(--fs-xs); font-weight: 800; }
.pack-tag .icon { width: 16px; height: 16px; }
.li-pack { color: var(--c-primary); }
.swatch[aria-checked="true"] { border-color: var(--c-primary); box-shadow: var(--ring), var(--shadow-2); }
.swatch[aria-checked="true"] .sw-label { color: var(--c-primary-strong); }
.swatch[aria-checked="true"]::after {
  content: "✓"; position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-primary); color: #fff; font-size: 12px; font-weight: 800; box-shadow: var(--shadow-1);
}
.swatch:disabled { opacity: 0.4; cursor: not-allowed; }
.swatch:disabled img { filter: grayscale(1); }
.vp-toggle { justify-self: start; padding: 0 4px; color: var(--c-primary); }
.buy-row { display: flex; gap: 12px; }
.stepper { display: inline-flex; align-items: center; border-radius: var(--r-pill); background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-1); }
.stepper button { width: 42px; height: 46px; border: 0; background: transparent; font-size: 1.2rem; font-weight: 700; border-radius: var(--r-pill); }
.stepper button:hover { color: var(--c-primary); }
.stepper output { min-width: 28px; text-align: center; font-weight: 700; }
.stepper.sm button { width: 32px; height: 34px; font-size: 1rem; }
.card { background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); border: 1px solid var(--c-border); padding: 18px; }
.card h3 { font-size: var(--fs-md); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.ship-form { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; }
/* locality / postal code search (places.js) */
.place-field, .field:has(> .place-list) { position: relative; }
.place-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 6px; list-style: none; max-height: 280px; overflow-y: auto;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: var(--shadow-2, 0 8px 24px rgb(0 0 0 / .12)); }
.place-list li { display: grid; gap: 1px; padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; font-size: var(--fs-sm); color: var(--c-ink); font-weight: 400; }
.place-list li span { font-size: var(--fs-xs); color: var(--c-muted); }
.place-list li:hover, .place-list li[aria-selected="true"] { background: var(--c-primary-soft); }
.place-list .place-empty { cursor: default; color: var(--c-muted); }
.place-list .place-empty:hover { background: none; }
.branch-list { max-height: 340px; }
.ship-where { margin: 0 0 8px; font-size: var(--fs-sm); color: var(--c-ink-soft); }
.field { display: grid; gap: 6px; align-content: start; font-size: var(--fs-xs); font-weight: 700; color: var(--c-ink-soft); } /* start: a taller neighbor must not stretch the label away from its input */
.input {
  height: 44px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--c-border); background: var(--c-surface); width: 100%;
}
.input:focus, select.input:focus { outline: none; border-color: var(--c-primary); box-shadow: var(--ring); }
select.input { appearance: none; background: var(--c-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235e4d5f' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 32px; }
.ship-result { margin-top: 12px; display: grid; gap: 8px; }
.ship-line { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--c-bg-soft); font-size: var(--fs-sm); }
.ship-line strong.free { color: var(--c-success); }
.ship-line strong { white-space: nowrap; }
.ship-line small { display: block; color: var(--c-ink-soft); font-size: var(--fs-xs); font-weight: 400; }
/* carrier picker (checkout): Correo is charged with the order, Vía Cargo is paid at the agency */
.checkout-sub { margin: 18px 0 8px; font-weight: 700; font-size: var(--fs-sm); }
.carrier-options { display: grid; gap: 10px; margin-bottom: 14px; }
.carrier-option { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 14px; border: 1.5px solid var(--c-line); border-radius: var(--r-md); cursor: pointer; background: var(--c-surface); }
.carrier-option:has(input:checked) { border-color: var(--c-ink); box-shadow: var(--shadow-1); }
.carrier-option:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.carrier-option input { margin: 0; accent-color: var(--c-ink); }
.carrier-option b { display: block; }
.carrier-option small { display: block; color: var(--c-ink-soft); font-size: var(--fs-xs); }
.carrier-option .carrier-price { font-weight: 800; white-space: nowrap; text-align: right; }
.carrier-option .carrier-price small { font-weight: 400; }
.carrier-option .free { color: var(--c-success); }
.pay-at-agency { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--c-bg-soft); font-size: var(--fs-xs); }
.buy-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.buy-brand { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-primary); }
.buy-brand:hover { text-decoration: underline; }
.specs { margin: 0; display: grid; }
.specs div { display: grid; grid-template-columns: 40% 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--c-border); font-size: var(--fs-sm); }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--c-muted); font-weight: 600; }
.specs dd { margin: 0; font-weight: 600; color: var(--c-ink); }
.spec-notes { margin: 10px 0 0; font-size: var(--fs-sm); color: var(--c-ink-soft); }
.spec-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.spec-list li { display: flex; gap: 10px; font-size: var(--fs-sm); color: var(--c-ink-soft); }
.spec-list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--c-primary); }
.assurances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.assurances div { display: grid; gap: 4px; justify-items: center; text-align: center; font-size: var(--fs-xs); font-weight: 600; color: var(--c-ink-soft); padding: 12px 8px; border-radius: var(--r-md); background: var(--c-bg-soft); }
.assurances .icon { color: var(--c-primary); }
@media (max-width: 860px) {
  .product-layout { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .ship-form { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- cart */
.free-progress { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-md); background: var(--c-primary-soft); font-size: var(--fs-sm); }
.free-progress.done { background: var(--c-success-soft); color: var(--c-success); }
.bar { height: 8px; border-radius: var(--r-pill); background: rgb(255 255 255 / 0.8); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c-primary), var(--c-accent)); transition: width var(--t-med) var(--ease); }
.free-progress.done .bar span { background: var(--c-success); }
.line-items { display: grid; gap: 12px; }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-border); }
.line-item img { width: 76px; height: 76px; object-fit: contain; border-radius: var(--r-sm); background: #fff; }
.line-item .li-name { font-weight: 700; font-size: var(--fs-sm); line-height: 1.3; }
.line-item .li-var { font-size: var(--fs-xs); color: var(--c-muted); }
.line-item .li-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.line-item .li-price { font-weight: 800; text-align: right; }
.remove { border: 0; background: none; color: var(--c-muted); font-size: var(--fs-xs); font-weight: 700; padding: 4px; }
.remove:hover { color: var(--c-danger); }
.totals { display: grid; gap: 8px; font-size: var(--fs-sm); }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: var(--fs-lg); font-weight: 800; padding-top: 10px; border-top: 1px dashed var(--c-border); }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; padding-bottom: 72px; align-items: start; }
.summary { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.pay-options { display: grid; gap: 8px; }
.pay-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1.5px solid var(--c-border); cursor: pointer; background: var(--c-surface); }
.pay-option:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-soft); }
.pay-option input { accent-color: var(--c-primary); width: 18px; height: 18px; }
.pay-option div { flex: 1; font-size: var(--fs-sm); font-weight: 700; }
.pay-option small { display: block; font-weight: 600; color: var(--c-muted); }
.seg { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--c-bg-soft); gap: 4px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; color: var(--c-ink-soft); }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.seg button[aria-pressed="true"] { background: var(--c-surface); color: var(--c-ink); box-shadow: var(--shadow-1); }
.alert { padding: 12px 14px; border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: 600; background: var(--c-warning-soft); color: var(--c-warning); }
.alert-danger { background: #fbe5e7; color: var(--c-danger); display: flex; gap: 10px; align-items: flex-start; }
.alert-danger .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } .summary { position: static; } }

/* ------------------------------------------------------------ checkout */
.checkout-steps { display: grid; gap: 16px; }
.checkout-step { margin: 0; min-width: 0; }
.checkout-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; }
.checkout-step legend + * { clear: both; }
.checkout-step .legend-link { margin-left: auto; font-family: var(--font-body, inherit); font-size: var(--fs-sm); font-weight: 600; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-primary); color: var(--c-on-primary); font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 800; box-shadow: var(--shadow-primary); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid [hidden] { display: none; }
.field small, .field .optional { font-weight: 500; color: var(--c-muted); }
.field .input { font-size: var(--fs-md); font-weight: 500; color: var(--c-ink); } /* 16px also stops iOS from zooming in */
textarea.input { height: auto; padding: 10px 14px; resize: vertical; font: inherit; }
.field.has-error .input { border-color: var(--c-danger); box-shadow: 0 0 0 3px rgb(198 47 61 / 0.14); }
.field-msg, .field-error { color: var(--c-danger); font-size: var(--fs-xs); font-weight: 700; }
.field-error { margin: 10px 0 0; }
.field-error:empty { display: none; }
.pay-logo { display: inline-grid; place-items: center; width: 42px; height: 30px; border-radius: 8px; font-size: var(--fs-xs); font-weight: 900; flex: none; }
.pay-logo.mp { background: #009ee3; color: #fff; }
.pay-logo.bank { background: var(--c-bg-soft); color: var(--c-ink-soft); }
.pay-logo .icon { width: 18px; height: 18px; }
.pay-option .chip { margin-left: 6px; vertical-align: 1px; }
.mini-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mini-lines li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; font-size: var(--fs-sm); }
.mini-img { position: relative; }
.mini-img img { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--c-border); }
.mini-img b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--c-ink); color: #fff; font-size: 11px; display: grid; place-items: center; }
.mini-name { font-weight: 700; line-height: 1.3; }
.mini-name small { display: block; font-weight: 600; color: var(--c-muted); font-size: var(--fs-xs); }
.mini-price { font-weight: 800; }
.link-sm { margin-left: auto; font-size: var(--fs-xs); font-weight: 700; color: var(--c-primary); font-family: var(--font-body); }
button.link-sm { background: none; border: 0; padding: 0; cursor: pointer; }
.trust-row { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; font-size: var(--fs-xs); color: var(--c-muted); text-align: center; }
.trust-row .icon { width: 16px; height: 16px; color: var(--c-success); flex: none; }
.coupon-box { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--c-border); }
.coupon-row { display: flex; gap: 8px; }
.coupon-row .input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon-row .input::placeholder { text-transform: none; }
.coupon-on { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--c-success-soft); color: var(--c-success); font-size: var(--fs-sm); }
.coupon-on .icon { width: 18px; height: 18px; }
.coupon-on span { flex: 1; }
.btn .icon { width: 18px; height: 18px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: var(--fs-xs); }
.alert-info { background: #e8f1fb; color: #1d5a96; }
.demo-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.demo-banner > .icon { flex: none; }
.demo-banner span { flex: 1 1 260px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgb(255 255 255 / 0.35); border-top-color: #fff; animation: spin 0.8s linear infinite; display: inline-block; }
.spinner.dark { width: 28px; height: 28px; border-color: var(--c-border); border-top-color: var(--c-primary); margin-bottom: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- order page */
.order-hero { display: flex; gap: 20px; align-items: flex-start; margin: 24px 0 18px; padding: 26px; background: linear-gradient(135deg, var(--c-surface), var(--c-bg-soft)); box-shadow: var(--shadow-2); }
.order-hero h1 { font-size: var(--fs-2xl); margin: 10px 0 6px; }
.order-hero p { margin: 0 0 12px; color: var(--c-ink-soft); }
.order-hero .eyebrow { margin: 0; color: var(--c-ink-soft); flex-wrap: wrap; white-space: nowrap; }
.order-icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--c-warning-soft); color: var(--c-warning); }
.order-icon .icon { width: 28px; height: 28px; stroke-width: 2.2; }
.tone-success .order-icon { background: var(--c-success-soft); color: var(--c-success); }
.tone-danger .order-icon { background: #fbe5e7; color: var(--c-danger); }
.tone-info .order-icon { background: #e8f1fb; color: #1d5a96; }
.status-pill { padding: 3px 10px; border-radius: var(--r-pill); background: var(--c-warning-soft); color: var(--c-warning); }
.status-pill.tone-success { background: var(--c-success-soft); color: var(--c-success); }
.status-pill.tone-danger { background: #fbe5e7; color: var(--c-danger); }
.status-pill.tone-info { background: #e8f1fb; color: #1d5a96; }
.timeline { list-style: none; margin: 0 0 22px; padding: 16px 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.timeline li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: var(--fs-xs); font-weight: 700; color: var(--c-muted); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 2px; background: var(--c-border); border-radius: 2px; }
.timeline li.done:not(:last-child)::after { background: var(--c-success); }
.timeline .dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-bg-soft); color: var(--c-muted); font-size: var(--fs-xs); }
.timeline .done { color: var(--c-ink); }
.timeline .done .dot { background: var(--c-success); color: #fff; box-shadow: 0 4px 12px rgb(31 143 99 / 0.3); }
.timeline .next .dot { background: var(--c-surface); color: var(--c-primary); box-shadow: inset 0 0 0 2px var(--c-primary); }
.timeline .dot .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.kv { display: grid; gap: 4px; }
.kv div { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--c-bg-soft); font-size: var(--fs-sm); }
.kv span { width: 80px; flex: none; color: var(--c-muted); font-weight: 600; }
.kv b { flex: 1; word-break: break-all; }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.sm .icon { width: 16px; height: 16px; }
.transfer-box { border: 2px solid var(--c-primary-soft); }
/* transfer receipt upload (order page) */
.receipt-box.is-done { border: 2px solid var(--c-success-soft); }
.receipt-note { font-size: var(--fs-sm); margin: 10px 0 0; }
.receipt-drop { position: relative; display: grid; justify-items: center; gap: 4px; margin-top: 14px; padding: 22px 16px; border: 2px dashed var(--c-border); border-radius: var(--r-md); background: var(--c-bg-soft); text-align: center; cursor: pointer; transition: border-color var(--t-fast, .15s) ease, background var(--t-fast, .15s) ease; }
.receipt-drop:hover, .receipt-drop.is-over, .receipt-drop:focus-within { border-color: var(--c-primary); background: var(--c-primary-soft); }
.receipt-drop b { font-size: var(--fs-md, 1rem); }
.receipt-drop small { color: var(--c-muted); font-size: var(--fs-xs); }
.receipt-drop.is-small { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 10px 14px; border-style: solid; border-width: 1px; font-size: var(--fs-sm); font-weight: 600; }
.receipt-drop .icon { width: 20px; height: 20px; }
.receipt-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--c-surface, #fff); color: var(--c-primary); }
.receipt-icon .icon { width: 22px; height: 22px; }
.receipt-drop.is-busy { pointer-events: none; }
.receipt-drop.is-busy > :not(.receipt-busy):not(input) { visibility: hidden; }
.receipt-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: var(--fs-sm); }
.receipt-busy .spinner.dark { width: 20px; height: 20px; margin: 0; }
.receipt-done { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--c-success-soft); }
.receipt-done small { display: block; color: var(--c-muted); font-size: var(--fs-xs); word-break: break-all; }
.receipt-ok { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-success); color: #fff; }
.receipt-ok .icon { width: 18px; height: 18px; }
#receipt-error:empty { display: none; }
#receipt-error { margin: 8px 0 0; }
.receipt-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--c-muted); font-size: var(--fs-xs); font-weight: 600; }
.receipt-or::before, .receipt-or::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }
.receipt-wa .icon { width: 20px; height: 20px; }
.addr { margin: 0; font-size: var(--fs-sm); line-height: 1.6; }
@media (max-width: 640px) {
  .order-hero { flex-direction: column; padding: 20px; }
  .timeline { grid-template-columns: 1fr; padding: 14px; }
  .timeline li { grid-template-columns: 32px 1fr; justify-items: start; align-items: center; text-align: left; }
  .timeline li:not(:last-child)::after { display: none; }
}

/* ------------------------------------------------------------ WhatsApp */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wa-btn {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; flex: none;
  background: linear-gradient(145deg, #2fe075, #1fb855); color: #fff;
  box-shadow: 0 10px 24px rgb(31 184 85 / 0.35), 0 2px 6px rgb(0 0 0 / 0.12);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
.wa-btn .icon { width: 32px; height: 32px; }
/* a soft ring that breathes once in a while, not a blinking alarm */
.wa-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgb(37 211 102 / 0.45); animation: wa-ring 4s ease-out 3s infinite; }
@keyframes wa-ring { 0% { box-shadow: 0 0 0 0 rgb(37 211 102 / 0.45); } 35%, 100% { box-shadow: 0 0 0 14px rgb(37 211 102 / 0); } }
.wa-fab:hover .wa-btn, .wa-fab:focus-visible .wa-btn { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 30px rgb(31 184 85 / 0.45), 0 2px 6px rgb(0 0 0 / 0.12); }
.wa-fab:focus-visible { outline: none; }
.wa-fab:focus-visible .wa-btn { outline: 3px solid var(--c-primary); outline-offset: 3px; }
.wa-tip {
  position: relative; display: grid; gap: 1px; padding: 10px 14px; border-radius: 14px; background: var(--c-surface); color: var(--c-ink);
  box-shadow: var(--shadow-2); border: 1px solid var(--c-border); line-height: 1.25;
  opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .25s ease, transform .25s var(--ease);
}
.wa-tip::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: var(--c-surface);
  border-right: 1px solid var(--c-border); border-top: 1px solid var(--c-border); transform: rotate(45deg); }
.wa-tip b { font-size: var(--fs-sm); }
.wa-tip small { font-size: var(--fs-xs); color: var(--c-muted); }
.wa-fab:hover .wa-tip, .wa-fab:focus-visible .wa-tip, .wa-fab.tip-on .wa-tip { opacity: 1; transform: none; }
@media (max-width: 640px) { .wa-fab { right: 14px; bottom: 14px; } .wa-btn { width: 56px; height: 56px; } .wa-btn .icon { width: 30px; height: 30px; } .wa-tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-btn::after { animation: none; } .wa-tip, .wa-btn { transition: none; } }

/* --------------------------------------------------------------- toast */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(92vw, 380px); }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--c-ink); color: #fff;
  box-shadow: var(--shadow-3); font-size: var(--fs-sm); font-weight: 600; animation: toast-in var(--t-med) var(--ease);
}
.toast img { width: 40px; height: 40px; border-radius: 10px; background: #fff; object-fit: contain; }
.toast a { margin-left: auto; color: var(--c-accent); font-weight: 800; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

/* -------------------------------------------------------------- footer */
.site-footer { background: var(--c-ink); color: rgb(255 255 255 / 0.78); padding: 56px 0 28px; margin-top: 24px; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: var(--fs-sm); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-sm); }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 0.12); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: var(--fs-xs); }
.pay-logos { display: flex; gap: 8px; }
.pay-logos span { padding: 6px 10px; border-radius: 8px; background: rgb(255 255 255 / 0.1); font-weight: 700; font-size: var(--fs-xs); color: #fff; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------ legal & help */
.footer-contact { margin-top: 14px !important; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact .icon { width: 18px; height: 18px; }
/* consumer protection links: required, kept small at the very bottom like the big marketplaces */
.footer-legal { margin: 14px 0 0; font-size: 11px; color: rgb(255 255 255 / 0.45); }
.footer-legal a { color: rgb(255 255 255 / 0.6); text-decoration: underline; }
.data-fiscal { color: #fff; text-decoration: underline; }
.legal-layout { display: grid; grid-template-columns: 230px 1fr; gap: 32px; align-items: start; padding-bottom: 72px; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 16px); }
.legal-nav-list, .legal-switch { border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-1); }
.legal-nav-list, .legal-switch-list { display: grid; gap: 2px; padding: 8px; }
.legal-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 700; color: var(--c-ink-soft); }
.legal-nav a .icon { width: 18px; height: 18px; flex: none; color: var(--c-muted); }
.legal-nav a:hover { background: var(--c-bg-soft); }
.legal-nav a.is-active { background: var(--c-primary-soft); color: var(--c-primary); }
.legal-nav a.is-active .icon { color: var(--c-primary); }
.legal-switch { display: none; }
.legal-switch summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.legal-switch summary::-webkit-details-marker { display: none; }
.legal-switch-label { font-size: var(--fs-xs); font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .05em; }
.legal-switch summary b { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; color: var(--c-primary); }
.legal-switch summary b .icon { width: 18px; height: 18px; flex: none; }
.legal-switch-caret { width: 9px; height: 9px; border-right: 2px solid var(--c-ink-soft); border-bottom: 2px solid var(--c-ink-soft); transform: translateY(-3px) rotate(45deg); transition: transform var(--t-fast); flex: none; }
.legal-switch[open] .legal-switch-caret { transform: translateY(2px) rotate(-135deg); }
.legal-switch-list { border-top: 1px solid var(--c-border); }
.legal-body { min-width: 0; max-width: 780px; font-size: var(--fs-md); line-height: 1.7; }
.legal-body h2 { font-family: var(--font-display); font-size: var(--fs-xl); margin: 32px 0 8px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-body ul, .legal-body ol { padding-left: 20px; }
.legal-body a { color: var(--c-primary); font-weight: 700; }
.seller-box, .callout { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-1); font-size: var(--fs-sm); }
.callout { background: var(--c-primary-soft); border-color: transparent; align-items: center; }
.callout > div { flex: 1 1 320px; }
.callout .icon { color: var(--c-primary); flex: none; }
.legal-note { font-size: var(--fs-sm); color: var(--c-ink-soft); padding: 12px 14px; border-left: 3px solid var(--c-border); }
mark.todo { background: var(--c-warning-soft); color: var(--c-warning); padding: 1px 6px; border-radius: 6px; font-weight: 700; }
.help-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0 0 8px; }
.help-topics a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-1); color: var(--c-ink); transition: border-color var(--t-fast), transform var(--t-fast); }
.help-topics a:hover { border-color: var(--c-primary); transform: translateY(-1px); }
.help-topics .icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); flex: none; }
.help-topics span { display: grid; min-width: 0; line-height: 1.25; }
.help-topics b { font-size: var(--fs-sm); }
.help-topics small { font-size: var(--fs-xs); color: var(--c-muted); }
.faq-group h2 { margin-top: 28px; }
.faq { border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-border); margin: 8px 0; box-shadow: var(--shadow-1); }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--c-primary); transition: transform var(--t-fast); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq > div { padding: 0 16px 14px; color: var(--c-ink-soft); }
/* help center: dispatch calendar (batches) */
.dispatch-lead { color: var(--c-ink-soft); max-width: 68ch; }
.dispatch-week { overflow-x: auto; border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-1); margin: 12px 0; }
.dispatch-week table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.dispatch-week th { text-align: left; padding: 12px 16px; background: var(--c-primary-soft); color: var(--c-primary-strong); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.dispatch-week td { padding: 12px 16px; border-top: 1px solid var(--c-border); color: var(--c-ink-soft); }
.dispatch-week td b { color: var(--c-ink); text-transform: capitalize; }
.dispatch-note { font-size: var(--fs-sm); color: var(--c-muted); }
@media (max-width: 560px) { .dispatch-week th, .dispatch-week td { padding: 10px 12px; } }
.consumer-box { margin-top: 40px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--c-bg-soft); font-size: var(--fs-sm); }
.consumer-box ul { margin: 8px 0 0; }
.consumer-box span { color: var(--c-muted); }
.withdraw-form { margin: 18px 0; display: grid; gap: 14px; justify-items: start; }
.withdraw-form .form-grid { width: 100%; }
.withdraw-ok { display: flex; gap: 16px; align-items: flex-start; margin: 18px 0; border: 2px solid var(--c-success-soft); }
.withdraw-ok > .icon { width: 36px; height: 36px; color: var(--c-success); flex: none; }
.withdraw-ok h2 { margin: 6px 0; }
.code-big { font-family: ui-monospace, Consolas, monospace; color: var(--c-primary); letter-spacing: 0.05em; }
.steps-list li { margin: 6px 0; }
.terms-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-size: var(--fs-sm); color: var(--c-ink-soft); }
.terms-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c-primary); flex: none; }
.terms-check a { color: var(--c-primary); font-weight: 700; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; } .legal-nav { position: static; } .legal-nav-list { display: none; } .legal-switch { display: block; } }
@media (max-width: 420px) { .help-topics { grid-template-columns: 1fr 1fr; gap: 8px; } .help-topics a { padding: 12px 10px; gap: 8px; } .help-topics .icon { width: 30px; height: 30px; padding: 6px; } }

/* ------------------------------------------------------------ skeleton */
.skeleton { background: linear-gradient(90deg, var(--c-bg-soft), #fff, var(--c-bg-soft)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--r-lg); }
@keyframes shimmer { to { background-position: -200% 0; } }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.li-var .neg { color: var(--c-danger); font-weight: 700; }
/* text of the generated pages that is only for search engines and link previews (the store shows its own) */
.seo-only { display: none !important; }

/* return page (devolucion.html) */
.return-body { display: grid; gap: 16px; margin-top: 18px; max-width: 760px; }
.return-steps { margin: 0; padding: 18px 18px 18px 38px; border-radius: var(--r-md); background: var(--c-surface); box-shadow: 0 1px 0 var(--c-border); display: grid; gap: 12px; line-height: 1.55; }
.return-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
#return-report .receipt-done { margin: 0 0 12px; }

/* anti-robot check (js/turnstile.js): hidden; only a doubtful visit sees the box to tick */
.robot-check { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; display: none; }
.robot-check.is-open { display: block; padding: 10px; border-radius: var(--r-md); background: var(--c-surface); box-shadow: var(--shadow-3); }

/* ------------------------------------------------------------ maintenance (status-core.js) */
.maintenance { display: grid; place-items: center; min-height: 52vh; padding: 48px 16px 72px; }
.maintenance-card { max-width: 560px; text-align: center; display: grid; gap: 12px; justify-items: center; padding: 36px 28px; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-1); }
.maintenance-card .lead { margin: 0; }
.maintenance-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); }
.maintenance-icon .icon { width: 30px; height: 30px; }
.maintenance-help { display: grid; gap: 12px; justify-items: center; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--c-border); font-size: var(--fs-sm); color: var(--c-ink-soft); }
.maintenance-help p { margin: 0; }
.sales-closed-bar { padding: 10px 16px; text-align: center; font-size: var(--fs-sm); font-weight: 700; background: var(--c-warning-soft); color: var(--c-warning); }
.is-maintenance .announce, .is-maintenance .header-search, .is-maintenance .cart-btn, .is-maintenance .menu-btn, .is-maintenance .main-nav, .is-maintenance .cat-strip { display: none !important; }

/* announcement bar: messages take turns (layout.js announceHtml) */
.announce-rotator { display: inline-grid; }
.announce-msg { grid-area: 1 / 1; opacity: 0; transition: opacity .45s ease; }
.announce-msg.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .announce-msg { transition: none; } }

/* an unpaid Mercado Pago order: retry from the order page or the checkout */
.order-retry { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pending-pay { margin-bottom: 14px; }
.pending-pay a { font-weight: 700; color: var(--c-primary); }

.marketing-ok { font-size: var(--fs-sm); color: var(--c-ink-soft); }
