/*
 * Grocery — a fresh, friendly storefront theme for grocery and daily-needs shops (decision 0146).
 * Its own design (not shared with the admin apps). The structure below comes from Basic so every shop
 * feature keeps working; the Grocery layer at the end gives it its own look. Body text uses the phone's
 * own fonts (Noto Sans Bengali for Bangla): no web fonts, nothing to download (MASTER_PLAN §9).
 */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --accent: #0f766e;
  --accent-hover: color-mix(in oklab, var(--accent) 82%, black);
  --accent-soft: color-mix(in oklab, var(--accent) 9%, white);
  --accent-line: color-mix(in oklab, var(--accent) 35%, white);
  --on-accent: #fff;

  --bg: #fbfaf8;
  --surface: #ffffff;
  --sunken: #f3f1ed;
  --ink: #1b1917;
  --ink-2: #44403c;
  --muted: #6b655f;
  --line: #e9e5df;
  --line-strong: #d7d1c8;
  --danger: #b42318;
  --success: #067647;
  --star: #b7791f;

  --font:
    system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Bengali', 'Hind Siliguri',
    'Helvetica Neue', Arial, sans-serif;
  --font-display:
    'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Noto Serif',
    'Noto Serif Bengali', 'Noto Sans Bengali', serif;

  --r-xs: 4px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --pill: 999px;

  --shadow-sm: 0 1px 2px rgb(27 25 23 / 0.05);
  --shadow: 0 1px 2px rgb(27 25 23 / 0.04), 0 8px 24px -8px rgb(27 25 23 / 0.12);
  --shadow-lg: 0 24px 60px -20px rgb(27 25 23 / 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1320px;
  --header-h: 4rem;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* Anything marked hidden stays hidden, whatever display a component sets. */
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
}
h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0 0 1em;
}
:lang(bn) h1,
:lang(bn) h2,
:lang(bn) h3 {
  /* Bangla has no matching serif on most phones: keep the sans, a little bolder. */
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0;
}
::selection {
  background: color-mix(in oklab, var(--accent) 22%, white);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.icon {
  width: 1.375rem;
  height: 1.375rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 0.75rem;
}

/* Smooth page changes in browsers that support them (no script). */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.22s;
}

/* ── Announcement & header ─────────────────────────────────────────────── */
.announcement {
  background: var(--ink);
  color: #f5f3ef;
  text-align: center;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  padding: 0.55rem var(--gutter);
}
.announcement p {
  margin: 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header {
  transition:
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in oklab, var(--bg) 94%, transparent);
  box-shadow: 0 10px 30px -18px rgb(27 25 23 / 0.35);
}
.header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: 'brand search actions';
  align-items: center;
  gap: 1rem 1.5rem;
  max-width: var(--max);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0.5rem var(--gutter);
}
.brand {
  grid-area: brand;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}
:lang(bn) .brand {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.25rem;
}
.brand img {
  display: block;
  max-height: 40px;
  width: auto;
}
.search {
  grid-area: search;
  position: relative;
  max-width: 34rem;
  width: 100%;
  justify-self: center;
}
.search .search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  translate: 0 -50%;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--muted);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 2.75rem;
  padding: 0 1rem 0 2.6rem;
  border: 1px solid transparent;
  border-radius: var(--pill);
  background: var(--sunken);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.search input::placeholder {
  color: var(--muted);
}
.search input:hover {
  border-color: var(--line-strong);
}
.search input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 14%, transparent);
}
.search-suggest {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  animation: rise 0.18s var(--ease);
}
.search-suggest a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.search-suggest a:hover,
.search-suggest a:focus,
.search-suggest [aria-selected='true'] a {
  background: var(--sunken);
  outline: none;
}
.search-suggest .note {
  color: var(--muted);
  white-space: nowrap;
  margin: 0;
}
.header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.icon-link {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--pill);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s var(--ease);
}
.icon-link:hover {
  background: var(--sunken);
}
.cart-link .count {
  position: absolute;
  top: 0.3rem;
  right: 0.15rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
  animation: pop 0.35s var(--ease);
}
.cart-link .count[hidden] {
  display: none;
}
.lang {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  margin-right: 0.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.lang:hover {
  border-color: var(--ink);
}
.site-nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.site-nav > ul {
  display: flex;
  gap: 0.25rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0 0 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav > ul::-webkit-scrollbar {
  display: none;
}
.site-nav li {
  position: relative;
}
.site-nav a {
  display: inline-block;
  padding: 0.6rem 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 1px;
  transition:
    background-size 0.3s var(--ease),
    color 0.2s var(--ease);
}
.site-nav a:hover {
  color: var(--ink);
  background-size: 100% 1px;
}
.site-nav li ul {
  display: none;
}
@media (min-width: 768px) {
  .site-nav > ul {
    justify-content: center;
    overflow: visible;
  }
  .site-nav li:hover > ul,
  .site-nav li:focus-within > ul {
    display: grid;
    position: absolute;
    top: 100%;
    left: -1rem;
    z-index: 25;
    min-width: 13rem;
    margin: 0;
    padding: 0.5rem;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    animation: rise 0.18s var(--ease);
  }
  .site-nav li ul a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--r-sm);
    background: none;
  }
  .site-nav li ul a:hover {
    background: var(--sunken);
  }
}
@media (max-width: 767px) {
  .menu-toggle {
    display: inline-grid;
    margin-left: -0.5rem;
  }
  .header-actions .lang,
  .site-nav {
    display: none;
  }
  .header-bar {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      'menu brand actions'
      'search search search';
    gap: 0.25rem 0.5rem;
    padding-top: 0.4rem;
    padding-bottom: 0.75rem;
  }
  .search {
    max-width: none;
  }
  .brand {
    max-width: 52vw;
    font-size: 1.25rem;
  }
  .icon-link {
    width: 2.5rem;
    height: 2.5rem;
  }
  .lang {
    padding: 0.3rem 0.6rem;
  }
  .site-nav {
    padding: 0;
  }
  .site-nav > ul {
    padding: 0 var(--gutter) 0.25rem;
    gap: 1.25rem;
  }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.buy,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    transform 0.15s var(--ease),
    box-shadow 0.2s var(--ease),
    opacity 0.2s;
}
.buy {
  width: 100%;
}
.buy:hover,
.button:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 20px -10px color-mix(in oklab, var(--accent) 70%, black);
}
.buy:active,
.button:active {
  transform: scale(0.98);
}
.buy:disabled {
  opacity: 0.55;
  cursor: progress;
  box-shadow: none;
}
.button.secondary,
.drawer-actions .button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.button.secondary:hover {
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: none;
}
.link {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.25em;
  cursor: pointer;
  transition: text-decoration-color 0.2s;
}
.link:hover {
  text-decoration-color: currentColor;
}
.link.danger {
  color: var(--danger);
}
button:not(.buy):not(.link):not(.drawer-close):not(.wish) {
  font: inherit;
}

/* ── Forms ──────────────────────────────────────────────────────────────── */
input:not([type='radio']):not([type='checkbox']):not([type='file']),
textarea,
select {
  font: inherit;
  color: var(--ink);
}
:where(main, dialog)
  :where(
    input:not([type='radio'], [type='checkbox'], [type='file'], [type='search']),
    textarea,
    select
  ) {
  display: block;
  width: 100%;
  min-height: 3rem;
  margin-top: 0.4rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 1rem;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
:where(main) textarea,
:where(.quick-body) textarea {
  min-height: 5.5rem;
  resize: vertical;
  line-height: 1.5;
}
:where(main, dialog) select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b655f' stroke-width='1.8' 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 0.85rem center;
  background-size: 1.1rem;
  cursor: pointer;
}
:where(main)
  :where(input:not([type='radio'], [type='checkbox'], [type='search']), textarea, select):where(
    :hover:not(:focus)
  ) {
  border-color: var(--muted);
}
:where(main, dialog) :where(input, textarea, select):where(:focus) {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 14%, transparent);
}
:where(main) :where(input, textarea)::placeholder,
:where(.quick-body) :where(input, textarea)::placeholder {
  color: color-mix(in oklab, var(--muted) 80%, white);
}
input[type='radio'],
input[type='checkbox'] {
  accent-color: var(--accent);
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}
main label,
dialog :where(.quick-body) label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
}
main label:has(> input[type='radio']),
main label:has(> input[type='checkbox']),
dialog :where(.quick-body) label:has(> input[type='radio']),
dialog :where(.quick-body) label:has(> input[type='checkbox']) {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  padding: 0;
}
.note {
  color: var(--muted);
  font-size: 0.875rem;
}
.problem {
  color: var(--danger);
  font-size: 0.875rem;
}
.ok {
  color: var(--success);
  font-size: 0.875rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--sunken);
  color: var(--ink-2);
  padding: 0.35rem 0.8rem;
  border-radius: var(--pill);
}

/* ── Page heads, empty states ───────────────────────────────────────────── */
.page-head {
  margin: 0.5rem 0 clamp(1.5rem, 3vw, 2.5rem);
}
.page-head h1 {
  margin: 0;
}
.lead {
  margin-top: 0.75rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.0625rem;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-head h2 {
  margin: 0;
}
.shelf + .shelf,
.image-slider + .shelf,
.shelf + .prose-section,
.prose-section + .shelf {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.image-slider + .shelf,
.image-slider + .prose-section {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.empty {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  text-align: center;
  color: var(--muted);
  padding: clamp(3rem, 8vw, 5rem) 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
}
.not-found {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  text-align: center;
  padding: clamp(3rem, 10vw, 7rem) 1rem;
}
.not-found-code {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 10rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-strong);
}
.not-found h1 {
  margin-bottom: 1rem;
}
.more {
  display: flex;
  width: fit-content;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  align-items: center;
  min-height: 3rem;
  padding: 0.7rem 1.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.2s var(--ease);
}
.more:hover {
  border-color: var(--ink);
}
.rich-text > :last-child {
  margin-bottom: 0;
}
.prose-section {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}
.prose-section .rich-text {
  color: var(--ink-2);
  font-size: 1.0625rem;
}

/* ── Product grid & cards ───────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 0.875rem;
}
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem 1.25rem;
  }
}
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3rem 1.5rem;
  }
}
/* The card is a container, so the quick-add button can sit on the picture's lower edge. */
.card {
  position: relative;
  min-width: 0;
  container-type: inline-size;
}
.card-link {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
}
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--sunken);
  isolation: isolate;
}
/* A soft shimmer behind the picture while it loads. */
.card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    transparent 30%,
    color-mix(in oklab, var(--surface) 70%, transparent) 50%,
    transparent 70%
  );
  background-size: 250% 100%;
  animation: shimmer 1.4s ease-in-out 4;
}
.card-media img,
.card-media .no-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.9s var(--ease),
    opacity 0.5s var(--ease);
}
.card-media .card-img-alt {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.no-image {
  display: block;
  background:
    radial-gradient(circle at 50% 42%, var(--line) 0 14%, transparent 15%),
    linear-gradient(160deg, var(--sunken), color-mix(in oklab, var(--sunken) 80%, var(--line)));
}
@media (hover: hover) {
  .card:hover .card-media img {
    transform: scale(1.04);
  }
  .card.has-swap:hover .card-img-alt {
    opacity: 1;
  }
  .card:hover .title {
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
  }
}
.is-sold-out .card-media img {
  filter: grayscale(0.35);
  opacity: 0.8;
}
.card-tags {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  pointer-events: none;
}
.tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: var(--pill);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.tag[hidden] {
  display: none;
}
.tag-sale {
  background: var(--accent);
  color: var(--on-accent);
}
.tag-new {
  background: var(--ink);
  color: var(--bg);
}
.tag-muted {
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  color: var(--ink-2);
  backdrop-filter: blur(6px);
}
.price .tag {
  vertical-align: middle;
  margin-left: 0.4rem;
}
.card-body {
  display: grid;
  gap: 0.2rem;
}
.title {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink);
  text-underline-offset: 0.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
}
.price s {
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.35rem;
}
.card-rating {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
}
.stars {
  color: var(--star);
  letter-spacing: 0.08em;
}

/* Heart: a small round button on the picture. */
.card-wish {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease),
    color 0.2s;
}
.card-wish .icon {
  width: 1.1rem;
  height: 1.1rem;
}
.card-wish:hover {
  color: #be123c;
}
.card-wish[aria-pressed='true'],
.wish[aria-pressed='true'] {
  color: #be123c;
}
.card-wish[aria-pressed='true'] .icon,
.wish[aria-pressed='true'] .icon {
  fill: currentColor;
  animation: pop 0.35s var(--ease);
}

/* Quick add (one-size products) or "Choose options": on the picture's lower edge. */
.card-action {
  position: absolute;
  z-index: 2;
  top: calc(125cqw - 3.1rem);
  left: 0.55rem;
  right: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.55rem;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--pill);
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.card-action .icon {
  width: 1.05rem;
  height: 1.05rem;
}
.card-action:hover {
  background: var(--ink);
  color: var(--bg);
}
.card-action.is-loading {
  opacity: 0.6;
  pointer-events: none;
}
@media (hover: hover) {
  .card-wish:not([aria-pressed='true']),
  .card-action {
    opacity: 0;
    transform: translateY(6px);
  }
  .card:hover .card-wish,
  .card:hover .card-action,
  .card:focus-within .card-wish,
  .card:focus-within .card-action {
    opacity: 1;
    transform: none;
  }
}
/* Touch screens: a round "+" only; "Choose options" is just the card itself. */
@media (hover: none) {
  .card-action {
    left: auto;
    right: 0.55rem;
    top: calc(125cqw - 2.85rem);
    width: 2.35rem;
    min-height: 2.35rem;
    padding: 0;
  }
  .card-action span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  a.card-action {
    display: none;
  }
}

/* Rows that scroll sideways (related, recently viewed). */
.rail,
.recent-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 1.5rem) / 4);
  gap: 1.5rem;
  margin: 0;
  padding: 0 0 0.5rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar,
.recent-list::-webkit-scrollbar {
  display: none;
}
.rail > *,
.recent-list > * {
  scroll-snap-align: start;
}
@media (max-width: 899px) {
  .rail,
  .recent-list {
    grid-auto-columns: 42%;
    gap: 0.875rem;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
}
.rail-shelf {
  margin-top: clamp(3rem, 7vw, 5rem);
}
.rail-shelf[hidden] {
  display: none;
}
.recent-card {
  display: grid;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}
.recent-media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--sunken);
}
.recent-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.recent-card:hover img {
  transform: scale(1.04);
}
.recent-title {
  font-size: 0.9375rem;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.recent-price {
  font-weight: 600;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.recent-price s {
  margin-left: 0.35rem;
  font-weight: 400;
  color: var(--muted);
}

/* ── Breadcrumb, collection toolbar ─────────────────────────────────────── */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 clamp(1rem, 2.5vw, 1.75rem);
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--muted);
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.breadcrumb li + li::before {
  content: '';
  width: 0.35rem;
  height: 0.35rem;
  border-top: 1.25px solid var(--line-strong);
  border-right: 1.25px solid var(--line-strong);
  rotate: 45deg;
}
.breadcrumb a {
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--ink);
}
.breadcrumb [aria-current] {
  color: var(--ink-2);
  max-width: 22ch;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.collection-head {
  margin-top: 0;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.toolbar-count {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}
main .sort {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}
main .sort select {
  width: auto;
  min-height: 2.5rem;
  margin: 0;
  padding: 0 2.4rem 0 1rem;
  border-radius: var(--pill);
  font-size: 0.875rem;
  font-weight: 500;
}
@media (max-width: 479px) {
  main .sort > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}
.pager {
  display: flex;
  justify-content: center;
}
.pager .more {
  gap: 0.5rem;
}
.pager .more .icon {
  width: 1.1rem;
  height: 1.1rem;
  transition: translate 0.25s var(--ease);
}
.pager .more:hover .icon {
  translate: 3px 0;
}
.empty-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 1.25rem;
  padding: clamp(3rem, 8vw, 5rem) 1rem;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}
.empty-state > .icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--muted);
  stroke-width: 1.2;
}
.empty-state .empty {
  padding: 0;
  border: 0;
  background: none;
}

/* ── Product page ───────────────────────────────────────────────────────── */
.product {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 900px) {
  .product {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }
}

/* Gallery: one picture at a time, swipe or arrows; thumbnails beside it on wide screens. */
.gallery {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}
@media (min-width: 900px) {
  .gallery {
    position: sticky;
    top: calc(var(--header-h) + 3.5rem);
  }
  .gallery-many {
    grid-template-columns: 4.75rem minmax(0, 1fr);
    align-items: start;
  }
  .gallery-many .gallery-thumbs {
    order: -1;
    flex-direction: column;
    max-height: calc((100vh - var(--header-h)) * 0.8);
    overflow-y: auto;
  }
}
.gallery-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--sunken);
}
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar {
  display: none;
}
.gallery-slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.gallery-slide img,
.gallery-slide .no-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  cursor: zoom-in;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.25s var(--ease),
    background 0.2s;
}
.gallery-arrow.prev {
  left: 0.85rem;
}
.gallery-arrow.next {
  right: 0.85rem;
}
.gallery-arrow:hover {
  background: var(--surface);
}
.gallery-stage:hover .gallery-arrow,
.gallery-arrow:focus-visible {
  opacity: 1;
}
.gallery-count,
.gallery-zoom-hint {
  position: absolute;
  bottom: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--pill);
  background: color-mix(in oklab, var(--ink) 72%, transparent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.gallery-count {
  left: 0.85rem;
}
.gallery-count:empty,
.gallery-count[hidden] {
  display: none;
}
.gallery-zoom-hint {
  right: 0.85rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
}
.gallery-zoom-hint .icon {
  width: 1.05rem;
  height: 1.05rem;
}
.gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar {
  display: none;
}
.gallery-thumb {
  flex: 0 0 auto;
  width: 4.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--sunken);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  outline: 1.5px solid transparent;
  outline-offset: 2px;
  transition:
    opacity 0.2s var(--ease),
    outline-color 0.2s var(--ease);
}
.gallery-thumb img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.gallery-thumb:hover {
  opacity: 0.85;
}
.gallery-thumb[aria-current='true'] {
  opacity: 1;
  outline-color: var(--ink);
}
@media (max-width: 899px) {
  .gallery-stage {
    margin-inline: calc(var(--gutter) * -1);
    border-radius: 0;
  }
  .gallery-arrow {
    display: none;
  }
  .gallery-thumb {
    width: 3.75rem;
  }
}

/* Details column. */
@media (min-width: 900px) {
  .details-inner {
    position: sticky;
    top: calc(var(--header-h) + 3.5rem);
  }
}
.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.details h1 {
  margin-bottom: 0.75rem;
}
.details > .details-inner > .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  margin-bottom: 1.1rem;
  font-size: 1.375rem;
}
.details .price-was {
  margin: 0;
  font-size: 1.0625rem;
}
.details .price .tag {
  margin: 0;
  align-self: center;
}
.price-was[hidden] {
  display: none;
}
.rating-link {
  display: inline-block;
  margin: -0.25rem 0 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
}
.rating-link:hover {
  color: var(--ink);
}

/* Size and colour buttons. */
.options {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 0.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.option-label {
  margin: 0 0 0.6rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.option-selected {
  color: var(--ink);
  font-weight: 600;
}
.option-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.option-value {
  position: relative;
  min-width: 3.25rem;
  height: 2.85rem;
  padding: 0 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.15s var(--ease);
}
.option-value:hover {
  border-color: var(--ink);
}
.option-value:active {
  transform: scale(0.97);
}
.option-value[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.option-value.is-unavailable {
  color: var(--muted);
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 6px,
    color-mix(in oklab, var(--line) 70%, transparent) 6px 7px
  );
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
}
.option-value.is-unavailable[aria-pressed='true'] {
  background: var(--ink-2);
  color: var(--bg);
}
.variant-picker {
  margin-top: 1.25rem;
}
.variant-picker[hidden] {
  display: none;
}
.stock-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b45309;
}
.stock-note::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 color-mix(in oklab, currentColor 50%, transparent);
  animation: beat 1.8s ease-out infinite;
}
.stock-note.is-out {
  color: var(--danger);
}
.stock-note.is-out::before {
  animation: none;
}
.stock-note[hidden] {
  display: none;
}
.product-fields {
  margin: 1.25rem 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.product-fields .choices,
.checkout-page .choices {
  margin: 0 0 1rem;
}
.product-fields .choices legend,
.checkout-page .choices legend {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 0.5rem;
}

/* Quantity, add to cart, heart. */
.buy-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.6rem;
  margin: 1.5rem 0 0.75rem;
}
.qty {
  display: inline-flex;
  align-items: center;
  height: 3.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--surface);
}
.qty .qty-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--pill);
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s;
}
.qty .qty-btn:hover {
  background: var(--sunken);
}
.qty .qty-btn .icon {
  width: 1rem;
  height: 1rem;
}
main .qty input {
  width: 2.25rem;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
main .qty input::-webkit-inner-spin-button,
main .qty input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
main .qty input:focus {
  box-shadow: none;
}
.wish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 3.25rem;
  min-height: 3.25rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 50%;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.wish:hover {
  border-color: var(--ink);
}
.wish[aria-pressed='true'] {
  border-color: #fecdd3;
  background: #fff1f2;
}
.wish-wide {
  width: auto;
  margin-top: 1rem;
  padding: 0 1.4rem;
  border-radius: var(--pill);
}
.preorder {
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--ink-2);
}
.sticky-buy {
  display: none;
}

/* Cash on delivery, delivery, help. */
.assurances {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.assurances li {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.assurances li + li {
  border-top: 1px solid var(--line);
}
.assurances .icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  color: var(--ink-2);
}
.assurances strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}
.assurances a {
  color: var(--ink);
  font-weight: 500;
}
.description-block {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.description-block summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.description-block summary::-webkit-details-marker {
  display: none;
}
.description-block summary::after {
  content: '';
  width: 0.6rem;
  height: 0.6rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  rotate: 45deg;
  translate: 0 -0.15rem;
  transition: rotate 0.25s var(--ease);
}
.description-block[open] summary::after {
  rotate: 225deg;
  translate: 0 0.15rem;
}
.description {
  color: var(--ink-2);
  padding-bottom: 1rem;
}
.description img {
  border-radius: var(--r-sm);
}
.share {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}
.share .icon {
  width: 1.1rem;
  height: 1.1rem;
}
.share:hover {
  color: var(--ink);
}

/* Phones: the in-page button gives way to a bar at the bottom of the screen. */
@media (max-width: 899px) {
  .buy-row {
    grid-template-columns: auto auto;
    justify-content: start;
  }
  .buy-row .buy {
    display: none;
  }
  .sticky-buy {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
    background: color-mix(in oklab, var(--bg) 90%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    animation: rise-up 0.35s var(--ease);
  }
  .sticky-buy-info {
    display: grid;
    min-width: 0;
    line-height: 1.3;
  }
  .sticky-buy-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.8125rem;
    color: var(--muted);
  }
  .sticky-buy-price {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .sticky-buy .buy {
    flex: 1 0 auto;
    width: auto;
    max-width: 62%;
    min-height: 3rem;
    margin-left: auto;
  }
  body:has(.sticky-buy) main {
    padding-bottom: 7rem;
  }
  body:has(.sticky-buy) .chat-float {
    bottom: 5.5rem;
  }
  body:has(.sticky-buy) .back-to-top {
    bottom: 5.75rem;
  }
}

/* Lightbox: the pictures large, on a dark backdrop. */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}
.lightbox[open] {
  animation: fade 0.25s var(--ease);
}
.lightbox::backdrop {
  background: rgb(14 13 12 / 0.96);
  animation: fade 0.25s var(--ease);
}
.lightbox-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.lightbox-track::-webkit-scrollbar {
  display: none;
}
.lightbox-slide {
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 4rem 1rem;
  scroll-snap-align: center;
}
.lightbox-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r-xs);
}
.lightbox-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-btn:hover {
  background: rgb(255 255 255 / 0.24);
}
.lightbox-close {
  top: 1rem;
  right: 1rem;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  translate: 0 -50%;
}
.lightbox-prev {
  left: 1rem;
}
.lightbox-next {
  right: 1rem;
}
@media (max-width: 640px) {
  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
}

/* Reviews. */
.reviews {
  max-width: 52rem;
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
}
.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--muted);
}
.reviews-summary strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--ink);
}
.reviews-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.reviews-list li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.reviews-list li p {
  margin-bottom: 0.5rem;
}
.review-photos {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.review-photos img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.verified {
  color: var(--success);
  font-weight: 500;
}
.review-form {
  display: grid;
  gap: 0.25rem;
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.rating-input {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.rating-input legend {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
main .rating-input label {
  margin: 0;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
}
main .rating-input label:has(:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* WhatsApp & Messenger order buttons (plugin whatsapp-order-button, decision 0052). */
.chat-order {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.chat-order a {
  flex: 1 1 12rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border-radius: var(--pill);
  color: #fff;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: filter 0.2s;
}
.chat-order a:hover {
  filter: brightness(1.08);
}
.chat-order-whatsapp {
  background: #128c7e;
}
.chat-order-messenger {
  background: #0866ff;
}
.chat-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 25px -8px rgb(0 0 0 / 0.45);
  transition:
    transform 0.2s var(--ease),
    bottom 0.3s var(--ease);
}
.chat-float:hover {
  transform: scale(1.06);
}

/* ── Image slider (decision 0083): swipe on phones, no script ───────────── */
.image-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: var(--r-lg);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.image-slider::-webkit-scrollbar {
  display: none;
}
.image-slider .slide {
  position: relative;
  margin: 0;
  scroll-snap-align: start;
  overflow: hidden;
}
.image-slider img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: var(--sunken);
}
@media (max-width: 640px) {
  .image-slider {
    border-radius: var(--r);
  }
  .image-slider img {
    aspect-ratio: 4 / 5;
  }
}
.image-slider figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 0.35rem;
  padding: clamp(1.25rem, 5vw, 3.5rem);
  padding-top: 6rem;
  background: linear-gradient(to top, rgb(0 0 0 / 0.55), transparent);
  color: #fff;
}
.image-slider figcaption strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 1rem + 3.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-wrap: balance;
}
:lang(bn) .image-slider figcaption strong {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0;
}
.image-slider figcaption span {
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.15rem);
  max-width: 40ch;
  opacity: 0.92;
}
.image-slider a {
  color: #fff;
  text-decoration: none;
}
.image-slider a img {
  transition: transform 1.2s var(--ease);
}
.image-slider a:hover img {
  transform: scale(1.02);
}

/* ── Cart, checkout, account: shared panels ─────────────────────────────── */
.cart-page,
.checkout-page {
  max-width: 72rem;
  margin: 0 auto;
}
.account-page,
.wishlist-page {
  max-width: 40rem;
  margin: 0 auto;
}
.cart-page h1,
.checkout-page h1,
.account-page h1,
.wishlist-page h1 {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.cart-lines {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:first-child {
  border-top: 1px solid var(--line);
}
.cart-line > div:first-child,
.cart-line > a:first-child {
  min-width: 0;
}
.cart-line a {
  font-weight: 500;
  text-decoration: none;
}
.cart-line a:hover {
  text-decoration: underline;
}
.cart-line small {
  color: var(--muted);
}
.cart-line .problem {
  margin: 0.35rem 0 0;
}
.cart-line-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
}
main .cart-line-controls input {
  width: 4.75rem;
  min-height: 2.5rem;
  margin: 0;
  padding: 0.4rem 0.6rem;
  text-align: center;
  border-radius: var(--pill);
}
.cart-line-controls strong,
.cart-line > strong {
  min-width: 5.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.line-fields {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.coupon {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}
main .coupon input {
  margin: 0;
  min-height: 2.75rem;
  border-radius: var(--pill);
  padding-left: 1.1rem;
}
.coupon button {
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.coupon button:hover {
  opacity: 0.85;
}
.totals {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem 0;
  margin: 1rem 0;
  font-variant-numeric: tabular-nums;
}
.totals dt {
  color: var(--ink-2);
}
.totals dd {
  margin: 0;
  padding-left: 1rem;
  text-align: right;
}
.totals dt:last-of-type,
.totals dd:last-of-type {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
}

/* Checkout: the form on the left, the order summary in a sticky panel. */
.checkout-form {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .checkout-form {
    grid-template-columns: minmax(0, 1fr) 24rem;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }
  .checkout-aside {
    position: sticky;
    top: calc(var(--header-h) + 3.5rem);
  }
}
.checkout-fields {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}
.checkout-fields > fieldset:not([hidden]) {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.checkout-fields > fieldset > legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  counter-increment: step;
}
:lang(bn) .checkout-fields > fieldset > legend {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.125rem;
}
.checkout-fields > fieldset > legend::before {
  content: counter(step) / '';
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
}
.checkout-fields > fieldset > legend + * {
  clear: both;
}
.checkout-fields > fieldset > :last-child,
.checkout-fields label:last-child {
  margin-bottom: 0;
}
.locations {
  display: grid;
  gap: 0;
}
.locations select {
  margin-bottom: 0.75rem;
}
/* Delivery rates and payment methods: tappable option cards. */
main label.rate,
dialog :where(.quick-body) label.rate {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.6rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
main label.rate:hover,
dialog :where(.quick-body) label.rate:hover {
  border-color: var(--muted);
}
main label.rate:has(:checked),
dialog :where(.quick-body) label.rate:has(:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}
main label.rate:last-child,
dialog :where(.quick-body) label.rate:last-child {
  margin-bottom: 0;
}
.checkout-page .item-questions {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 0 0;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}
.checkout-page .item-questions:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.checkout-page .terms {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.75rem 0;
}
.checkout-aside {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.checkout-aside h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
:lang(bn) .checkout-aside h2 {
  font-size: 1.125rem;
}
[data-summary]:empty {
  display: none;
}
.checkout-aside .totals {
  margin-top: 0;
}
.checkout-aside .buy {
  margin-top: 0.75rem;
}
.checkout-aside [data-error] {
  margin: 0.75rem 0 0;
}

/* After placing an order. */
.placed,
.checkout-otp {
  max-width: 36rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 2.75rem);
  text-align: center;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: rise 0.4s var(--ease);
}
.placed::before {
  content: '';
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E")
      center / 1.6rem no-repeat,
    var(--success);
  animation: pop 0.5s 0.1s var(--ease) backwards;
}
.placed h2 {
  margin-bottom: 0.75rem;
}
.placed .button,
.placed .buy {
  margin-top: 1rem;
}
.placed .link {
  display: block;
  width: fit-content;
  margin: 0.25rem auto 0.5rem;
}
.placed > .button {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}
.placed .accounts {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.5rem;
}
.placed .accounts li {
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  background: var(--sunken);
}
.manual-payment {
  text-align: left;
  margin-top: 1.5rem;
}

/* Account, order tracking, payment links: one centred card. */
.account-page > [data-account],
.account-page > .track-form,
.account-page > [data-pay-summary]:not(:empty),
.account-page > [data-pay-how],
.wishlist-page > [data-wishlist-page] {
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.account-page > [data-track-result]:not(:empty) {
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  animation: rise 0.3s var(--ease);
}
.account-page h2 {
  font-size: 1.35rem;
  margin-top: 1.5rem;
}
.account-page h2:first-child {
  margin-top: 0;
}
.account-form,
.track-form {
  display: grid;
}
.account-form .buy,
.track-form .buy {
  margin-top: 0.5rem;
}
.account-form .captcha:not(:empty) {
  margin-top: 0.75rem;
}
.account-page .cart-line button,
.account-page > [data-account] > .cart-lines button {
  text-align: left;
}
.timeline {
  list-style: none;
  padding: 0 0 0 1.25rem;
  margin: 1rem 0;
  border-left: 2px solid var(--line);
  color: var(--ink-2);
}
.timeline li {
  position: relative;
  padding: 0 0 0.9rem;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: calc(-1.25rem - 6px);
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--surface);
}
.address-book,
.account-privacy {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.account-details,
.address-form {
  display: grid;
}
.pay-online {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
}
.pay-accounts {
  padding-left: 1.1rem;
}

/* ── Pages ──────────────────────────────────────────────────────────────── */
.page {
  max-width: 46rem;
  margin: 0 auto;
}
.page h1 {
  margin-bottom: 1.5rem;
}
.page-body {
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.page-body h2,
.page-body h3 {
  color: var(--ink);
  margin-top: 1.75em;
}
.page-body img {
  border-radius: var(--r);
  margin: 1.5rem 0;
}
.page-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.page-body td,
.page-body th {
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0.5rem;
  text-align: left;
}
.page-body blockquote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
}
.page-unlock,
.contact-form {
  max-width: 34rem;
  margin-top: 2rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-form fieldset {
  margin-bottom: 1rem;
}
.contact-form fieldset legend {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.contact-form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background: var(--sunken);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.6fr repeat(3, 1fr);
  }
}
.footer-brand {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
}
:lang(bn) .footer-brand {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.3rem;
}
.shop-contact {
  display: grid;
  gap: 0.4rem;
  font-style: normal;
}
.shop-contact a,
.footer-links a {
  width: fit-content;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.2s;
}
.shop-contact a:hover,
.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.footer-col h2 {
  margin: 0 0 1rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-links {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer-bottom p {
  margin: 0;
}
.footer-bottom a {
  color: var(--muted);
}
body:has(.sticky-buy) .footer-bottom {
  padding-bottom: 6.5rem;
}
@media (min-width: 900px) {
  body:has(.sticky-buy) .footer-bottom {
    padding-bottom: 1.25rem;
  }
}

/* ── Cart drawer (decision 0091): a native dialog sliding in from the side ─ */
.cart-drawer {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: none;
  width: min(26rem, 100vw);
  max-width: 100vw;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  display: none;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-drawer[open] {
  display: flex;
  animation: drawer-in 0.32s var(--ease);
}
.cart-drawer::backdrop {
  background: rgb(27 25 23 / 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fade 0.3s var(--ease);
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 {
  margin: 0;
  font-size: 1.35rem;
}
.drawer-close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s;
}
.drawer-close:hover {
  background: var(--sunken);
}
.drawer-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}
.drawer-body > p:only-child {
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
}
.drawer-lines {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.drawer-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  animation: rise 0.3s var(--ease) backwards;
}
.drawer-line:nth-child(2) {
  animation-delay: 0.04s;
}
.drawer-line:nth-child(3) {
  animation-delay: 0.08s;
}
.drawer-line a {
  font-weight: 500;
  text-decoration: none;
}
.drawer-line small {
  color: var(--muted);
}
.drawer-qty {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}
.drawer-line strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.drawer-body .totals :is(dt, dd) {
  border-top: 0;
  padding-top: 0;
}
.drawer-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

/* ── Cart drawer: pictures, quantity, free delivery ─────────────────────── */
.drawer-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.9rem;
}
.drawer-thumb {
  display: block;
  width: 4.5rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--sunken);
}
.drawer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.drawer-line-info {
  min-width: 0;
  line-height: 1.4;
}
.drawer-line-info > a {
  margin-right: 0.15rem;
}
.drawer-line-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.65rem;
}
.drawer-line-total {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.drawer-remove {
  font-size: 0.8125rem;
  color: var(--muted);
}
.drawer-lines.is-pending {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.2s;
}
.drawer-empty {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin: 3rem 0 0;
  text-align: center;
  color: var(--muted);
}
.drawer-empty::before {
  content: '';
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b655f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 11.1a2 2 0 0 1-2 1.9H8.2a2 2 0 0 1-2-1.9L5 8Z'/%3E%3Cpath d='M9 10V7a3 3 0 0 1 6 0v3'/%3E%3C/svg%3E")
      center / 1.5rem no-repeat,
    var(--sunken);
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--surface);
}
.qty-stepper .qty-btn {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--pill);
  background: none;
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.qty-stepper .qty-btn:hover:not(:disabled) {
  background: var(--sunken);
}
.qty-stepper .qty-btn:disabled {
  color: var(--line-strong);
  cursor: default;
}
.qty-value {
  min-width: 1.6rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
main .qty-stepper input {
  width: 2.5rem;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-align: center;
  font-weight: 600;
  -moz-appearance: textfield;
  appearance: textfield;
}
main .qty-stepper input::-webkit-inner-spin-button,
main .qty-stepper input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.free-delivery {
  margin: 0 0 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r);
  background: var(--sunken);
}
.free-delivery-text {
  margin: 0 0 0.6rem;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.free-delivery-bar {
  height: 0.375rem;
  overflow: hidden;
  border-radius: var(--pill);
  background: color-mix(in oklab, var(--line-strong) 70%, transparent);
}
.free-delivery-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.6s var(--ease);
}
.free-delivery.is-done {
  background: var(--accent-soft);
}
.free-delivery.is-done .free-delivery-text {
  color: var(--accent-hover);
  font-weight: 600;
}

/* ── Phone menu ─────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}
.menu-toggle {
  grid-area: menu;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-drawer {
  margin: 0 auto 0 0;
  width: min(22rem, 88vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  display: none;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.menu-drawer[open] {
  display: flex;
  animation: menu-in 0.32s var(--ease);
}
.menu-drawer::backdrop {
  background: rgb(27 25 23 / 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fade 0.3s var(--ease);
}
.menu-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.menu-drawer-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
:lang(bn) .menu-drawer-title {
  font-family: var(--font);
  font-weight: 700;
}
.menu-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1.25rem 1.5rem;
}
.menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu-list > li {
  border-bottom: 1px solid var(--line);
  animation: rise 0.3s var(--ease) backwards;
}
.menu-list > li:nth-child(2) {
  animation-delay: 0.03s;
}
.menu-list > li:nth-child(3) {
  animation-delay: 0.06s;
}
.menu-list > li:nth-child(4) {
  animation-delay: 0.09s;
}
.menu-list > li:nth-child(n + 5) {
  animation-delay: 0.12s;
}
.menu-list a,
.menu-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.menu-list summary::-webkit-details-marker {
  display: none;
}
.menu-list summary::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  rotate: 45deg;
  transition: rotate 0.25s var(--ease);
}
.menu-list details[open] summary::after {
  rotate: 225deg;
}
.menu-list details ul {
  margin: 0 0 0.75rem;
  padding: 0 0 0 0.9rem;
  list-style: none;
  border-left: 1px solid var(--line);
}
.menu-list details a {
  padding: 0.55rem 0;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ink-2);
}
.menu-list-quiet {
  margin-top: 1.5rem;
}
.menu-list-quiet > li {
  border: 0;
}
.menu-list-quiet a {
  padding: 0.55rem 0;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--muted);
}
.menu-drawer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.menu-phone {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

/* ── Toasts, back to top ────────────────────────────────────────────────── */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  translate: -50% 0;
  pointer-events: none;
}
body:has(.sticky-buy) .toast-region {
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
}
@media (min-width: 900px) {
  body:has(.sticky-buy) .toast-region {
    bottom: 1.25rem;
  }
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.15rem;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toast-in 0.35s var(--ease);
}
.toast::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 60%, white);
}
.toast-error {
  background: var(--danger);
  color: #fff;
}
.toast-error::before {
  background: #fff;
}
.toast.is-leaving {
  opacity: 0;
  translate: 0 0.5rem;
  transition:
    opacity 0.3s var(--ease),
    translate 0.3s var(--ease);
}
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  z-index: 14;
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  animation: rise 0.3s var(--ease);
  transition: background 0.2s;
}
.back-to-top[hidden] {
  display: none;
}
.back-to-top:hover {
  background: var(--surface);
}
.back-to-top .icon {
  width: 1.15rem;
  height: 1.15rem;
}
body:has(.chat-float) .back-to-top {
  bottom: calc(5.75rem + env(safe-area-inset-bottom));
}

/* ── Motion ─────────────────────────────────────────────────────────────── */
@keyframes drawer-in {
  from {
    transform: translateX(100%);
  }
}
@keyframes menu-in {
  from {
    transform: translateX(-100%);
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.96);
  }
}
@keyframes beat {
  70% {
    box-shadow: 0 0 0 0.45rem transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes rise-up {
  from {
    transform: translateY(100%);
  }
}
@keyframes pop {
  0% {
    transform: scale(0.6);
  }
  60% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after,
  ::backdrop {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  @view-transition {
    navigation: none;
  }
}

/* Cart page pictures (shop.js: div.cart-line-main > a.cart-thumb + div.cart-line-info). */
.cart-line-main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}
.cart-line-info {
  min-width: 0;
}
.cart-thumb {
  flex: none;
  display: block;
  width: 5.5rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--sunken);
}
.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Returns from the account (shop.js: section.account-returns). Quiet, editorial: hairlines, no fill. */
.account-returns {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.account-returns h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
}
.return-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.return-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.return-status {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  font-size: 0.8rem;
}
.return-approved,
.return-received,
.return-completed {
  border-color: var(--accent-line);
  color: var(--accent);
}
.return-rejected {
  border-color: color-mix(in oklab, var(--danger) 35%, white);
  color: var(--danger);
}
.return-form {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
  margin-top: 1.25rem;
}
.return-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.return-form .return-line {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.return-form select,
.return-form textarea {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  font: inherit;
  color: var(--ink);
}
/* ── Offers, flash sales and popups (plugin offers-pro / popup-offers, decision 0128) ─────────── */
.tag-flash,
.tag-offer {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.tag-flash {
  background: var(--ink);
  color: var(--bg);
}
.tag-flash .icon {
  width: 0.8rem;
  height: 0.8rem;
  fill: currentColor;
  stroke: none;
}
.tag-offer {
  background: var(--surface);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.price-flash > :first-child {
  color: var(--accent);
}
.card-countdown {
  display: inline-flex;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.flash-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
}
.flash-strip .icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  stroke: none;
}
.flash-strip .flash-clock {
  margin-left: auto;
  font-weight: 500;
  opacity: 0.85;
}
.flash-strip time,
.flash-clock time,
.offer-ends time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.product-offers {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.product-offers li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.7rem 0.9rem;
  border: 1px dashed var(--accent-line);
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: 0.9rem;
}
.product-offers .icon {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  color: var(--accent);
}
.product-offers strong {
  color: var(--ink);
}
.applied-offers {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  list-style: none;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.875rem;
}
.applied-offers li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.applied-offers li::before {
  content: '✓';
  margin-right: 0.4rem;
  font-weight: 700;
}
.applied-offers li span {
  flex: 1;
}

/* The Offers page */
.offers-head .lead {
  max-width: 38rem;
  color: var(--muted);
}
.offer-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
  margin: 0 0 3rem;
  padding: 0;
  list-style: none;
}
.offer-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.offer-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.offer-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.offer-icon .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.offer-text h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}
.offer-text p {
  margin: 0.35rem 0 0;
  color: var(--ink-2);
}
.offer-text .offer-badge {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.offer-text .offer-ends {
  color: var(--muted);
  font-size: 0.85rem;
}
.flash-block {
  margin: 0 0 3rem;
}
.flash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.flash-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
}
.flash-head .icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: var(--accent);
  stroke: none;
}
.flash-clock {
  margin: 0;
  color: var(--muted);
}
.flash-clock.is-soon time {
  color: var(--accent);
}

/* Popups: a centred card over a soft blur */
.sb-popup {
  width: min(26rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: auto;
  animation: sb-pop-in 0.32s var(--ease);
}
.sb-popup::backdrop {
  background: rgb(27 25 23 / 0.45);
  backdrop-filter: blur(3px);
}
.sb-popup.is-leaving {
  animation: sb-pop-out 0.18s var(--ease) forwards;
}
@keyframes sb-pop-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}
@keyframes sb-pop-out {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
.sb-popup-panel {
  position: relative;
}
.sb-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.sb-popup-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.sb-popup-body {
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
}
.sb-popup-body h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.15;
}
.sb-popup-text {
  margin: 0 0 1.25rem;
  color: var(--ink-2);
}
.sb-popup-form {
  display: grid;
  gap: 0.75rem;
  text-align: left;
}
.sb-popup-field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.sb-popup-field input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  font: inherit;
  font-weight: 400;
}
.sb-popup-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--muted);
}
.sb-popup-consent input {
  margin-top: 0.15rem;
  accent-color: var(--accent);
}
.sb-popup-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}
.sb-popup-note {
  margin: 0;
  color: var(--danger);
  font-size: 0.85rem;
}
.sb-popup-button {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.sb-popup-button:hover {
  background: var(--accent-hover);
}
.sb-popup-button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.sb-popup-code {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px dashed var(--accent);
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  text-align: left;
}
.sb-popup-code-label {
  font-size: 0.75rem;
  color: var(--muted);
}
.sb-popup-code strong {
  flex: 1;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}
.sb-popup-copy {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--accent-line);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--accent);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.sb-popup-thanks {
  margin: 0 0 1rem;
  font-weight: 600;
}
.sb-wheel-wrap {
  position: relative;
  width: min(15rem, 70vw);
  margin: 0 auto 1.25rem;
  aspect-ratio: 1;
}
.sb-wheel {
  --spin: 0turn;
  position: relative;
  width: 100%;
  height: 100%;
  border: 6px solid var(--ink);
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0turn,
    var(--accent) 0 calc(1turn / var(--slices)),
    var(--sunken) 0 calc(2turn / var(--slices))
  );
  transform: rotate(var(--spin));
  transition: transform 4s cubic-bezier(0.12, 0.8, 0.12, 1);
}
.sb-wheel-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40%;
  transform: rotate(calc(var(--turn) - 0.25turn)) translateX(18%);
  transform-origin: 0 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}
.sb-wheel-pin {
  position: absolute;
  top: -0.6rem;
  left: 50%;
  width: 0;
  height: 0;
  border: 0.7rem solid transparent;
  border-top: 1.1rem solid var(--ink);
  transform: translateX(-50%);
}
@media (prefers-reduced-motion: reduce) {
  .sb-popup,
  .sb-popup.is-leaving {
    animation: none;
  }
  .sb-wheel {
    transition: none;
  }
}

/* Sales boosters (plugin sales-boosters, decision 0127) ------------------------------------------- */

/* Volume tiers under the price: quiet outlined chips. */
.boost-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.boost-tiers li {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--accent-line);
  border-radius: var(--pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Bundles: the set's pictures joined by "+", the price and one button. */
.bundle {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.bundle + .bundle {
  margin-top: 1rem;
}
@media (min-width: 900px) {
  .bundle {
    grid-template-columns: 1fr minmax(15rem, 20rem);
  }
}
.bundle-items {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}
.bundle-item {
  display: grid;
  gap: 0.5rem;
  width: clamp(6.5rem, 22vw, 9rem);
  flex: none;
}
.bundle-media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--sunken);
}
.bundle-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.bundle-media:hover img {
  transform: scale(1.04);
}
.bundle-name {
  font-size: 0.875rem;
  line-height: 1.35;
  text-decoration: none;
}
.bundle-plus {
  flex: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1.75rem;
}
.bundle-buy {
  display: grid;
  gap: 0.35rem;
}
.bundle-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
}
.bundle-price {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}
.bundle-price s {
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
}
.bundle-saving {
  margin: 0 0 0.5rem;
  color: var(--success);
  font-size: 0.875rem;
  font-weight: 600;
}

/* "Frequently bought together": a rail like related products, with "Add all" in the heading. */
.boost-together .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Cart drawer and cart page: the saving and suggestions. */
.boost-saving {
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.9rem;
  border-radius: var(--r-sm);
  background: color-mix(in oklab, var(--success) 9%, white);
  color: var(--success);
  font-size: 0.875rem;
  font-weight: 600;
}
.boost-suggest {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.boost-suggest-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
}
.boost-suggest-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.boost-suggest-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  align-items: center;
}
.boost-suggest-media {
  grid-row: span 2;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--sunken);
}
.boost-suggest-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.boost-suggest-name {
  font-size: 0.875rem;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.boost-suggest-price {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.8125rem;
}
.boost-suggest-add {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.boost-suggest-add:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
.boost-suggest-add.is-loading {
  opacity: 0.5;
}

/* Checkout: order bumps as tickable cards. */
.order-bumps-wrap {
  margin-bottom: 1.25rem;
}
.order-bumps-title {
  margin: 0 0 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.order-bumps {
  display: grid;
  gap: 0.6rem;
}
.order-bump {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px dashed var(--accent-line);
  border-radius: var(--r);
  background: var(--accent-soft);
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.order-bump.is-on {
  border-style: solid;
  border-color: var(--accent);
  background: var(--surface);
}
.bump-check {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
}
.order-bump-img {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-sm);
  object-fit: cover;
}
.order-bump-text {
  display: grid;
  min-width: 0;
  flex: 1;
  font-size: 0.875rem;
}
.order-bump-text small {
  color: var(--muted);
}
.order-bump-price {
  display: grid;
  justify-items: end;
  font-size: 0.875rem;
}
.order-bump-price s {
  color: var(--muted);
  font-size: 0.75rem;
}

/* Stock alerts (plugin stock-alerts, decision 0126): a quiet bordered panel under the price. */
.stock-alert {
  margin: 1rem 0;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
}
.stock-alert-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}
.stock-alert-text {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.stock-alert-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.stock-alert-form input {
  flex: 1;
  min-width: 0;
  height: 2.9rem;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--bg);
  font: inherit;
  color: var(--ink);
}
.stock-alert-form input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.stock-alert-form button {
  height: 2.9rem;
  padding: 0 1.3rem;
  border: 0;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}
.stock-alert-form button:disabled {
  opacity: 0.55;
}
.stock-alert-note {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--success);
}
.stock-alert-note.is-error {
  color: var(--danger);
}
.price-alert-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.price-alert-link .icon {
  width: 1rem;
  height: 1rem;
}
.price-alert-link:hover {
  color: var(--accent);
}
@media (max-width: 30rem) {
  .stock-alert-form {
    flex-direction: column;
  }
}

/* ─── Product compare, specifications, FAQ and named wishlists (decision 0134) ─────────────────── */

.card-compare {
  position: absolute;
  top: 3.1rem;
  right: 0.55rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition:
    opacity 0.25s var(--ease),
    color 0.2s,
    background 0.2s;
}
.card-compare .icon {
  width: 1.05rem;
  height: 1.05rem;
}
.card:hover .card-compare,
.card-compare:focus-visible,
.card-compare[aria-pressed='true'] {
  opacity: 1;
}
.card-compare[aria-pressed='true'] {
  background: var(--accent);
  color: var(--on-accent);
}
@media (hover: none) {
  .card-compare {
    opacity: 1;
  }
}

.product-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.product-extras .share[aria-pressed='true'] {
  border-color: var(--accent);
  color: var(--accent);
}

.spec-block .spec-group {
  padding-bottom: 1.1rem;
}
.spec-block h3 {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec-block dl {
  margin: 0;
}
.spec-block dl > div {
  display: grid;
  grid-template-columns: minmax(7rem, 40%) 1fr;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px dashed var(--line);
  font-size: 0.925rem;
}
.spec-block dt {
  color: var(--muted);
}
.spec-block dd {
  margin: 0;
  color: var(--ink);
}

.faq-block {
  margin-top: 2rem;
}
.faq-block h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
}
.faq {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  transition: rotate 0.25s var(--ease);
}
.faq[open] summary::after {
  rotate: 45deg;
}
.faq p {
  margin: 0 0 1rem;
  color: var(--ink-2);
  line-height: 1.7;
}

/* The compare bar: a quiet floating strip while products are picked. */
.compare-bar {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  translate: -50% 0;
}
.compare-bar[hidden] {
  display: none;
}
.compare-bar-text {
  font-size: 0.9rem;
  white-space: nowrap;
}
.compare-bar-clear {
  padding: 0.35rem 0.5rem;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.compare-bar-go {
  padding: 0.55rem 1.1rem;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.compare-bar-go:hover {
  background: var(--accent-hover);
}
@media (max-width: 767px) {
  .compare-bar {
    bottom: calc(5.75rem + env(safe-area-inset-bottom));
  }
}

/* The compare page. */
.compare-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 4rem;
}
.compare-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.compare-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
}
.compare-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.compare-diff {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.compare-diff input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
}
.compare-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  scrollbar-width: thin;
}
.compare-table {
  width: 100%;
  min-width: calc(9rem + var(--cols, 2) * 13rem);
  border-collapse: collapse;
  table-layout: fixed;
}
.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  font-size: 0.925rem;
}
.compare-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 9rem;
  background: var(--surface);
  color: var(--muted);
  font-weight: 500;
}
.compare-table thead th {
  vertical-align: bottom;
  font-weight: 400;
}
.compare-corner {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 9rem;
  background: var(--surface);
}
.compare-product {
  position: relative;
  display: grid;
  gap: 0.6rem;
}
.compare-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-sm);
  background: var(--sunken);
}
.compare-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.compare-media:hover img {
  transform: scale(1.04);
}
.compare-title {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.compare-title:hover {
  text-decoration: underline;
}
.compare-buy {
  width: 100%;
  justify-content: center;
}
.compare-remove {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.compare-remove .icon {
  width: 0.95rem;
  height: 0.95rem;
}
.compare-price s {
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.85em;
}
.compare-group th {
  padding-top: 1.4rem;
  background: var(--sunken);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare-table tr.is-different td {
  color: var(--ink);
  font-weight: 500;
}
.compare-none {
  color: var(--line-strong);
}
.stock-yes {
  color: var(--success);
}
.stock-no {
  color: var(--danger);
}
.is-diff-only .compare-table tr.is-same {
  display: none;
}
.compare-empty {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 4rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  text-align: center;
  color: var(--muted);
}
.compare-empty .icon {
  width: 2rem;
  height: 2rem;
}
.compare-note {
  margin-top: 1rem;
}

/* Named wishlists: chips above the list, cards in a grid, the "save to a list" picker. */
.wish-lists {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}
.wish-lists[hidden] {
  display: none;
}
.wish-list-chip {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.wish-list-chip:hover {
  border-color: var(--line-strong);
}
.wish-list-chip[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.wish-list-new {
  border-style: dashed;
}
.wish-list-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.wish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 1.5rem 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.wish-card {
  display: grid;
  gap: 0.4rem;
}
.wish-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-sm);
  background: var(--sunken);
}
.wish-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wish-card-title {
  color: var(--ink);
  font-size: 0.925rem;
  text-decoration: none;
}
.wish-card-remove {
  justify-self: start;
  font-size: 0.85rem;
}
.list-picker {
  width: min(24rem, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.list-picker::backdrop {
  background: rgb(27 25 23 / 0.35);
  backdrop-filter: blur(3px);
}
.list-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.list-picker-close {
  border: 0;
  background: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.list-picker-body {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.25rem 1.25rem;
}
.list-picker-lists {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.list-picker-item {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.list-picker-item:hover {
  border-color: var(--accent);
}
.list-picker-new {
  display: flex;
  gap: 0.5rem;
}
.list-picker-new input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font: inherit;
}

/* Partial advance for cash on delivery (decision 0135). */
.cod-advance-note {
  margin: 0.25rem 0 0.75rem 1.75rem;
  font-size: 0.85rem;
}
.pay-advance {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--sunken);
  font-family: var(--font-display, inherit);
  font-size: 1.05rem;
}

/* ── Product types and downloads (decision 0140) ─────────────────────────────────────────────── */
/* Sold by measure: the unit after the price and next to the quantity. */
.price-unit {
  color: var(--muted);
  font-size: 0.9375rem;
}
.qty-unit {
  align-self: center;
  padding-inline: 0.25rem 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.note.made-to-order,
.note.digital-note {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--sunken);
  color: var(--ink);
}

/* Size chart: a quiet text link, and an editorial table in a dialog. */
.size-chart-link {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  margin: 0.25rem 0 0.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.size-chart-link .icon {
  width: 1.1rem;
  height: 1.1rem;
}
.size-chart {
  width: min(40rem, calc(100vw - 2rem));
  max-height: min(80vh, 40rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md, 14px);
  background: var(--bg);
  color: var(--ink);
}
.size-chart::backdrop {
  background: rgb(20 20 20 / 0.45);
  backdrop-filter: blur(3px);
}
.size-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0.75rem;
}
.size-chart-head h2 {
  margin: 0;
  font-family: var(--serif, serif);
  font-size: 1.5rem;
  font-weight: 400;
}
.size-chart-close {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.size-chart-scroll {
  overflow-x: auto;
  padding: 0 1.5rem;
}
.size-chart table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.size-chart th,
.size-chart td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.size-chart thead th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.size-chart-note {
  margin: 0;
  padding: 0.9rem 1.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Product video: a still with a round play button; the player fills the slide once tapped. */
.video-slide {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--ink);
}
.video-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.video-play {
  position: absolute;
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.92);
  color: var(--ink);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.25);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.video-play:hover {
  transform: scale(1.06);
}
.video-play .icon {
  width: 1.75rem;
  height: 1.75rem;
  fill: currentColor;
}
.video-frame {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  border: 0;
  aspect-ratio: 16 / 9;
}
.video-thumb {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
}
.video-thumb .icon {
  fill: currentColor;
}

/* Account downloads. */
.downloads {
  margin-top: 2rem;
}
.downloads h2 {
  font-family: var(--serif, serif);
  font-weight: 400;
}
.download-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.download-item {
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
}
.download-title {
  margin: 0 0 0.75rem;
}
.download-title small {
  color: var(--muted);
}
.download-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.download-keys {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
}
.download-keys code {
  margin-right: 0.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: var(--sunken);
  font-size: 0.8125rem;
}
/* ── One-click checkout (plugin one-click-checkout, decision 0136) ──────────────────────────────
   "Buy now" under the buy row (and an icon in the phone bar), on cards while the shop has it on
   (body.has-buy-now), and the quick order sheet: a centred panel on wide screens, a sheet from the
   bottom on phones, holding the shop's own checkout form. */
.buy-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3.25rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.15s var(--ease),
    opacity 0.2s;
}
.buy-now .icon {
  width: 1.1rem;
  height: 1.1rem;
}
.buy-now:hover {
  background: transparent;
  color: var(--ink);
}
.buy-now:active {
  transform: scale(0.98);
}
.buy-now:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.buy-now.is-loading {
  opacity: 0.7;
  cursor: progress;
}
.sticky-buy .buy-now-icon {
  flex: none;
  width: 3.25rem;
  margin-top: 0;
  padding: 0;
}
.card-buy {
  display: none;
}
.has-buy-now .card-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.5rem;
  margin-top: 0.65rem;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.has-buy-now .card-buy:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.has-buy-now .card-buy.is-loading {
  opacity: 0.6;
  cursor: progress;
}

.quick-order {
  margin: auto;
  width: min(42rem, calc(100vw - 2rem));
  max-width: none;
  max-height: min(92dvh, 60rem);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--ink);
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.quick-order[open] {
  display: flex;
  animation: rise 0.3s var(--ease);
}
.quick-order::backdrop {
  background: rgb(27 25 23 / 0.4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fade 0.3s var(--ease);
}
.quick-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--line);
}
.quick-head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.5rem;
}
.quick-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.quick-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem 1.5rem 1.5rem;
}
.checkout-form.is-quick {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
.checkout-form.is-quick .checkout-aside {
  position: static;
}
.quick-loading {
  display: grid;
  gap: 0.75rem;
}
.quick-skeleton {
  display: block;
  height: 3rem;
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--sunken) 25%, var(--surface) 50%, var(--sunken) 75%);
  background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
.quick-skeleton.is-short {
  width: 60%;
}
.order-again {
  margin: 0.75rem 0;
}
@media (max-width: 40rem) {
  .quick-order {
    margin: auto 0 0;
    width: 100vw;
    max-height: 94dvh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .quick-order[open] {
    animation: rise-up 0.32s var(--ease);
  }
  .quick-head,
  .quick-body {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}

/* ── Gift card at checkout, wholesale account (decision 0142) — Basic ─────────────────────── */
.gift-card-field input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gift-card-field small {
  display: block;
  margin-top: 0.35rem;
}
.wholesale-account {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.wholesale-account h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 400;
}
.wholesale-form {
  display: grid;
  gap: 0.9rem;
  max-width: 32rem;
}
.wholesale-form label {
  display: grid;
  gap: 0.35rem;
}
.wholesale-form input,
.wholesale-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  font: inherit;
}
.wholesale-form .button {
  justify-self: start;
}
.wholesale-status {
  margin: 0;
  color: var(--ink-2);
}
.wholesale-status.is-member {
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════════════════════════════════════════
 * Grocery layer (decision 0146): fresh, friendly and fast to shop. Everything above is the shared
 * Basic structure every feature relies on; from here on it is Grocery's own look — a fresh green
 * palette driven by the shop's accent, rounded sans type, white tiles on a mint page, compact cards
 * with an always-visible Add button, a tangerine offers band and a delivery info strip.
 * ═══════════════════════════════════════════════════════════════════════════════════════════════ */
:root {
  --accent: #15803d;
  --accent-hover: color-mix(in oklab, var(--accent) 84%, black);
  --accent-soft: color-mix(in oklab, var(--accent) 10%, white);
  --accent-line: color-mix(in oklab, var(--accent) 30%, white);
  --accent-ink: color-mix(in oklab, var(--accent) 78%, black);

  --bg: #f4f8f2;
  --surface: #ffffff;
  --sunken: #eef3eb;
  --ink: #142118;
  --ink-2: #33473a;
  --muted: #5b6d60;
  --line: #e1e9dd;
  --line-strong: #c9d6c3;
  --tangerine: #c2410c;
  --tangerine-soft: #fff1e6;
  --sun: #fde68a;

  --font-display: var(--font);
  --r-xs: 6px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(20 33 24 / 0.06);
  --shadow: 0 1px 2px rgb(20 33 24 / 0.05), 0 10px 26px -12px rgb(20 33 24 / 0.18);
  --header-h: 4.25rem;
}

/* Type: one friendly sans everywhere, heavy and tight for headings. */
h1,
h2,
h3,
.brand,
.footer-brand {
  font-family: var(--font);
  letter-spacing: -0.015em;
}
h1,
h2 {
  font-weight: 800;
}
.brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--accent-ink);
}
.brand::before {
  content: '';
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.45rem;
  border-radius: 50% 0 50% 50%;
  background: var(--accent);
  transform: rotate(-45deg) translateY(-0.06em);
}
.brand:has(img)::before {
  display: none;
}

/* Header: white, with a big search in the middle and a green cart pill. */
.site-header,
.site-header.is-scrolled {
  background: var(--surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px -16px rgb(20 33 24 / 0.4);
}
.search {
  max-width: 44rem;
}
.search input {
  height: 3rem;
  border: 2px solid var(--line);
  border-radius: var(--pill);
  background: var(--sunken);
  font-size: 1rem;
  text-align: left;
}
.search input:hover {
  border-color: var(--line-strong);
}
.search input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.cart-link {
  background: var(--accent);
  color: #fff;
  border-radius: var(--pill);
}
.cart-link:hover {
  background: var(--accent-hover);
  color: #fff;
}
.cart-link .count {
  background: var(--sun);
  color: var(--ink);
}
.site-nav {
  background: var(--surface);
}
.site-nav a {
  font-weight: 600;
}
.announcement {
  background: var(--accent-ink);
  color: #fff;
}

/* Delivery info strip under the header. */
.info-strip {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--accent-line);
  color: var(--accent-ink);
  font-size: 0.875rem;
  font-weight: 600;
}
.info-strip ul {
  display: flex;
  justify-content: center;
  gap: 0.5rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem var(--gutter);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.info-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.info-strip .icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}
@media (max-width: 640px) {
  .info-strip ul {
    justify-content: flex-start;
  }
}

/* Buttons: rounded and green. */
.button {
  border-radius: var(--pill);
  font-weight: 700;
}

/* Sections. */
.section-head h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}
.view-all .icon {
  width: 1rem;
  height: 1rem;
}
.view-all:hover {
  background: var(--accent-line);
}
.shelf + .shelf,
.aisle-rail + .shelf,
.shelf + .promise-row {
  margin-top: clamp(2rem, 5vw, 3.25rem);
}

/* Hero: a rounded fresh-green banner with a basket of produce drawn in CSS. */
.fresh-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  min-height: clamp(15rem, 34vw, 22rem);
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  padding: clamp(1.5rem, 4vw, 3.25rem);
  overflow: hidden;
  border-radius: var(--r-lg);
  background:
    radial-gradient(
      40rem 20rem at 100% 0%,
      color-mix(in oklab, var(--sun) 55%, transparent),
      transparent 60%
    ),
    linear-gradient(135deg, var(--accent-ink), var(--accent));
  color: #fff;
}
.fresh-hero-eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--pill);
  background: rgb(255 255 255 / 0.16);
  font-size: 0.8125rem;
  font-weight: 700;
}
.fresh-hero-title {
  margin: 0;
  font-size: clamp(1.9rem, 4.6vw, 3.25rem);
  line-height: 1.08;
  color: #fff;
}
.fresh-hero-text {
  max-width: 32rem;
  margin: 0.85rem 0 0;
  color: rgb(255 255 255 / 0.88);
  font-size: 1.0625rem;
}
.fresh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
}
.fresh-hero-button {
  background: #fff;
  color: var(--accent-ink);
  box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.5);
}
.fresh-hero-button:hover {
  background: var(--sun);
  color: var(--ink);
}
.fresh-hero-button .icon {
  width: 1.1rem;
  height: 1.1rem;
}
.fresh-hero-link {
  color: #fff;
  font-weight: 700;
}
.fresh-hero-media img {
  width: 100%;
  max-height: 18rem;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgb(0 0 0 / 0.3));
}
.fresh-hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 18rem);
  aspect-ratio: 1;
}
.fresh-hero-art .basket {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 6%;
  height: 38%;
  border-radius: 0 0 46% 46% / 0 0 70% 70%;
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, rgb(0 0 0 / 0.08) 14px 16px),
    linear-gradient(#e7b778, #c98a45);
  box-shadow: inset 0 6px 0 rgb(255 255 255 / 0.25);
}
.fresh-hero-art .produce {
  position: absolute;
  border-radius: 50%;
  box-shadow: inset -6px -8px 0 rgb(0 0 0 / 0.12);
}
.produce-1 {
  left: 14%;
  bottom: 34%;
  width: 34%;
  aspect-ratio: 1;
  background: #ef4444;
}
.produce-2 {
  left: 40%;
  bottom: 40%;
  width: 30%;
  aspect-ratio: 1;
  background: #f97316;
}
.produce-3 {
  right: 12%;
  bottom: 33%;
  width: 32%;
  aspect-ratio: 1;
  background: #a3e635;
}
.produce-4 {
  left: 30%;
  bottom: 58%;
  width: 22%;
  aspect-ratio: 1;
  background: #facc15;
}
.produce-5 {
  right: 26%;
  bottom: 60%;
  width: 16%;
  aspect-ratio: 0.6;
  border-radius: 50% 50% 45% 45%;
  background: #7c3aed;
}
@media (max-width: 720px) {
  .fresh-hero {
    grid-template-columns: 1fr;
  }
  .fresh-hero-art {
    position: absolute;
    right: -2.5rem;
    bottom: -2.5rem;
    width: 11rem;
    opacity: 0.35;
  }
  .fresh-hero-copy {
    position: relative;
  }
}

/* Aisle chips: round category chips in one row that swipes. */
.aisle-rail ul {
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0.25rem 0 0.5rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.aisle-rail ul::-webkit-scrollbar {
  display: none;
}
.aisle-rail li {
  scroll-snap-align: start;
  flex: none;
}
.aisle-rail a {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  width: 6.25rem;
  padding: 0.85rem 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s,
    box-shadow 0.2s;
}
.aisle-rail a:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}
.aisle-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  overflow: hidden;
  border-radius: 50%;
  background: var(--accent-soft);
}
.aisle-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aisle-letter {
  color: var(--accent-ink);
  font-size: 1.35rem;
  font-weight: 800;
}
.aisle-name {
  line-height: 1.25;
}

/* Product grid: compact tiles, more per row. */
.grid {
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}
@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(var(--grid-cols, 6), minmax(0, 1fr));
  }
}

/* Cards: a white tile with the picture, title, price per unit and an Add button that is always there. */
.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.55rem 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition:
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
@media (hover: hover) {
  .card:hover {
    border-color: var(--accent-line);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
  }
  .card:hover .card-media img {
    transform: scale(1.03);
  }
  .card:hover .title {
    text-decoration: none;
    color: var(--accent-ink);
  }
}
.card-link {
  gap: 0.55rem;
  flex: 1;
}
.card-media {
  aspect-ratio: 1;
  border-radius: calc(var(--r) - 5px);
  background: var(--sunken);
}
.card-body {
  gap: 0.25rem;
  padding: 0 0.15rem;
}
.title {
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 2.45em;
}
.price {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ink);
}
.card-unit {
  margin-left: 0.2rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}
.tag {
  border-radius: var(--r-xs);
  font-weight: 800;
}
.tag-sale {
  background: var(--tangerine);
  color: #fff;
}
.tag-new {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.tag-flash {
  background: var(--sun);
  color: var(--ink);
}
.card-wish {
  top: 0.95rem;
  right: 0.95rem;
  width: 2rem;
  height: 2rem;
}

/* The Add button: a green outline pill under the price, filled on hover; never hidden. */
.card-action,
.card-action:hover {
  position: static;
  inset: auto;
  width: auto;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  opacity: 1;
  transform: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.card-action {
  border: 1.5px solid var(--accent);
  background: var(--surface);
  color: var(--accent-ink);
  font-weight: 800;
}
.card-action:hover {
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: #fff;
}
.card-action span:not(.sr-only) {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}
a.card-action {
  display: flex;
  border-color: var(--line-strong);
  color: var(--ink-2);
}
a.card-action:hover {
  border-color: var(--ink-2);
  background: var(--ink-2);
}
@media (hover: hover) {
  .card-action {
    opacity: 1;
    transform: none;
  }
}
.has-buy-now .card-buy {
  border-radius: var(--pill);
}

/* Offers band: a warm tangerine strip with a "Today only" chip and a countdown. */
.shelf-offers {
  padding: clamp(1rem, 3vw, 1.75rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(
      30rem 14rem at 0% 0%,
      color-mix(in oklab, var(--sun) 60%, transparent),
      transparent 70%
    ),
    var(--tangerine-soft);
  border: 1px solid #fed7aa;
}
.shelf-offers .section-head {
  justify-content: flex-start;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
}
.offer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--pill);
  background: var(--tangerine);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
}
.offer-chip .icon {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
  stroke: none;
}
.offer-clock {
  margin: 0 0 0 auto;
  padding: 0.3rem 0.75rem;
  border-radius: var(--pill);
  background: #fff;
  color: var(--tangerine);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Promises row. */
.promise-row ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.promise-row li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.promise-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.promise-icon .icon {
  width: 1.3rem;
  height: 1.3rem;
}
.promise-copy {
  display: grid;
  gap: 0.1rem;
  font-size: 0.875rem;
}
.promise-copy span {
  color: var(--muted);
}

/* Product page: a bigger green price and rounded panels. */
.product-main .price,
.product-price .price {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--accent-ink);
}

/* Footer: deep green. */
.site-footer {
  background: #0f2a1a;
  color: #d7e6da;
  border-top: 0;
}
.site-footer a,
.footer-brand {
  color: #fff;
}
.footer-col h2 {
  color: #9fc5aa;
}
.footer-bottom {
  border-color: rgb(255 255 255 / 0.12);
  color: #9fc5aa;
}

/* Narrow cards: the button text stays on one line. */
.card-action {
  white-space: nowrap;
  font-size: 0.8125rem;
}
@media (max-width: 480px) {
  .card-action,
  .card-action:hover {
    padding: 0 0.5rem;
  }
  a.card-action .icon {
    display: none;
  }
}

/* Sales boosters part 2 (decision 0159): the offer after checkout, "bought today", recent orders. */
.upsell-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 1.25rem 0;
  padding: 1rem;
  border: 2px dashed var(--accent-line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: none;
  text-align: left;
}
.upsell-img {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: var(--surface);
  object-fit: cover;
}
.upsell-body {
  display: grid;
  flex: 1;
  gap: 0.35rem;
  min-width: 0;
}
.upsell-kicker {
  margin: 0;
  color: var(--success);
  font-size: 0.8125rem;
  font-weight: 700;
}
.upsell-title {
  font-size: 1.05rem;
  font-weight: 700;
}
.upsell-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.upsell-price {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin: 0;
}
.upsell-price strong {
  color: var(--success);
  font-size: 1.15rem;
}
.upsell-price s,
.upsell-timer {
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.upsell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.35rem;
}
.upsell-skip {
  padding: 0.5rem;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  text-decoration: underline;
  cursor: pointer;
}
.upsell-status {
  margin: 0;
  color: var(--danger);
  font-size: 0.875rem;
}
.upsell-status:empty {
  display: none;
}
.upsell-done {
  margin: 0 0 0.5rem;
  color: var(--success);
  font-weight: 600;
}
.bought-today {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--success);
  font-weight: 600;
}
.bought-today::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--success);
}
.bought-today[hidden] {
  display: none;
}
.sp-popup {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 60;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.6rem 0.6rem 0.6rem 0.6rem;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.sp-popup.is-in {
  opacity: 1;
  transform: none;
}
.sp-popup-img {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
}
.sp-popup-body {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  color: inherit;
  font-size: 0.8125rem;
  text-decoration: none;
}
.sp-popup-who,
.sp-popup-when {
  color: var(--muted);
}
.sp-popup-title {
  overflow: hidden;
  font-size: 0.875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sp-popup-when {
  font-size: 0.75rem;
}
.sp-popup-close {
  align-self: flex-start;
  padding: 0.25rem 0.4rem;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 640px) {
  .upsell-card {
    flex-direction: column;
  }
  .sp-popup {
    right: 0.75rem;
    bottom: calc(5rem + env(safe-area-inset-bottom));
    left: 0.75rem;
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sp-popup {
    transform: none;
    transition: none;
  }
}

/* ── Live chat launcher (decision 0158): bottom left, clear of WhatsApp and back-to-top ── */
.live-chat-launcher {
  position: fixed;
  left: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  box-shadow: 0 10px 25px -8px rgb(0 0 0 / 0.45);
  transition: transform 0.2s ease;
  border-radius: 50%;
}
.live-chat-launcher:hover {
  transform: scale(1.06);
}
.live-chat-launcher:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
@media (max-width: 47.99rem) {
  body:has(.sticky-buy) .live-chat-launcher {
    bottom: 5.75rem;
  }
}

/* Loyalty points and referrals (plugin advanced-marketing, decision 0157). */
.loyalty-account {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.loyalty-account h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 400;
}
.loyalty-account h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 400;
}
.loyalty-balance {
  margin: 0 0 0.35rem;
  color: var(--ink-2);
}
.loyalty-balance strong {
  font-size: 1.75rem;
  color: var(--ink);
}
.loyalty-tier {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.7rem;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--ink);
}
.loyalty-history {
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.loyalty-history li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}
.loyalty-history .is-minus {
  color: var(--ink-2);
}
.loyalty-account .referral {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.referral-link {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  font: inherit;
}
.loyalty-account .referral .button {
  justify-self: start;
}
.loyalty-pay {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  cursor: pointer;
}
.loyalty-pay[hidden] {
  display: none;
}

/* The order's items at the top of the checkout summary (shop.js: ul.checkout-items). */
.checkout-items {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.1rem;
  padding: 0 0 1.1rem;
  list-style: none;
  border-bottom: 1px solid var(--line);
  max-height: 22rem;
  overflow-y: auto;
}
.checkout-item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
}
.checkout-item-media {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s, var(--r-sm, 8px));
  background: var(--surface-2, var(--sunken, #f4f4f5));
}
.checkout-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.checkout-item-qty {
  position: absolute;
  top: -0.45rem;
  right: -0.45rem;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--ink-2);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3rem;
  text-align: center;
}
.checkout-item-info {
  display: grid;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.35;
}
.checkout-item-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 500;
}
.checkout-item-variant {
  color: var(--muted);
  font-size: 0.8125rem;
}
.checkout-item-total {
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.totals dd.is-pending {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ── Home refresh: spacing between sections, "See all", payments ──────────── */
main > .section + .section {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}
main > .section:not(:has(> *)) {
  display: none;
}
.see-all {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.see-all .icon {
  width: 1rem;
  height: 1rem;
}
.offer-clock + .see-all {
  margin-left: 0.75rem;
}
.pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pay-badges li {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.18);
  font-size: 0.75rem;
  font-weight: 700;
}
.pay-badges .pay-cod {
  background: #fff;
  color: var(--accent);
}

/* Category filters (snippet filters.liquid): one wrapping row of chips, a price range and Apply. */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius, var(--r, 12px));
  background: var(--surface, #fff);
}
.filters-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
}
.filters-title svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.filters .filter-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.filters .filter-check:has(:checked) {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 9%, transparent);
}
.filters .filter-check input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
}
.filter-price {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
}
.filter-price label {
  margin: 0;
}
.filters .filter-price input {
  width: 6.5rem;
  min-height: 2.35rem;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 999px;
  background: var(--surface, #fff);
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink);
}
.filter-apply {
  min-height: 2.35rem;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent, #fff);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.filter-apply:hover {
  filter: brightness(0.92);
}
.filter-clear {
  font-size: 0.875rem;
  color: var(--muted);
}
@media (max-width: 640px) {
  .filters {
    gap: 0.45rem;
    padding: 0.65rem;
  }
  .filters-title {
    width: 100%;
  }
  .filters .filter-price input {
    width: 5.25rem;
  }
}

/* ── Colour swatches (decision 0181): round, ringed in the accent ── */
.option-value.swatch {
  display: inline-flex;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
}
.option-value.swatch:hover,
.option-value.swatch[aria-pressed='true'] {
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
}
.swatch-photo,
.swatch-dot {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition:
    box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.swatch-photo {
  object-fit: cover;
  background: var(--surface);
}
.swatch-dot {
  background: var(--swatch);
}
.option-value.swatch:hover .swatch-photo,
.option-value.swatch:hover .swatch-dot {
  border-color: var(--ink);
}
.option-value.swatch[aria-pressed='true'] .swatch-photo,
.option-value.swatch[aria-pressed='true'] .swatch-dot {
  border-color: var(--accent);
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--accent);
}
/* A colour with neither a photo nor a colour: its name, like the other options. */
.swatch-text {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 500;
}
.option-value.swatch[aria-pressed='true'] .swatch-text {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
  font-weight: 700;
}
.option-value.swatch.is-unavailable,
.option-value.swatch.is-unavailable[aria-pressed='true'] {
  background: none;
  color: var(--muted);
  text-decoration: none;
}
.option-value.swatch.is-unavailable .swatch-photo,
.option-value.swatch.is-unavailable .swatch-dot {
  opacity: 0.4;
}
.option-value.swatch.is-unavailable .swatch-text {
  text-decoration: line-through;
}
.has-swatches .option-values,
.option-values.has-swatches {
  gap: 0.75rem 0.6rem;
  align-items: flex-start;
}

/* My Account dashboard and saved addresses at checkout (decision 0235) ----------------------------
   shop.js draws the markup (.acct-*, .saved-address); these rules give it this theme's look. */
[data-account],
[data-checkout] {
  --a-accent: var(--accent);
  --a-accent-ink: var(--accent-ink, color-mix(in oklab, var(--accent) 78%, #000));
  --a-on: var(--on-accent, #fff);
  --a-soft: var(--accent-soft);
  --a-soft-bg: color-mix(in oklab, var(--accent) 6%, var(--surface));
  --a-card: var(--surface);
  --a-field: var(--surface);
  --a-stat-bg: var(--surface);
  --a-sunken: var(--sunken);
  --a-ink: var(--ink);
  --a-ink-2: var(--ink-2);
  --a-muted: var(--muted);
  --a-line: var(--line);
  --a-line-strong: var(--line-strong);
  --a-success: var(--success, #15803d);
  --a-danger: var(--danger, #dc2626);
  --a-r: var(--r-lg);
  --a-r-sm: var(--r-sm);
  --a-btn-r: var(--pill, 999px);
  --a-tabs-r: var(--pill, 999px);
  --a-chip-r: var(--pill, 999px);
  --a-avatar-r: 50%;
  --a-shadow: var(--shadow-sm);
  --a-shadow-lg: var(--shadow);
  --a-head-bg: color-mix(in oklab, var(--accent) 10%, var(--surface));
  --a-head-ink: var(--ink);
  --a-head-muted: var(--muted);
  --a-head-line: transparent;
}
[data-checkout] .saved-addresses {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
[data-checkout] .saved-addresses-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
}
[data-checkout] label.saved-address {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--a-line-strong);
  border-radius: var(--a-r-sm);
  background: var(--a-card);
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
[data-checkout] label.saved-address:hover {
  border-color: var(--a-accent);
}
[data-checkout] label.saved-address:has(input:checked) {
  border-color: var(--a-accent);
  box-shadow: inset 0 0 0 1px var(--a-accent);
  background: var(--a-soft-bg);
}
[data-checkout] label.saved-address input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 2px 0 0;
  accent-color: var(--a-accent);
}
[data-checkout] .saved-address-body {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 400;
}
[data-checkout] .saved-address-body span {
  color: var(--a-muted);
  overflow-wrap: anywhere;
}
[data-checkout] label.saved-address.is-new .saved-address-body strong {
  color: var(--a-accent-ink);
}
[data-checkout] label.save-address {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}
[data-checkout] label.save-address[hidden] {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-account] *,
  [data-checkout] label.saved-address {
    transition: none;
  }
}
.page-head:has(> .collection-image) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
}
.page-head:has(> .collection-image) > :not(.collection-image) {
  grid-column: 2;
}
.collection-image {
  grid-row: 1 / span 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sunken, var(--surface-2, #f3f4f6));
  border: 1px solid var(--line, #e5e7eb);
}
.subcategories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 4px 0 18px;
  padding: 2px 2px 6px;
}
.subcategories::-webkit-scrollbar {
  display: none;
}
.subcategory {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 999px;
  background: var(--surface, #fff);
  color: var(--ink, inherit);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.subcategory:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgb(0 0 0 / 8%);
}
.subcategory:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.subcategory img,
.subcategory-initial {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-soft, var(--sunken, #f3f4f6));
}
.subcategory-initial {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  .subcategory {
    transition: none;
  }
}
/* Search results: previous and next page side by side (decision 0237). */
.pager {
  gap: 12px;
  flex-wrap: wrap;
}
/* ── Live chat: the unread count on its button, and the bottom right when the shop chooses it
   (decision 0233). On the right it stacks above the WhatsApp button, and back-to-top above both. ── */
.live-chat-count {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--bg);
}
.live-chat-count[hidden] {
  display: none;
}
.live-chat-launcher.is-right {
  left: auto;
  right: 1rem;
}
body:has(.chat-float) .live-chat-launcher.is-right {
  bottom: calc(5.25rem + env(safe-area-inset-bottom));
}
body:has(.live-chat-launcher.is-right) .back-to-top {
  bottom: calc(5.25rem + env(safe-area-inset-bottom));
}
body:has(.live-chat-launcher.is-right):has(.chat-float) .back-to-top {
  bottom: calc(9.5rem + env(safe-area-inset-bottom));
}
@media (max-width: 47.99rem) {
  body:has(.sticky-buy):has(.chat-float) .live-chat-launcher.is-right {
    bottom: 9.75rem;
  }
  body:has(.sticky-buy):has(.live-chat-launcher.is-right) .back-to-top {
    bottom: 10rem;
  }
  body:has(.sticky-buy):has(.live-chat-launcher.is-right):has(.chat-float) .back-to-top {
    bottom: 14rem;
  }
}
/* A Messenger-only shop's floating chat button (audit): Messenger blue. */
.chat-float.chat-float-messenger {
  background: linear-gradient(135deg, #0a7cff, #a033ff);
  color: #fff;
}

/* ══ Home sections: reviews, questions, countdown, logos, video — and quick view ══════════════════ */
.section-titles {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}
.section-sub {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.55;
}

/* Arrows beside a row's heading (theme.js shows them when the row overflows). */
.carousel-nav {
  display: flex;
  flex: none;
  gap: 0.4rem;
}
.carousel-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    opacity 0.2s;
}
.carousel-btn .icon {
  width: 1.1rem;
  height: 1.1rem;
}
.carousel-btn:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Customer reviews: white cards on a soft band, a row that snaps sideways. */
.testimonials .section-head {
  align-items: end;
}
.tm-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(16.5rem, calc((100% - 2rem) / 3));
  gap: 1rem;
  margin: 0;
  padding: 0.25rem 0.1rem 0.75rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.tm-track::-webkit-scrollbar {
  display: none;
}
@media (max-width: 47.99rem) {
  .tm-track {
    grid-auto-columns: 84%;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
}
.tm-card {
  scroll-snap-align: start;
  display: flex;
}
.tm-card figure {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
  margin: 0;
  padding: 1.5rem 1.4rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 70% at 100% 0%, var(--accent-soft), transparent 55%), var(--surface);
  transition:
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.tm-card figure:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
}
.tm-stars {
  margin: 0;
  color: var(--star);
  letter-spacing: 0.12em;
  font-size: 1rem;
  line-height: 1;
}
.tm-card blockquote {
  flex: 1;
  margin: 0;
}
.tm-card blockquote p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.65;
}
.tm-card blockquote p::before {
  content: '“';
}
.tm-card blockquote p::after {
  content: '”';
}
.tm-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.tm-photo {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sunken);
}
.tm-initial {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-transform: uppercase;
}
.tm-who {
  display: grid;
  line-height: 1.35;
}
.tm-who strong {
  font-size: 0.9375rem;
}
.tm-who small {
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Questions and answers: the heading on the left, one answer open at a time on the right. */
.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 3rem;
}
@media (min-width: 60rem) {
  .faq-section {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    align-items: start;
  }
  .faq-intro {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}
.faq-intro {
  display: grid;
  gap: 0.6rem;
}
/* Phones: the questions first, the "still have a question?" card after them. */
@media (max-width: 59.99rem) {
  .faq-section {
    row-gap: 0.6rem;
  }
  .faq-intro {
    display: contents;
  }
  .faq-list {
    margin-top: 0.75rem;
  }
  .faq-contact {
    order: 2;
    margin-top: 1rem;
  }
}
.faq-intro h2 {
  margin: 0;
}
.faq-contact {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.9rem;
  padding: 1.25rem;
  border-radius: var(--r-lg);
  background: var(--sunken);
}
.faq-contact p {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
.faq-contact strong {
  color: var(--ink);
}
.faq-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.faq-contact-links .button {
  min-height: 2.6rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  font-size: 0.9rem;
}
.faq-contact-links .icon {
  width: 1.05rem;
  height: 1.05rem;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-q {
  border-bottom: 1px solid var(--line);
}
.faq-q summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.faq-q summary::-webkit-details-marker {
  display: none;
}
.faq-q summary:hover {
  color: var(--accent);
}
.faq-q summary .icon {
  flex: none;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0.4rem;
  border-radius: 50%;
  background: var(--sunken);
  color: var(--ink);
  transition:
    rotate 0.3s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.faq-q[open] summary .icon {
  rotate: 45deg;
  background: var(--accent);
  color: var(--on-accent);
}
.faq-a {
  padding: 0 3rem 1.25rem 0.25rem;
  color: var(--ink-2);
  line-height: 1.7;
}
.faq-a > :first-child {
  margin-top: 0;
}
.faq-a > :last-child {
  margin-bottom: 0;
}
.faq-q[open] .faq-a {
  animation: rise 0.3s var(--ease);
}

/* Countdown offer: an accent panel, the clock in big even figures. */
.promo-countdown {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--r-lg);
  background:
    radial-gradient(
      90% 120% at 100% 0%,
      color-mix(in oklab, var(--accent) 55%, white) 0%,
      transparent 55%
    ),
    linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--on-accent);
  isolation: isolate;
}
.promo-countdown.has-image {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
@media (max-width: 47.99rem) {
  .promo-countdown.has-image {
    grid-template-columns: minmax(0, 1fr);
  }
  .promo-countdown .pc-media {
    order: -1;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}
.pc-body {
  display: grid;
  align-content: center;
  gap: 0.75rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.pc-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.35rem;
  margin: 0;
  padding: 0.3rem 0.75rem;
  border-radius: var(--pill);
  background: rgb(255 255 255 / 0.16);
  font-size: 0.8125rem;
  font-weight: 700;
}
.pc-eyebrow .icon {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
  stroke: none;
}
.promo-countdown h2 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.pc-text {
  margin: 0;
  max-width: 44ch;
  opacity: 0.88;
}
.pc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}
.pc-clock {
  display: grid;
  gap: 0.2rem;
  margin: 0;
}
.pc-clock-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}
.pc-clock time {
  display: block;
  min-width: 9ch;
  min-height: 1.2em;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.pc-button {
  background: var(--surface);
  color: var(--ink);
}
.pc-button:hover {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 12px 24px -12px rgb(0 0 0 / 0.45);
}
.pc-button .icon {
  width: 1.1rem;
  height: 1.1rem;
  transition: translate 0.2s var(--ease);
}
.pc-button:hover .icon {
  translate: 3px 0;
}
.pc-media {
  position: relative;
  min-height: 14rem;
}
.pc-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Brand logos: one quiet row; grey until hovered when the owner asks for it. */
.logo-strip {
  display: grid;
  gap: 1rem;
  text-align: center;
}
.logo-strip-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.logo-row li {
  display: grid;
  place-items: center;
  min-width: 8.5rem;
  height: 5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.logo-row a {
  display: grid;
  place-items: center;
  height: 100%;
}
.logo-row img {
  width: auto;
  max-width: 8rem;
  height: auto;
  max-height: 2.6rem;
  object-fit: contain;
  transition:
    filter 0.3s var(--ease),
    opacity 0.3s var(--ease);
}
.logo-strip.is-quiet img {
  filter: grayscale(1);
  opacity: 0.65;
}
.logo-strip.is-quiet li:hover img {
  filter: none;
  opacity: 1;
}
@media (max-width: 47.99rem) {
  .logo-row {
    flex-wrap: nowrap;
    justify-content: start;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .logo-row li {
    flex: none;
    min-width: 7.5rem;
    height: 4.25rem;
  }
}

/* Video: the words beside a wide still with a round play button. */
.video-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 3rem;
  align-items: center;
}
@media (min-width: 60rem) {
  .video-section:not(.is-bare) {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.5fr);
  }
}
.video-copy {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}
.video-copy h2 {
  margin: 0;
}
.video-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--ink);
  box-shadow: var(--shadow);
}
.video-stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.video-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(0 0 0 / 0.35));
  pointer-events: none;
}
.video-stage:hover > img {
  transform: scale(1.03);
}
.video-stage .video-play {
  z-index: 1;
  box-shadow:
    0 0 0 10px rgb(255 255 255 / 0.22),
    0 10px 30px rgb(0 0 0 / 0.3);
}
.video-stage .video-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  min-height: 0;
}

/* Quick view on a card: an eye beside the quick-add bar (pointers that hover only). */
.card-qv {
  display: none;
}
@media (hover: hover) {
  .card-qv {
    position: absolute;
    z-index: 2;
    top: calc(100cqw - 3.1rem);
    right: 0.55rem;
    display: grid;
    place-items: center;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: var(--r-btn);
    background: color-mix(in oklab, var(--surface) 94%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--ink);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(6px);
    transition:
      opacity 0.25s var(--ease),
      transform 0.25s var(--ease),
      background 0.2s var(--ease),
      color 0.2s var(--ease);
  }
  .card:has(.card-qv) .card-action {
    right: 3.5rem;
  }
  .card:hover .card-qv,
  .card:focus-within .card-qv {
    opacity: 1;
    transform: none;
  }
  .card-qv:hover {
    background: var(--ink);
    color: var(--bg);
  }
  .card.is-sold-out .card-qv {
    left: auto;
  }
}
.card-qv .icon {
  width: 1.15rem;
  height: 1.15rem;
}
.card-qv-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The quick view sheet: pictures on the left, choices on the right; a bottom sheet on phones. */
.quick-view {
  width: min(58rem, calc(100vw - 2rem));
  max-width: none;
  max-height: min(42rem, calc(100dvh - 2rem));
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.quick-view[open] {
  display: flex;
  flex-direction: column;
  animation: qv-in 0.35s var(--ease);
}
.quick-view::backdrop {
  background: rgb(17 24 39 / 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade 0.3s var(--ease);
}
@keyframes qv-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}
.qv-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.qv-close:hover {
  background: var(--ink);
  color: var(--bg);
}
.qv-close .icon {
  width: 1.15rem;
  height: 1.15rem;
}
.qv-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.qv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.qv-media {
  position: relative;
  min-width: 0;
  background: var(--sunken);
}
.qv-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.qv-track::-webkit-scrollbar {
  display: none;
}
.qv-slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  aspect-ratio: 4 / 5;
}
.qv-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qv-dots {
  position: absolute;
  bottom: 0.9rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}
.qv-dots span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.65);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08);
  transition:
    width 0.25s var(--ease),
    background 0.25s;
}
.qv-dots span.is-on {
  width: 1.25rem;
  background: #fff;
}
.qv-info {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}
.qv-eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.qv-title {
  margin: 0;
  padding-right: 2.5rem;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.25;
}
.qv-title a {
  text-decoration: none;
}
.qv-title a:hover {
  text-decoration: underline;
}
.qv-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0;
}
.qv-price {
  color: #be123c;
  font-size: 1.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.qv-was {
  color: var(--muted);
  font-size: 1rem;
}
.qv-options {
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.qv-stock {
  margin: 0;
  color: var(--danger);
  font-weight: 600;
}
.qv-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.qv-actions .button {
  width: 100%;
}
.qv-add.is-loading {
  opacity: 0.6;
  pointer-events: none;
}
.qv-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.qv-details:hover {
  color: var(--accent);
}
.qv-problem {
  margin: 0;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
}
.qv-shimmer {
  background: linear-gradient(90deg, var(--sunken) 0%, var(--tint) 50%, var(--sunken) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
.qv-loading .qv-media {
  aspect-ratio: 4 / 5;
}
.qv-line {
  display: block;
  height: 0.9rem;
  border-radius: 6px;
}
.qv-line-lg {
  height: 1.6rem;
}
.qv-btn {
  height: 3.1rem;
  margin-top: 1rem;
  border-radius: var(--r-btn);
}
.qv-line.w-30 {
  width: 30%;
}
.qv-line.w-40 {
  width: 40%;
}
.qv-line.w-60 {
  width: 60%;
}
.qv-line.w-80 {
  width: 80%;
}
@media (max-width: 47.99rem) {
  .quick-view {
    width: 100vw;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .quick-view[open] {
    animation: rise-up 0.35s var(--ease);
  }
  .qv-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .qv-slide {
    aspect-ratio: 1;
  }
  .qv-loading .qv-media {
    aspect-ratio: 1;
  }
  .qv-info {
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
  }
}

/* ── Grocery layer for the sections above: white tiles on mint, tangerine for urgency ── */
.testimonials,
.faq-section,
.logo-strip,
.video-section {
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.carousel-btn {
  border-color: var(--line-strong);
}
.carousel-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* Reviews: mint cards with a leafy quote mark. */
.tm-card figure {
  position: relative;
  border-color: transparent;
  border-radius: var(--r);
  background: var(--sunken);
}
.tm-card figure::before {
  content: '“';
  position: absolute;
  top: 0.35rem;
  right: 1rem;
  color: color-mix(in oklab, var(--accent) 30%, transparent);
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
}
.tm-card figure:hover {
  border-color: var(--accent-line);
  box-shadow: none;
}
.tm-card blockquote p::before,
.tm-card blockquote p::after {
  content: none;
}
.tm-card figcaption {
  border-top-color: var(--line-strong);
}
.tm-initial {
  background: var(--accent-soft);
  color: var(--accent-ink);
  box-shadow: inset 0 0 0 1.5px var(--accent-line);
}

/* Questions: rounded rows, a green plus in a soft circle. */
.faq-list {
  display: grid;
  gap: 0.5rem;
  border-top: 0;
}
.faq-q {
  border: 0;
  border-radius: var(--r);
  background: var(--sunken);
}
.faq-q[open] {
  background: var(--accent-soft);
}
.faq-q summary {
  padding: 0.95rem 1.1rem;
  font-size: 1rem;
  font-weight: 700;
}
.faq-q summary:hover {
  color: var(--accent-ink);
}
.faq-q summary .icon {
  background: var(--surface);
  color: var(--accent-ink);
}
.faq-a {
  padding: 0 1.1rem 1.1rem;
}
.faq-contact {
  border: 1.5px dashed var(--accent-line);
  background: var(--accent-soft);
}

/* Countdown: the warm tangerine "today only" band with a sunny glow. */
.promo-countdown {
  border: 1px solid #fed7aa;
  background:
    radial-gradient(
      30rem 16rem at 0% 0%,
      color-mix(in oklab, var(--sun) 70%, transparent),
      transparent 70%
    ),
    var(--tangerine-soft);
  color: var(--ink);
}
.pc-eyebrow {
  background: var(--tangerine);
  color: #fff;
}
.promo-countdown h2 {
  color: var(--ink);
}
.pc-text {
  color: var(--ink-2);
  opacity: 1;
}
.pc-clock time {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--tangerine);
  box-shadow: 0 1px 0 #fed7aa;
}
.pc-clock-label {
  color: var(--tangerine);
  opacity: 1;
}
.pc-button {
  border-radius: var(--pill);
  background: var(--accent);
  color: #fff;
}
.pc-button:hover {
  background: var(--accent-hover);
  color: #fff;
}
.pc-media img {
  border-radius: var(--r);
}
.promo-countdown.has-image .pc-media {
  margin: 0.75rem;
}

/* Logos: round-cornered white tiles. */
.logo-strip {
  text-align: left;
}
.logo-strip-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.logo-row {
  justify-content: start;
}
.logo-row li {
  border-radius: var(--r);
  background: var(--sunken);
  border-color: transparent;
}

/* Video: rounded, a green play button. */
.video-stage .video-play {
  background: var(--accent);
  color: #fff;
}

/* Quick view: a round eye in the photo's lower corner; the sheet is round and fresh. */
@media (hover: hover) {
  .card-qv {
    top: calc(100cqw - 1.95rem);
    right: 0.95rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
  }
  .card-qv .icon {
    width: 1rem;
    height: 1rem;
  }
  .card-qv:hover {
    background: var(--accent);
    color: #fff;
  }
}
.qv-slide,
.qv-loading .qv-media {
  aspect-ratio: 1;
}
.qv-price {
  color: var(--ink);
}
.qv-eyebrow {
  color: var(--accent-ink);
}
.qv-actions .button {
  border-radius: var(--pill);
}

/* The video's link: a word and an arrow that nudges on hover. */
.video-copy .section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent);
}
.video-copy .section-link .icon {
  width: 1.05rem;
  height: 1.05rem;
  transition: translate 0.2s var(--ease);
}
.video-copy .section-link:hover .icon {
  translate: 3px 0;
}
.video-copy .section-link {
  padding: 0.4rem 0.9rem;
  border-radius: var(--pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

/* ── Polish: a helpful "nothing found", swipe-only rows on phones, photos that fade in ── */
.empty-state {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  max-width: 36rem;
  margin: clamp(0.5rem, 3vw, 2rem) auto 0;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: center;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.empty-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}
.empty-state h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.3rem, 3vw, 1.65rem);
}
.empty-state > p {
  margin: 0;
  max-width: 26rem;
  color: var(--muted);
}
.empty-search {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
}
.empty-search input {
  flex: 1;
  min-width: 0;
  height: 3rem;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.empty-search input:focus {
  border-color: var(--accent);
  outline: 3px solid color-mix(in oklab, var(--accent) 22%, transparent);
  outline-offset: 0;
}
.empty-search .button {
  flex: none;
  min-height: 3rem;
  padding-inline: 1.1rem;
}
.empty-state > .empty-browse {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
:lang(bn) .empty-state > .empty-browse {
  letter-spacing: 0;
}
.empty-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.empty-links a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.empty-links a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.empty-home {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.empty-home svg {
  width: 1rem;
  height: 1rem;
  transition: translate 0.2s var(--ease);
}
.empty-home:hover svg {
  translate: 3px 0;
}

/* Phones swipe rows; the arrows are for pointers. */
@media (max-width: 47.99rem) {
  .carousel-nav {
    display: none !important;
  }
}

/* Card photos fade in as they arrive (theme.js marks them), over a soft shimmer. */
.card-media .card-img[data-fade]:not(.is-loaded) {
  opacity: 0;
}
.card-media .card-img[data-fade].is-loaded {
  animation: photo-in 0.5s var(--ease);
}
.card-media:has(> .card-img[data-fade]:not(.is-loaded)) {
  background: linear-gradient(90deg, var(--sunken) 0%, var(--tint) 50%, var(--sunken) 100%);
  background-size: 200% 100%;
  animation: photo-wait 1.3s linear infinite;
}
@keyframes photo-in {
  from {
    opacity: 0;
  }
}
@keyframes photo-wait {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

.empty-icon {
  background: var(--sun);
  color: var(--ink);
}
.empty-links a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* Quick view on a phone: a shorter photo, so the price and the button show without scrolling. */
@media (max-width: 47.99rem) {
  .quick-view {
    width: 100%;
  }
  .qv-slide,
  .qv-loading .qv-media {
    aspect-ratio: auto;
    height: min(44dvh, 92vw);
  }
}

/* A home section that waits for the shop script (recently viewed): no gap while it is hidden. */
main > .section:has(> [hidden]:only-child) {
  display: none;
}
.home-recent {
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

/* ── Phone bottom menu ──────────────────────────────────────────────────── */
/* Home, menu, wishlist, cart and account under the thumb on phones. Floating buttons, toasts and
   the product page's buy bar ride above it. Off on checkout and payment pages. */
.tabbar {
  display: none;
  font-size: 0.68rem;
  line-height: 1.2;
}
.tabbar-item {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.2rem;
  min-width: 0;
  height: 100%;
  padding: 0 0.15rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tabbar-item .icon {
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
}
.tabbar-icon {
  position: relative;
  display: inline-grid;
}
.tabbar-label {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tabbar .count {
  position: absolute;
  top: -0.4rem;
  right: -0.7rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
}
.tabbar .count[hidden] {
  display: none;
}
.tabbar-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
@media (max-width: 767px) {
  body[data-tabbar] {
    --tabbar-h: calc(4.25rem + env(safe-area-inset-bottom));
  }
  [data-tabbar] .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--tabbar-h);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 36;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
  }
  [data-tabbar] .site-footer {
    padding-bottom: calc(1rem + var(--tabbar-h));
  }
  [data-tabbar]
    :is(
      .sticky-buy,
      .chat-float,
      .live-chat-launcher,
      .back-to-top,
      .toast-region,
      .compare-bar,
      .sp-popup
    ) {
    margin-bottom: var(--tabbar-h);
  }
}
@media print {
  [data-tabbar] .tabbar {
    display: none;
  }
}
[data-tabbar] .tabbar {
  border-radius: 20px 20px 0 0;
  background: var(--surface);
  box-shadow: 0 -10px 30px -12px rgb(27 25 23 / 0.18);
  color: var(--muted);
}
.tabbar-item.is-current {
  color: var(--accent);
  font-weight: 700;
}
.tabbar-cart {
  color: var(--ink-2);
}
.tabbar-cart .tabbar-icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-top: -1.6rem;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 20px -8px color-mix(in oklab, var(--accent) 70%, transparent);
  transition: transform 0.2s var(--ease);
}
.tabbar-cart:active .tabbar-icon {
  transform: scale(0.94);
}
.tabbar-cart .count {
  top: 0.1rem;
  right: 0.05rem;
  background: #f59e0b;
  color: #1b1917;
  box-shadow: 0 0 0 2px var(--surface);
}

/* ══ Grocery business pass: delivery promise, pack sizes, card steppers, the cart bar, aisles ══════ */
/* The owner's delivery promise and area in the header: beside the shop's name on wide screens, a
   slim line under the search on phones. */
.deliver-chip {
  grid-area: deliver;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  color: var(--accent-ink);
  font-size: 0.8125rem;
  line-height: 1.25;
}
.deliver-chip .icon {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0.4rem;
  border-radius: 50%;
  background: var(--accent-soft);
}
.deliver-copy {
  display: grid;
  min-width: 0;
}
.deliver-copy strong {
  font-weight: 800;
}
.deliver-copy > * {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.deliver-area {
  color: var(--muted);
  font-weight: 600;
}
@media (min-width: 1100px) {
  .header-bar:has(.deliver-chip) {
    grid-template-columns: auto minmax(0, 13rem) minmax(0, 1fr) auto;
    grid-template-areas: 'brand deliver search actions';
  }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .header-bar:has(.deliver-chip) {
    grid-template-areas:
      'brand search actions'
      'deliver deliver deliver';
    row-gap: 0.35rem;
  }
}
@media (max-width: 1099px) {
  .deliver-chip .icon {
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    background: none;
  }
  .deliver-copy {
    display: flex;
    gap: 0.4rem;
  }
  .deliver-copy strong + .deliver-area::before {
    content: '·';
    margin-right: 0.4rem;
  }
}
@media (max-width: 767px) {
  .header-bar:has(.deliver-chip) {
    grid-template-areas:
      'menu brand actions'
      'search search search'
      'deliver deliver deliver';
    padding-bottom: 0.5rem;
  }
  .deliver-chip {
    font-size: 0.75rem;
  }
}

/* Cards: the brand small above the title, the pack size as a clear chip under it. */
.card-brand {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.card-pack {
  justify-self: start;
  max-width: 100%;
  overflow: hidden;
  padding: 0.1rem 0.55rem;
  border-radius: var(--r-xs);
  background: var(--sunken);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

/* Add → − 2 kg +: the stepper takes the button's place at the same height, filled green. */
.card-buy-box {
  display: grid;
}
.card-buy-box .card-action {
  width: 100%;
}
.card-stepper {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
  align-items: center;
  min-height: 2.5rem;
  border-radius: var(--pill);
  background: var(--accent);
  color: #fff;
  animation: pop 0.3s var(--ease);
}
.card-stepper button {
  display: grid;
  place-items: center;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: var(--pill);
  background: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.card-stepper button:hover {
  background: rgb(255 255 255 / 0.16);
}
.card-stepper button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}
.card-stepper button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.card-stepper .icon {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 2.4;
}
.card-stepper output {
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.card:has(.is-in-cart) {
  border-color: var(--accent-line);
}

/* The cart bar: a green panel at the bottom (above the bottom menu on phones), a tab on the right
   edge on wide screens. */
.cart-bar {
  position: fixed;
  z-index: 34;
  color: #fff;
  animation: rise-up 0.35s var(--ease);
}
.cart-bar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}
.cart-bar-link:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}
.cart-bar-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.18);
}
.cart-bar-icon .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.cart-bar-sum {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}
.cart-bar-items {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
}
.cart-bar-total {
  font-size: 1.0625rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.cart-bar-go {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  padding: 0.45rem 0.85rem;
  border-radius: var(--pill);
  background: #fff;
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 800;
  white-space: nowrap;
}
.cart-bar-go .icon {
  width: 0.95rem;
  height: 0.95rem;
}
.cart-bar-free {
  display: grid;
  gap: 0.3rem;
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
}
.cart-bar-track {
  height: 0.3rem;
  overflow: hidden;
  border-radius: var(--pill);
  background: rgb(255 255 255 / 0.25);
}
.cart-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sun);
  transition: width 0.6s var(--ease);
}
.cart-bar-free.is-done .cart-bar-free-text::before {
  content: '✓ ';
}
@media (max-width: 1199px) {
  .cart-bar {
    left: 0.6rem;
    right: 0.6rem;
    bottom: calc(var(--tabbar-h, env(safe-area-inset-bottom)) + 0.5rem);
    padding: 0.55rem 0.6rem 0.6rem;
    border-radius: var(--r);
    background: var(--accent-ink);
    box-shadow: 0 14px 30px -12px rgb(20 33 24 / 0.55);
  }
  @media (min-width: 768px) {
    .cart-bar {
      left: 50%;
      right: auto;
      width: min(30rem, calc(100% - 2rem));
      translate: -50% 0;
    }
  }
  /* Clear of the bottom menu's raised cart button. */
  [data-tabbar] .cart-bar {
    bottom: calc(var(--tabbar-h, 0px) + 1.75rem);
  }
  body.has-cart-bar:not(:has(.sticky-buy)) main {
    padding-bottom: 7rem;
  }
  body.has-cart-bar:not(:has(.sticky-buy))
    :is(.chat-float, .live-chat-launcher, .back-to-top, .toast-region, .compare-bar) {
    margin-bottom: calc(var(--tabbar-h, 0px) + 6.25rem);
  }
}
@media (max-width: 899px) {
  body:has(.sticky-buy) .cart-bar {
    display: none;
  }
}
@media (min-width: 1200px) {
  .cart-bar {
    top: 50%;
    right: 0;
    width: 6.25rem;
    padding: 0.75rem 0.6rem 0.7rem;
    border-radius: var(--r) 0 0 var(--r);
    background: var(--accent-ink);
    box-shadow: -10px 16px 34px -16px rgb(20 33 24 / 0.55);
    translate: 0 -50%;
    animation: none;
  }
  .cart-bar-link {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }
  .cart-bar-sum {
    justify-items: center;
  }
  .cart-bar-total {
    font-size: 0.9375rem;
  }
  .cart-bar-go {
    margin: 0;
    padding: 0.25rem 0.6rem;
    font-size: 0.6875rem;
  }
  .cart-bar-go .icon {
    display: none;
  }
  .cart-bar-free-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .cart-bar-link:hover .cart-bar-go {
    background: var(--sun);
    color: var(--ink);
  }
}
@media print {
  .cart-bar {
    display: none;
  }
}

/* The owner's minimum-order line at the top of the cart drawer. */
.drawer-min-order {
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.9rem;
  border: 1px dashed var(--accent-line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* Collection: the aisles in a list on the left on wide screens; the subcategory chips stay on top. */
.aisle-side {
  display: none;
}
@media (min-width: 1024px) {
  .aisle-layout.has-aisles {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    align-items: start;
    gap: 1.75rem;
  }
  .has-aisles .aisle-side {
    position: sticky;
    top: calc(var(--header-h) + 3.5rem);
    display: block;
    max-height: calc(100dvh - var(--header-h) - 5rem);
    overflow-y: auto;
    padding: 0.9rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    scrollbar-width: thin;
  }
  .has-aisles .grid {
    --grid-cols: 5;
  }
}
.aisle-side h2 {
  margin: 0 0.5rem 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.aisle-list,
.aisle-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.aisle-list ul {
  margin: 0.15rem 0 0.35rem 0.85rem;
  padding-left: 0.6rem;
  border-left: 2px solid var(--line);
}
.aisle-list a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: var(--r-xs);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.aisle-list ul a {
  padding-block: 0.35rem;
  font-size: 0.85rem;
}
.aisle-list a:hover {
  background: var(--sunken);
  color: var(--ink);
}
.aisle-list a[aria-current='page'] {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 800;
  box-shadow: inset 3px 0 0 var(--accent);
}
.aisle-list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* Product page: pack size, origin and brand as a row of facts; the weight note for loose produce. */
.grocery-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.grocery-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  font-size: 0.875rem;
}
.grocery-facts .icon {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}
.grocery-facts span {
  color: var(--muted);
}
.grocery-facts strong {
  font-weight: 800;
}
.grocery-facts .fact-pack {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 1rem;
}
.weight-note {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-sm);
  background: var(--tangerine-soft);
  color: #7c2d12;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.weight-note .icon {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.1rem;
}

@media (prefers-reduced-motion: reduce) {
  .card-stepper,
  .cart-bar {
    animation: none;
  }
  .cart-bar-fill {
    transition: none;
  }
}

/* Brand and option filters on category pages (decision 0240). */
.facets {
  display: grid;
  gap: 0.625rem;
  margin: 0.75rem 0 1rem;
}
.facet {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-width: 0;
}
.facet-name {
  flex: none;
  min-width: 4.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: capitalize;
  opacity: 0.75;
}
.facet-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.facet-value {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.25rem;
  padding: 0.25rem 0.875rem;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 999px;
  color: inherit;
  font-size: 0.8125rem;
  text-decoration: none;
  text-transform: capitalize;
  white-space: nowrap;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}
.facet-value:hover {
  border-color: color-mix(in srgb, currentColor 55%, transparent);
}
.facet-value:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.facet-value.is-on {
  border-color: currentColor;
  background: color-mix(in srgb, currentColor 10%, transparent);
  font-weight: 600;
}
.facet-value.is-on::before {
  content: '✓';
}
.facet-count {
  font-size: 0.75em;
  font-weight: 400;
  opacity: 0.6;
}
@media (max-width: 640px) {
  .facet {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.375rem;
  }
  .facet-values {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .facet-values::-webkit-scrollbar {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .facet-value {
    transition: none;
  }
}

/* Partial Payment (decision 0245): what cash on delivery asks now, under its choice. */
[data-payments] [hidden] {
  display: none !important;
}
.partial-payment-line {
  margin: 0.5rem 0 0;
  font-size: 0.9375em;
  font-weight: 600;
}

/* The checkout's SMS code (COD fraud check, decision 0322): the flexible step is a card like the
   confirmation; the code itself is large and spaced. */
.checkout-otp {
  margin-block: 1rem;
}
.checkout-otp .field {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  margin: 1rem 0 0.5rem;
}
.checkout-otp input[data-otp-code] {
  width: 100%;
  max-width: 11rem;
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.45em;
  text-align: center;
  padding-inline-start: 0.45em;
}
.checkout-otp .link {
  display: block;
  width: fit-content;
  margin: 0.75rem auto 0;
}
.checkout-otp > .button {
  display: flex;
  width: fit-content;
  margin: 0.75rem auto 0;
}

/* ══ Shopper pages: shared pieces ═══════════════════════════════════════════════════════════════
 * The bazaar's paper and signs, used by every shopper page and by the parts that show on all pages:
 * a kraft price tag over each page's title, the rickshaw van on the free-delivery road, the jute
 * bag of the cart drawer, kraft tags for toasts, chalk aisle signs over the checkout's steps and a
 * shop's cash memo for the summary. Each page's own look is in assets/pages/<page>.css.
 * ═══════════════════════════════════════════════════════════════════════════════════════════════ */
@font-face {
  font-family: 'Anek Bangla';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/anek-bangla-bengali.woff2') format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Anek Bangla';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/anek-bangla-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20B9, U+2212;
}
@font-face {
  font-family: 'Galada';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/galada-bengali.woff2') format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Galada';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/galada-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20B9, U+2212;
}
:root {
  --font-head: 'Anek Bangla', var(--font);
  --font-hand: 'Galada', var(--font);
  --kraft: #d8b98a;
  --kraft-deep: #b58b55;
  --kraft-ink: #5b3c17;
  --jute: #c9a467;
  --chalk: #21332a;
  --chalk-ink: #f4f1e4;
  --paper: #fffdf6;
  --rule: #c7dceb;
  --margin-red: #e2898a;
  --road: #3d4540;
  --memo-ink: #26302a;
  /* A shop's cash memo has a torn edge: teeth pointing up (top) or down (bottom), 16 × 8 px. */
  --teeth-up: conic-gradient(from 135deg at 50% 0, var(--paper) 90deg, #0000 0) 0 0 / 16px 8px
    repeat-x;
  --teeth-down: conic-gradient(from -45deg at 50% 100%, var(--paper) 90deg, #0000 0) 0 0 / 16px 8px
    repeat-x;
}

/* Bangla letters join up: spaced-out small capitals are for Latin only. */
:lang(bn)
  :is(
    .eyebrow,
    .badge,
    .footer-col h2,
    .post-meta,
    .offer-badge,
    .order-bumps-title,
    .spec-block h3,
    .compare-group th,
    .size-chart thead th,
    .qv-eyebrow,
    .pc-clock-label,
    .logo-strip-title,
    .card-brand,
    .card-countdown,
    .empty-state > .empty-browse
  ) {
  letter-spacing: 0;
  text-transform: none;
}

/* A page's head: a kraft price tag on a string, then the big title in Anek Bangla. */
.gp-head {
  margin: 0 0 clamp(1.4rem, 3vw, 2.2rem);
}
.gp-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  margin: 0 0 0.7rem 1.3rem;
  padding: 0.15rem 1rem 0 1.55rem;
  background:
    radial-gradient(circle at 0.85rem 50%, var(--bg) 0 0.24rem, #0000 0.27rem),
    linear-gradient(180deg, rgb(255 255 255 / 0.18), #0000 60%), var(--kraft);
  color: var(--kraft-ink);
  font-family: var(--font-hand);
  font-size: 1.08rem;
  line-height: 1.3;
  clip-path: polygon(0.75rem 0, 100% 0, 100% 100%, 0.75rem 100%, 0 50%);
  rotate: -2deg;
}
/* The tag's string, looping away to the left. */
.gp-tag::before {
  content: '';
  position: absolute;
  left: -1.3rem;
  top: 50%;
  width: 2.2rem;
  height: 1.1rem;
  border: 1.5px solid var(--kraft-deep);
  border-right: 0;
  border-radius: 50% 0 0 50%;
  translate: 0 -78%;
}
.gp-title.gp-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 1.45rem + 2.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.gp-lead {
  max-width: 38rem;
  margin: 0.6rem 0 0;
  color: var(--ink-2);
  font-size: 1.02rem;
}

/* ── Free delivery: a rickshaw van rides the road to the shopper's door ── */
.free-delivery {
  position: relative;
  margin: 0 0 1rem;
  padding: 0.9rem 1.15rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.free-delivery-text {
  margin: 0 0 1.75rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
}
.free-delivery-bar {
  position: relative;
  height: 0.6rem;
  margin-right: 1.9rem;
  overflow: visible;
  border-radius: var(--pill);
  background:
    repeating-linear-gradient(90deg, #f4efd9 0 7px, #0000 7px 15px) 0 50% / 100% 2px no-repeat,
    var(--road);
}
/* The door at the road's end. */
.free-delivery-bar::after {
  content: '';
  position: absolute;
  right: -1.95rem;
  bottom: -0.25rem;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--tangerine);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5 1.5 11.2l1.6 1.9L5 11.5V22h5.5v-6h3v6H19V11.5l1.9 1.6 1.6-1.9z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.free-delivery-fill {
  position: relative;
  display: block;
  min-width: 1.3rem;
  height: 100%;
  border-radius: inherit;
  background:
    repeating-linear-gradient(90deg, #fff7 0 7px, #0000 7px 15px) 0 50% / 100% 2px no-repeat,
    var(--accent);
  transition: width 0.7s var(--ease);
}
/* The van: a cargo rickshaw with a crate on its bed. */
.free-delivery-fill::after {
  content: '';
  position: absolute;
  right: -1.3rem;
  bottom: calc(100% - 0.2rem);
  width: 2.6rem;
  height: 1.65rem;
  background: var(--accent-ink);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 30' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='23' r='5'/%3E%3Ccircle cx='40' cy='23' r='5'/%3E%3Cpath d='M3 16h23M26 16l14 7M31 18.5V11M28 11h6M40 23 38 8M35.5 8h5'/%3E%3Crect x='4.5' y='5' width='16' height='8' rx='1.5' fill='black'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.free-delivery.is-done {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.free-delivery.is-done .free-delivery-text {
  color: var(--accent-ink);
}
.free-delivery.is-done .free-delivery-fill::after {
  right: 0.1rem;
}
@media (prefers-reduced-motion: no-preference) {
  .free-delivery-fill::after {
    animation: g-bump 0.9s ease-in-out infinite alternate;
  }
}
@keyframes g-bump {
  to {
    translate: 0 -1.5px;
  }
}

/* ── The cart drawer: a jute bazaar bag (thole) ── */
.cart-drawer {
  background: #fbf6ea;
}
.cart-drawer .drawer-head {
  position: relative;
  padding: 1.05rem 1.25rem 1.15rem;
  border-bottom: 0;
  background:
    repeating-linear-gradient(0deg, rgb(91 60 23 / 0.13) 0 2px, #0000 2px 5px),
    repeating-linear-gradient(90deg, rgb(91 60 23 / 0.11) 0 2px, #0000 2px 5px), var(--jute);
  color: var(--kraft-ink);
}
/* The hem's stitches. */
.cart-drawer .drawer-head::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.4rem;
  border-bottom: 2px dashed rgb(91 60 23 / 0.55);
}
.cart-drawer .drawer-head h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--kraft-ink);
}
.cart-drawer .drawer-head h2::before {
  content: '';
  width: 1.6rem;
  height: 1.6rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 9h15l-1.4 10.6a2 2 0 0 1-2 1.7H7.9a2 2 0 0 1-2-1.7z'/%3E%3Cpath d='M8.5 9C8.5 5 10 3 12 3s3.5 2 3.5 6'/%3E%3Cpath d='M8 13.5h8M8.6 17h6.8' stroke-dasharray='1.6 1.8'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.cart-drawer .drawer-close {
  background: rgb(255 255 255 / 0.55);
  color: var(--kraft-ink);
}
.cart-drawer .drawer-close:hover {
  background: #fff;
}
.cart-drawer .drawer-body {
  padding: 1.15rem 1.15rem 1.5rem;
}
.cart-drawer .drawer-lines {
  margin: 0 0 1rem;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}
.cart-drawer .drawer-line {
  grid-template-columns: 4.1rem minmax(0, 1fr) auto;
  gap: 0.85rem;
  padding: 0.9rem 0.95rem;
  border-bottom: 1px dashed var(--line-strong);
}
.cart-drawer .drawer-line:last-child {
  border-bottom: 0;
}
.cart-drawer .drawer-thumb {
  width: 4.1rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow:
    0 0 0 3px var(--surface),
    0 0 0 4.5px var(--accent-line);
}
.cart-drawer .drawer-line-info > a,
.cart-drawer .drawer-line-info > span:first-child {
  font-weight: 700;
  color: var(--ink);
}
/* The weight or count bought: a brass weight (batkhara) beside it. */
.cart-drawer .drawer-line-info > small.drawer-qty:last-of-type {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  margin-top: 0.35rem;
  padding: 0.1rem 0.6rem 0.1rem 0.45rem;
  border-radius: var(--pill);
  background: var(--sunken);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cart-drawer .drawer-line-info > small.drawer-qty:last-of-type::before {
  content: '';
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--kraft-deep);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='4.6' r='2.6' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M7.5 8.5h9L20 21H4z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.cart-drawer .drawer-line-total {
  padding-top: 0.1rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
}
.cart-drawer .qty-stepper {
  height: 2.5rem;
  border: 0;
  background: var(--accent);
  color: #fff;
}
.cart-drawer .qty-stepper .qty-btn {
  width: 2.5rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
}
.cart-drawer .qty-stepper .qty-btn:hover:not(:disabled) {
  background: var(--accent-hover);
}
.cart-drawer .qty-stepper .qty-btn:disabled {
  color: rgb(255 255 255 / 0.45);
}
.cart-drawer .qty-value {
  min-width: 2.2rem;
  padding-inline: 0.2rem;
  font-weight: 700;
  white-space: nowrap;
}
.cart-drawer .drawer-remove {
  min-height: 2.75rem;
  padding-inline: 0.3rem;
}
.cart-drawer .drawer-remove:hover {
  color: var(--danger);
}
.cart-drawer .drawer-line .problem {
  margin: 0.4rem 0 0;
  padding: 0.3rem 0.55rem;
  border-radius: var(--r-xs);
  background: color-mix(in oklab, var(--danger) 9%, white);
  font-size: 0.8125rem;
}
/* Subtotal: the foot of a cash memo. */
.cart-drawer .drawer-body > .totals {
  position: relative;
  margin: 1.4rem 0 0;
  padding: 0.9rem 1rem 0.95rem;
  background: var(--paper);
  color: var(--memo-ink);
}
.cart-drawer .drawer-body > .totals::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
  background: var(--teeth-up);
}
.cart-drawer .drawer-body > .totals dt {
  font-weight: 700;
  color: var(--memo-ink);
}
.cart-drawer .drawer-body > .totals dd {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}
.cart-drawer .drawer-body > .note {
  margin: 0;
  padding: 0 1rem 0.9rem;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.8125rem;
}
.cart-drawer .drawer-actions {
  grid-template-columns: 1fr 1fr;
  margin-top: 1rem;
}
.cart-drawer .drawer-actions .button {
  min-height: 3rem;
}
.cart-drawer .drawer-actions .button.secondary {
  border-color: var(--kraft-deep);
  background: transparent;
  color: var(--kraft-ink);
}
.cart-drawer .drawer-actions .button.secondary:hover {
  background: var(--kraft);
}
.cart-drawer .drawer-actions > :only-child {
  grid-column: 1 / -1;
}
/* An empty bag, its mouth open. */
.cart-drawer .drawer-empty {
  gap: 0.5rem;
  margin: 2.5rem 0 1.25rem;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
}
.cart-drawer .drawer-empty::before {
  width: 7rem;
  height: 7rem;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%235b3c17' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 24h36l-3.5 30a4 4 0 0 1-4 3.5h-21a4 4 0 0 1-4-3.5z' fill='%23d8b98a'/%3E%3Cpath d='M23 24c0-9 4-15 9-15s9 6 9 15'/%3E%3Cpath d='M17 32h30M18 40h28M19 48h26' stroke-dasharray='2 3' opacity='.6'/%3E%3Cellipse cx='32' cy='24' rx='18' ry='3.5' fill='%23b58b55'/%3E%3C/svg%3E")
      center / 4.6rem no-repeat,
    var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.cart-drawer .drawer-continue {
  display: flex;
  width: fit-content;
  margin: 0 auto;
}
.cart-drawer .drawer-min-order {
  border: 0;
  border-left: 4px solid var(--sun);
  border-radius: var(--r-xs);
  background: var(--chalk);
  color: var(--chalk-ink);
}
/* Loading: three peas rolling. */
.note.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 2.5rem 0;
  color: var(--muted);
}
.note.is-loading::before {
  content: '';
  width: 2.2rem;
  height: 0.6rem;
  background: radial-gradient(circle, var(--accent) 0 0.28rem, #0000 0.3rem) 0 50% / 0.73rem 0.6rem
    repeat-x;
  opacity: 0.8;
}
@media (prefers-reduced-motion: no-preference) {
  .note.is-loading::before {
    animation: g-peas 0.9s linear infinite;
  }
}
@keyframes g-peas {
  to {
    background-position-x: 0.73rem;
  }
}

/* ── Toasts: a kraft price tag on its string ── */
.toast {
  position: relative;
  gap: 0.55rem;
  padding: 0.7rem 1.2rem 0.7rem 1.85rem;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background:
    radial-gradient(circle at 0.95rem 50%, var(--surface) 0 0.24rem, #0000 0.27rem), var(--kraft);
  color: var(--kraft-ink);
  font-weight: 700;
  clip-path: polygon(0.8rem 0, 100% 0, 100% 100%, 0.8rem 100%, 0 50%);
  box-shadow: none;
  filter: drop-shadow(0 8px 14px rgb(20 33 24 / 0.28));
}
.toast::before {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 0;
  background: var(--accent-ink);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.toast-error {
  background:
    radial-gradient(circle at 0.95rem 50%, var(--surface) 0 0.24rem, #0000 0.27rem), var(--danger);
  color: #fff;
}
.toast-error::before {
  background: #fff;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M12 6v7.5M12 18h.01'/%3E%3C/svg%3E");
}

/* ── Checkout form (the checkout page and the quick-order sheet) ── */
/* Each step's title is a chalk aisle sign in a wooden frame, its number on a sun-yellow disc. */
.checkout-fields > fieldset:not([hidden]) {
  border-color: var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 0 var(--line-strong);
}
.checkout-fields > fieldset > legend,
:lang(bn) .checkout-fields > fieldset > legend {
  width: fit-content;
  max-width: 100%;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem 1rem 0.3rem 0.4rem;
  border: 3px solid #9c7444;
  border-radius: 0.55rem;
  background: radial-gradient(120% 90% at 20% 0%, rgb(255 255 255 / 0.08), #0000 60%), var(--chalk);
  color: var(--chalk-ink);
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 700;
  box-shadow: 0 2px 0 rgb(0 0 0 / 0.15);
}
.checkout-fields > fieldset > legend::before {
  width: 1.75rem;
  height: 1.75rem;
  background: var(--sun);
  color: var(--chalk);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 800;
}
:lang(bn) .checkout-fields > fieldset > legend::before {
  content: counter(step, bengali) / '';
}
/* Delivery choices and payment methods: price tags with a punched hole. */
main label.rate,
dialog :where(.quick-body) label.rate {
  position: relative;
  min-height: 3.4rem;
  padding: 0.85rem 2.6rem 0.85rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-weight: 600;
}
main label.rate::after,
dialog :where(.quick-body) label.rate::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  translate: 0 -50%;
}
main label.rate:has(:checked),
dialog :where(.quick-body) label.rate:has(:checked) {
  border-color: var(--accent);
  background: linear-gradient(90deg, var(--accent) 0 5px, #0000 5px), var(--accent-soft);
  box-shadow: none;
}
main label.rate:has(:checked)::after,
dialog :where(.quick-body) label.rate:has(:checked)::after {
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
main label.rate input,
dialog :where(.quick-body) label.rate input {
  accent-color: var(--accent);
}
/* Saved addresses: delivery labels with a dashed cutting line. */
[data-checkout] label.saved-address {
  border-style: dashed;
  border-radius: var(--r-sm);
}
[data-checkout] label.saved-address:has(input:checked) {
  border-style: solid;
  background: var(--accent-soft);
}
/* The summary: a shop's cash memo with torn edges. */
.checkout-aside {
  position: relative;
  margin-block: 8px;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--memo-ink);
  box-shadow: none;
  filter: drop-shadow(0 10px 18px rgb(20 33 24 / 0.14)) drop-shadow(0 1px 1px rgb(20 33 24 / 0.1));
}
.checkout-aside::before,
.checkout-aside::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
}
.checkout-aside::before {
  top: -8px;
  background: var(--teeth-up);
}
.checkout-aside::after {
  bottom: -8px;
  background: var(--teeth-down);
}
.checkout-aside > h2,
:lang(bn) .checkout-aside > h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px dashed var(--line-strong);
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
}
.checkout-aside .checkout-items {
  border-bottom: 1px dashed var(--line-strong);
}
.checkout-aside .checkout-item-qty {
  min-width: 1.45rem;
  width: auto;
  padding-inline: 0.3rem;
  border-radius: var(--pill);
  background: var(--accent);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.checkout-aside .checkout-item-media {
  border-radius: 50%;
}
.checkout-aside .checkout-item-media img {
  border-radius: 50%;
}
.checkout-aside .totals dt {
  color: var(--ink-2);
}
.checkout-aside .totals dd {
  font-variant-numeric: tabular-nums;
}
.checkout-aside .totals dt:last-of-type,
.checkout-aside .totals dd:last-of-type {
  border-top: 2px dashed var(--line-strong);
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
}
.checkout-aside .totals .is-pending {
  color: var(--tangerine);
  font-size: 0.875rem;
  font-weight: 600;
}
.checkout-aside .buy {
  width: 100%;
  min-height: 3.4rem;
  font-size: 1.1rem;
}
.checkout-aside [data-error]:not([hidden]) {
  padding: 0.55rem 0.8rem;
  border-left: 4px solid var(--danger);
  border-radius: var(--r-xs);
  background: color-mix(in oklab, var(--danger) 8%, white);
}

/* After the order: the shop's cash memo, stamped in green. */
.placed,
.checkout-otp {
  position: relative;
  margin-block: 8px;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--memo-ink);
  box-shadow: none;
  filter: drop-shadow(0 12px 22px rgb(20 33 24 / 0.16)) drop-shadow(0 1px 1px rgb(20 33 24 / 0.1));
}
:is(.placed, .checkout-otp)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 8px;
  background: var(--teeth-down);
}
.placed::before {
  width: 5.5rem;
  height: 5.5rem;
  border: 3px double var(--accent);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E")
      center / 2.4rem no-repeat,
    color-mix(in oklab, var(--accent) 7%, white);
  rotate: -10deg;
}
:is(.placed, .checkout-otp) > h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  font-weight: 800;
}
.placed > p:first-of-type {
  display: inline-block;
  padding: 0.25rem 0.9rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--pill);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.placed .accounts li {
  border: 1px dashed var(--line-strong);
  background: var(--surface);
  text-align: left;
}
.checkout-otp input[data-otp-code] {
  border: 2px dashed var(--accent-line);
  background: var(--surface);
  font-family: var(--font-head);
  font-weight: 700;
}

/* The SMS code in a popup (decision 0335): the order button opens it on the checkout, the Buy now
   sheet and their forms, whatever kind of code checkout the shop uses. It is the card above, on
   the theme's own veil, with a close button in its corner. */
.otp-popup {
  box-sizing: border-box;
  width: min(32rem, 100vw);
  max-width: none;
  max-height: 100dvh;
  margin: auto;
  /* Room for what a card draws past its edge (a badge on top, a torn edge below) and its shadow. */
  padding: 2.25rem 1rem;
  border: 0;
  background: none;
  color: inherit;
  overflow: auto;
}
.otp-popup::backdrop {
  background: rgb(27 25 23 / 0.45);
  backdrop-filter: blur(3px);
}
.otp-popup .checkout-otp {
  position: relative;
  max-width: none;
  margin: 0;
}
.otp-popup-close {
  position: absolute;
  inset-block-start: 0.6rem;
  inset-inline-end: 0.6rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.otp-popup-close:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}
.otp-popup-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ── The quick-order sheet: a kraft order pad ── */
.quick-order {
  background: #fbf6ea;
}
.quick-order .quick-head {
  position: relative;
  padding-bottom: 1.25rem;
  border-bottom: 0;
  background:
    radial-gradient(circle at 50% 0.65rem, #fbf6ea 0 0.28rem, #0000 0.31rem) 0 0 / 2.2rem 100%
      repeat-x,
    var(--kraft);
  color: var(--kraft-ink);
}
.quick-order .quick-head::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 8px;
  background: conic-gradient(from 135deg at 50% 0, #fbf6ea 90deg, #0000 0) 0 0 / 16px 8px repeat-x;
}
.quick-order .quick-head h2 {
  margin-top: 0.6rem;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--kraft-ink);
}
.quick-order .quick-head p {
  color: color-mix(in oklab, var(--kraft-ink) 80%, white);
  font-weight: 600;
}
.quick-order .drawer-close {
  margin-top: 0.4rem;
  background: rgb(255 255 255 / 0.5);
  color: var(--kraft-ink);
}
.quick-order .drawer-close:hover {
  background: #fff;
}
.quick-order .quick-skeleton {
  background: linear-gradient(90deg, #f1e7d3 25%, var(--surface) 50%, #f1e7d3 75%);
  background-size: 300% 100%;
}
/* Each aisle sign hangs from the fieldset's top on two strings. */
.checkout-fields > fieldset > legend {
  position: relative;
}
.checkout-fields > fieldset > legend::after {
  content: '';
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: calc(100% + 3px);
  height: 0.85rem;
  background:
    linear-gradient(#9c7444, #9c7444) 0 0 / 2px 100% no-repeat,
    linear-gradient(#9c7444, #9c7444) 100% 0 / 2px 100% no-repeat;
}
.checkout-fields > fieldset:not([hidden]) {
  padding-top: 1.6rem;
}
/* The memo's clip shows on the checkout page only (pages/checkout.css), not in the sheet. */
.gc-clip {
  display: none;
}
.checkout-fields [data-address-extra] > label:last-child {
  margin-bottom: 1rem;
}
/* A line sold by measure spells it out under its name ("১.৫ কেজি", shop.js); the bubble on the
   picture keeps the bare number. */
.checkout-item-measure {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  margin-top: 0.2rem;
  padding: 0.05rem 0.55rem 0.05rem 0.4rem;
  border-radius: var(--pill);
  background: var(--sunken);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.checkout-item-measure::before {
  content: '';
  flex: none;
  width: 0.8rem;
  height: 0.8rem;
  background: var(--kraft-deep);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='4.6' r='2.6' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M7.5 8.5h9L20 21H4z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* Phones: the product page's bar holds Add to cart and Order now side by side, both named, so an
   order is one tap away (decision 0347); the name and price are on the page just above it. */
@media (max-width: 767px) {
  .sticky-buy:has(.sticky-order) {
    gap: 0.6rem;
  }
  .sticky-buy:has(.sticky-order) :is(.sticky-buy-info, .sticky-buy-img) {
    display: none;
  }
  .sticky-buy:has(.sticky-order) :is(.buy, .sticky-order) {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    min-height: 3rem;
    margin: 0;
    white-space: nowrap;
  }
}

/* A pressed Add to cart or Order now turns while the shop answers (decision 0347): on a slow
   connection the tap is seen at once. */
:is(.buy, .buy-now)[aria-busy='true']::after {
  content: '';
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  margin-inline-start: 0.5em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -0.15em;
  animation: sb-turn 0.7s linear infinite;
}
@keyframes sb-turn {
  to {
    transform: rotate(1turn);
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(.buy, .buy-now)[aria-busy='true']::after {
    animation-duration: 2s;
  }
}

/* Phones (decisions 0349, 0351): the name and the price close under the photos. The gallery is the
   theme's own (the owner asked for it back); the breadcrumb steps aside, the name and price get
   smaller, and the price's extras and the offers take one short line each. */
@media (max-width: 767px) {
  .section-product-main .breadcrumb {
    display: none;
  }
  .section-product-main h1 {
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
    text-wrap: pretty !important;
  }
  :lang(bn) .section-product-main h1 {
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
  }
  .section-product-main [data-price]:not(.sticky-buy *) {
    font-size: 1.3rem;
  }
  /* The price's line: the old price, the discount and the saving small beside it. */
  .section-product-main :has(> [data-price]):not(.sticky-buy, .sticky-buy *) {
    row-gap: 0.2rem;
    column-gap: 0.45rem;
    margin-top: 0.3rem;
    margin-bottom: 0.5rem;
  }
  .section-product-main
    :is([data-compare-price], [data-discount], [data-price-save]):not(.sticky-buy *) {
    font-size: 0.78rem;
  }
  /* The offers: small chips in one row that swipes, not a box each. */
  .section-product-main :is(.product-offers, .offer-chips) {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Its chips never widen the product column past the screen. */
    contain: inline-size;
    max-width: 100%;
  }
  .section-product-main :is(.product-offers, .offer-chips)::-webkit-scrollbar {
    display: none;
  }
  .section-product-main :is(.product-offers, .offer-chips) > li {
    flex: none;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
    line-height: 1.3;
    white-space: nowrap;
  }
  .section-product-main :is(.product-offers, .offer-chips) > li svg {
    width: 0.9rem;
    height: 0.9rem;
    margin: 0;
  }
}

/* Phones (decision 0350): the header's search box gives way to a magnifier among its icons; tapping
   it opens the same search in a row under the header (shop.js moves the form there and back, and
   sets html.sb-search-js once it can). Without the script the box stays where it was. */
.sb-search-btn > .sb-search-x {
  display: none !important;
}
.sb-search-btn[aria-expanded='true'] > svg:not(.sb-search-x) {
  display: none !important;
}
.sb-search-btn[aria-expanded='true'] > .sb-search-x {
  display: block !important;
}
/* A button among links: none of the browser's own button look; the theme's icon rules still apply. */
:where(button.sb-search-btn) {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
/* A header that hides what overflows it: the row under it must still show (sideways stays cut). */
html.sb-search-open [data-header] {
  overflow-x: clip !important;
  overflow-y: visible !important;
}
html:not(.sb-search-js) .sb-search-btn {
  display: none !important;
}
@media (min-width: 768px) {
  .sb-search-btn {
    display: none !important;
  }
}
@media (max-width: 767px) {
  html.sb-search-js [data-header] form[role='search'] {
    display: none !important;
  }
  html.sb-search-js [data-header] [data-sb-search-row] form[role='search'] {
    display: flex !important;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
  }
  [data-sb-search-row] {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    padding: 10px 12px 12px;
    background-color: var(--sb-search-bg, #fff);
    box-shadow: 0 14px 24px -16px rgba(15, 23, 42, 0.45);
    animation: sb-search-in 0.18s ease-out;
  }
  @keyframes sb-search-in {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
  }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  [data-sb-search-row] {
    animation: none;
  }
}

/* Product cards (decision 0352): the theme settings hide the wishlist heart or the compare button on
   cards (never on the product's own page or in the quick view), and "Order now" sits at a card's
   foot in the theme's own Order now look, made card-sized. */
html.sb-cards-no-wish [data-wishlist-toggle]:not(.section-product-main *, dialog *),
html.sb-cards-no-compare [data-compare-toggle]:not(.section-product-main *, dialog *) {
  display: none !important;
}
.sb-card-order[hidden] {
  display: none !important;
}
.sb-card-order {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 2.4rem;
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  grid-column: 1 / -1;
  flex: 0 0 auto;
  align-self: stretch;
}
.sb-card-order.is-loading {
  opacity: 0.7;
  pointer-events: none;
}
/* A card showing Order now drops its own Buy now and its "choose options" link: Order now does the
   same (the quick order sheet, or the product's page to pick a choice), so the card stays short. */
:has(> .sb-card-order:not([hidden])) :is([data-buy-now], [data-card-options]),
tr:has(+ .sb-card-order-row) :is([data-buy-now], [data-card-options]) {
  display: none !important;
}
/* Product page (decision 0356): nothing is chosen as it opens. A buy button pressed before a choice
   is made rings that choice's buttons, nudges them and asks for it underneath. */
.sb-option-missing button[data-value] {
  outline: 2px solid #d92d20;
  outline-offset: 1px;
}
.sb-option-missing {
  animation: sb-nudge 0.4s ease;
}
.sb-choose-note {
  margin: 0.4rem 0 0;
  color: #d92d20;
  font-size: 0.875rem;
  font-weight: 600;
}
.sb-choose-note[hidden] {
  display: none;
}
@keyframes sb-nudge {
  0%,
  100% {
    translate: 0;
  }
  25% {
    translate: -4px 0;
  }
  75% {
    translate: 4px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sb-option-missing {
    animation: none;
  }
}

/* Banners (decision 0354): the owner's hero and slider pictures show whole on every screen, never
   cropped, inside each design's own frame. Space the picture doesn't fill shows a soft, blurred copy
   of it (shop.js gives the frame --sb-banner and .sb-banner), so one wide picture is enough for
   phones too. */
:is(
    .section-hero,
    .section-image-slider,
    .section-care-hero,
    .section-mall-hero,
    .section-split-hero,
    .section-video-hero,
    .section-hero-banner
  )
  picture
  > img {
  object-fit: contain !important;
  object-position: center !important;
}
:is(
    .section-hero,
    .section-image-slider,
    .section-care-hero,
    .section-mall-hero,
    .section-split-hero,
    .section-video-hero,
    .section-hero-banner
  )
  picture.sb-banner {
  overflow: hidden;
  isolation: isolate;
}
:is(
    .section-hero,
    .section-image-slider,
    .section-care-hero,
    .section-mall-hero,
    .section-split-hero,
    .section-video-hero,
    .section-hero-banner
  )
  picture.sb-banner::before {
  content: '';
  position: absolute;
  inset: -24px;
  z-index: 0;
  background: var(--sb-banner) center / cover no-repeat;
  filter: blur(22px) saturate(1.15) brightness(0.92);
}
:is(
    .section-hero,
    .section-image-slider,
    .section-care-hero,
    .section-mall-hero,
    .section-split-hero,
    .section-video-hero,
    .section-hero-banner
  )
  picture.sb-banner
  > img {
  z-index: 1;
  background: transparent !important;
}

/* The picture viewer (decision 0355): review screenshots and collage pictures large over the page
   (shop.js builds dialog.sb-zoom). */
.sb-zoom {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(8 8 10 / 0.93);
  color: #fff;
}
.sb-zoom[open] {
  display: grid;
  place-items: center;
}
.sb-zoom::backdrop {
  background: transparent;
}
.sb-zoom-img {
  max-width: min(94vw, 42rem);
  max-height: 86dvh;
  border-radius: 10px;
  object-fit: contain;
}
.sb-zoom-count {
  position: absolute;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 50%;
  font-size: 0.85rem;
  opacity: 0.8;
  transform: translateX(-50%);
}
.sb-zoom button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.14);
  color: #fff;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.sb-zoom button:hover {
  background: rgb(255 255 255 / 0.24);
}
.sb-zoom-close {
  top: max(0.8rem, env(safe-area-inset-top));
  right: 0.8rem;
}
.sb-zoom-prev,
.sb-zoom-next {
  top: 50%;
  transform: translateY(-50%);
}
.sb-zoom-prev {
  left: 0.6rem;
}
.sb-zoom-next {
  right: 0.6rem;
}
.sb-zoom.is-single .sb-zoom-prev,
.sb-zoom.is-single .sb-zoom-next {
  display: none;
}

/* Review screenshots (decision 0355): "fresh-case phones". Each customer's screenshot in a phone
   wearing a thick green silicone case in the shop's colour, a punch-hole camera, and the oval
   produce sticker of a mango or an apple stuck on its corner; a kraft price tag over the heading.
   Phones swipe a row (the next phone peeks in); from 760px the phones stand in a centred row. */
.grs-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 1.9rem;
  margin: 0 0 0.35rem;
  padding: 0.1rem 0.9rem 0 1.45rem;
  background:
    radial-gradient(circle at 0.8rem 50%, var(--bg) 0 0.22rem, #0000 0.25rem),
    linear-gradient(180deg, rgb(255 255 255 / 0.18), #0000 60%), var(--kraft);
  color: var(--kraft-ink);
  font-family: var(--font-hand);
  font-size: 1rem;
  line-height: 1.3;
  clip-path: polygon(0.7rem 0, 100% 0, 100% 100%, 0.7rem 100%, 0 50%);
  rotate: -2deg;
}
.grs-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(62vw, 15rem);
  gap: 1rem;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0.9rem var(--gutter) 1.25rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.grs-list::-webkit-scrollbar {
  display: none;
}
.grs-list > li {
  min-width: 0;
  scroll-snap-align: start;
}
.grs-shot {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin: 0;
}
.grs-case {
  position: relative;
  display: block;
  width: 100%;
  padding: 0.6rem;
  border-radius: 2.1rem;
  background:
    linear-gradient(160deg, rgb(255 255 255 / 0.22), #0000 40%),
    linear-gradient(180deg, var(--accent), var(--accent-ink));
  box-shadow:
    inset 0 0 0 2px rgb(255 255 255 / 0.14),
    inset 0 -3px 0 rgb(0 0 0 / 0.12),
    0 16px 30px -18px rgb(20 33 24 / 0.55);
  transition:
    translate 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
/* The case's side button. */
.grs-case::after {
  content: '';
  position: absolute;
  top: 24%;
  right: -3px;
  width: 4px;
  height: 2.4rem;
  border-radius: 0 3px 3px 0;
  background: var(--accent-ink);
}
.grs-case:hover {
  translate: 0 -4px;
  box-shadow:
    inset 0 0 0 2px rgb(255 255 255 / 0.14),
    inset 0 -3px 0 rgb(0 0 0 / 0.12),
    0 24px 36px -20px rgb(20 33 24 / 0.6);
}
.grs-case:focus-visible {
  outline: 3px solid var(--tangerine);
  outline-offset: 4px;
}
.grs-screen {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 1.55rem;
  background: var(--sunken);
  object-fit: cover;
  object-position: top;
}
.grs-cam {
  position: absolute;
  top: 1.15rem;
  left: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #101814;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.35);
  transform: translateX(-50%);
}
/* The produce sticker: an oval label with a thin ring and a leaf, stuck on at a slant. */
.grs-sticker {
  position: absolute;
  top: -0.55rem;
  right: -0.5rem;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--sun);
  box-shadow:
    inset 0 0 0 3px var(--sun),
    inset 0 0 0 4.5px var(--tangerine),
    0 4px 10px -4px rgb(20 33 24 / 0.45);
  rotate: 14deg;
}
.grs-sticker::before {
  content: '';
  width: 1rem;
  height: 1rem;
  background: var(--accent-ink);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8.5 5.5-14 14-14 0 8.5-5.5 14-14 14Z'/%3E%3Cpath d='m5 19 7.5-7.5'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.grs-cap {
  max-width: 100%;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}
@media (min-width: 760px) {
  .grs-list {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 14rem));
    justify-content: center;
    gap: 2rem 1.75rem;
    margin: 0;
    padding: 0.9rem 0 0.25rem;
    overflow: visible;
  }
}
@media (prefers-reduced-motion: reduce) {
  .grs-case {
    transition: none;
  }
  .grs-case:hover {
    translate: none;
  }
}

/* Picture collage (decision 0355): the market board. Each picture in a white frame with rounded
   corners, its caption on a kraft price tag (a punched hole, a notched end) over the photo. The
   owner's layout: one big and the rest small, even squares, columns of natural heights, a row to
   swipe, or photo prints pegged up with a wooden clothes peg, captions written under them. */
.grc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.grc-item {
  min-width: 0;
}
.grc-card {
  position: relative;
  height: 100%;
  margin: 0;
}
.grc-pic {
  display: block;
  height: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.grc-pic:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}
.grc-pic:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.grc-pic img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  border-radius: calc(var(--r) - 5px);
  background: var(--sunken);
  object-fit: cover;
}
/* The caption: a kraft price tag over the bottom left of the photo. */
.grc-tag {
  position: absolute;
  left: 0.55rem;
  bottom: 0.65rem;
  max-width: calc(100% - 1.1rem);
  padding: 0.2rem 0.75rem 0.15rem 1.3rem;
  background:
    radial-gradient(circle at 0.7rem 50%, var(--surface) 0 0.18rem, #0000 0.21rem),
    linear-gradient(180deg, rgb(255 255 255 / 0.2), #0000 60%), var(--kraft);
  color: var(--kraft-ink);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  clip-path: polygon(0.6rem 0, 100% 0, 100% 100%, 0.6rem 100%, 0 50%);
  filter: drop-shadow(0 3px 5px rgb(20 33 24 / 0.25));
  pointer-events: none;
  overflow-wrap: anywhere;
}
/* One big, the rest small: the first picture spans two columns and two rows. */
.grc-mosaic .grc-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.grc-mosaic .grc-item:first-child .grc-tag {
  left: 0.8rem;
  bottom: 0.9rem;
  font-size: 0.9375rem;
}
/* Columns: each picture its own height. */
.grc-masonry .grc-list {
  display: block;
  columns: 2;
  column-gap: 0.7rem;
}
.grc-masonry .grc-item {
  margin-bottom: 0.7rem;
  break-inside: avoid;
}
.grc-masonry .grc-pic img {
  height: auto;
  aspect-ratio: auto;
}
/* A row to swipe: tall framed photos, the next one peeking in. */
.grc-strip .grc-list {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: min(72vw, 18rem);
  gap: 0.85rem;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0.25rem var(--gutter) 0.9rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.grc-strip .grc-list::-webkit-scrollbar {
  display: none;
}
.grc-strip .grc-item {
  scroll-snap-align: start;
}
.grc-strip .grc-pic img {
  aspect-ratio: 4 / 5;
}
/* Photo prints pegged up: white borders, a slight tilt, a wooden peg, the caption in hand. */
.grc-polaroid .grc-list {
  align-items: start;
  gap: 1.9rem 1rem;
  padding: 0.9rem 0.2rem 0.4rem;
}
.grc-polaroid .grc-card {
  height: auto;
  padding: 0.5rem 0.5rem 0;
  border-radius: 3px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgb(20 33 24 / 0.06),
    0 14px 24px -16px rgb(20 33 24 / 0.45);
  rotate: 1.75deg;
  transition: rotate 0.35s var(--ease);
}
.grc-polaroid .grc-item:nth-child(even) .grc-card {
  rotate: -2deg;
}
.grc-polaroid .grc-item:nth-child(3n) .grc-card {
  rotate: 0.75deg;
}
.grc-polaroid .grc-card:hover {
  rotate: 0deg;
}
/* The wooden clothes peg, with its spring line. */
.grc-polaroid .grc-card::before {
  content: '';
  position: absolute;
  top: -0.95rem;
  left: 50%;
  z-index: 1;
  width: 0.8rem;
  height: 2.1rem;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #0000 45%, rgb(91 60 23 / 0.55) 45% 52%, #0000 52%),
    linear-gradient(90deg, var(--kraft), var(--kraft-deep));
  box-shadow: 0 2px 4px rgb(20 33 24 / 0.3);
  transform: translateX(-50%);
}
.grc-polaroid .grc-pic {
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 2px;
  box-shadow: none;
}
.grc-polaroid .grc-pic img {
  border-radius: 2px;
}
.grc-polaroid .grc-tag {
  position: static;
  max-width: none;
  padding: 0.5rem 0.2rem 0.65rem;
  background: none;
  color: var(--kraft-ink);
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
  clip-path: none;
  filter: none;
}
.grc-polaroid .grc-card:not(:has(.grc-tag)) {
  padding-bottom: 1.5rem;
}
@media (min-width: 760px) {
  .grc-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
  .grc-grid .grc-list {
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  }
  .grc-masonry .grc-list {
    columns: 3;
    column-gap: 1rem;
  }
  .grc-masonry .grc-item {
    margin-bottom: 1rem;
  }
  .grc-strip .grc-list {
    grid-auto-columns: calc((100% - 2 * 1rem) / 3);
    gap: 1rem;
    margin-inline: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }
  .grc-polaroid .grc-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem 2rem;
    padding: 1.1rem 1rem 0.4rem;
  }
}
@media (min-width: 1100px) {
  .grc-masonry .grc-list {
    columns: 4;
  }
  .grc-polaroid .grc-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .grc-pic,
  .grc-polaroid .grc-card {
    transition: none;
  }
}

/* The market board's mosaic leaves no picture alone on a row (decision 0355). Phones: a last
   small picture left alone spans both columns as a wide frame. Wide screens: one picture takes the
   row, two are halves, three put the big one beside the other two stacked, and a last row of one,
   two or three pictures stretches to fill it. */
.grc-mosaic .grc-item:last-child:nth-child(even) {
  grid-column: span 2;
}
.grc-mosaic .grc-item:last-child:nth-child(even) .grc-pic img {
  aspect-ratio: 2 / 1;
}
@media (min-width: 760px) {
  .grc-mosaic .grc-item:only-child {
    grid-column: 1 / -1;
  }
  .grc-mosaic .grc-item:only-child .grc-pic img {
    aspect-ratio: 2 / 1;
  }
  .grc-mosaic .grc-item:nth-child(2):last-child {
    grid-row: span 2;
  }
  .grc-mosaic .grc-item:nth-child(2):last-child .grc-pic img {
    aspect-ratio: 1;
  }
  .grc-mosaic .grc-list:has(> .grc-item:nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grc-mosaic .grc-item:nth-child(4n + 6):last-child {
    grid-column: 1 / -1;
  }
  .grc-mosaic .grc-item:nth-child(4n + 6):last-child .grc-pic img {
    aspect-ratio: 3 / 1;
  }
  .grc-mosaic .grc-item:nth-child(4n + 6):nth-last-child(2),
  .grc-mosaic .grc-item:nth-child(4n + 7):last-child {
    grid-column: span 2;
  }
  .grc-mosaic .grc-item:nth-child(4n + 6):nth-last-child(2) .grc-pic img,
  .grc-mosaic .grc-item:nth-child(4n + 7):last-child .grc-pic img {
    aspect-ratio: 2 / 1;
  }
}
