/* ============================================================
   Components — marketplace shell
   ============================================================ */

/* -- header ----------------------------------------------- */
/* -- utility strip ----------------------------------------- */
.utility {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 550;
}
.utility__in {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 34px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.utility__in::-webkit-scrollbar { display: none; }
.utility__item { display: inline-flex; align-items: center; gap: 0.35rem; }
.utility__sep { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.28); flex: none; }
.utility__spacer { flex: 1 1 auto; min-width: 0.5rem; }
.utility__link { color: #fff; text-decoration: none; font-weight: 700; }
.utility__link:hover { text-decoration: underline; }

/* -- brand bar: the green does the job noon's yellow does --- */
.hdr {
  position: sticky;
  top: 0;
  z-index: var(--z-head);
  background: var(--green-deep);
  color: #fff;
  transition: box-shadow var(--t-mid) var(--ease);
}
.hdr.is-stuck { box-shadow: 0 4px 18px rgba(12, 16, 12, 0.16); }
.hdr__in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.6rem, 0.3rem + 1.4vw, 1.75rem);
  min-height: 72px;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #fff;
}
.brand img {
  width: 38px;
  background: #fff;
  border-radius: var(--r-pill);
  padding: 4px;
}
.brand__t {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #fff;
}
.brand__t span {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
@media (max-width: 700px) { .brand__t { display: none; } }

/* header actions sit on the green */
.hact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: #fff;
  font-size: var(--t-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform 110ms var(--ease-press);
}
.hact:hover { background: rgba(0, 0, 0, 0.18); }
.hact:active { transform: scale(0.95); }
.hact--cart { background: rgba(0, 0, 0, 0.18); }
.hact--cart:hover { background: rgba(0, 0, 0, 0.3); }
@media (max-width: 560px) { .hact span:not(.badge) { display: none; } }

.hact .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--green-dark);
  font-size: 0.66rem;
  font-weight: 800;
}

/* search is the primary control, not an afterthought */
.search { position: relative; }
.search input {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 1rem 0.6rem 2.9rem;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  font-size: var(--t-md);
  font-weight: 500;
  transition: box-shadow var(--t-fast) var(--ease);
}
.search input:focus { outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45); }
.search input::placeholder { color: var(--mute); font-weight: 450; }
.search > svg {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mute);
  pointer-events: none;
  z-index: 1;
}

.hdr__acts { display: flex; align-items: center; gap: 0.4rem; }

.icobtn {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 0.5rem;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink);
  font-size: var(--t-sm);
  font-weight: 750;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.icobtn:hover { border-color: var(--green); background: var(--green-tint); }

.quotebtn { position: relative; }
.quotebtn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--green);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  border: 2px solid var(--white);
}

/* -- category strip --------------------------------------- */
.catstrip {
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}
.catstrip__in {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-block: 0.65rem;
  scrollbar-width: none;
}
.catstrip__in::-webkit-scrollbar { display: none; }

/* -- hero banner ------------------------------------------ */
/* A class, not an inline style — the CSP forbids style attributes. */
.hero-bay { padding-top: var(--bay); }

/* Short and wide, like a supermarket promo strip — the grid should start
   near the fold, not a screen and a half down. */
.banner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(0.75rem, 0.4rem + 1.4vw, 1.75rem);
  padding: clamp(1rem, 0.7rem + 1.4vw, 1.9rem) clamp(1.1rem, 0.6rem + 2.2vw, 2.75rem);
  border-radius: var(--r-lg);
  /* Deeper than --green so white body copy clears 4.5:1 on it. */
  background: var(--green-deep);
  color: #fff;
  overflow: hidden;
  position: relative;
}
@media (max-width: 640px) {
  .banner { grid-template-columns: 1fr; text-align: left; }
}
/* Now that the banner is short, the vertically-centred arrows sit level
   with the copy — inset the content so nothing runs underneath them. */
@media (min-width: 641px) {
  .banner { padding-inline: 3.6rem; }
}

.banner__txt { position: relative; z-index: 1; }
.banner .eyebrow { color: rgba(255, 255, 255, 0.92); font-size: 0.66rem; }
.banner h1 {
  color: #fff;
  margin: 0.35rem 0 0.3rem;
  font-size: clamp(1.4rem, 0.95rem + 1.9vw, 2.5rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
/* Inline, not stacked — stacking cost three lines of height. */
.banner h1 .n {
  font-size: 1.3em;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.banner__sub {
  font-size: var(--t-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
  max-width: 44ch;
  line-height: 1.35;
}

.banner__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0 0.75rem;
}
/* Darkening beats lightening here — a white veil over green lifts the
   ground toward the text and kills the contrast. */
.bstat {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.17);
}
.bstat b {
  font-size: var(--t-sm);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.bstat span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.banner__pick { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.85rem; }
.banner__pick .chip { min-height: 30px; padding: 0.2rem 0.65rem; font-size: 0.72rem; }
.banner__pick .chip {
  background: rgba(0, 0, 0, 0.17);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}
.banner__pick .chip:hover { border-color: #fff; background: rgba(0, 0, 0, 0.28); color: #fff; }
.banner__pick .chip[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--green-dark); }

.banner .btn {
  background: #fff;
  border-color: #fff;
  color: var(--green-dark);
  min-height: 38px;
  padding: 0.35rem 1rem;
  font-size: var(--t-sm);
}
.banner .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.banner__shot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}
.banner__shot img {
  max-height: clamp(120px, 15vw, 190px);
  width: auto;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.3));
}
@media (max-width: 640px) {
  .banner__shot { display: none; }
}
/* soft halo so the cut-out sits in the green rather than on it */
.banner__shot::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
}

/* -- rails ------------------------------------------------- */
.rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 99px; }
.rail > .card { flex: 0 0 clamp(150px, 42vw, 208px); scroll-snap-align: start; }

/* -- grid -------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
}

/* -- product card ------------------------------------------ */
/* Hairline ring + layered shadow instead of a 1px border — the surface
   reads as lifted off the page rather than drawn onto it. */
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(12, 16, 12, 0.055), var(--lift);
  transition: box-shadow var(--t-mid) var(--ease),
    transform var(--t-mid) var(--ease);
}
.card:hover,
.card:focus-visible {
  box-shadow: 0 0 0 1px rgba(12, 16, 12, 0.07), var(--lift-3);
  transform: translateY(-3px);
}
.card:active { transform: translateY(-1px) scale(0.99); transition-duration: 110ms; }

.card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  /* Without these the image's intrinsic height beats aspect-ratio and
     every card gets a different image box. */
  min-height: 0;
  overflow: hidden;
  padding: 0.9rem;
  /* Was flat white. That worked while the catalogue was mostly coloured 5 L
     jugs, but the Acessórios range is white sponges, steel scourers and clear
     bottles, which disappeared into it. A faint floor gives them an edge
     without dimming the card. */
  background: linear-gradient(180deg, var(--white) 58%, #f1f3ee 100%);
}
.card__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform var(--t-mid) var(--ease);
}
.card:hover .card__media img { transform: scale(1.045); }

.card__flag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0 0.75rem 0.85rem;
}
.card__name {
  font-size: var(--t-sm);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.012em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}
.card__spec {
  font-size: var(--t-xs);
  color: var(--mute);
  line-height: 1.3;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: auto;
}
.card__price .num { font-size: 1.18rem; }
.card__price .from { font-size: var(--t-xs); color: var(--mute); font-weight: 600; }
.card__unit {
  font-size: var(--t-xs);
  color: var(--mute);
  font-weight: 600;
  margin-top: 0.15rem;
}
.card__unit b { color: var(--ink-2); font-weight: 750; font-variant-numeric: tabular-nums; }

.empty { grid-column: 1 / -1; padding: 3.5rem 1rem; text-align: center; }
.empty__t { font-size: var(--t-lg); font-weight: 750; }
.empty__h { color: var(--mute); font-size: var(--t-sm); margin-top: 0.3rem; }

/* -- filters row ------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }

/* -- panels ------------------------------------------------ */
.scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-panel);
  background: rgba(10, 10, 10, 0.42);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease);
}
.scrim.is-open { opacity: 1; }

.panel {
  position: fixed;
  z-index: calc(var(--z-panel) + 1);
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform 420ms var(--ease);
  box-shadow: var(--lift-2);
}

.drawer {
  inset: auto 0 0 0;
  max-height: 90vh;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  transform: translateY(100%);
}
.drawer.is-open { transform: translateY(0); }
@media (min-width: 840px) {
  .drawer {
    inset: 0 0 0 auto;
    width: min(660px, 95vw);
    max-height: none;
    border-radius: var(--r-lg) 0 0 var(--r-lg);
    transform: translateX(100%);
  }
  .drawer.is-open { transform: translateX(0); }
}

.panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  flex: none;
}
.panel__bar h3 { font-size: var(--t-lg); }
.panel__x {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.panel__x:hover { border-color: var(--ink); }

.drawer__body { overflow-y: auto; padding: 1.1rem; }
@media (min-width: 620px) { .drawer__body { padding: 1.6rem; } }

.drawer__media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: var(--r-md);
  background: var(--surface);
}
.drawer__media img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }

.drawer__info h3 { font-size: var(--t-xl); margin-bottom: 0.5rem; }
.drawer__sub { color: var(--mute); font-size: var(--t-sm); margin-bottom: 1.1rem; }
.drawer__h { font-size: var(--t-md); font-weight: 750; margin: 1.5rem 0 0.6rem; }

.meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }
.meta span {
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--ink-2);
}

/* variant table */
.tblwrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-md); }
.vtbl { border-collapse: collapse; width: 100%; min-width: 430px; font-size: var(--t-sm); }
.vtbl thead th {
  text-align: left;
  padding: 0.6rem 0.8rem;
  background: var(--surface);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
}
.vtbl td { padding: 0.65rem 0.8rem; border-top: 1px solid var(--rule); }
.vtbl td.n { font-variant-numeric: tabular-nums; font-weight: 750; white-space: nowrap; }
.vtbl td.u { color: var(--mute); font-size: var(--t-xs); white-space: nowrap; }
.vtbl tr.is-best td { background: var(--green-tint); }
.vtbl tr.is-best td.u { color: var(--green-ink); font-weight: 700; }
.vtbl td.add { width: 1%; text-align: right; }

/* quote */
.qpanel { inset: 0 0 0 auto; width: min(440px, 96vw); transform: translateX(100%); }
.qpanel.is-open { transform: translateX(0); }
.qpanel__body { flex: 1; overflow-y: auto; padding: 0.25rem 1.1rem; }
.qpanel__foot {
  flex: none;
  padding: 1.1rem;
  border-top: 1px solid var(--rule);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.qtotal { display: flex; align-items: baseline; justify-content: space-between; }
.qtotal .num { font-size: 1.5rem; }
.qnote { font-size: var(--t-xs); color: var(--mute); line-height: 1.45; }
.qactions { display: flex; gap: 0.5rem; }
.qactions .btn { flex: 1; }

.qrow {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
}
.qrow__img {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 5px;
}
.qrow__img img { max-height: 100%; width: auto; mix-blend-mode: multiply; }
.qrow__n { font-size: var(--t-sm); font-weight: 650; line-height: 1.25; }
.qrow__p { font-size: var(--t-xs); color: var(--mute); margin-top: 0.1rem; }
.qrow__r { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }
.qrow__t { font-size: var(--t-sm); font-variant-numeric: tabular-nums; font-weight: 750; }
.qstep { display: flex; align-items: center; border: 1.5px solid var(--rule); border-radius: var(--r-pill); }
.qstep button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  border-radius: var(--r-pill);
}
.qstep button:hover { background: var(--surface); }
.qstep span { min-width: 1.7rem; text-align: center; font-size: var(--t-sm); font-weight: 750; font-variant-numeric: tabular-nums; }

@media (pointer: coarse) {
  .qstep button { width: 44px; height: 44px; }
  .btn--sm { min-height: 44px; }
}

/* -- toast -------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: var(--z-toast);
  transform: translate(-50%, 160%);
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: var(--t-sm);
  font-weight: 600;
  box-shadow: var(--lift-2);
  transition: transform var(--t-mid) var(--ease);
  max-width: min(92vw, 28rem);
  text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); }

/* -- info strip + footer ----------------------------------- */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.info {
  padding: 1.1rem;
  border-radius: var(--r-md);
  background: var(--surface);
}
.info b { display: block; font-size: var(--t-md); font-weight: 750; margin-bottom: 0.15rem; }
.info span { font-size: var(--t-sm); color: var(--mute); line-height: 1.4; display: block; }
.info a { font-weight: 650; word-break: break-word; }

.foot { border-top: 1px solid var(--rule); margin-top: var(--bay); padding-block: 1.5rem 2.5rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; justify-content: space-between; }
.foot p { font-size: var(--t-xs); color: var(--mute); }

/* -- catalogue toolbar ------------------------------------- */
.bay-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  min-width: 0;
}

.sortwrap { position: relative; display: inline-flex; align-items: center; min-width: 0; }
.sortwrap select {
  appearance: none;
  max-width: 100%;
  text-overflow: ellipsis;
  min-height: 40px;
  padding: 0.35rem 2rem 0.35rem 0.9rem;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: var(--t-sm);
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
}
.sortwrap select:hover { border-color: var(--green); }
.sortwrap svg { position: absolute; right: 0.75rem; pointer-events: none; color: var(--mute); }

/* -- quantity + add, inside the variant table -------------- */
.addrow { display: flex; align-items: center; gap: 0.45rem; justify-content: flex-end; }
.addrow .qstep { flex: none; }
.addrow .qstep button { width: 30px; height: 30px; font-size: 14px; }
.addrow .qstep span { min-width: 1.5rem; font-size: var(--t-xs); }
@media (pointer: coarse) { .addrow .qstep button { width: 38px; height: 38px; } }
@media (max-width: 520px) { .addrow { flex-direction: column; align-items: stretch; gap: 0.3rem; } }

/* -- carousel ---------------------------------------------- */
.banner__txt,
.banner__shot { transition: opacity 170ms var(--ease); }
.banner.is-swapping .banner__txt,
.banner.is-swapping .banner__shot { opacity: 0; }

.banner__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.banner__arrow:hover { background: rgba(0, 0, 0, 0.42); }
.banner__arrow--prev { left: 0.6rem; }
.banner__arrow--next { right: 0.6rem; }

/* On narrow screens the arrows would sit on top of the copy. */
@media (max-width: 640px) {
  .banner__arrow { top: auto; bottom: 0.6rem; transform: none; width: 40px; height: 40px; }
  .banner__arrow--prev { left: auto; right: 3.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .banner__txt,
  .banner__shot { transition: none; }
}

/* -- Apple-pass refinements -------------------------------- */
/* Chrome sits on the same material family as the header. */
.catstrip {
  position: relative;
  z-index: calc(var(--z-head) - 1);
  border-bottom-color: var(--rule);
}

/* Press feedback on every control the finger can reach. */
.icobtn,
.panel__x,
.banner__arrow,
.sortwrap select { transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform 110ms var(--ease-press); }
.icobtn:active,
.panel__x:active,
.banner__arrow:active,
.sortwrap select:active { transform: scale(0.94); }
.qstep button:active { transform: scale(0.9); }

/* Panels are large surfaces, so they carry the heaviest shadow. */
.panel { box-shadow: var(--lift-3); }

/* Product shot gets a ground shadow so it sits on the card, not in it. */
.card__media img { filter: drop-shadow(0 6px 10px rgba(12, 16, 12, 0.09)); }
.drawer__media img { filter: drop-shadow(0 10px 18px rgba(12, 16, 12, 0.12)); }

/* Left over from when the header was white — --ink-2 on the green bar is
   1.86:1. On a coloured bar the subtitle must stay light. */
.hdr .brand__t { letter-spacing: -0.03em; }
.hdr .brand__t span { color: rgba(255, 255, 255, 0.93); }

/* Bright top edge — light catching the material. */
.banner { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), var(--lift-2); }

/* -- variant options (aroma / colour) ---------------------- */
.opts { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.opts .opt[aria-checked="true"] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.opts .opt[aria-checked="true"]:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }

/* -- awaiting photography ---------------------------------- */
.ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--rule-2);
}
.card__media.is-empty,
.drawer__media.is-empty { background: var(--surface); }
.qrow__img.is-empty .ph svg { width: 22px; height: 22px; }

/* ============================================================
   Marketplace shell — hero grid, tiles, footer
   ============================================================ */

/* -- hero: main carousel + secondary tile ------------------ */
.herogrid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 900px) { .herogrid { grid-template-columns: 1fr; } }

.herogrid .banner { margin: 0; height: 100%; }

.sidetile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  padding: clamp(1.1rem, 0.8rem + 1vw, 1.75rem);
  border: 0;
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(12, 16, 12, 0.055), var(--lift);
  transition: box-shadow var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.sidetile:hover { box-shadow: 0 0 0 1px rgba(12, 16, 12, 0.07), var(--lift-3); transform: translateY(-3px); }
.sidetile:active { transform: translateY(-1px) scale(0.995); }
.sidetile__txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.sidetile strong {
  font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.6rem);
  font-weight: 800;
  letter-spacing: var(--tr-title);
  line-height: 1.08;
  color: var(--ink);
}
.sidetile__sub { font-size: var(--t-sm); color: var(--ink-2); max-width: 30ch; line-height: 1.4; }
.sidetile__cta {
  margin-top: 0.35rem;
  font-size: var(--t-sm);
  font-weight: 750;
  color: var(--green-ink);
}
.sidetile img {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  max-height: clamp(110px, 14vw, 170px);
  width: auto;
  filter: drop-shadow(0 12px 20px rgba(12, 16, 12, 0.16));
}

/* -- category tiles ---------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.5rem 0.75rem;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-mid) var(--ease),
    box-shadow var(--t-mid) var(--ease);
}
.tile:hover { background: var(--green-tint); transform: translateY(-3px); box-shadow: var(--lift-2); }
.tile:active { transform: translateY(-1px) scale(0.97); }
.tile__img {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
}
.tile__img img {
  max-width: 84%;
  max-height: 84%;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 5px 8px rgba(12, 16, 12, 0.1));
}
.tile__n {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.tile__c { font-size: 0.66rem; font-weight: 600; color: var(--mute); }

/* -- campaign tiles ---------------------------------------- */
.ptiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.ptile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 132px;
  padding: 1.1rem 1.15rem;
  border: 0;
  border-radius: var(--r-lg);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.ptile:hover { transform: translateY(-3px); box-shadow: var(--lift-3); }
.ptile:active { transform: translateY(-1px) scale(0.99); }
.ptile__txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.ptile__k { font-size: 0.66rem; font-weight: 750; letter-spacing: var(--tr-label); text-transform: uppercase; opacity: 0.85; }
.ptile__t { font-size: 1.05rem; font-weight: 800; letter-spacing: var(--tr-title); line-height: 1.1; }
.ptile__s { font-size: var(--t-xs); opacity: 0.9; max-width: 22ch; line-height: 1.35; }
.ptile img {
  position: relative;
  z-index: 1;
  max-height: 96px;
  width: auto;
  filter: drop-shadow(0 10px 16px rgba(12, 16, 12, 0.22));
}
.ptile--green { background: var(--green-deep); color: #fff; }
.ptile--ink { background: var(--ink); color: #fff; }
.ptile--soft { background: var(--green-tint); color: var(--ink); }
.ptile--soft .ptile__k { color: var(--green-ink); opacity: 1; }

/* -- carousel dots ----------------------------------------- */
.banner__dots { display: flex; gap: 0.35rem; margin-top: 0.9rem; }
.banner__dots button {
  width: 22px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), width var(--t-mid) var(--ease);
}
.banner__dots button[aria-selected="true"] { background: #fff; width: 34px; }

/* -- footer ------------------------------------------------- */
.foot {
  margin-top: var(--bay);
  padding-block: clamp(2rem, 1.4rem + 2vw, 3.25rem) 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--rule);
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  padding-bottom: 2rem;
}
@media (max-width: 720px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .foot__grid { grid-template-columns: 1fr; } }

.foot__col h3 {
  font-size: var(--t-sm);
  font-weight: 800;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.85rem;
}
.foot__col--brand img { width: 148px; margin-bottom: 0.9rem; }
.foot__col--brand p { font-size: var(--t-sm); color: var(--ink-2); max-width: 38ch; line-height: 1.5; }

.foot__social { display: flex; gap: 0.4rem; margin-top: 1rem; }
.foot__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(12, 16, 12, 0.06);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform 110ms var(--ease-press);
}
.foot__social a:hover { background: var(--green); color: #fff; }
.foot__social a:active { transform: scale(0.93); }

.foot__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.foot__links a {
  font-size: var(--t-sm);
  color: var(--ink-2);
  text-decoration: none;
  cursor: pointer;
  /* The email is longer than its column — wrap it rather than let it
     run under the next one. */
  overflow-wrap: anywhere;
}
.foot__links a:hover { color: var(--green-ink); text-decoration: underline; }

.foot__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.foot__facts b { display: block; font-size: var(--t-sm); font-weight: 750; color: var(--ink); }
.foot__facts span { display: block; font-size: var(--t-xs); color: var(--mute); line-height: 1.45; margin-top: 0.15rem; }

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.foot__bar p { font-size: var(--t-xs); color: var(--mute); }

/* -- card: brand line + honest bulk-saving badge ----------- */
.card__brand {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.1rem;
}
.save {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  padding: 0.2rem 0.45rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* -- search suggestions ------------------------------------ */
.search__clear {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.search__clear:hover { background: var(--rule-2); color: var(--ink); }

.suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: min(68vh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(12, 16, 12, 0.07), var(--lift-3);
}

.sg {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.sg:hover,
.sg[aria-selected="true"] { background: var(--green-tint); }

.sg__img,
.sg__ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--surface);
  overflow: hidden;
}
/* 44px is too small to lose a white bottle in, so this chip goes a shade
   deeper than the page surface. */
.sg__img { background: #e8ebe4; }
.sg__img img { max-width: 88%; max-height: 88%; width: auto; mix-blend-mode: multiply; }
.sg__ico { color: var(--green-ink); }

.sg__t { flex: 1; min-width: 0; }
.sg__n {
  display: block;
  font-size: var(--t-sm);
  font-weight: 650;
  line-height: 1.25;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sg__n mark { background: transparent; color: var(--green-ink); font-weight: 800; }
.sg__m {
  display: block;
  font-size: var(--t-xs);
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sg__p {
  flex: none;
  font-size: var(--t-sm);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.sg--all {
  justify-content: center;
  margin-top: 4px;
  border-top: 1px solid var(--rule);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: var(--t-sm);
  font-weight: 750;
  color: var(--green-ink);
  padding-block: 0.7rem;
}

.sg__none { padding: 1.1rem 0.9rem; font-size: var(--t-sm); font-weight: 650; color: var(--ink); }
.sg__none span { display: block; font-weight: 450; color: var(--mute); margin-top: 0.2rem; }

/* -- pack list: reflows, never overflows -------------------- */
.packs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.pack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 0.9rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(12, 16, 12, 0.05);
}
.pack.is-best { background: var(--green-tint); box-shadow: 0 0 0 1px var(--green-line); }

.pack__l { min-width: 0; }
.pack__label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.pack__unit { display: block; font-size: var(--t-xs); color: var(--mute); margin-top: 0.1rem; }
.pack.is-best .pack__unit { color: var(--green-ink); font-weight: 750; }

.pack__r { display: flex; align-items: center; gap: 0.75rem; }
.pack__price {
  font-size: var(--t-md);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pack__buy { display: flex; align-items: center; gap: 0.4rem; }
.pack__buy .qstep { flex: none; }
.pack__buy .btn { white-space: nowrap; }

/* Narrow: stack the label above a full-width buy row so the Add button is
   always on screen and always thumb-sized. */
@media (max-width: 560px) {
  .pack { grid-template-columns: 1fr; }
  .pack__r { justify-content: space-between; width: 100%; }
  .pack__buy .btn { min-height: 44px; padding-inline: 1.1rem; }
}
@media (max-width: 380px) {
  .pack__r { flex-wrap: wrap; }
  .pack__buy { width: 100%; justify-content: space-between; }
  .pack__buy .btn { flex: 1; }
}

/* ============================================================
   Touch targets — a 4px dot is a mouse affordance, not a thumb one.
   Hit areas grow; the visuals stay exactly as designed.
   ============================================================ */
@media (pointer: coarse) {
  /* carousel dots keep their 4px bar, gain a 44px tap zone */
  .banner__dots { gap: 0.6rem; }
  .banner__dots button { position: relative; }
  .banner__dots button::after {
    content: "";
    position: absolute;
    inset: -20px -8px;
  }

  .bay-head .more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 0.25rem;
  }

  .foot__links a {
    display: inline-block;
    padding-block: 0.65rem;
  }
  .foot__links { gap: 0; }

  .banner .btn { min-height: 44px; }
  .search__clear { width: 40px; height: 40px; }
  .utility__link { padding-block: 0.5rem; }
  .sg { padding-block: 0.7rem; }
}

/* iOS Safari zooms the viewport when a focused input is under 16px.
   The search bar is the first thing anyone taps — it must not zoom. */
@media (max-width: 900px) {
  .search input { font-size: 16px; }
}

/* On a phone the search cannot share a row with the logo and the actions —
   it ends up ~196px wide and the suggestion rows have nowhere to live.
   Give it its own full-width row, the way every mobile marketplace does. */
@media (max-width: 860px) {
  .hdr__in {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand acts"
      "search search";
    row-gap: 0.45rem;
    /* two rows already set the height — the desktop min would only pad it */
    min-height: 0;
    padding-block: 0.45rem 0.6rem;
  }
  .search input { min-height: 44px; }
  .brand { grid-area: brand; }
  .hdr__acts { grid-area: acts; justify-self: end; }
  .search { grid-area: search; }
  .brand__t { display: block; }
}

/* ============================================================
   Tap-to-zoom lightbox
   ============================================================ */
.drawer__media {
  position: relative;
  width: 100%;
  border: 0;
  cursor: zoom-in;
  transition: box-shadow var(--t-fast) var(--ease);
}
.drawer__media:hover { box-shadow: 0 0 0 1px var(--rule-2); }
.zoomcue {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(12, 16, 12, 0.08), var(--lift);
}

.zoom {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(8, 11, 8, 0.94);
  opacity: 0;
  transition: opacity 200ms var(--ease);
  touch-action: none;
  overscroll-behavior: contain;
  cursor: zoom-out;
}
.zoom.is-open { opacity: 1; }
.zoom img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.zoom.is-zoomed { cursor: grab; }
.zoom.is-zoomed img { cursor: grab; }

.zoom__x {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform 110ms var(--ease-press);
}
.zoom__x:hover { background: rgba(255, 255, 255, 0.28); }
.zoom__x:active { transform: scale(0.92); }

.zoom__hint {
  position: absolute;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--t-xs);
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
.zoom.is-zoomed .zoom__hint { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .zoom { transition: none; }
}

/* -- rail scroll arrows (desktop affordance) ---------------- */
.rail__nav { display: none; gap: 0.3rem; }
@media (pointer: fine) { .rail__nav { display: inline-flex; } }
/* An author `display` beats the UA style for [hidden], so the attribute
   stops working the moment you set display on the element. Restore it. */
.rail__nav[hidden] { display: none !important; }

.railbtn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
    opacity var(--t-fast) var(--ease), transform 110ms var(--ease-press);
}
.railbtn:hover { border-color: var(--green); background: var(--green-tint); }
.railbtn:active { transform: scale(0.92); }
.railbtn[disabled] { opacity: 0.32; cursor: default; pointer-events: none; }

/* ============================================================
   Checkout
   ============================================================ */

.btn--wide { width: 100%; }

/* WhatsApp is a fallback now, not the route. It reads as a link, so the
   eye lands on "Finalizar pedido" first. */
.qwa {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--green-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: var(--r-pill);
}
.qwa:hover { background: var(--surface-2); text-decoration: none; }
.qactions { align-items: center; }
.qactions .btn { flex: 1; }

.panel__back {
  border: 0;
  background: none;
  padding: 0.35rem 0;
  font-size: var(--t-sm);
  font-weight: 650;
  color: var(--green-ink);
  cursor: pointer;
  margin-right: auto;
}
.panel__back:hover { text-decoration: underline; }
#coPanel .panel__hd {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  flex: none;
}
#coPanel .panel__hd h3 { font-size: var(--t-lg); }

.co {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.co__seg { border: 0; margin: 0; padding: 0; }
.co__lg {
  padding: 0;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.5rem;
}
.co__f { display: flex; flex-direction: column; }
.co__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.co__l { font-size: var(--t-sm); font-weight: 650; margin-bottom: 0.3rem; }
.co__i {
  min-height: 48px;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--rule-2);
  border-radius: var(--r-sm);
  background: var(--white);
  /* 16px minimum, or iOS zooms the whole page on focus. */
  font-size: 16px;
  color: var(--ink);
  width: 100%;
}
.co__i:focus-visible {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 135, 62, 0.16);
}
.co__i.is-bad { border-color: #a5211b; }
.co__t { min-height: 66px; resize: vertical; font-family: inherit; }
.co__e { font-size: var(--t-xs); font-weight: 600; color: #a5211b; margin-top: 0.3rem; }
.co__note { font-size: var(--t-xs); color: var(--mute); margin-top: 0.55rem; line-height: 1.45; }
.co__err {
  font-size: var(--t-sm);
  font-weight: 600;
  color: #a5211b;
  background: #fbe9e8;
  border-radius: var(--r-sm);
  padding: 0.7rem 0.85rem;
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: var(--surface);
  padding: 0.25rem;
  border-radius: var(--r-pill);
}
.seg__o { position: relative; }
.seg__o input { position: absolute; opacity: 0; pointer-events: none; }
.seg__o span {
  display: grid;
  place-items: center;
  min-height: 40px;
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: 650;
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.seg__o input:checked + span { background: var(--white); color: var(--ink); box-shadow: var(--lift-1); }
.seg__o input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

.pays { display: grid; gap: 0.45rem; }
.pay { position: relative; }
.pay input { position: absolute; opacity: 0; pointer-events: none; }
.pay__b {
  display: block;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--rule-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.pay__b b { display: block; font-size: var(--t-sm); font-weight: 700; }
.pay__b small { display: block; font-size: var(--t-xs); color: var(--mute); margin-top: 0.1rem; }
.pay input:checked + .pay__b { border-color: var(--green); background: rgba(0, 135, 62, 0.05); }
.pay input:focus-visible + .pay__b { outline: 2px solid var(--green); outline-offset: 2px; }

.co__foot {
  position: sticky;
  bottom: -1.1rem;
  margin: 0.3rem -1.1rem -1.1rem;
  padding: 0.9rem 1.1rem 1.1rem;
  background: var(--white);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.co__tot { display: flex; align-items: baseline; justify-content: space-between; }
.co__tot span { font-size: var(--t-sm); color: var(--mute); font-weight: 600; }
.co__tot b { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em; }

/* -- confirmation -- */
.ok { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1.4rem; text-align: center; gap: 0.3rem; }
.ok__mark {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--green); display: grid; place-items: center;
  margin-bottom: 0.9rem;
}
.ok__mark svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ok__k { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.ok__ref { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.ok__b { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; max-width: 30ch; margin: 0.5rem 0 1.4rem; }

@media (max-width: 420px) {
  .co__row { grid-template-columns: 1fr; }
}
