/*
 * The storefront's stylesheet.
 *
 * One file, no build step, no framework. That is a deliberate choice and worth
 * defending: this is served to a shopper on a mid-range Android phone over
 * mobile data in Bangladesh, and every kilobyte and every round trip before the
 * first price appears is a shopper who leaves. A utility framework's output
 * would be larger, a JavaScript framework's would be very much larger, and
 * neither would render faster than markup the server already wrote.
 *
 * Every colour, radius and font here is a CSS custom property set by the
 * store's theme — see the vault and ThemeManifest. The markup below never
 * hardcodes one, which is what lets every palette and any merchant's colours
 * share exactly this file, and what lets a fix here reach every shop on the
 * platform the day it deploys. A vault theme loads its own stylesheet after
 * this one, or replaces it entirely with `base_css: false`.
 *
 * Layout is grid and flexbox with `clamp()` for type. There are three media
 * queries in the whole file, because a design that needs more than that is one
 * fighting its own layout.
 */

/* ---------------------------------------------------------------------
 * Reset
 * ------------------------------------------------------------------ */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--font-size, 15px);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-heading);
  font-weight: var(--heading-weight, 700);
  line-height: 1.2;
  letter-spacing: -.02em;
}

h1 { font-size: calc(clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem) * var(--scale)); }
h2 { font-size: calc(clamp(1.375rem, 1.1rem + 1.4vw, 2rem) * var(--scale)); }
h3 { font-size: calc(1.125rem * var(--scale)); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

/* A ring for whoever is using a keyboard, in the shop's own colour. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* Numbers in a total column have to line up. */
.tabular { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------
 * Design controls
 *
 * The platform's controls (ThemeManifest::CONTROLS), which every theme has
 * and every merchant may set: corner roundness, button and field shape,
 * border width, text and heading size, button lettering. Shapes arrive as
 * attributes on <html>, sizes as properties; everything below reads only
 * the derived names here, so one control moves every button, field and
 * line on the page together.
 * ------------------------------------------------------------------ */

:root {
  --bw: var(--border-width, 1px);
  /* A field keeps a line even at 0, or it disappears into the page. */
  --field-bw: max(1px, var(--bw));
  --btn-radius: clamp(6px, var(--radius, 10px), 14px);
  --field-radius: clamp(6px, var(--radius, 10px), 12px);
  --scale: calc(var(--heading-scale, 100) / 100);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px -14px rgba(16, 24, 40, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-button-shape="square"] { --btn-radius: 0px; }
:root[data-button-shape="pill"] { --btn-radius: 999px; }
:root[data-field-shape="square"] { --field-radius: 0px; }
:root[data-field-shape="pill"] { --field-radius: 999px; }

/* ---------------------------------------------------------------------
 * Shell
 * ------------------------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: var(--container, 1200px);
  margin: 0 auto;
  padding: 0 16px;
}

.section { padding: clamp(32px, 5vw, 64px) 0; }
.section--tight { padding: 24px 0; }
.section--flush { padding: 0; }

/* A page's main box is both: `.section`'s padding, written after `.wrap`'s
 * and in themes as `.<theme> .section { padding: … 0 }`, took the side gutter
 * away, so below the container width text ran to the screen's edges. Only
 * the sides are set here, and on `body` so a theme's section rule cannot
 * take them away again; its top and bottom stay its own. */
body .wrap.section { padding-inline: 16px; }

.section__head { margin-bottom: 24px; }
.section__head--center { text-align: center; }
.section__head h2 { margin-bottom: 6px; }
.section__head p { color: var(--muted); margin: 0; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ---------------------------------------------------------------------
 * Announcement, header, footer
 * ------------------------------------------------------------------ */

.announce {
  background: var(--accent);
  color: var(--accent-contrast);
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: var(--bw) solid var(--line);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.02em;
  margin-right: auto;
}

.brand img { max-height: 36px; width: auto; }

/* A <picture> only chooses which file loads; the <img> inside is what every
   rule below sizes, as if the <picture> were not there. */
picture { display: contents; }

.nav { display: none; gap: 4px; }

.nav a {
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.nav a:hover { background: var(--canvas); color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: 4px; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  border-radius: var(--radius);
  cursor: pointer;
}

.icon-btn:hover { background: var(--canvas); }

.icon-btn__count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

.searchbar {
  display: none;
  flex: 1;
  max-width: 420px;
  position: relative;
}

.searchbar input {
  width: 100%;
  padding: 9px 14px;
  border: var(--field-bw) solid var(--line);
  border-radius: var(--field-radius);
  background: var(--canvas);
  outline: none;
}

.searchbar input:focus { border-color: var(--accent); background: var(--surface); }

/* The mobile drawer. `hidden` toggles it; no framework needed. */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, .45);
  display: flex;
  justify-content: flex-end;
}

.drawer[hidden] { display: none; }

.drawer__panel {
  width: min(380px, 88vw);
  background: var(--surface);
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: var(--bw) solid var(--line);
  font-weight: 600;
}

.drawer__body { padding: 16px; flex: 1; }
.drawer__foot { padding: 16px; border-top: var(--bw) solid var(--line); }

.drawer__nav a {
  display: block;
  padding: 12px 4px;
  border-bottom: var(--bw) solid var(--line);
  font-weight: 500;
}

.footer {
  background: var(--surface);
  border-top: var(--bw) solid var(--line);
  padding: 40px 0 24px;
  margin-top: 48px;
}

.footer__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.footer a { display: block; padding: 4px 0; font-size: 14px; }
.footer a:hover { color: var(--accent); }

.footer__bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: var(--bw) solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

/* ---------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: var(--bw) solid transparent;
  border-radius: var(--btn-radius);
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: filter .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease), transform .08s ease;
}

.btn:hover { filter: brightness(.94); box-shadow: 0 6px 18px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; filter: none; box-shadow: none; transform: none; }

/* `button_case`: buttons in capitals, spaced so they still read. */
:root[data-button-case="uppercase"] .btn,
:root[data-button-case="uppercase"] .swatch { text-transform: uppercase; letter-spacing: .07em; font-size: 13px; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover { background: var(--canvas); filter: none; box-shadow: none; }

/* A theme's `button_style: outline` — the main button drawn as a line, not a fill. */
[data-button-style="outline"] .btn:not(.btn--ghost) {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

[data-button-style="outline"] .btn:not(.btn--ghost):hover { background: var(--accent); color: var(--accent-contrast); filter: none; }

.btn--block { width: 100%; }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 16px; font-weight: 700; }
.btn--sm { min-height: 34px; padding: 7px 12px; font-size: 13px; }

/* ---------------------------------------------------------------------
 * Cards and the product grid
 * ------------------------------------------------------------------ */

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Three card treatments, chosen by the theme. */
[data-card-style="bordered"] .card { border: var(--bw) solid var(--line); }
[data-card-style="shadow"] .card { box-shadow: var(--shadow-md); }
.card { transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
@media (hover: hover) {
  [data-card-style="bordered"] .card:hover,
  [data-card-style="shadow"] .card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
}
[data-card-style="flat"] .card { background: transparent; }

.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--canvas);
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}

.card:hover .card__media img { transform: scale(1.04); }

.card__body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }

.card__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  /* Two lines, always, so a grid's rows stay level whatever the names are. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }

.price { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.price--was { font-weight: 400; font-size: 13px; color: var(--muted); text-decoration: line-through; }

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sale);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

.badge--out { background: var(--ink); }

/* ---------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------ */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(320px, 44vw, 520px);
  background: var(--canvas);
  color: var(--ink);
  overflow: hidden;
}

.hero--image { color: #fff; }

.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }

.hero__scrim { position: absolute; inset: 0; background: #000; }

.hero__inner { position: relative; padding: 48px 16px; max-width: 720px; }
.hero__inner--left { margin-right: auto; text-align: left; }
.hero__inner--center { text-align: center; margin-left: auto; margin-right: auto; }

.hero p { font-size: clamp(15px, 1.1vw + 12px, 18px); opacity: .92; margin-bottom: 24px; }

/*
 * The hero's newer parts, each drawn only once filled in: a badge over the
 * heading, points with ticks, a WhatsApp button beside the main one, and a
 * picture beside the words (hero--side) — under them on a phone.
 */
.hero__badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.hero--image .hero__badge { background: rgba(255, 255, 255, .16); color: inherit; }

.hero__points { display: grid; gap: 8px; width: fit-content; max-width: 100%; margin: 0 0 24px; padding: 0; list-style: none; text-align: left; }
.hero__inner--center .hero__points { margin-left: auto; margin-right: auto; }
.hero__points li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; }
.hero__tick { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent); color: var(--accent-contrast); }

.hero__actions { display: grid; gap: 10px; }
.hero__whatsapp { --hero-wa: #0b7a3b; background: var(--hero-wa); border-color: var(--hero-wa); color: #fff; }
.hero__whatsapp:hover { box-shadow: 0 6px 18px -10px var(--hero-wa); }

@media (min-width: 640px) {
  .hero__actions { display: flex; flex-wrap: wrap; }
  .hero__inner--center .hero__actions { justify-content: center; }
}

.hero--side .wrap { width: 100%; }
.hero__split { position: relative; display: grid; gap: 8px; align-items: center; padding-bottom: 32px; }
.hero__split .hero__inner { max-width: none; padding-bottom: 16px; }
.hero__side { position: relative; padding: 0 16px; }
.hero__side img { display: block; width: 100%; height: auto; border-radius: clamp(12px, calc(var(--radius, 10px) * 1.6), 20px); }

@media (min-width: 860px) {
  .hero__split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; padding-bottom: 0; }
  .hero__split .hero__inner { padding-bottom: 48px; }
}

/* ---------------------------------------------------------------------
 * Sections
 * ------------------------------------------------------------------ */

.features {
  display: grid;
  gap: 16px;
  /* Three across on a wide screen, so six points sit as two even rows. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.feature {
  display: flex;
  gap: 12px;
  padding: 18px;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature__icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.feature h3 { font-size: 15px; margin-bottom: 2px; }
.feature p { font-size: 13px; color: var(--muted); margin: 0; }

/* A line under a section's heading (features, gallery, size chart). */
.section__sub { max-width: 640px; white-space: pre-line; line-height: 1.7; }
.section__head--center .section__sub { margin-left: auto; margin-right: auto; }

/*
 * "Why buy" points with pictures beside them: the pictures first on a phone, on the right on a computer.
 * On a phone one column no wider than the page: a long row of pictures (or their dots) must never widen it at 360px.
 */
.lp-feat { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 860px) {
  .lp-feat { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
  .lp-feat__media { order: 2; }
}

/* A notice in a pill under a block ("No advance payment"). */
.lp-note { margin: 20px auto 0; text-align: center; }
.lp-note span {
  display: inline-block;
  max-width: 100%;
  padding: 10px 20px;
  border: var(--bw) solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--ink);
  font-weight: 600;
  line-height: 1.6;
}

.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 720px) {
  .tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--canvas);
  display: grid;
  place-items: end center;
}

.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile span {
  position: relative;
  width: 100%;
  padding: 24px 10px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .68));
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

.faq { max-width: 760px; margin: 0 auto; }

.faq details {
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq summary {
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 16px 14px; color: var(--muted); }

.quotes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.quote {
  padding: 18px;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stars { color: #f5a524; letter-spacing: 2px; font-size: 13px; }

.quote__who { margin-top: 10px; font-size: 13px; font-weight: 600; }

.countdown { display: flex; gap: 10px; justify-content: center; }

.countdown div {
  min-width: 66px;
  padding: 10px 8px;
  border-radius: var(--radius);
  background: var(--surface);
  border: var(--bw) solid var(--line);
  text-align: center;
}

.countdown strong { display: block; font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.banner {
  padding: 20px;
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.banner--accent { background: var(--accent); color: var(--accent-contrast); }
.banner--dark { background: var(--ink); color: var(--surface); }
.banner--light { background: var(--surface); border: var(--bw) solid var(--line); }
.banner p { margin: 0; font-size: 17px; font-weight: 600; }

/* ---------------------------------------------------------------------
 * Forms
 * ------------------------------------------------------------------ */

.field { margin-bottom: 14px; }

.field label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 600;
}

.field .req { color: var(--sale); }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: var(--field-bw) solid color-mix(in srgb, var(--line) 70%, var(--ink) 12%);
  border-radius: var(--field-radius);
  background: var(--surface);
  outline: none;
  /* 16px stops iOS zooming into the page when a field is tapped. */
  font-size: max(16px, 1em);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}

.input::placeholder,
.textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }

.select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"],
.select[aria-invalid="true"] { border-color: var(--sale); }

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.textarea { min-height: 88px; resize: vertical; border-radius: min(var(--field-radius), 16px); }

/*
 * A field the eye never finds. Bots fill everything they can see in the DOM;
 * `display: none` is enough for the ones that matter here and costs nothing.
 */
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.field__error { margin-top: 5px; font-size: 12px; color: var(--sale); }

.alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert--error { background: color-mix(in srgb, var(--sale) 8%, var(--surface)); border-color: color-mix(in srgb, var(--sale) 35%, transparent); color: var(--sale); }
.alert--good { background: color-mix(in srgb, var(--success) 8%, var(--surface)); border-color: color-mix(in srgb, var(--success) 32%, transparent); color: var(--success); }

.qty {
  display: inline-flex;
  align-items: center;
  border: var(--field-bw) solid var(--line);
  border-radius: var(--field-radius);
  overflow: hidden;
  background: var(--surface);
}

.qty button {
  width: 36px;
  height: 38px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 17px;
  color: var(--muted);
}

.qty button:hover { background: var(--canvas); color: var(--ink); }
/* At the most there is to add: + stays where it is, greyed. */
.qty button:disabled { opacity: .4; cursor: not-allowed; }
.qty button:disabled:hover { background: none; color: var(--muted); }
.qty input { width: 46px; height: 38px; border: 0; text-align: center; outline: none; background: none; }

/* ---------------------------------------------------------------------
 * Product page
 * ------------------------------------------------------------------ */

.product { display: grid; gap: 28px; grid-template-columns: 1fr; }

@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
}

.gallery__main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--canvas);
}

.gallery__main img { width: 100%; height: 100%; object-fit: cover; }

/* A product with no photographs: tinted, so the square still shows against the page. */
.gallery__empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: color-mix(in srgb, var(--ink) 4%, var(--surface));
  color: var(--muted);
}

.gallery__thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }

.gallery__thumbs button {
  flex: none;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--canvas);
  cursor: pointer;
}

.gallery__thumbs button[aria-current="true"] { border-color: var(--accent); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* An offer on the product page: "Buy 1, get 1 free". */
.offer {
  display: inline-block;
  margin: 0 6px 10px 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sale) 10%, transparent);
  color: var(--sale);
  font-size: .875rem;
  font-weight: 600;
}

/* What is in a bundle, and what it saves. */
.bundle {
  margin: 4px 0 16px;
  padding: 12px 14px;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.bundle__head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 8px; }
.bundle__save { color: var(--success); font-weight: 600; }
.bundle__item { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-top: var(--bw) dashed var(--line); }
.bundle__img { width: 40px; height: 40px; flex: none; overflow: hidden; border-radius: calc(var(--radius) / 2); background: var(--canvas); }
.bundle__img img { width: 100%; height: 100%; object-fit: cover; }

/* A product's videos: in the gallery's square, black around what does not fill it. */
.gallery__video { width: 100%; height: 100%; background: #000; }
.gallery__video iframe { width: 100%; height: 100%; border: 0; display: block; }
.gallery__thumb--video { position: relative; background: #111 !important; }
.gallery__cover { position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.gallery__cover img { width: 100%; height: 100%; object-fit: cover; }
.gallery__cover .gallery__play { font-size: 42px; }
.gallery__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

/* Shoppable videos: a row of clips that scrolls sideways, each with its product. */
.video-feed { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.video-feed__item { flex: none; width: 220px; scroll-snap-align: start; }
.video-feed__clip {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
}
.video-feed__clip iframe, .video-feed__clip img { width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.video-feed__clip button { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; }
.video-feed__body { padding: 8px 2px 0; }

.product__price { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 16px; }
.product__price .price { font-size: 26px; }

.option { margin-bottom: 14px; }
.option__label { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.option__values { display: flex; flex-wrap: wrap; gap: 8px; }

.swatch {
  min-height: 40px;
  padding: 8px 14px;
  border: var(--field-bw) solid var(--line);
  border-radius: var(--btn-radius);
  transition: border-color .15s var(--ease), background .15s var(--ease);
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
}

.swatch[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); font-weight: 600; }
.swatch:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

/*
 * The size guide (partials/size-guide): a link beside the sizes and the
 * merchant's chart in a dialog. A sheet from the bottom on a phone, a
 * centred panel from 640px; a wide table scrolls inside itself.
 */
.sizeg__open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.sizeg__alone { margin-bottom: 14px; }
.sizeg__alone .sizeg__open { margin-left: 0; }

.sizeg {
  width: 100%;
  max-width: 100%;
  max-height: 88vh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  /* Body lettering, whatever it sits in: a theme's capitals and wide tracking break Bangla. */
  font-size: var(--font-size, 15px);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.sizeg::backdrop { background: rgba(10, 12, 16, .55); }

.sizeg__panel { padding: 16px 16px max(16px, env(safe-area-inset-bottom)); }
.sizeg__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sizeg__title { margin: 6px 0 0; font-size: calc(1.15rem * var(--scale)); }

.sizeg__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.sizeg__close:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.sizeg__note { margin: 4px 0 0; }
.sizeg__block { margin-top: 16px; }
.sizeg__subtitle { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.sizeg__scroll { overflow-x: auto; border: var(--bw) solid var(--line); border-radius: var(--radius); }
.sizeg__table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.sizeg__table th,
.sizeg__table td { padding: 9px 12px; border-bottom: var(--bw) solid var(--line); white-space: nowrap; }
.sizeg__table thead th { background: color-mix(in srgb, var(--ink) 5%, var(--surface)); font-size: 12px; color: var(--muted); }
.sizeg__table tbody tr:last-child th,
.sizeg__table tbody tr:last-child td { border-bottom: 0; }
.sizeg__table td { color: var(--muted); }

@media (min-width: 640px) {
  .sizeg { max-width: 640px; margin: auto; border-radius: var(--radius); }
  .sizeg__panel { padding: 22px; }
}

.buybar { display: flex; gap: 10px; align-items: center; margin: 18px 0; }
.buybar .btn { flex: 1; }

.trust { display: grid; gap: 10px; padding: 14px; border: var(--bw) solid var(--line); border-radius: var(--radius); background: var(--surface); }
.trust div { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.trust svg { flex: none; color: var(--accent); }

.prose { line-height: 1.7; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose img { border-radius: var(--radius); margin: 1em 0; }

.tabs { display: flex; gap: 4px; border-bottom: var(--bw) solid var(--line); margin-bottom: 18px; overflow-x: auto; }

.tabs button {
  padding: 10px 14px;
  border: 0;
  background: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }

/* A product's details: a label and a value per row, as a spec sheet reads. */
.details { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 0; max-width: 760px; margin: 0; }
.details dt, .details dd { padding: 10px 0; border-bottom: var(--bw) solid var(--line); margin: 0; }
.details dt { color: var(--muted); padding-right: 24px; }

/* ---------------------------------------------------------------------
 * Cart, checkout, order
 * ------------------------------------------------------------------ */

.checkout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }

@media (min-width: 900px) {
  .checkout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: start; }
}

.panel {
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 17px; }

/* The summary follows the shopper down a long address form. */
.summary { position: sticky; top: 78px; }

.line { display: flex; gap: 12px; padding: 12px 0; border-bottom: var(--bw) solid var(--line); }
.line:last-child { border-bottom: 0; }

.line__img {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--canvas);
}

.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__body { flex: 1; min-width: 0; }
.line__name { font-size: 14px; font-weight: 500; }
.line__meta { font-size: 12px; color: var(--muted); }
.line__total { font-weight: 600; white-space: nowrap; }

.totals { margin-top: 14px; padding-top: 14px; border-top: var(--bw) solid var(--line); }
.totals__row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
/* A row the page hides until it has something to say (the order form's
 * Discount and VAT, shown by its script only when above zero). The flex
 * above outweighed the `hidden` attribute, so both always showed, empty. */
.totals__row[hidden] { display: none; }
.totals__row--grand { padding-top: 12px; margin-top: 8px; border-top: var(--bw) solid var(--line); font-size: 18px; font-weight: 700; }

.paybox {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.empty { text-align: center; padding: 56px 16px; }
.empty svg { color: var(--muted); margin-bottom: 12px; }

.steps { display: grid; gap: 0; margin: 20px 0; }

.step { display: flex; gap: 14px; padding-bottom: 22px; position: relative; }
.step:last-child { padding-bottom: 0; }

.step::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.step:last-child::before { display: none; }

.step__dot {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--canvas);
  border: 2px solid var(--line);
  color: var(--muted);
}

.step--done .step__dot { background: var(--success); border-color: var(--success); color: #fff; }
.step--current .step__dot { border-color: var(--accent); color: var(--accent); }
.step strong { display: block; font-size: 14px; }
.step span { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------------
 * Pagination and filters
 * ------------------------------------------------------------------ */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }

.chip {
  flex: none;
  padding: 6px 13px;
  border: var(--bw) solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  white-space: nowrap;
}

.chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); font-weight: 600; }

/*
 * The price filter (partials/price-filter): a disclosure of two boxes in
 * whole taka, and with scripts on two thumbs on one track above them. The
 * track is two range inputs laid over each other; only their thumbs take
 * the pointer, and the filled span between them is drawn from --from/--to.
 */
.pricef {
  margin-bottom: 16px;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.pricef__toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.pricef__picked { font-size: 13px; font-weight: 400; color: var(--muted); }

.pricef__form { padding: 2px 14px 14px; }

.pricef__track {
  --from: 0%;
  --to: 100%;
  position: relative;
  height: 32px;
  margin: 0 11px 10px;
}

.pricef__track::before,
.pricef__track::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.pricef__track::before { left: 0; right: 0; background: var(--line); }
.pricef__track::after { left: var(--from); right: calc(100% - var(--to)); background: var(--accent); }

.pricef__track input[type="range"] {
  position: absolute;
  inset: 0 -11px;
  width: calc(100% + 22px);
  height: 32px;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
}

.pricef__track input[type="range"]::-webkit-slider-runnable-track { background: none; }
.pricef__track input[type="range"]::-moz-range-track { background: none; }

.pricef__track input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--ink) 30%, transparent);
  cursor: pointer;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
}

.pricef__track input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--ink) 30%, transparent);
  cursor: pointer;
  pointer-events: auto;
}

.pricef__boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pricef__box .small { display: block; margin-bottom: 4px; }
.pricef__box .input { min-width: 0; }
.pricef__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

.pagination a,
.pagination span {
  min-width: 38px;
  padding: 8px 12px;
  border: var(--bw) solid var(--line);
  border-radius: var(--btn-radius);
  background: var(--surface);
  text-align: center;
  font-size: 14px;
}

.pagination .is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); font-weight: 600; }
.pagination .is-disabled { opacity: .45; }

/* A sticky buy bar on phones, where the button scrolls away otherwise. */
.stickybuy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: var(--bw) solid var(--line);
}

/* ---------------------------------------------------------------------
 * Breakpoints
 * ------------------------------------------------------------------ */

@media (min-width: 860px) {
  .nav { display: flex; }
  .searchbar { display: block; }
  .icon-btn--menu { display: none; }
  .stickybuy { display: none; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------------
 * Funnels: the order bump on the form, the upsell on the thank-you page
 * ------------------------------------------------------------------ */

.bump {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 4px 0 16px;
  padding: 12px 14px;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  cursor: pointer;
}

.bump input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.bump__body { display: flex; flex-direction: column; gap: 2px; }

/*
 * The page's bumps as cards (partials/order-bumps): the picture beside the
 * two lines (`side`) or above them (`top`), the price on a line of its own,
 * and the size or colour to choose once ticked.
 */
.bumps { display: grid; gap: 10px; margin: 4px 0 16px; }
.bumps--top { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); align-items: start; }
.bump-card {
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.bump-card:has(input[data-bump]:checked) { border-style: solid; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.bump-card__tick { display: flex; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; }
.bump-card__tick input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.bump-card__img { flex: none; width: 72px; aspect-ratio: 1; border-radius: calc(var(--radius) * .6); overflow: hidden; background: var(--canvas); }
.bump-card__img img, .bump-card__img picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.bump-card__body { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.bump-card__headline { font-size: 1rem; line-height: 1.3; }
.bump-card__text { font-size: .9rem; color: var(--muted); line-height: 1.4; }
.bump-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 2px; }
.bump-card__price strong { font-size: 1.1rem; color: var(--accent); }
.bump-card__price s { font-size: .9rem; }
.bump-card__pick { padding: 0 14px 12px; }
.bump-card__pick .ofx-axis { margin-bottom: 8px; }
.bump-card__pick .ofx-axis:last-child { margin-bottom: 0; }
.bumps--top .bump-card__tick { flex-wrap: wrap; align-items: flex-start; }
.bumps--top .bump-card__img { order: -1; width: 100%; aspect-ratio: 4 / 3; }
.bumps--top .bump-card__tick input { margin-top: 2px; }
.bumps--top .bump-card__body { flex-basis: calc(100% - 32px); }
/* The bumps ticked, in the order's summary under its line. */
.ofx-bump-lines { padding-top: 10px; border-bottom: 0; }
/* .ofx-lines and its rows are grids, which a bare [hidden] does not beat. */
.ofx-bump-lines[hidden], .ofx-bump-lines [data-bump-line][hidden] { display: none; }

/* ---------------------------------------------------------------------
 * Paying up front: cash on delivery, an advance, or everything now
 * ------------------------------------------------------------------ */

.payopts { display: grid; gap: 10px; }

.payopt {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.payopt[hidden] { display: none; }
.payopt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.payopt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.payopt__body { display: flex; flex-direction: column; gap: 2px; }
.payopt__save { color: var(--success); font-weight: 600; }

.paysend { padding: 14px; border: var(--bw) dashed var(--line); border-radius: var(--radius); }
.paysend[hidden] { display: none; }
.wallet[hidden] { display: none; }
.paysend__fields { display: grid; gap: 0 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 14px; }
.paysend__fields .field { margin-bottom: 0; }

.wallets { display: grid; gap: 8px; }

.wallet {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.wallet:has(input:checked) { border-color: var(--accent); }
.wallet input { accent-color: var(--accent); flex: none; }
.wallet__body { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; flex: 1; min-width: 0; }
.wallet__number { font-size: 16px; font-weight: 700; letter-spacing: .02em; }

.wallet__copy {
  flex: none;
  padding: 6px 10px;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  background: var(--canvas);
  cursor: pointer;
}

.upsell {
  display: grid;
  gap: 16px;
  grid-template-columns: 96px 1fr;
  align-items: center;
  border: 2px solid var(--accent);
}

.upsell__img img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius); }
.upsell__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.upsell__actions form { margin: 0; }

/* A funnel's several offers (partials/upsell-offers): one after another, or a list. */
.upsell-offers { border: 2px solid var(--accent); }
.upsell-offers .upsell { padding: 0; border: 0; background: none; margin: 0; }
.upsell-offers--list .upsell + .upsell { margin-top: 16px; padding-top: 16px; border-top: var(--bw) solid var(--line); }
.upsell-offers__title { margin-bottom: 12px; }
.upsell-offers__none { margin-top: 16px; }
.upsell__step { margin: 0 0 4px; }
.upsell__form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.upsell__pick { flex-basis: 100%; margin-bottom: 4px; }

/* ---------------------------------------------------------------------
 * Support: reporting a problem, and a ticket's thread
 *
 * Tokens only, like everything above, so it takes on every theme.
 * ------------------------------------------------------------------ */

.support { max-width: 640px; margin: 0 auto; }

.support__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 4px; }

.support__status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: var(--bw) solid var(--line);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
}

.support__status--open,
.support__status--on_hold { border-color: var(--accent); color: var(--accent); }
.support__status--pending { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.support__status--resolved { border-color: var(--success); color: var(--success); }
.support__status--closed { color: var(--muted); }

.thread { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 22px; }

.bubble {
  max-width: 88%;
  padding: 10px 14px;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-wrap: anywhere;
}

/* The shopper's own words sit on the right, the shop's on the left. */
.bubble--you { align-self: flex-end; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.bubble--shop { align-self: flex-start; }

.bubble__who { margin-bottom: 4px; font-size: 12px; font-weight: 700; }
.bubble__who .muted { font-weight: 400; }
.bubble__body { font-size: 14px; }

.bubble__photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bubble__photos img { width: 96px; height: 96px; object-fit: cover; border: var(--bw) solid var(--line); border-radius: var(--radius); }
/* ---------------------------------------------------------------------
 * Section style: the wrapper SectionStyle draws around a styled section
 *
 * Applied outside the section's own template, so it works under every
 * theme. Values arrive as custom properties set from checked colours and
 * numbers (--sx-bg, --sx-from, --sx-to, --sx-angle, --sx-ink); everything
 * else is a class from a fixed list.
 * ------------------------------------------------------------------ */

.sx { position: relative; isolation: isolate; }
.sx > :not(.sx__bg):not(.sx__scrim) { position: relative; z-index: 1; }

.sx--pt-none > :not(.sx__bg):not(.sx__scrim) { padding-top: 0; }
.sx--pt-sm > :not(.sx__bg):not(.sx__scrim) { padding-top: 16px; }
.sx--pt-md > :not(.sx__bg):not(.sx__scrim) { padding-top: 40px; }
.sx--pt-lg > :not(.sx__bg):not(.sx__scrim) { padding-top: 72px; }
.sx--pt-xl > :not(.sx__bg):not(.sx__scrim) { padding-top: 112px; }
.sx--pb-none > :not(.sx__bg):not(.sx__scrim) { padding-bottom: 0; }
.sx--pb-sm > :not(.sx__bg):not(.sx__scrim) { padding-bottom: 16px; }
.sx--pb-md > :not(.sx__bg):not(.sx__scrim) { padding-bottom: 40px; }
.sx--pb-lg > :not(.sx__bg):not(.sx__scrim) { padding-bottom: 72px; }
.sx--pb-xl > :not(.sx__bg):not(.sx__scrim) { padding-bottom: 112px; }

.sx--bg { background: var(--sx-bg); }
.sx--gradient { background: linear-gradient(var(--sx-angle, 180deg), var(--sx-from), var(--sx-to)); }

.sx__bg, .sx__scrim { position: absolute; inset: 0; z-index: 0; }
.sx__bg img { width: 100%; height: 100%; object-fit: cover; }
.sx__scrim { background: #000; }

/* Text colour, and the theme's ink and muted tones with it. */
.sx--ink { color: var(--sx-ink); --ink: var(--sx-ink); --muted: color-mix(in srgb, var(--sx-ink) 72%, transparent); }

.sx--align-left { text-align: left; }
.sx--align-center { text-align: center; }
.sx--align-right { text-align: right; }
.sx--align-center .section__head, .sx--align-center .hero__inner { margin-left: auto; margin-right: auto; text-align: center; }

.sx--w-narrow { --container: 760px; }
.sx--w-wide { --container: 1440px; }
.sx--w-full { --container: none; }

@media (max-width: 859px) { .sx--hide-mobile { display: none; } }
@media (min-width: 860px) { .sx--hide-desktop { display: none; } }

/* Entrance, for shoppers who have not asked their device for less motion. */
@media (prefers-reduced-motion: no-preference) {
  .sx-anim [data-sx-animate] { opacity: 0; transition: opacity .6s ease, transform .6s ease; }
  .sx-anim [data-sx-animate="slide-up"] { transform: translateY(28px); }
  .sx-anim [data-sx-animate].is-in { opacity: 1; transform: none; }
}

/* The custom code frame: a plain box the code draws inside. */
.custom-code__frame { display: block; width: 100%; border: 0; background: transparent; }

/* ---------------------------------------------------------------------
 * Trade account: three figures side by side, and plain tables for the
 * statement and the invoices still to pay.
 * ------------------------------------------------------------------ */
.statgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 16px; }
.statgrid__value { font-size: 1.6rem; font-weight: 700; }
.ledger-wrap { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th, .ledger td { padding: 8px 6px; border-bottom: var(--bw) solid var(--line); text-align: left; vertical-align: top; }
.ledger th { font-size: 12px; color: var(--muted); font-weight: 600; }
.ledger .right { text-align: right; }
.late { color: var(--danger, #b42318); }
.trade-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
 * Easy checkout: two fields to a row, delivery areas to tap, and the
 * optional details folded away
 *
 * Shared by the checkout page and the landing order form. Shapes and lines
 * come from the design controls, so a pill-shaped shop gets pill-shaped
 * area cards too.
 * ------------------------------------------------------------------ */

.field-row { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field__label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; }
.panel__lead { margin: -4px 0 14px; }

.areas { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.area {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px 12px 42px;
  border: var(--field-bw) solid var(--line);
  border-radius: var(--field-radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}

/* Choice cards are labels too, and `.field label` (display:block, small bold
   text) outranks a bare class. Without this the card's text sits at the top
   instead of centred beside the radio. */
.field label:is(.area, .pack, .payopt) { margin-bottom: 0; font-size: inherit; font-weight: inherit; }
.field label.area { display: flex; justify-content: center; }
.field label.pack { display: grid; }
.field label.payopt { display: flex; }

/* A pill is too round for two lines of text; the card keeps a gentle curve. */
:root[data-field-shape="pill"] .area { border-radius: 18px; }

.area input { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.area__name { font-weight: 600; font-size: 14px; }
.area__price { font-size: 13px; color: var(--muted); }
.area__price[hidden] { display: none; }
.area:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.area:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.area:has(input:checked) .area__price { color: var(--accent); font-weight: 600; }

/* District search: a box over the district list, matches in both scripts. */
.district-search { position: relative; }
.district-search__native { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.district-search__input {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.district-search__list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: var(--field-bw) solid var(--line);
  border-radius: var(--field-radius);
  box-shadow: 0 12px 28px rgba(16, 24, 40, .14);
}
.district-search__list [role="option"] {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: calc(var(--field-radius) * .7);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.district-search__list [role="option"]:hover,
.district-search__list [aria-selected="true"] { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); }
.district-search__other { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.district-search__empty { padding: 12px; color: var(--muted); font-size: 14px; text-align: center; }

.more { margin: 2px 0 14px; }
.more > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: var(--field-bw) solid currentColor; font-size: 13px; line-height: 1; }
.more[open] > summary::before { content: "\2212"; }
.more[open] > summary { margin-bottom: 10px; }

.rate { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: var(--bw) solid var(--line); cursor: pointer; }
.rate:last-child { border-bottom: 0; }
.rate input { accent-color: var(--accent); margin-top: 3px; }
.rate__body { flex: 1; }

/* ---------------------------------------------------------------------
 * The landing order form: a one-page checkout
 *
 * Packs to tap, the rider's details, and the order with one big button —
 * side by side on a wide screen, stacked on a phone, where a bar at the
 * bottom brings the shopper back to the form from anywhere on the page.
 * ------------------------------------------------------------------ */

.ofx { scroll-margin-top: 72px; }
.ofx__head { max-width: 640px; margin-left: auto; margin-right: auto; }

.ofx__grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .ofx__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
}

.ofx__main { display: grid; gap: 16px; min-width: 0; }
.ofx__step { margin: 0; min-width: 0; }
.panel + .panel.ofx__step { margin-top: 0; }

.ofx__legend {
  display: flex;
  align-items: center;
  gap: 10px;
  float: left;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  font-family: var(--font-heading);
  font-weight: var(--heading-weight, 700);
  font-size: calc(17px * var(--scale));
}
.ofx__legend + * { clear: both; }

.ofx__num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 14px;
  font-family: var(--font-body);
}

.packs { display: grid; gap: 10px; }

.pack {
  position: relative;
  display: grid;
  grid-template-columns: auto 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: var(--field-bw) solid var(--line);
  border-radius: max(var(--radius, 10px), 4px);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}

.pack:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.pack:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.pack input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }

.pack__img { width: 56px; height: 56px; border-radius: calc(max(var(--radius, 10px), 4px) * .7); overflow: hidden; background: var(--canvas); }
.pack__img img { width: 100%; height: 100%; object-fit: cover; }
.pack__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pack__name { font-weight: 600; line-height: 1.35; }
.pack__save { align-self: flex-start; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); font-size: 12px; font-weight: 700; }
.pack__price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.pack__price strong { font-size: 17px; }
.pack__price s { font-size: 12.5px; }

.pack__flag {
  position: absolute;
  top: -10px;
  right: 14px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--sale);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
}

.ofx__summary-title { margin-bottom: 4px; font-size: calc(16px * var(--scale)); }

.qty--sm button { width: 32px; height: 32px; font-size: 16px; }
.qty--sm input { width: 40px; height: 32px; font-size: 15px; }

.ofx__submit { margin-top: 16px; font-size: 17px; }
.ofx__submit-total { font-weight: 600; opacity: .9; }

.assure { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: var(--bw) dashed var(--line); display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.assure li { display: flex; gap: 8px; align-items: flex-start; }
.assure li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: color-mix(in srgb, var(--success) 14%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23067647' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 10px no-repeat; }

.ofx-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: var(--bw) solid var(--line);
  box-shadow: 0 -8px 24px -16px rgba(16, 24, 40, .35);
}
.ofx-bar[hidden] { display: none; }
/* An order form with a style of its own is drawn inside .sx, whose children
   are put back in the flow (position: relative) and padded. Its bar stays
   fixed; partials/section also lifts it out of the wrapper, so the wrapper's
   reveal animation (a transform, an opacity) cannot trap or hide it. */
.sx > .ofx-bar:not(.sx__bg):not(.sx__scrim) { position: fixed; z-index: 35; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.ofx-bar__price { display: flex; flex-direction: column; line-height: 1.2; }
.ofx-bar__price strong { font-size: 18px; }
.ofx-bar .btn { flex: 1; max-width: 240px; }
@media (min-width: 860px) { .ofx-bar { display: none !important; } }

/* ---------------------------------------------------------------------
 * The order form's option cards and buttons (partials/order-options), its
 * lines when it takes several items (partials/order-lines), its package
 * price row and WhatsApp button, and the package price cards
 * (sections/packages). Drawn only by a form or page with those settings
 * on: a form as it always was has none of these classes.
 *
 * A card is ticked by tapping anywhere on it; the native box is kept for
 * the keyboard and screen readers, drawn as the round tick top right. Its
 * quantity shows once it is ticked (the script marks it .is-on; :has()
 * shows it without the script too). Buttons are at least 44px high.
 * ------------------------------------------------------------------ */

.ofx-pick__hint { margin: -4px 0 12px; }

/* Two cards a row on a 360px phone, more as the form widens (a form of two or three keeps them in one row: below). */
.ofx-opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(128px, 100%), 1fr)); }

.ofx-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: var(--field-bw) solid var(--line);
  border-radius: max(var(--radius, 10px), 4px);
  background: var(--surface);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
.ofx-opt:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.ofx-opt.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.ofx-opt:has(.ofx-opt__input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.ofx-opt:has(.ofx-opt__input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ofx-opt.is-out { opacity: .55; }
/* As many different items ticked as one order takes: the others wait until one is unticked. */
.ofx-opt.is-capped { opacity: .55; }

.ofx-opt__pick { display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.ofx-opt.is-out .ofx-opt__pick, .ofx-opt.is-capped .ofx-opt__pick { cursor: not-allowed; }
.ofx-pick__cap { margin: 10px 0 0; font-weight: 600; }
.ofx-opt__input { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; margin: 0; opacity: 0; }

.ofx-opt__img { display: block; width: 100%; aspect-ratio: 1; border-radius: calc(max(var(--radius, 10px), 4px) * .7); overflow: hidden; background: var(--canvas); }
.ofx-opt__img img { width: 100%; height: 100%; object-fit: cover; }
.ofx-opt__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ofx-opt__name { display: flex; align-items: center; gap: 6px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
/* A card without a picture has its name at the top, beside the tick: keep the words clear of it ("Boy / S / Red"). */
.ofx-opt__pick:not(:has(.ofx-opt__img)) .ofx-opt__body { padding-right: 28px; }
.ofx-opt__dot { flex: none; display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.ofx-opt__price { display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: baseline; }
.ofx-opt__price strong { font-size: 16px; }
.ofx-opt__price s { font-size: 12.5px; }
.ofx-opt__out { color: var(--sale); font-weight: 600; }
/* What a choice made once for the order took off it, said by the choice (layout choices_with_details). */
.ofx-choice-dropped { margin: 8px 0 0; color: var(--sale); font-weight: 600; }

.ofx-opt__check { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); pointer-events: none; }
.ofx-opt__check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid transparent; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.ofx-opt.is-on .ofx-opt__check { border-color: var(--accent); background: var(--accent); }
.ofx-opt.is-on .ofx-opt__check::after { border-color: var(--accent-contrast); }
.ofx-opt:has(.ofx-opt__input:checked) .ofx-opt__check { border-color: var(--accent); background: var(--accent); }
.ofx-opt:has(.ofx-opt__input:checked) .ofx-opt__check::after { border-color: var(--accent-contrast); }

/* The quantity fills the card's width, so it fits however narrow the card. */
.ofx-opt__qty { display: none; align-self: stretch; margin-top: auto; }
.ofx-opt.is-on .ofx-opt__qty { display: flex; }
.ofx-opt:has(.ofx-opt__input:checked) .ofx-opt__qty { display: flex; }
.ofx-opt__qty button { flex: none; width: 40px; height: 40px; }
.ofx-opt__qty input { flex: 1 1 auto; min-width: 0; width: auto; height: 40px; }

/*
 * A narrow card, whatever the screen (three in a row in a narrow form
 * column, or the 128px cards of a wide one): the quantity measures itself,
 * and under 130px its buttons get smaller and the number loses its arrows,
 * so "12" still shows whole. Browsers without container queries keep it as
 * it was. The phone rules below make three cards smaller again.
 */
.ofx-opt__qty { container-type: inline-size; }
@container (max-width: 129.98px) {
  .ofx-opt__qty button { width: 30px; }
  .ofx-opt__qty input { padding: 0; -moz-appearance: textfield; appearance: textfield; }
  .ofx-opt__qty input::-webkit-inner-spin-button,
  .ofx-opt__qty input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
}
@container (max-width: 99.98px) {
  .ofx-opt__qty button { width: 24px; }
}

/*
 * Two or three cards stay in one row on a phone too; four and more wrap as
 * before. Each column is the usual 128px at the least where the row has
 * room, and a half or a third of the row where it has not, so a third card
 * never drops under the other two (the 8px and 11px taken off leave room
 * for a gap of up to 16px). A look with wider cards names its own least
 * width in --ofx-opt-min (Amber Night: 160px from 640px). Below 340px the
 * cards wrap as they always did. Browsers without :has() keep the old grid.
 */
@media (min-width: 340px) {
  .ofx-opts:has(> :nth-child(2):last-child) { grid-template-columns: repeat(auto-fill, minmax(min(var(--ofx-opt-min, 128px), calc(50% - 8px)), 1fr)); }
  .ofx-opts:has(> :nth-child(3):last-child) { grid-template-columns: repeat(auto-fill, minmax(min(var(--ofx-opt-min, 128px), calc(33.333% - 11px)), 1fr)); }
}

/*
 * Three in a row on a phone are 85-105px wide: the picture, the colour dot
 * and name, the price, the tick and the quantity (- 1 +) are drawn smaller
 * so each still fits its card. Buttons stay 24px wide at the least.
 */
@media (min-width: 340px) and (max-width: 479.98px) {
  .ofx-opts:has(> :nth-child(3):last-child) { gap: 8px; }
  .ofx-opts:has(> :nth-child(3):last-child) > .ofx-opt { gap: 6px; padding: 6px; }
  .ofx-opts:has(> :nth-child(3):last-child) .ofx-opt__pick { gap: 6px; }
  .ofx-opts:has(> :nth-child(3):last-child) .ofx-opt__pick:not(:has(.ofx-opt__img)) .ofx-opt__body { padding-right: 24px; }
  .ofx-opts:has(> :nth-child(3):last-child) .ofx-opt__name { gap: 4px; font-size: 13.5px; line-height: 1.3; }
  .ofx-opts:has(> :nth-child(3):last-child) .ofx-opt__dot { width: 12px; height: 12px; }
  .ofx-opts:has(> :nth-child(3):last-child) .ofx-opt__price { gap: 0 4px; }
  .ofx-opts:has(> :nth-child(3):last-child) .ofx-opt__price strong { font-size: 14px; }
  .ofx-opts:has(> :nth-child(3):last-child) .ofx-opt__price s { font-size: 11.5px; }
  .ofx-opts:has(> :nth-child(3):last-child) .ofx-opt__out { font-size: 12px; }
  .ofx-opts:has(> :nth-child(3):last-child) .ofx-opt__check { top: 8px; right: 8px; width: 22px; height: 22px; }
  .ofx-opts:has(> :nth-child(3):last-child) .ofx-opt__check::after { left: 6px; top: 2px; width: 5px; height: 10px; border-width: 0 2px 2px 0; }
  .ofx-opts:has(> :nth-child(3):last-child) .ofx-opt__qty button { width: 24px; height: 34px; font-size: 15px; }
  .ofx-opts:has(> :nth-child(3):last-child) .ofx-opt__qty input { height: 34px; padding: 0; font-size: 14px; -moz-appearance: textfield; appearance: textfield; }
  .ofx-opts:has(> :nth-child(3):last-child) .ofx-opt__qty input::-webkit-inner-spin-button,
  .ofx-opts:has(> :nth-child(3):last-child) .ofx-opt__qty input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
}

/* The choices made once for the whole order, above the cards they decide. */
.ofx-axis { margin-bottom: 16px; }
.ofx-axis__label { margin-bottom: 8px; }
.ofx-axis__values { display: flex; flex-wrap: wrap; gap: 8px; }
.ofx-pill { position: relative; cursor: pointer; }
.ofx-pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ofx-pill__text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 52px;
  min-height: 44px;
  padding: 8px 14px;
  border: var(--field-bw) solid var(--line);
  border-radius: var(--btn-radius);
  background: var(--surface);
  font-weight: 600;
}
.ofx-pill:hover .ofx-pill__text { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.ofx-pill input:checked + .ofx-pill__text { border-color: var(--accent); background: var(--accent); color: var(--accent-contrast); }
.ofx-pill input:focus-visible + .ofx-pill__text { outline: 2px solid var(--accent); outline-offset: 2px; }
.ofx-pill.is-out .ofx-pill__text { opacity: .45; text-decoration: line-through; }
.ofx-pill input:disabled { cursor: not-allowed; }

.ofx-lines__head { border-bottom: 0; padding-bottom: 4px; }
.ofx-lines { list-style: none; margin: 0; padding: 0 0 10px; border-bottom: var(--bw) solid var(--line); display: grid; gap: 6px; }
.ofx-lines__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; font-size: 14px; }
.ofx-lines__qty { color: var(--muted); }
.ofx-lines__total { min-width: 64px; text-align: right; font-weight: 600; }

/*
 * A form selling several products: each product a group under its name and
 * picture, its own buttons (chosen once for that product) and its cards.
 * Only drawn by such a form; a form with one product has none of these.
 */
.ofx-group + .ofx-group { margin-top: 18px; padding-top: 16px; border-top: var(--bw) solid var(--line); }
.ofx-group__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ofx-group__img { flex: none; width: 48px; height: 48px; border-radius: calc(max(var(--radius, 10px), 4px) * .7); overflow: hidden; background: var(--canvas); }
.ofx-group__img img { width: 100%; height: 100%; object-fit: cover; }
.ofx-group__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ofx-group__name { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.ofx-line-img { display: block; width: 100%; height: 100%; }
.ofx-line-img[hidden] { display: none; }

.ofx__offer > span:last-child { color: var(--success); font-weight: 600; }
/* .totals__row's display would otherwise show the row while it is hidden. */
.ofx__offer[hidden] { display: none; }
.ofx__wa { margin-top: 10px; gap: 8px; }

.pkx__grid { display: grid; gap: 18px 16px; padding-top: 12px; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.pkx__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px 16px;
  text-align: center;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.pkx__card.is-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.pkx__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pkx__name { font-weight: 700; font-size: calc(18px * var(--scale)); line-height: 1.35; }
.pkx__price { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; justify-content: center; }
.pkx__price strong { font-size: calc(26px * var(--scale)); font-weight: 800; line-height: 1.2; color: color-mix(in srgb, var(--accent) 82%, var(--ink)); }
.pkx__price s { font-size: 14px; }
.pkx__save { padding: 1px 10px; border-radius: 999px; background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); font-size: 13px; font-weight: 700; }
.pkx__free { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pkx__free svg { width: 16px; height: 16px; }
.pkx__buy { margin-top: auto; }
.pkx__note { margin: 16px 0 0; text-align: center; }

/* ---------------------------------------------------------------------
 * Landing sections: the blocks a cash-on-delivery page here is built from
 *
 * Pill band headings, ticks down a list, the struck-through price beside
 * the offer, the order / call / WhatsApp pills, one big picture and a row of
 * pictures to swipe. Phone first — every size below is right at 360px and
 * grows from there — and every colour a theme token, so each one takes on
 * the shop's palette. Bangla sits taller than Latin (its vowel signs reach
 * above and below the line), so the line heights here are looser than the
 * headings above; a conjunct clipped by its own line box reads as a typo.
 * ------------------------------------------------------------------ */

.lp-icon { display: inline-flex; flex: none; }
.lp-icon svg { display: block; }

/* Headline: a band, plain, or on a soft tint. */
.lp-head { text-align: center; }
.lp-head__text { margin: 0; line-height: 1.45; letter-spacing: 0; text-wrap: balance; }
.lp-head__sub { margin: 10px auto 0; max-width: 640px; color: var(--muted); line-height: 1.7; white-space: pre-line; }

.lp-head--md .lp-head__text { font-size: calc(clamp(1.0625rem, 1rem + .4vw, 1.25rem) * var(--scale)); }
.lp-head--lg .lp-head__text { font-size: calc(clamp(1.25rem, 1.05rem + 1vw, 1.75rem) * var(--scale)); }
.lp-head--xl .lp-head__text { font-size: calc(clamp(1.5rem, 1.15rem + 1.8vw, 2.375rem) * var(--scale)); }

.lp-head--band .lp-head__text {
  display: block;
  width: 100%;
  padding: 12px clamp(20px, 5vw, 40px);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  box-shadow: 0 8px 22px -16px color-mix(in srgb, var(--accent) 80%, transparent);
}
.lp-head--band.lp-head--xl .lp-head__text { padding-top: 16px; padding-bottom: 16px; }

.lp-head--plain .lp-head__text { color: var(--ink); font-weight: 800; }

.lp-head--soft {
  padding: clamp(18px, 4vw, 28px) clamp(16px, 4vw, 32px);
  border-radius: clamp(16px, calc(var(--radius, 10px) * 2), 28px);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: var(--bw) solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.lp-head--soft .lp-head__text { color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.lp-head--soft .lp-head__sub { color: var(--ink); opacity: .85; }

/* Pills: order (solid), call (outlined), WhatsApp (outlined green). */
.lp-pill {
  --lp-wa: #0b7a3b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: filter .15s var(--ease), background .15s var(--ease), color .15s var(--ease), transform .08s ease, box-shadow .15s var(--ease);
}
.lp-pill:hover { filter: brightness(.95); }
.lp-pill:active { transform: translateY(1px); }
.lp-pill:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px; }

.lp-pill--order { box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--accent) 85%, transparent); }

.lp-pill--outline { background: var(--surface); color: var(--accent); }
.lp-pill--outline:hover { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); filter: none; }

.lp-pill--whatsapp { background: var(--surface); color: var(--lp-wa); border-color: var(--lp-wa); }
.lp-pill--whatsapp:hover { background: color-mix(in srgb, var(--lp-wa) 8%, var(--surface)); filter: none; }
.lp-pill--whatsapp:focus-visible { outline-color: color-mix(in srgb, var(--lp-wa) 45%, transparent); }

.lp-cta { display: grid; gap: 12px; max-width: 420px; margin: 0 auto; }
.lp-cta .lp-pill { width: 100%; }
.lp-cta__note { margin: 12px auto 0; max-width: 520px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.7; }

@media (min-width: 640px) {
  .lp-cta { display: flex; flex-wrap: wrap; justify-content: center; max-width: none; }
  .lp-cta .lp-pill { width: auto; min-width: 220px; }
}

/* A one-page order's buy button inside the platform's product block. */
.buybar .lp-pill { flex: 1; }

/* Price: the regular price struck through, the offer large on a soft ring. */
.lp-price { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.lp-price__line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px; margin: 0; line-height: 1.4; }
.lp-price__label { font-weight: 600; }
.lp-price__line--regular { color: var(--muted); font-size: 17px; }
.lp-price__was { text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--sale, var(--muted)) 75%, transparent); }

.lp-price__line--offer {
  padding: 8px 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 38%, transparent);
  font-size: 18px;
}
.lp-price__now { font-size: calc(clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem) * var(--scale)); font-weight: 800; line-height: 1.15; color: color-mix(in srgb, var(--accent) 82%, var(--ink)); }

.lp-price__save {
  margin: 0;
  padding: 2px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 12%, transparent);
  color: var(--success);
  font-size: 14px;
  font-weight: 700;
}
.lp-price__note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.lp-price .lp-pill { margin-top: 6px; width: 100%; max-width: 420px; }

/* Checklist: a tick in a circle of the shop's colour, then the point. */
.lp-checklist__body { display: grid; gap: 20px; align-items: center; max-width: 880px; margin: 0 auto; }
.lp-checklist__body--image { max-width: none; }
.lp-checklist__media { border-radius: clamp(12px, calc(var(--radius, 10px) * 1.6), 20px); overflow: hidden; background: var(--canvas); }
.lp-checklist__media img { width: 100%; height: auto; }

@media (min-width: 860px) {
  .lp-checklist__body--image { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .lp-checklist__body--right .lp-checklist__media { order: 2; }
}

.lp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lp-checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.7; }
.lp-checks__tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
}

@media (min-width: 640px) {
  .lp-checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
}

/* One picture. The upload's width and height on the <img> hold its place. */
.lp-image { margin: 0 auto; }
.lp-image img { width: 100%; height: auto; }
.lp-image--narrow { max-width: 560px; }
.lp-image--normal { max-width: 100%; }
.lp-image--full { max-width: none; }
.lp-image--rounded { border-radius: 16px; overflow: hidden; }

/* A gallery picture in a column of one keeps its own shape. */
.grid--1 { grid-template-columns: minmax(0, 1fr); }
.lp-gallery__one img { width: 100%; height: auto; }

/* Carousel: scroll-snap, the next slide peeking in; arrows for a mouse. */
.lp-carousel { position: relative; }

.lp-carousel__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.lp-carousel__track::-webkit-scrollbar { display: none; }
.lp-carousel__track:focus-visible { outline-offset: 4px; }

.lp-carousel__slide {
  flex: 0 0 85%;
  scroll-snap-align: start;
  border-radius: clamp(10px, calc(var(--radius, 10px) * 1.4), 18px);
  overflow: hidden;
  background: var(--canvas);
}
.lp-carousel__slide img { width: 100%; height: auto; }

@media (min-width: 640px) {
  .lp-carousel--1 .lp-carousel__slide { flex-basis: 100%; }
  .lp-carousel--2 .lp-carousel__slide { flex-basis: calc((100% - 12px) / 2); }
  .lp-carousel--3 .lp-carousel__slide,
  .lp-carousel--4 .lp-carousel__slide { flex-basis: calc((100% - 24px) / 3); }
}

@media (min-width: 960px) {
  .lp-carousel--4 .lp-carousel__slide { flex-basis: calc((100% - 36px) / 4); }
}

.lp-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: var(--bw) solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: opacity .15s var(--ease);
}
.lp-carousel__arrow--prev { left: 8px; }
.lp-carousel__arrow--next { right: 8px; }
.lp-carousel__arrow[hidden] { display: none; }
.lp-carousel__arrow:disabled { opacity: 0; pointer-events: none; }

/* A finger swipes; arrows on a touch screen only cover the picture. */
@media (hover: none) { .lp-carousel__arrow { display: none; } }

/* Pictures one at a time (partials/lp-slides): a whole picture per swipe, and a dot for each. */
.lp-slides .lp-carousel__slide { flex-basis: 100%; }
/* Twenty dots are wider than a phone: they wrap onto a second row rather than push the page sideways. */
.lp-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-top: 8px; }
.lp-dots[hidden] { display: none; }
.lp-dots__dot { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.lp-dots__dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 25%, transparent);
  transition: width .2s var(--ease), background-color .2s var(--ease);
}
.lp-dots__dot[aria-current="true"]::before { width: 20px; background: var(--accent); }
.lp-dots__dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-radius: 999px; }

/* Words picked out in a heading (heading_highlight): a marker stroke under them, the text its own colour. */
mark.hl {
  padding: 0 .08em;
  background: linear-gradient(to top, color-mix(in srgb, var(--accent) 32%, transparent) 0 .4em, transparent .4em);
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.lp-head--band mark.hl { background-image: linear-gradient(to top, color-mix(in srgb, var(--accent-contrast) 35%, transparent) 0 .4em, transparent .4em); }

/* A heading above the order and call buttons. */
.lp-cta__head { margin-bottom: 16px; }

/* A video that plays when tapped (sections/video), in its shape. */
.lp-video { position: relative; max-width: 840px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.lp-video--portrait { max-width: 360px; aspect-ratio: 9 / 16; }
.lp-video--square { max-width: 560px; aspect-ratio: 1; }
.lp-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.lp-video__play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; background: #000; color: #fff; cursor: pointer; }
.lp-video__play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-video__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  transition: transform .15s var(--ease);
}
.lp-video__icon svg { margin-left: 3px; }
.lp-video__play:hover .lp-video__icon { transform: scale(1.06); }
.lp-video__play:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* A size chart (sections/size_chart): each table scrolls inside itself; the sizes are pills. */
.lp-size__block + .lp-size__block { margin-top: 24px; }
.lp-size__title { margin: 0 0 10px; font-size: 16px; text-align: center; }
.lp-size__scroll {
  max-width: 880px;
  margin: 0 auto;
  overflow-x: auto;
  border: var(--bw) solid var(--line);
  border-radius: clamp(10px, calc(var(--radius, 10px) * 1.4), 18px);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.lp-size__table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.lp-size__table th, .lp-size__table td { padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lp-size__table thead th { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--ink); font-weight: 700; }
.lp-size__table tbody tr:last-child > * { border-bottom: 0; }
.lp-size__table tbody th { font-weight: 600; }
.lp-size__pill { display: inline-block; min-width: 2.6em; padding: 3px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-contrast); font-weight: 700; }
.lp-size__note { max-width: 640px; margin: 14px auto 0; color: var(--muted); font-size: 14px; line-height: 1.7; text-align: center; white-space: pre-line; }

@media (prefers-reduced-motion: reduce) {
  .lp-dots__dot::before, .lp-video__icon { transition: none; }
}

/* A one-page order's product card: the button goes to the form. */
.lp-order-card__button { margin-top: 8px; }

/* ---------------------------------------------------------------------
 * Bangla
 *
 * Bengali script stacks vowel signs above and below the letter, and the
 * tight line-height and negative tracking that suit Latin headings make
 * those touch and crowd. A page in Bangla (html lang="bn") gets room.
 * ------------------------------------------------------------------ */

:lang(bn) :is(h1, h2, h3, h4) { line-height: 1.35; letter-spacing: 0; }

/* ---------------------------------------------------------------------
 * The shop's floating WhatsApp button (partials/whatsapp-button)
 *
 * Bottom-right, and lifted above a phone's sticky bar — the order form's
 * (.ofx-bar, while it shows) and the product page's (.stickybuy) — so it
 * never sits on the button that takes the order. Under the menu drawer.
 * ------------------------------------------------------------------ */

.chat-fab {
  position: fixed;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(16, 24, 40, .45);
  transition: transform .15s ease, bottom .2s ease;
}
.chat-fab:hover { transform: scale(1.06); color: #fff; }
.chat-fab:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (max-width: 859px) {
  body:has(.ofx-bar:not([hidden])) .chat-fab,
  body:has(.stickybuy) .chat-fab { bottom: calc(88px + env(safe-area-inset-bottom)); }
}

@media print { .chat-fab { display: none; } }

/* ---------------------------------------------------------------------
 * Review screenshots (sections/review_images)
 *
 * Customers' Messenger, Facebook and WhatsApp messages, each shown whole
 * at its own shape on a light card: contained, never cropped, and capped
 * in height so one tall phone screenshot does not fill the screen. A row
 * to swipe on a phone (the gallery carousel's track and arrows); with
 * .rvx--grid, side by side on a computer. A tap opens it full size.
 * ------------------------------------------------------------------ */

.rvx { position: relative; }
.rvx__track { align-items: flex-start; gap: 14px; padding: 2px 2px 10px; }

.rvx__shot { flex: 0 0 72%; margin: 0; scroll-snap-align: start; }
.rvx--1 .rvx__shot { flex-basis: 82%; }

.rvx__open {
  display: block;
  overflow: hidden;
  border: var(--field-bw) solid var(--line);
  border-radius: clamp(10px, calc(var(--radius, 10px) * 1.4), 18px);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  cursor: zoom-in;
}
.rvx__open img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 640px);
  object-fit: contain;
}

.rvx__note { margin: 14px 0 0; text-align: center; color: var(--muted); }

@media (min-width: 640px) {
  .rvx--1 .rvx__shot { flex-basis: min(100%, 480px); }
  .rvx--2 .rvx__shot { flex-basis: calc((100% - 14px) / 2); }
  .rvx--3 .rvx__shot { flex-basis: calc((100% - 28px) / 2.4); }
}

@media (min-width: 960px) {
  .rvx--3 .rvx__shot { flex-basis: calc((100% - 28px) / 3); }
}

/* Grid on a computer: every screenshot in view, no row to scroll. */
@media (min-width: 768px) {
  .rvx--grid .rvx__track {
    display: grid;
    grid-template-columns: repeat(var(--rvx-cols, 2), minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
  }
  .rvx--grid.rvx--1 .rvx__track { --rvx-cols: 1; max-width: 480px; margin-inline: auto; }
  .rvx--grid.rvx--3 .rvx__track { --rvx-cols: 3; }
  .rvx--grid .lp-carousel__arrow { display: none; }
}

/* Full size, over the page; around the picture or Escape closes it. */
.rvx__dialog {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
}
.rvx__dialog[open] { display: flex; align-items: center; justify-content: center; }
.rvx__dialog::backdrop { background: rgba(10, 12, 16, .88); }
.rvx__full {
  display: block;
  max-width: min(100%, 760px);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  cursor: default;
}
.rvx__close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  cursor: pointer;
}
.rvx__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* ------------------------------------------------- end Review screenshots */

/* ---------------------------------------------------------------------
 * Slider (sections/slider)
 *
 * The home page's banner slider. Container width with rounded corners on
 * a computer; edge to edge and square-cornered on a phone, where every
 * pixel of width is the banner's. Its own class rather than .section, so
 * no theme's section padding changes how close it sits to the header.
 * The frame's shape is --slx-ratio (computer) and --slx-ratio-phone,
 * set by the renderer; a slide fills it, cropped (cover) or whole on a
 * soft background (contain). Dots, arrows and a pause button appear only
 * once the script is there to make them work.
 * ------------------------------------------------------------------ */

.slx { padding: 0 0 8px; }

.slx__wrap { width: 100%; max-width: var(--container, 1200px); margin: 0 auto; }

.slx__frame { position: relative; overflow: hidden; background: color-mix(in srgb, var(--ink) 5%, var(--surface)); }

.slx__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.slx__track::-webkit-scrollbar { display: none; }

.slx__slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: var(--slx-ratio-phone, 2);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.slx__link { display: block; width: 100%; height: 100%; }
.slx__link:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

.slx__img { width: 100%; height: 100%; object-fit: cover; }
.slx--contain .slx__img { object-fit: contain; }

.slx__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s var(--ease);
}
.slx__arrow--prev { left: 12px; }
.slx__arrow--next { right: 12px; }
.slx__arrow[hidden] { display: none; }
.slx__frame:hover .slx__arrow,
.slx__arrow:focus-visible { opacity: 1; }

/* A finger swipes; on a touch screen the arrows would only cover the banner. */
@media (hover: none) { .slx__arrow { display: none; } }

.slx__controls { display: flex; justify-content: center; align-items: center; gap: 2px; padding-top: 6px; }
.slx__controls[hidden] { display: none; }

/* A 24px target around an 8px dot; the current one is a longer bar in the accent. */
.slx__dot,
.slx__pause {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.slx__dot span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 28%, transparent);
  transition: width .2s var(--ease), background-color .2s var(--ease);
}
.slx__dot[aria-current="true"] span { width: 20px; background: var(--accent); }
.slx__pause { margin-left: 4px; }
.slx__pause:hover { color: var(--ink); }
.slx__play-icon,
.slx--stopped .slx__pause-icon { display: none; }
.slx--stopped .slx__play-icon { display: block; }

@media (min-width: 640px) {
  .slx { padding: 20px 0 8px; }
  .slx__wrap { padding: 0 16px; }
  .slx__frame { border-radius: clamp(10px, calc(var(--radius, 10px) * 1.4), 18px); }
  .slx__slide { aspect-ratio: var(--slx-ratio, 8 / 3); }
  /* A square banner as wide as the page would be taller than the screen. */
  .slx--square .slx__frame { max-width: 720px; margin: 0 auto; }
  .slx__controls { padding-top: 8px; }
}

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

/*
 * The full-width band (aspect: band): edge to edge with no rounded corners
 * and no gap above it, at a fixed height that grows with the screen. Tall
 * is 190px on a phone to 560px on a large screen, slim 160px to 460px; each
 * picture fills it, trimmed evenly from the sides. A phone keeps a phone
 * picture's own shape when the slides have one (--slx-ratio-phone).
 */
.slx--band { --slx-band: clamp(190px, 44vw, 560px); padding: 0 0 8px; }
.slx--band-slim { --slx-band: clamp(160px, 37vw, 460px); }
.slx--band .slx__wrap { max-width: none; padding: 0; }
.slx--band .slx__frame { border-radius: 0; }
.slx--band .slx__slide { aspect-ratio: auto; height: var(--slx-band); }
.slx--band .slx__arrow--prev { left: 16px; }
.slx--band .slx__arrow--next { right: 16px; }
.slx--band-phone .slx__slide { aspect-ratio: var(--slx-ratio-phone, 0.8); height: auto; }

@media (min-width: 640px) {
  .slx--band { padding: 0 0 8px; }
  .slx--band-phone .slx__slide { aspect-ratio: auto; height: var(--slx-band); }
}

/* ------------------------------------------------------------ end Slider */

/* ---------------------------------------------------------------------
 * Landing theme: the one look every landing page shares
 *
 * Applied through a single hook, `body.lp-theme`, which every layout (the
 * platform's and each vault theme's) sets when the page's template is
 * "landing". Nothing here reaches any other page. Change a landing page's
 * look here, once, and every shop's landing pages follow; the values below
 * are derived from the shop's own tokens, so each keeps its colours.
 *
 * - Spacing: blocks sit close, as pages that sell here do — about 16px apart
 *   on a phone and 28px on a computer (--lp-gap, split over the two blocks'
 *   facing edges). A headline sits right on the block it titles. A section's
 *   own padding from its style (sx--pt-*, sx--pb-*) is more specific and
 *   still wins.
 * - Headline bands are headings, not buttons: a full-width block in a deep
 *   tint of the ink, light text, square-ish corners and an accent edge, no
 *   shadow. Only buttons are pills.
 * - Order buttons (.lp-buy, .lp-pill--order, and any .btn going to #order)
 *   pulse a soft ring and give a quick shake every few seconds. Call and
 *   WhatsApp do not. The shake rests while a button is hovered, focused or
 *   pressed, and nothing moves for a shopper who asked for less motion.
 *   Transform and box-shadow only, so nothing around a button moves.
 *
 * `body.` in front keeps these above a vault theme's own `.theme .section`
 * (which loads after this file) and below SectionStyle's padding classes.
 * ------------------------------------------------------------------ */

.lp-theme {
  --lp-gap: clamp(16px, 8px + 2.2vw, 28px);
  --lp-head-gap: clamp(10px, 6px + 1vw, 16px);
  --lp-band-radius: clamp(8px, var(--radius, 10px), 10px);
  --lp-band-bg: color-mix(in srgb, var(--accent) 26%, var(--ink));
  --lp-band-ink: var(--surface);
  --lp-band-edge: var(--accent);
  --lp-btn-pulse: color-mix(in srgb, var(--accent) 55%, transparent);
}

/* Spacing */
body.lp-theme .section { padding-block: calc(var(--lp-gap) / 2); }
body.lp-theme .section--flush { padding-block: 0; }
body.lp-theme .section__head { margin-bottom: var(--lp-head-gap); }
body.lp-theme .section__head h2 { margin-bottom: 4px; }
body.lp-theme .lp-headline { padding-bottom: 0; }

/* Headlines: band, plain and soft, none of them a button. */
body.lp-theme .lp-head--band .lp-head__text {
  padding: 10px clamp(14px, 4vw, 28px);
  border-radius: var(--lp-band-radius);
  border-bottom: 4px solid var(--lp-band-edge);
  background: var(--lp-band-bg);
  color: var(--lp-band-ink);
  box-shadow: none;
  cursor: default;
}
body.lp-theme .lp-head--band.lp-head--xl .lp-head__text { padding-top: 14px; padding-bottom: 14px; }

body.lp-theme .lp-head--plain .lp-head__text::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: var(--accent);
}

body.lp-theme .lp-head--soft {
  padding: clamp(14px, 3vw, 22px) clamp(14px, 4vw, 28px);
  border-radius: calc(var(--lp-band-radius) + 4px);
}

/* Benefit points: read at a glance, so a touch bigger and semi-bold. */
body.lp-theme .lp-checks li {
  font-size: clamp(17px, 16px + 0.3vw, 18px);
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}
body.lp-theme .lp-checks__tick { width: 26px; height: 26px; margin-top: 1px; }

/* Order buttons: a pulse, and a quick shake every few seconds. */
@keyframes lp-pulse {
  0% { box-shadow: 0 0 0 0 var(--lp-btn-pulse); }
  70% { box-shadow: 0 0 0 14px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes lp-swift {
  0%, 16%, 100% { transform: translateX(0); }
  2%, 6%, 10% { transform: translateX(-4px); }
  4%, 8%, 12% { transform: translateX(4px); }
  14% { transform: translateX(-2px); }
}

@media (prefers-reduced-motion: no-preference) {
  body.lp-theme :is(.lp-buy, .lp-pill--order, a.btn[href="#order"]) {
    animation: lp-pulse 2s ease-out infinite, lp-swift 3.5s ease-in-out 1s infinite;
  }
  body.lp-theme :is(.lp-buy, .lp-pill--order, a.btn[href="#order"]):is(:hover, :focus-visible, :active) {
    animation: lp-pulse 2s ease-out infinite;
  }
  body.lp-theme :is(.lp-buy, .lp-pill--order, a.btn[href="#order"]):disabled { animation: none; }
}
/* ---------------------------------------------------- end Landing theme */

/* ---------------------------------------------------------------------
 * Nested menus (partials/menu-tree): a header link with links under it,
 * and the same in a phone's drawer. Drawn only for a link that has links
 * under it, so a menu that does not nest looks as it always did.
 *
 * In a header row (.mnav): a card under the link on hover or keyboard
 * focus, and a card to the side for each deeper level. Each opens only for
 * its own link (`>`). Never on a phone: the drawer carries the tree there.
 *
 * In a drawer (.mnav-d): the link itself, and a button beside it that
 * opens the links under it (<details>, no script).
 * ------------------------------------------------------------------ */

.mnav { position: relative; }
.mnav--side { display: block; }

.mnav > a { display: inline-flex; align-items: center; gap: 4px; }
.mnav.mnav--side > a { display: flex; justify-content: space-between; }
.mnav__caret { flex: none; opacity: .7; }

.mnav__panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 45;
  min-width: 200px;
  max-width: 280px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--surface);
  color: var(--ink);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
  text-align: left;
}

.mnav--side > .mnav__panel { top: -7px; left: 100%; }

.mnav .mnav__panel li { margin: 0; padding: 0; }

.mnav .mnav__panel a {
  margin: 0;
  padding: 9px 14px;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  white-space: normal;
  box-shadow: none;
}

.mnav .mnav__panel a { display: block; }
.mnav .mnav__panel .mnav--side > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.mnav .mnav__panel a:hover,
.mnav .mnav__panel a:focus-visible { background: var(--canvas); color: var(--accent); }

@media (min-width: 860px) {
  .mnav:hover > .mnav__panel,
  .mnav:focus-within > .mnav__panel { display: block; }
}

.mnav-d { position: relative; }
/* One link to a line, as tall as its toggle, whether or not the theme's drawer is a flex column. */
.mnav-d > a,
.mnav-d__list > a { display: block; }
.mnav-d > a { min-height: 44px; }
.mnav-d > a[href] { padding-right: 52px; }

.mnav-d__toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  list-style: none;
  color: var(--muted);
}

.mnav-d__toggle::-webkit-details-marker { display: none; }
.mnav-d__toggle svg { transition: transform .15s ease; }
.mnav-d__more[open] > .mnav-d__toggle svg { transform: rotate(180deg); }
.mnav-d__list { padding-left: 14px; }
