/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
/* 17px base (106.25% keeps the visitor's own browser setting): Jost's small lowercase letters read about 8% smaller
   than most fonts, so 16px looked small. Everything sized in rem grows with it. */
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body)/var(--lh-body) var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; } /* component display rules must never un-hide hidden tab panels */
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--heading); }
h1, h2, h3, h4 { color: var(--heading); margin: 0 0 var(--space-3); line-height: 1.2; font-weight: 400; }
p { margin: 0 0 var(--space-4); }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--surface-soft); color: var(--ink); }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.narrow { max-width: 42rem; }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-sm); }
.eyebrow {
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-2);
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--btn); color: var(--btn-text); padding: var(--space-2) var(--space-4); }
.skip-link:focus { top: var(--space-2); }

/* ───────── Buttons ───────── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6);
  border: 1px solid var(--btn); border-radius: var(--radius);
  background: var(--btn); color: var(--btn-text);
  font: 500 var(--fs-sm)/1 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.button:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--btn-text); }
.button:disabled, .button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.button--pill { border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); border-color: var(--surface); }
.button--pill:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.button--ghost { background: transparent; color: var(--heading); border-color: currentColor; }
.button--ghost:hover { background: var(--heading); border-color: var(--heading); color: var(--surface); }
.button--block { width: 100%; }
.button--small { min-height: 36px; padding: 0 var(--space-4); }
.link-arrow { font-size: var(--fs-sm); font-weight: 500; letter-spacing: var(--tracking-caps); text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " →"; }

/* ───────── Announcement & header ───────── */
.announcement {
  background: var(--accent-soft); color: var(--accent-deep); font-weight: 500;
  font-size: var(--fs-xs); letter-spacing: .02em; text-align: center; padding: var(--space-2) var(--gutter);
}
.site-header {
  position: sticky; top: 0; z-index: 40;
  /* Solid, no backdrop-filter: a filter would become the containing block of the fixed mobile drawer. */
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }
.brand { display: grid; text-decoration: none; line-height: 1.1; flex-shrink: 0; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; letter-spacing: .08em; color: var(--heading); text-transform: uppercase; }

.site-nav { flex: 1; }
.site-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) clamp(1.25rem, 0.5rem + 1.5vw, 2.25rem); justify-content: flex-end; }
.site-nav a {
  display: inline-block; padding: var(--space-2) 0; text-decoration: none;
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.05em; white-space: nowrap; text-transform: uppercase;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.site-nav .site-nav__call { display: inline-flex; align-items: center; gap: .45rem; color: var(--accent-text); }
.site-nav .site-nav__call svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.icon-button {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: none; color: var(--heading); cursor: pointer; text-decoration: none;
}
.icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.header-search { display: flex; align-items: center; border-bottom: 1px solid var(--border); }
.header-search input { width: 11rem; border: 0; background: none; font: inherit; font-size: var(--fs-sm); color: var(--ink); padding: var(--space-2) 0; }
.header-search input:focus { outline: none; }
.header-search:focus-within { border-bottom-color: var(--heading); }
.cart-link__count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--accent-ink); font-size: 0.7rem; font-weight: 700; line-height: 18px; text-align: center;
}
/* Signed in: a small fuchsia dot on the account icon. */
.account-link.is-signed-in::after {
  content: ""; position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--bg);
}
.menu-toggle { display: none; }
/* "Call now" (WhatsApp to Beth): a labelled link in the menu on wide screens, just the phone icon on phones. */
.call-link { display: none; color: var(--accent-text); }

/* Laptops: a little tighter so the header stays on one line. */
@media (min-width: 1101px) and (max-width: 1500px) {
  .site-header__inner { gap: var(--space-4); }
  .site-nav ul { gap: var(--space-1) 0.9rem; }
  .header-search input { width: 7.5rem; }
  .brand__name { font-size: 1.5rem; }
}
@media (min-width: 1101px) and (max-width: 1360px) {
  .header-search input { width: 6rem; }
}
@media (max-width: 1100px) {
  .menu-toggle { display: inline-grid; }
  .call-link { display: inline-grid; }
  .site-nav__call-item { display: none; }
  .site-header__inner { gap: var(--space-3); }
  .brand { margin-right: auto; }
  .site-nav {
    position: fixed; inset: var(--drawer-top, calc(var(--header-h) + 1px)) 0 0 0; background: var(--bg);
    padding: var(--space-5) var(--gutter); overflow-y: auto;
    transform: translateX(-100%); visibility: hidden;
    transition: transform var(--dur) var(--ease), visibility var(--dur);
  }
  .site-nav.is-open { transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--border); }
  .site-nav a { display: block; padding: var(--space-4) 0; font-size: var(--fs-body); }
  .header-search input { width: 7rem; }
}
@media (max-width: 560px) {
  .header-search { border-bottom: 0; }
  .header-search input { display: none; } /* phones: magnifier only; it opens the shop search */
  .brand__name { font-size: 1.3rem; }
}
/* Small phones: four icons (search, call, account, basket) beside the logo, so pack them a little closer. */
@media (max-width: 420px) {
  .site-header__inner { gap: var(--space-2); }
  .header-actions { gap: 0; }
  .header-actions .icon-button { width: 40px; }
}

/* ───────── Hero ───────── */
/* Tulip banner under a soft ivory wash: strongest behind the headline, fading out to the right. */
.hero {
  position: relative; overflow: hidden; color: var(--heading);
  background:
    linear-gradient(90deg, rgb(251 248 246 / .95) 0%, rgb(251 248 246 / .86) 34%, rgb(251 248 246 / .42) 62%, rgb(251 248 246 / .18) 100%),
    linear-gradient(rgb(232 131 155 / .10), rgb(232 131 155 / .10)),
    url("/img/hero-tulips-1920.webp") center 40% / cover no-repeat,
    #f8eef1;
}
/* Frosted panel so the circle labels stay readable over the flowers. */
.hero .ranges {
  padding: var(--space-5) var(--space-4) var(--space-4);
  background: rgb(255 255 255 / .62);
  border: 1px solid rgb(255 255 255 / .7);
  border-radius: 28px;
  backdrop-filter: blur(6px);
}
@media (max-width: 900px) {
  /* Stacked layout: an even wash so the text and the circle row both read well. */
  .hero {
    background:
      linear-gradient(rgb(251 248 246 / .86), rgb(251 248 246 / .90)),
      url("/img/hero-tulips-960.webp") center / cover no-repeat,
      #f8eef1;
  }
  .hero .ranges { padding: 0; background: none; border: 0; border-radius: 0; backdrop-filter: none; }
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center;
  padding-block: clamp(2rem, 1.25rem + 2.5vw, 3.75rem);
}
/* minmax(0, 1fr): without it the swipe row's full width stretches the column and the hero clips its text. */
@media (max-width: 900px) { .hero__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); } .ranges { min-width: 0; } }
.hero__title { font: var(--weight-display) var(--fs-h1)/1.05 var(--font-display); margin-bottom: var(--space-4); }
.hero__title em { font-style: italic; }
.hero__lede { font-size: var(--fs-lg); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.hero .button--pill { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.hero .button--pill:hover { background: var(--btn-hover); }

/* ───────── Sections ───────── */
.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-5) var(--space-8); }
.section--soft { background: var(--surface-soft); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.section__title { font: var(--weight-display) var(--fs-h2)/1.15 var(--font-display); margin: 0; }
.page-head { padding-block: var(--space-6) 0; }
.page-title { font: var(--weight-display) var(--fs-h2)/1.15 var(--font-display); margin-bottom: var(--space-2); }
.breadcrumbs { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: var(--space-4); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ───────── Product grid & card ───────── */
/* At most 4 per row on laptops and desktops (about 330–350px photos, like the supplier's larger tiles), 3 on smaller
   laptops; phones have 2. */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: var(--space-6) var(--space-5); }
@media (max-width: 560px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-5) var(--space-3); } }
.product-grid__item { display: flex; min-width: 0; } /* shop pages wrap each card for the as-you-type search */
.product-grid__item > .product-card { flex: 1; min-width: 0; }
.product-card { display: flex; flex-direction: column; }
.product-card__link { display: grid; gap: var(--space-3); align-content: start; text-decoration: none; flex: 1; }
.product-card__media { position: relative; aspect-ratio: 1; background: var(--surface-soft); overflow: hidden; display: grid; place-items: center; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; transition: transform 400ms var(--ease); }
.product-card__link:hover .product-card__media img { transform: scale(1.04); }
.product-card__placeholder { font: var(--weight-display) 3rem/1 var(--font-display); color: color-mix(in srgb, var(--text) 35%, transparent); }
.product-card__body { display: grid; gap: var(--space-1); }
.product-card__eyebrow { margin: 0; font-size: var(--fs-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted); }
.product-card__title {
  margin: 0; font: 500 1.0625rem/1.35 var(--font-body); color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__link:hover .product-card__title { text-decoration: underline; text-underline-offset: .2em; }
.badge {
  position: absolute; top: var(--space-3); left: var(--space-3);
  padding: 3px 10px; border-radius: var(--radius-pill); background: var(--surface); color: var(--heading);
  font-size: 0.7rem; font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase;
}
.badge--offer { background: var(--accent); color: var(--accent-ink); }
.price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); }
.price__now { color: var(--ink); font-weight: 500; }
.product-card .price__now { font-size: 1.0625rem; }
.price__was { color: var(--text-muted); font-size: var(--fs-sm); text-decoration: line-through; text-decoration-thickness: 1px; }
.price__now--sale { color: var(--accent); font-weight: 600; }

/* ───────── Range circles (inside the hero) ───────── */
.ranges__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5) var(--space-3); }
.range { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); text-align: center; text-decoration: none; }
.range__circle {
  width: clamp(84px, 3.5rem + 3vw, 116px); aspect-ratio: 1; border-radius: 50%; margin-bottom: var(--space-1);
  display: grid; place-items: center; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.range__circle img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.range__initial { font: var(--weight-display) 2rem/1 var(--font-display); color: var(--text-muted); }
.range:hover .range__circle, .range:focus-visible .range__circle { border-color: var(--accent); transform: translateY(-3px); }
.range__name { color: var(--ink); font-weight: 500; font-size: var(--fs-sm); line-height: 1.25; }
.range__count { color: var(--text-muted); font-size: var(--fs-xs); }
.range--offers .range__circle { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.range--offers:hover .range__circle { background: var(--accent-hover); border-color: var(--accent-hover); }
.range--offers .range__name { color: var(--accent); }
.range--all .range__circle { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-deep); }
.range--all:hover .range__circle { border-color: var(--accent); }
.range__deal { display: grid; justify-items: center; font: var(--weight-display) 1.9rem/0.95 var(--font-display); }
.range__deal small { font: 500 0.66rem/1.3 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; }

.range[aria-current="page"] .range__circle { border: 2px solid var(--accent); }
.range[aria-current="page"] .range__name { color: var(--accent); }
.range--offers[aria-current="page"] .range__circle { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Shop pages: title on the left, one compact row of circles on the right. */
.page-head__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-6); align-items: center; }
.ranges--compact .ranges__list { display: flex; justify-content: flex-end; gap: var(--space-4); }
.ranges--compact .ranges__list > li { width: 84px; }
.ranges--compact .range__circle { width: 72px; }
.ranges--compact .range__deal { font-size: 1.4rem; }
.ranges--compact .range__deal small { font-size: 0.55rem; }
.ranges--compact .range__name { font-size: var(--fs-xs); }
.ranges--compact .range__count { display: none; }
/* Stacked: the title and buttons sit on top and the circles get their own row, which swipes sideways when it is
   wider than the screen. The page starts stacked; site.js puts the circles beside the title only when they fit. */
.page-head--stacked .page-head__inner { gap: var(--space-4); }
.page-head--stacked .page-head__inner .ranges { min-width: 0; }
.page-head--stacked .ranges--compact .ranges__list { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: var(--space-2); }
.page-head--stacked .ranges--compact .ranges__list::-webkit-scrollbar { display: none; }
.page-head--stacked .ranges--compact .ranges__list > li { flex: 0 0 auto; scroll-snap-align: start; }
/* On their own row (computers and tablets), the circles share the row's width: never smaller than above (84px, a 72px
   circle; site.js measures them at that size), at most 132px so a range with few circles doesn't get giant ones.
   When they can't all fit they keep that size and the row becomes a carousel (below). */
@media (min-width: 901px) {
  .page-head--stacked .ranges--compact .ranges__list > li { flex: 1 0 84px; max-width: 132px; }
  .page-head--stacked .ranges--compact .range__circle { width: calc(100% - 12px); }
  .page-head--stacked .ranges--compact .range__deal { font-size: 1.7rem; }
}

/* Carousel: when the circles don't all fit, site.js adds ‹ › buttons at the ends (each only while there is more that
   way) and the row fades out on that side. Swiping and scrolling still work. */
.ranges { position: relative; }
.ranges__list { scroll-behavior: smooth; }
.ranges__arrow {
  position: absolute; z-index: 2; top: calc(50% - 4px); transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--heading); background: var(--surface);
  border: 1px solid var(--border); box-shadow: 0 4px 14px rgba(46, 42, 43, .12); transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ranges__arrow:hover { border-color: var(--accent); color: var(--accent); }
.ranges__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ranges__arrow--prev { left: -6px; }
.ranges__arrow--next { right: -6px; }
.ranges__arrow[hidden] { display: none; }
.ranges.has-more-start .ranges__list { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
.ranges.has-more-end .ranges__list { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.ranges.has-more-start.has-more-end .ranges__list {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
}
@media (max-width: 560px) {
  .ranges__arrow { width: 34px; height: 34px; top: calc(50% - 10px); }
  .ranges__arrow--prev { left: 0; }
  .ranges__arrow--next { right: 0; }
}
@media (prefers-reduced-motion: reduce) { .ranges__list { scroll-behavior: auto; } }

/* Phones and small tablets: hero stacks; circles become one row you swipe sideways. */
@media (max-width: 900px) {
  .ranges__list {
    display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: var(--space-1) var(--gutter) var(--space-3);
    scrollbar-width: none;
  }
  .ranges__list::-webkit-scrollbar { display: none; }
  .ranges__list > li { flex: 0 0 auto; width: 86px; scroll-snap-align: start; }
  .range__circle { width: 76px; }
  .range__deal { font-size: 1.55rem; }
  .range__name { font-size: var(--fs-xs); }
}

/* ───────── Tabs ───────── */
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-5); border-bottom: 1px solid var(--border); }
.tabs__tab {
  border: 0; background: none; padding: var(--space-2) 0; margin-bottom: -1px; cursor: pointer;
  font: 500 var(--fs-sm)/1 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted);
  border-bottom: 2px solid transparent;
}
.tabs__tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ───────── Story band ───────── */
.section--story { background: var(--surface-deep); color: #f9eef3; }
.section--story .section__title, .section--story .eyebrow { color: #ffffff; }
.story { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--space-7); align-items: center; }
.story .link-arrow { color: #ffffff; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; gap: var(--space-4); } }
/* ───────── Shop title row: Search, Sort (price), Featured ───────── */
.title-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.title-row .page-title { margin-bottom: 0; }
.title-row__count { margin: var(--space-1) 0 0; font-size: var(--fs-sm); color: var(--text-muted); }
.title-tools { display: flex; gap: var(--space-3); padding-bottom: var(--space-4); }
.round-btn {
  position: relative; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--heading); text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.round-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:hover { border-color: var(--accent); color: var(--accent); }
/* "On": bright fuchsia with a soft halo. */
.round-btn.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.round-btn.is-on:hover { background: var(--accent-hover); color: var(--accent-ink); }
.round-btn__tag { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 0.68rem; color: var(--text-muted); }
.round-btn.is-on .round-btn__tag { color: var(--accent); font-weight: 500; }

/* Title search: site.js measures each page and picks one of two places for it.
   - Inline (.page-head--search-inline): always showing, filling the space between the title and the buttons. It stays
     there while it can be at least 251px wide (about 30 characters); the buttons are beside it, so it has no ✕.
   - Otherwise: hidden behind the Search button, opening on its own line under the circles with a ✕ to close it.
   Without JavaScript the page stays stacked and the Search button (#title-search) opens it under the circles. */
.title-search { display: none; align-items: center; gap: var(--space-2); }
.title-search.is-open, .title-search:target { display: flex; }
.title-search input {
  flex: 1; min-width: 0; height: 46px; padding: 0 var(--space-4); border-radius: var(--radius-pill);
  border: 1.5px solid var(--accent); background: var(--surface); font: inherit; color: var(--ink);
}
.title-search input:focus { outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }

/* Stacked: the wrappers step aside (display: contents) so title, buttons, circles and search share one grid. */
.page-head--stacked .page-head__inner { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-5); }
.page-head--stacked .page-head__text, .page-head--stacked .title-row { display: contents; }
.page-head--stacked .breadcrumbs { grid-column: 1 / -1; margin-bottom: 0; }
.page-head--stacked .title-tools { align-self: center; }
.page-head--stacked .ranges { grid-column: 1 / -1; }
.page-head--stacked .title-search { grid-column: 1 / -1; order: 1; margin-bottom: var(--space-2); }

/* Inline (251px is also the minimum site.js allows for). */
.page-head--search-inline .title-search { display: flex; flex: 1 1 251px; min-width: 251px; order: 1; }
.page-head--search-inline .title-tools { order: 2; }
.page-head--search-inline [data-search-close] { display: none; }
.page-head--stacked.page-head--search-inline .page-head__inner { grid-template-columns: auto minmax(251px, 1fr) auto; }
.page-head--stacked.page-head--search-inline .title-row > div:first-child { grid-row: 2; grid-column: 1; }
.page-head--stacked.page-head--search-inline .title-search { grid-row: 2; grid-column: 2; margin-bottom: 0; }
.page-head--stacked.page-head--search-inline .title-tools { grid-row: 2; grid-column: 3; }
select, input[type="number"], input[type="text"], input[type="email"], input[type="password"] {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  min-height: 44px; padding: 0 var(--space-3);
}
.empty { padding: var(--space-8) 0; text-align: center; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-7); }
.pager__page { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border: 1px solid var(--border); text-decoration: none; }
.pager__page[aria-current="page"] { background: var(--btn); border-color: var(--btn); color: var(--btn-text); }

/* ───────── Product page ───────── */
.product { padding-block: var(--space-5) 0; }
.product__layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 4vw, 5rem); align-items: start; }
@media (max-width: 860px) { .product__layout { grid-template-columns: 1fr; } }
.product__media { position: sticky; top: calc(var(--header-h) + var(--space-4)); aspect-ratio: 1; background: var(--surface-soft); display: grid; place-items: center; }
.product__media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
@media (max-width: 860px) { .product__media { position: static; } }
.product__placeholder { font-size: 6rem; }
.product__title { font: var(--weight-display) var(--fs-h2)/1.15 var(--font-display); margin-bottom: var(--space-3); }
.product__details .price { font-size: var(--fs-lg); margin-bottom: var(--space-1); }
.product__lede { margin-top: var(--space-5); font-size: var(--fs-lg); line-height: 1.5; }
.add-to-cart { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); margin-top: var(--space-5); }
/* Why order from Beth: delivery, WhatsApp, personal advice */
.why-beth { list-style: none; margin: var(--space-5) 0 0; padding: var(--space-4); display: grid; gap: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.why-beth li { display: grid; grid-template-columns: 22px 1fr; gap: .75rem; align-items: start; font-size: .88rem; color: var(--text-muted); }
.why-beth svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.why-beth strong { display: block; color: var(--heading); font-weight: 500; }
.why-beth a { color: var(--accent-text); }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--border); background: var(--surface); }
.qty input { width: 3.5rem; border: 0; text-align: center; min-height: 46px; padding: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty__step { width: 44px; border: 0; background: none; font-size: 1.2rem; color: var(--heading); cursor: pointer; }
.accordions { margin-top: var(--space-6); border-top: 1px solid var(--border); }
.accordion { border-bottom: 1px solid var(--border); }
.accordion summary {
  display: flex; justify-content: space-between; align-items: center; padding: var(--space-4) 0; cursor: pointer; list-style: none;
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--heading);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; transition: transform var(--dur) var(--ease); }
.accordion[open] summary::after { transform: rotate(45deg); }
.accordion__body { padding-bottom: var(--space-5); }
.prose p:last-child { margin-bottom: 0; }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: var(--space-4); }


/* ───────── Add to cart on cards ───────── */
.product-card__add { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.product-card__add .button { flex: 1 1 64px; min-height: 40px; padding: 0 var(--space-3); }
.qty--card { flex: 0 0 auto; height: 40px; }
.qty--card input { width: 2.5rem; min-height: 0; height: 100%; color: var(--ink); font-weight: 500; }
.qty--card .qty__step { width: 34px; font-size: 1.1rem; }
.qty--card .qty__step:hover { color: var(--accent); background: var(--accent-soft); }
.qty input:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (pointer: coarse) {
  .qty--card, .product-card__add .button { height: 44px; min-height: 44px; }
  .qty--card .qty__step { width: 40px; }
}
/* Narrow phone cards: quantity on its own full-width row, Add underneath. */
@media (max-width: 560px) {
  .qty--card { flex: 1 1 100%; }
  .qty--card input { flex: 1; }
  .product-card__add .button { flex-basis: 100%; }
}
.product-card__add .button { background: transparent; color: var(--accent); border-color: var(--accent); }
.product-card__add .button:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.link-button { border: 0; background: none; padding: 0; font: inherit; font-size: var(--fs-sm); color: var(--text-muted); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.link-button:hover { color: var(--accent); }

/* ───────── Cart ───────── */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
@media (max-width: 900px) { .cart { grid-template-columns: 1fr; } }
.cart__lines { border-top: 1px solid var(--border); }
.cart-line {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; grid-template-areas: "media info qty total" "media info remove remove";
  gap: var(--space-2) var(--space-5); align-items: center; padding: var(--space-5) 0; border-bottom: 1px solid var(--border);
}
.cart-line__media { grid-area: media; aspect-ratio: 1; background: var(--surface-soft); display: grid; place-items: center; }
.cart-line__media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.cart-line__media .product-card__placeholder { font-size: 2rem; }
.cart-line__info { grid-area: info; display: grid; gap: var(--space-1); }
.cart-line__name { color: var(--ink); font-weight: 500; text-decoration: none; }
.cart-line__name:hover { text-decoration: underline; }
.cart-line__qty { grid-area: qty; display: flex; gap: var(--space-2); align-items: center; }
.cart-line__total { grid-area: total; margin: 0; min-width: 6.5rem; text-align: right; color: var(--ink); font-weight: 600; }
.cart-line__remove { grid-area: remove; justify-self: end; }
@media (max-width: 600px) {
  .cart-line { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "media info info" "media qty total" "media remove remove"; }
}
.cart__summary { position: sticky; top: calc(var(--header-h) + var(--space-4)); background: var(--surface); border: 1px solid var(--border); padding: var(--space-6); display: grid; gap: var(--space-4); }
.cart__summary-title { font: var(--weight-display) 1.6rem/1.1 var(--font-display); margin: 0; }
.totals { margin: 0; display: grid; gap: var(--space-3); }
.totals div { display: flex; justify-content: space-between; gap: var(--space-4); }
.totals dt { color: var(--text); }
.totals dd { margin: 0; color: var(--ink); }
.totals__grand { border-top: 1px solid var(--border); padding-top: var(--space-3); font-size: var(--fs-lg); font-weight: 600; }
.totals__grand dd { color: var(--accent); }
.cart__nudge { margin: 0; padding: var(--space-3) var(--space-4); background: var(--accent-soft); color: var(--accent-deep); font-size: var(--fs-sm); }

/* ───────── Toast ───────── */
.toast {
  position: fixed; z-index: 60; right: var(--gutter); bottom: var(--gutter); max-width: min(420px, calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5);
  background: var(--ink); color: #ffffff; box-shadow: 0 10px 30px rgb(0 0 0 / .18); font-size: var(--fs-sm);
}
.toast__link { color: #ffffff; font-weight: 600; white-space: nowrap; }
.toast__link:hover { color: var(--accent-soft); }

/* ───────── Footer ───────── */
.site-footer { margin-top: var(--space-8); background: var(--surface-soft); padding-top: var(--space-8); font-size: var(--fs-sm); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--space-6); }
@media (max-width: 1100px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand { font: var(--weight-display) 1.5rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--heading); }
.site-footer__heading { font: 500 var(--fs-xs)/1 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; margin-bottom: var(--space-4); }
.site-footer li { margin-bottom: var(--space-2); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__base { margin-top: var(--space-7); padding-block: var(--space-5); border-top: 1px solid var(--border); font-size: var(--fs-xs); color: var(--text-muted); }
.site-footer__base p { margin: 0; }
.section--story + .site-footer, main:has(> .section--story:last-child) + .site-footer { margin-top: 0; }

/* ───────── Customer-care pages (contact, shipping, returns, terms, privacy, consultant) ───────── */
.info-intro { max-width: 42rem; font-size: var(--fs-lg); margin-bottom: 0; }
.info-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-7); align-items: start; }
.info-body { max-width: 46rem; }
.info-body h2 { font: var(--weight-display) 1.6rem/1.2 var(--font-display); margin-top: var(--space-6); }
.info-body h2:first-child { margin-top: 0; }
.info-body h3 { font-size: var(--fs-body); font-weight: 500; margin-top: var(--space-5); }
.info-body ol { padding-left: 1.2em; margin: 0 0 var(--space-4); }
.info-body li { margin-bottom: var(--space-2); }
.info-body a { color: var(--accent-text); }
.info-updated { font-size: var(--fs-sm); color: var(--text-muted); }
.info-aside { position: sticky; top: calc(var(--header-h) + var(--space-4)); display: grid; gap: var(--space-5); }
.info-card { background: var(--surface); border: 1px solid var(--border); padding: var(--space-5); }
.info-card__title { font: var(--weight-display) 1.4rem/1.2 var(--font-display); margin-bottom: var(--space-2); }
.info-nav a { display: block; padding: var(--space-2) 0; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); text-decoration: none; }
.info-nav a[aria-current="page"] { color: var(--accent); font-weight: 500; }
@media (max-width: 900px) {
  .info-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .info-aside { position: static; }
}
.contact-list { display: grid; gap: var(--space-3); margin: 0; }
.contact-list dt { font-size: var(--fs-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted); }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.contact-list a { color: var(--accent-text); }
.info-table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-5); font-size: var(--fs-sm); }
.info-table th, .info-table td { padding: var(--space-3); border-bottom: 1px solid var(--border); text-align: left; }
.info-table th { background: var(--surface-soft); color: var(--heading); font-weight: 500; }
.steps { display: grid; gap: var(--space-4); margin: 0 0 var(--space-5); padding: 0; list-style: none; counter-reset: step; }
.info-body .steps { padding: 0; }
.steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-3); align-items: start; margin: 0; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep); font-weight: 500;
}
.callout { background: var(--accent-soft); color: var(--accent-deep); padding: var(--space-5); margin: var(--space-5) 0; }
.callout p:last-child { margin-bottom: 0; }
/* Text the shop owner still has to write, in [square brackets]. Highlighted only while developing (see _Layout). */
.show-fill-ins .fill-in { background: #fff4c2; outline: 1px dashed #a67c00; outline-offset: 1px; }

/* ───────── Sign in & account ───────── */
.auth .container { display: grid; justify-items: center; }
.auth-card { width: min(100%, 26rem); background: var(--surface); border: 1px solid var(--border); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.auth-card .page-title { margin-bottom: var(--space-2); }
.form { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.field { display: grid; gap: var(--space-1); }
.field label { font-size: var(--fs-sm); font-weight: 500; color: var(--heading); }
.field input { width: 100%; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input.input-validation-error { border-color: var(--accent-deep); }
.field__error { font-size: var(--fs-xs); color: var(--accent-deep); }
.field__error:empty { display: none; }
.form-alert { margin-top: var(--space-4); padding: var(--space-3) var(--space-4); background: var(--accent-soft); color: var(--accent-deep); border-left: 3px solid var(--accent); font-size: var(--fs-sm); }
.password-field { position: relative; }
.password-field input { padding-right: 4.5rem; }
.password-field__toggle {
  position: absolute; top: 50%; right: var(--space-2); transform: translateY(-50%); min-height: 32px; padding: 0 var(--space-2);
  border: 0; background: none; color: var(--accent-text); font: 500 var(--fs-xs)/1 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; cursor: pointer;
}
.check { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ───────── My account: header, menu, cards, orders, forms ───────── */
/* Shared form bits */
.field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 var(--space-3); min-height: 44px;
}
.field textarea { padding: var(--space-2) var(--space-3); line-height: 1.5; resize: vertical; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field__label { font-size: var(--fs-sm); font-weight: 500; color: var(--heading); }
.field__hint { font-size: var(--fs-xs); color: var(--text-muted); }
.field__optional { font-weight: 400; color: var(--text-muted); }

/* Soft fuchsia wash with a few blurred petals */
.acct-hero {
  position: relative; overflow: hidden; padding: var(--space-6) 0 clamp(4.5rem, 3rem + 4vw, 6rem);
  background: radial-gradient(120% 140% at 85% 0%, #f9d7e8 0%, transparent 55%), radial-gradient(90% 120% at 0% 100%, #fdeef5 0%, transparent 60%), var(--bg);
}
.acct-hero::after {
  content: ""; position: absolute; right: -60px; top: -40px; width: 340px; height: 340px; opacity: .55; pointer-events: none; filter: blur(1px); transform: rotate(-12deg);
  background:
    radial-gradient(closest-side, #f3b6d3 0 98%, transparent) 120px 20px / 120px 170px no-repeat,
    radial-gradient(closest-side, #f7cde1 0 98%, transparent) 40px 110px / 170px 120px no-repeat,
    radial-gradient(closest-side, #fbe0ec 0 98%, transparent) 150px 150px / 150px 110px no-repeat;
}
.acct-hero .container { position: relative; z-index: 1; }
.acct-hero__eyebrow { margin: 0; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); }
.acct-hero__title { font: var(--weight-display) clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem)/1.05 var(--font-display); margin: var(--space-2) 0; }
.acct-hero__title em { color: var(--accent); font-style: italic; }
.acct-hero__intro { max-width: 36rem; margin: 0; }

/* Side menu, lifted over the header */
.acct { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); align-items: start;
  margin-top: calc(-1 * clamp(3rem, 2rem + 3vw, 4rem)); position: relative; z-index: 2; padding-bottom: var(--space-8); }
.acct-menu { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
.acct-menu__nav, .acct-menu__toggle, .acct-panel, .acct-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 10px 30px -18px #7a144940;
}
.acct-menu__nav { padding: .6rem; }
.acct-menu__item {
  display: flex; align-items: center; gap: .7rem; width: 100%; padding: .7rem .85rem; border: 0; border-radius: 10px; background: none;
  font: inherit; font-size: .92rem; color: var(--heading); text-decoration: none; text-align: left; cursor: pointer;
}
.acct-menu__item svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--text-muted); }
a.acct-menu__item:hover, button.acct-menu__item:hover { background: var(--bg); color: var(--heading); }
.acct-menu__item[aria-current="page"] { background: var(--accent-soft); color: var(--accent-deep); font-weight: 500; }
.acct-menu__item[aria-current="page"] svg { color: var(--accent); }
.acct-menu__rule { border: 0; border-top: 1px solid var(--border); margin: .5rem .3rem; }
.acct-menu__signout .acct-menu__item { color: var(--text-muted); }

/* The burger: only when the menu is on top and its tabs no longer fit in one row (site.js adds .is-collapsed). */
.acct-menu__toggle { display: none; width: 100%; align-items: center; gap: .85rem; padding: .7rem 1rem .7rem .7rem; text-align: left; cursor: pointer; font: inherit; color: var(--heading); }
.acct-menu__burger { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.acct-menu__toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.acct-menu__label { display: grid; flex: 1; line-height: 1.2; }
.acct-menu__label small { font-size: .66rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.acct-menu__label span { font: var(--weight-display) 1.3rem/1.2 var(--font-display); color: var(--heading); }
.acct-menu__chevron { color: var(--text-muted); transition: transform var(--dur) var(--ease); }
.acct-menu.is-open .acct-menu__toggle { border-color: #eab9d2; }
.acct-menu.is-open .acct-menu__chevron { transform: rotate(180deg); }

/* Cards on the overview */
.acct-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.acct-card { padding: var(--space-5); }
.acct-card__title { font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-3); }
.acct-card__links { display: flex; flex-wrap: wrap; gap: var(--space-5); margin: var(--space-4) 0 0; }
.acct-card__links .link-arrow { color: var(--accent); }
.acct-order-summary { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: center; }
.acct-order-summary strong { font-weight: 500; color: var(--heading); }
.acct-details { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.25rem; margin: 0; }
.acct-details dt { color: var(--text-muted); }
.acct-details dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.acct-card--consultant { display: flex; gap: var(--space-4); align-items: center; border: 0; background: linear-gradient(120deg, #4f1a37, #7a1449); color: #fbe6f0; }
.acct-card--consultant .acct-card__title { color: #f3bdd6; margin-bottom: var(--space-1); }
.acct-card--consultant p { margin: 0; font-size: .92rem; }
.acct-avatar { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fbe6f0; color: var(--accent-deep); font: 600 1.4rem var(--font-display); }
.acct-pill { display: inline-flex; margin-top: var(--space-2); padding: .3rem .85rem; border-radius: var(--radius-pill); background: #ffffff22; color: #fff; font-size: .8rem; font-weight: 500; text-decoration: none; }
.acct-pill:hover { background: #ffffff38; color: #fff; }

/* Product bubbles and status tags */
.acct-thumbs { display: flex; }
.acct-thumbs span { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--surface); overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--accent-soft), var(--surface-soft)); font-size: .7rem; font-weight: 600; color: var(--accent-deep); }
.acct-thumbs span + span { margin-left: -14px; }
.acct-thumbs img { width: 100%; height: 100%; object-fit: contain; background: var(--surface-soft); mix-blend-mode: multiply; }
.acct-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: var(--radius-pill); background: #e9f5ee; color: #1f6b43; font-size: .72rem; font-weight: 500; white-space: nowrap; }
.acct-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.acct-chip--wait { background: #fdf3e2; color: #8a5a00; }

/* The address as a parcel label */
.acct-label {
  position: relative; display: block; min-height: 9rem; padding: 1.15rem 5rem 1.15rem 1.4rem; border: 1px solid #f0dfe6; border-radius: 12px; color: var(--ink); line-height: 1.75; overflow-wrap: anywhere;
  background: linear-gradient(90deg, var(--accent) 0 5px, transparent 5px), repeating-linear-gradient(0deg, transparent 0 27px, #f6eef1 27px 28px), #fffdfc;
}
.acct-label__to { display: block; margin-bottom: .35rem; font: italic 500 1.05rem/1 var(--font-display); color: var(--accent-deep); }
.acct-label__stamp {
  position: absolute; right: 1rem; top: 1rem; width: 58px; height: 58px; border-radius: 50%; border: 1.5px dashed #e7b3cc; display: grid; place-items: center; text-align: center;
  font: 600 .5rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #c77aa0; transform: rotate(12deg);
}

/* Panels (orders, order, forms) */
.acct-panel { padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); }
.acct-panel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.acct-panel__head h2 { font: var(--weight-display) 1.65rem/1.1 var(--font-display); margin: 0; }
.acct-panel__head .link-arrow { color: var(--accent); }
.acct-empty { padding: var(--space-6) 0; text-align: center; }
.acct-note { margin: var(--space-4) 0 0; font-size: .82rem; color: var(--text-muted); }

.acct-years { display: flex; flex-wrap: wrap; gap: .35rem; }
.acct-years a { padding: .3rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: .8rem; text-decoration: none; color: var(--heading); }
.acct-years a[aria-current="page"] { background: var(--accent-soft); border-color: transparent; color: var(--accent-deep); font-weight: 500; }

.acct-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.acct-order-row {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto auto auto; gap: 1.1rem; align-items: center; padding: .9rem 1.1rem;
  border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: inherit; transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
}
.acct-order-row:hover, .acct-order-row:focus-visible { border-color: #eab9d2; box-shadow: 0 8px 22px -16px #7a144960; transform: translateY(-1px); color: inherit; }
.acct-order-row__main { display: grid; line-height: 1.35; }
.acct-order-row__main strong { font-weight: 500; color: var(--heading); }
.acct-order-row__main span { font-size: .85rem; color: var(--text-muted); }
.acct-order-row__total { font-weight: 500; color: var(--ink); white-space: nowrap; }
.acct-order-row__go { width: 18px; height: 18px; fill: none; stroke: var(--text-muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.acct-order-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); padding: var(--space-4) var(--space-5); border-radius: 12px; background: var(--bg); margin-bottom: var(--space-5); }
.acct-order-meta span { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.acct-order-meta strong { font-weight: 500; color: var(--ink); }
.acct-order-meta strong .acct-chip { letter-spacing: 0; text-transform: none; display: inline-flex; }
.acct-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.acct-lines li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: var(--space-4); align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.acct-line__img { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, var(--accent-soft), var(--surface-soft)); font-size: .75rem; font-weight: 600; color: var(--accent-deep); text-decoration: none; }
.acct-line__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.acct-line__main { display: grid; line-height: 1.4; }
.acct-line__main a { text-decoration: none; }
.acct-line__main strong { font-weight: 500; color: var(--heading); }
.acct-line__main span { font-size: .85rem; color: var(--text-muted); }
.acct-line__price { font-weight: 500; color: var(--ink); white-space: nowrap; }
.acct-line__again { margin: 0; }
.acct-line__gone { font-size: .75rem; color: var(--text-muted); }
.acct-again { border-radius: var(--radius-pill); background: transparent; color: var(--accent); border-color: var(--accent); }
.acct-again:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.acct-order-foot { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: var(--space-5); align-items: start; margin-top: var(--space-5); }
.acct-order-foot .acct-label { min-height: 0; font-size: .9rem; }
.acct-totals { display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; margin: 0; }
.acct-totals dt { color: var(--text-muted); }
.acct-totals dd { margin: 0; text-align: right; color: var(--ink); }
.acct-totals .acct-totals__grand { padding-top: .6rem; border-top: 1px solid var(--border); font: var(--weight-display) 1.35rem/1.2 var(--font-display); color: var(--heading); }

/* Forms: address and details */
.acct-panel .button { border-radius: var(--radius-pill); }
.acct-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-5); }
.acct-actions form { margin: 0; }
.acct-form { margin-top: 0; }
.acct-form--narrow { max-width: 40rem; }
.acct-form .field input, .acct-form .field select, .acct-form .field textarea { border-radius: 10px; min-height: 46px; }
.acct-form .field { align-content: start; }
.acct-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.acct-fixed { display: flex; align-items: center; gap: .6rem; min-height: 46px; padding: 0 var(--space-3); border: 1px dashed var(--border); border-radius: 10px; background: var(--bg); color: var(--ink); overflow-wrap: anywhere; }
.acct-fixed svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: var(--text-muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.acct-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-6); align-items: start; }
.acct-editor__preview { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
.acct-editor__preview p { margin: var(--space-2) 0 0; }
.acct-prefs { display: grid; gap: .8rem; margin: var(--space-2) 0 0; padding: var(--space-4) 0 0; border: 0; border-top: 1px solid var(--border); }
.acct-prefs legend { padding: 0; margin-bottom: var(--space-3); font: var(--weight-display) 1.25rem/1.2 var(--font-display); color: var(--heading); }
.acct-switch { display: flex; align-items: center; gap: .75rem; cursor: pointer; color: var(--ink); }
.acct-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.acct-switch__track { position: relative; flex: 0 0 auto; width: 42px; height: 24px; border-radius: var(--radius-pill); background: #e5dcd9; transition: background var(--dur); }
.acct-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform var(--dur); }
.acct-switch input:checked + .acct-switch__track { background: var(--accent); }
.acct-switch input:checked + .acct-switch__track::after { transform: translateX(18px); }
.acct-switch input:focus-visible + .acct-switch__track { box-shadow: 0 0 0 4px var(--accent-soft); }

/* "Saved" message after a form */
.acct-flash {
  position: fixed; left: 50%; bottom: var(--space-5); z-index: 60; display: flex; align-items: center; gap: .5rem; padding: .75rem 1.2rem; border-radius: var(--radius-pill);
  background: var(--ink); color: #fff; font-size: .9rem; transform: translateX(-50%); animation: acct-flash 4.5s var(--ease) forwards;
}
.acct-flash svg { width: 18px; height: 18px; fill: none; stroke: #f3b6d3; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes acct-flash { 0% { opacity: 0; transform: translate(-50%, 20px); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; visibility: hidden; } }
@keyframes acct-drop { from { opacity: 0; transform: translateY(-6px); } }

/* Narrower: the menu moves to the top as one row of tabs; site.js swaps it for the burger when they no longer fit. */
@media (max-width: 860px) {
  .acct { grid-template-columns: minmax(0, 1fr); }
  .acct-menu { position: relative; top: auto; z-index: 5; }
  .acct-menu__nav { display: flex; flex-wrap: wrap; gap: .25rem; padding: .4rem; }
  .acct-menu__item { width: auto; white-space: nowrap; padding: .55rem .8rem; }
  .acct-menu__rule, .acct-menu__signout { display: none; }
  .acct-menu.is-collapsed .acct-menu__toggle { display: flex; }
  .acct-menu.is-collapsed .acct-menu__nav { display: none; }
  .acct-menu.is-collapsed.is-open .acct-menu__nav { display: grid; position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: .5rem; box-shadow: 0 18px 40px -16px #7a144955; animation: acct-drop .18s ease-out; }
  .acct-menu.is-collapsed.is-open .acct-menu__item { width: 100%; padding: .8rem .9rem; }
  .acct-menu.is-collapsed.is-open .acct-menu__rule { display: block; }
  .acct-menu.is-collapsed.is-open .acct-menu__signout { display: block; }
  .acct-cards, .acct-editor, .acct-order-foot { grid-template-columns: minmax(0, 1fr); }
  .acct-editor__preview { position: static; order: -1; }
}
@media (max-width: 620px) {
  .acct-order-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "thumbs main go" "thumbs chip total"; gap: .4rem .9rem; padding: .85rem .9rem; }
  .acct-order-row .acct-thumbs { grid-area: thumbs; }
  .acct-order-row .acct-thumbs span + span { display: none; }
  .acct-order-row__main { grid-area: main; }
  .acct-order-row .acct-chip { grid-area: chip; justify-self: start; }
  .acct-order-row__total { grid-area: total; justify-self: end; }
  .acct-order-row__go { grid-area: go; justify-self: end; }
  .acct-lines li { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .acct-line__again, .acct-line__gone { grid-column: 2 / -1; justify-self: start; }
  .acct-line__img { width: 56px; height: 56px; }
  .acct-order-meta { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .acct-form__row { grid-template-columns: minmax(0, 1fr); }
  .acct-order-summary { grid-template-columns: minmax(0, 1fr); }
}

/* ───────── Sign in, forgot / reset password ───────── */
/* A soft petal backdrop behind a white card */
.auth { position: relative; overflow: hidden;
  background: radial-gradient(70% 90% at 90% 0%, #f9d7e8 0%, transparent 60%), radial-gradient(60% 80% at 0% 100%, #fdeef5 0%, transparent 60%), var(--bg); }
.auth::before {
  content: ""; position: absolute; left: -80px; bottom: -60px; width: 300px; height: 300px; opacity: .45; filter: blur(1px); transform: rotate(18deg); pointer-events: none;
  background: radial-gradient(closest-side, #f3b6d3 0 98%, transparent) 90px 20px / 110px 160px no-repeat, radial-gradient(closest-side, #f7cde1 0 98%, transparent) 20px 120px / 160px 110px no-repeat;
}
.auth .container { position: relative; z-index: 1; }
.auth-card { width: min(100%, 27rem); border-radius: 18px; box-shadow: 0 24px 60px -30px #7a144955; }
.auth-card .page-title em { color: var(--accent); font-style: italic; }
.auth-card .button { border-radius: var(--radius-pill); }
.auth-card__foot { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--border); text-align: center; }
.auth-card__note { margin: var(--space-4) 0 0; }
.auth-back { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-sm); font-weight: 500; color: var(--accent-text); text-decoration: none; }
.auth-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: var(--space-4); background: var(--accent-soft); color: var(--accent); }
.auth-badge svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.auth-tips { margin: var(--space-4) 0 var(--space-5); padding: var(--space-3) var(--space-4); border-radius: 12px; background: var(--bg); font-size: var(--fs-sm); }
.auth-tips ul { margin: var(--space-1) 0 0; padding-left: 1.1rem; list-style: disc; }

/* Label with a link on the right ("Forgot your password?") */
.field__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.field__head a { font-size: var(--fs-xs); font-weight: 500; color: var(--accent-text); text-decoration: none; }
.field__head a:hover { text-decoration: underline; }

/* "Check your email": an envelope with a letter peeking out */
.envelope { position: relative; width: 92px; height: 66px; margin: var(--space-4) 0 var(--space-5); }
.envelope__body { position: absolute; inset: 0; border-radius: 10px; background: var(--accent-soft); border: 1.5px solid #eab9d2; overflow: hidden; }
.envelope__body::before {
  content: ""; position: absolute; left: -2px; right: -2px; top: -34px; height: 68px;
  background: linear-gradient(to bottom right, transparent 49%, #eab9d2 49.5%, #eab9d2 50.5%, transparent 51%) left / 50% 100% no-repeat,
              linear-gradient(to bottom left, transparent 49%, #eab9d2 49.5%, #eab9d2 50.5%, transparent 51%) right / 50% 100% no-repeat;
}
.envelope__letter { position: absolute; left: 14px; right: 14px; top: -18px; height: 46px; border-radius: 6px; background: #fff; border: 1.5px solid #eab9d2; animation: envelope-peek 2.6s ease-in-out infinite; }
.envelope__letter::before, .envelope__letter::after { content: ""; position: absolute; left: 10px; height: 3px; border-radius: 3px; background: #f3cfe0; }
.envelope__letter::before { top: 10px; right: 18px; }
.envelope__letter::after { top: 19px; right: 30px; }
.envelope__heart { position: absolute; right: -10px; top: -14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: .85rem; box-shadow: 0 0 0 4px var(--surface); }
@keyframes envelope-peek { 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .envelope__letter { animation: none; } }

/* New password: strength meter, length rule, match check */
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: var(--space-2); }
.pw-meter span { height: 5px; border-radius: 5px; background: #eee5e2; transition: background var(--dur); }
.pw-meter[data-level="1"] span:nth-child(-n+1) { background: #d9534f; }
.pw-meter[data-level="2"] span:nth-child(-n+2) { background: #e0a020; }
.pw-meter[data-level="3"] span:nth-child(-n+3) { background: #7cb87f; }
.pw-meter[data-level="4"] span:nth-child(-n+4) { background: #1f6b43; }
.pw-meter__label { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--fs-xs); color: var(--text-muted); }
.pw-meter__label strong { font-weight: 500; color: var(--heading); }
.pw-rule { display: flex; align-items: center; gap: .4rem; }
.pw-rule::before { content: ""; flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #d8cdc9; }
.pw-rule.is-met { color: #1f6b43; }
.pw-rule.is-met::before { border-color: #1f6b43; background: #1f6b43 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 10px no-repeat; }
.pw-match { font-size: var(--fs-xs); }
.pw-match:empty { display: none; }
.pw-match.is-ok { color: #1f6b43; }
.pw-match.is-bad { color: var(--accent-deep); }

/* Account → Password: form beside a tips panel */
.acct-split { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: var(--space-6); align-items: start; }
.acct-tips { padding: var(--space-4) var(--space-5); border-radius: 12px; background: var(--bg); font-size: var(--fs-sm); }
.acct-tips h3 { font: var(--weight-display) 1.15rem/1.2 var(--font-display); margin-bottom: var(--space-2); }
.acct-tips ul { margin: 0 0 var(--space-3); padding-left: 1.1rem; list-style: disc; display: grid; gap: var(--space-1); }
.acct-tips p { margin: 0; }
@media (max-width: 860px) { .acct-split { grid-template-columns: minmax(0, 1fr); } }

/* Development-only email page */
.dev-email { margin-top: var(--space-5); }
.form-alert--ok { background: #e9f5ee; color: #1f6b43; border-left-color: #1f6b43; }

/* ───────── Shop admin (/admin) ───────── */
/* It reuses the account area's menu, panels, chips and forms; these add the slim heading, lists and tables. */
.admin-link { color: var(--accent); }
/* Phones: no room in the header; the account menu has a "Shop admin" item instead. */
@media (max-width: 520px) { .admin-link { display: none; } }
.adm-head { padding: var(--space-5) 0 calc(var(--space-4) + 1.5rem); background: linear-gradient(120deg, #fdf1f6, var(--bg) 70%); border-bottom: 1px solid var(--border); }
/* Title on the left; the lead line, "Back to…" link and any page tools fill the space beside it. */
.adm-head__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2) clamp(1.25rem, 1rem + 1.5vw, 2.5rem); align-items: end; }
.adm-head__titles { min-width: 0; }
.adm-head__side { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .35rem 1.25rem; text-align: right; padding-bottom: .35rem; }
.adm-head__eyebrow { margin: 0; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); }
.adm-head__title { font: var(--weight-display) clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem)/1.1 var(--font-display); margin: var(--space-1) 0 0; overflow-wrap: anywhere; }
.adm-head__lead { margin: 0; color: var(--text-muted); }
.adm { margin-top: -1.5rem; padding-bottom: var(--space-8); }
.adm-main { display: grid; gap: var(--space-5); min-width: 0; }
.adm-main > .acct-panel, .adm-split > .acct-panel { min-width: 0; }
.adm .field input[type="search"], .adm .field input[type="tel"], .adm .field input[type="url"], .adm .field input[type="file"], .adm .field input:not([type]) {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; min-height: 44px; padding: 0 var(--space-3);
}
.adm .field input[type="file"] { padding: .55rem var(--space-3); }
.adm-h2 { font: var(--weight-display) 1.35rem/1.2 var(--font-display); margin: 0 0 var(--space-3); }
.adm-num { text-align: right; white-space: nowrap; }

/* Dashboard tiles */
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--space-4); }
.adm-stat { display: grid; gap: .2rem; padding: var(--space-4) var(--space-5); border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-decoration: none; color: inherit; transition: border-color var(--dur), box-shadow var(--dur); }
a.adm-stat:hover { border-color: #eab9d2; box-shadow: 0 8px 22px -16px #7a144960; color: inherit; }
.adm-stat__label { font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.adm-stat__value { font: var(--weight-display) 2rem/1.1 var(--font-display); color: var(--heading); }
.adm-stat__note { font-size: .82rem; color: var(--text-muted); }
.adm-stat--alert { border-color: #f1d3a4; background: #fffaf1; }
.adm-stat--alert .adm-stat__value { color: #8a5a00; }
.adm-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.adm-split--form { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.adm-quick { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.adm-quick .button { border-radius: var(--radius-pill); }
.adm-mini { list-style: none; margin: 0; padding: 0; display: grid; }
.adm-mini a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding: .65rem 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--ink); font-size: .92rem; }
.adm-mini a:hover strong { color: var(--accent); }
.adm-mini a > span:last-child { color: var(--text-muted); font-size: .85rem; }
.adm-mini strong { font-weight: 500; }

/* Search row, filters, pager */
.adm-filters { margin-bottom: var(--space-4); }
.adm-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-3); margin-top: var(--space-5); }
.adm-pager .button { border-radius: var(--radius-pill); }
.adm-pager__where { font-size: var(--fs-sm); color: var(--heading); }
.adm-pager__where small { color: var(--text-muted); }
.adm-pager__where--alone { margin: var(--space-4) 0 0; text-align: center; color: var(--text-muted); }

/* Tables: rows on wide screens, cards on phones (each cell shows its column name). */
.adm-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.adm-table th { padding: .55rem .75rem; text-align: left; font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.adm-table td { padding: .7rem .75rem; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--ink); }
.adm-table tbody tr:hover, .adm-table tr[aria-current="true"] { background: #fdf6f9; }
.adm-table th.adm-num { text-align: right; }
.adm-table__link { font-weight: 500; text-decoration: none; color: var(--accent-text); }
.adm-table__link:hover { text-decoration: underline; }
.adm-who { display: grid; line-height: 1.3; text-decoration: none; }
.adm-who strong { font-weight: 500; color: var(--heading); }
.adm-who small { color: var(--text-muted); font-size: .82rem; overflow-wrap: anywhere; }
a.adm-who:hover strong { color: var(--accent); }
.acct-chip--off { background: #f1ecea; color: var(--text-muted); }
.adm-table--import tr.is-bad td { background: #fdf3f6; }
.adm-check { font-size: .82rem; color: #1f6b43; }
.adm-check--warn { color: #8a5a00; }
.adm-check--bad { color: var(--accent-deep); }

/* Product list */
/* Products list: every product, edited in place (site.js, the "Admin: products" part) */
.adm-plist { --bin: #e0680f; --bin-soft: #fdeedf; --putback: #1f6b43; --putback-soft: #e6f4ec; --wrong: #b3261e; }
/* The toolbar sits in the heading band beside the title (see _AdminLayout HeadTools), so the list starts higher. */
/* Same columns as the menu and list below (.acct), so the toolbar lines up with the product list, edge to edge. */
.adm-head--tools .adm-head__side { display: block; text-align: left; padding-bottom: 0; }
.adm-head--tools .adm-head__inner { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); align-items: end; }
/* Page tools in the heading band (Products, Orders, Customers): inset like the panel below, so they line up with its list. */
.adm-headbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding-inline: clamp(1.25rem, 1rem + 1.2vw, 2rem); container-type: inline-size; }
.adm-headbar__tools { margin-left: auto; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.adm-headbar .button { border-radius: var(--radius-pill); white-space: nowrap; }
/* The search is always open and takes the room left beside the buttons (never under 251px). The magnifying glass
   sits inside its right-hand end, like the site header's search. */
.adm-headsearch { display: flex; align-items: center; flex: 1 1 251px; min-width: min(251px, 100%); }
.adm-headsearch input { flex: 1 1 auto; width: 100%; min-width: 0; height: 42px; padding: 0 3.25rem 0 1rem; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); }
.adm-headsearch input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.adm-headsearch .round-btn { flex: none; width: 36px; height: 36px; margin-left: -40px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.adm-headsearch .round-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
/* Products: when the search can't have 251px beside the count, category and buttons, it goes on its own line
   below them, the full width of the list. (910px = those tools, about 650px, plus the gap and 251px.) */
@container (max-width: 910px) {
  .adm-plist__search { order: 2; flex-basis: 100%; }
}
/* Where the menu moves above the list, the band is one column and the tools go full width under the title. */
@media (max-width: 860px) {
  .adm-head__inner, .adm-head--tools .adm-head__inner { grid-template-columns: minmax(0, 1fr); }
  .adm-head__side { justify-content: flex-start; text-align: left; }
  .adm-headbar { padding-inline: 0; }
}
.adm-plist__count { font-size: .85rem; color: var(--text-muted); }

.adm-plist__tools select { height: 42px; border-radius: 10px; min-width: 0; max-width: 100%; width: 16rem; }

.adm-plist__editall { display: inline-flex; align-items: center; gap: .45rem; }
.adm-plist__editall svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.adm-plist__editall.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.adm-plist__chips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-bottom: var(--space-4); }
.adm-plist__sep { width: 1px; height: 20px; background: var(--border); margin: 0 .35rem; }
.adm-chip { padding: .3rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-pill); font: inherit; font-size: .8rem; color: var(--heading); background: var(--surface); cursor: pointer; }
.adm-chip b { font-weight: 500; color: var(--text-muted); margin-left: .3rem; }
.adm-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: transparent; color: var(--accent-deep); font-weight: 500; }
.adm-chip[aria-pressed="true"] b { color: var(--accent-deep); }

.adm-prows { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.adm-prow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: var(--space-4); align-items: center; padding: .6rem .8rem .6rem .9rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: opacity .28s, transform .28s, border-color .15s; }
.adm-prow[hidden] { display: none; }
.adm-prow:hover { border-color: #eab9d2; }
.adm-prow.is-hidden { background: #faf8f7; }
.adm-prow.is-hidden .acct-line__img { opacity: .55; }
.adm-prow.is-leaving { opacity: 0; transform: translateX(20px); }
.adm-prow.is-editing { background: #fffbfd; border-color: #eab9d2; }
.adm-prow.is-changed { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
/* Back from a product: that row glows for a few seconds. */
.adm-prow.is-returned { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), inset 3px 0 0 var(--accent); animation: adm-returned 1.2s ease-out 2; }
@keyframes adm-returned { 0% { box-shadow: 0 0 0 10px #f6c6dd, inset 3px 0 0 var(--accent); } 100% { box-shadow: 0 0 0 4px var(--accent-soft), inset 3px 0 0 var(--accent); } }
@media (prefers-reduced-motion: reduce) { .adm-prow.is-returned { animation: none; } }
.adm-prow__main { display: grid; gap: .15rem; line-height: 1.35; min-width: 0; }
.adm-prow__main a { font-weight: 500; color: var(--heading); text-decoration: none; }
.adm-prow__main a:hover { color: var(--accent); }
.adm-prow__main > span { font-size: .84rem; color: var(--text-muted); }
.adm-prow mark { background: #ffe9a8; color: inherit; border-radius: 2px; padding: 0 1px; }
.adm-prow__flags { display: flex; flex-wrap: wrap; gap: .3rem; }
.adm-prow__price { display: grid; justify-items: end; white-space: nowrap; }
.adm-prow__price s { font-size: .8rem; color: var(--text-muted); }
.adm-prow__price strong { font-weight: 500; color: var(--ink); }
.adm-prow__actions { display: flex; gap: .4rem; }

/* Special / Home page / New: light pink = off, fuchsia = on. Buttons only while the row is being edited. */
.adm-flag { display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .6rem .1rem .45rem; border: 1px solid transparent; border-radius: var(--radius-pill); background: var(--accent-soft); color: #b98aa3; font: inherit; font-size: .72rem; line-height: 1.5; }
.adm-flag svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.adm-flag[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.adm-flag--muted { background: #ece6e3; color: var(--text-muted); }
button.adm-flag { cursor: pointer; box-shadow: 0 0 0 1px #eab9d2; }
button.adm-flag:hover { border-color: var(--accent); color: var(--accent-deep); }
button.adm-flag[aria-pressed="true"]:hover { background: var(--accent-hover); color: var(--accent-ink); }

.adm-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--heading); cursor: pointer; text-decoration: none; }
.adm-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.adm-icon:hover { border-color: var(--accent); color: var(--accent); }
.adm-icon--bin { color: var(--bin); border-color: #f5cfae; }
.adm-icon--bin:hover { background: var(--bin-soft); border-color: var(--bin); color: var(--bin); }
.adm-icon--save { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.adm-icon--save:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.adm-icon--save:disabled, .adm-icon--save:disabled:hover { background: #e7d9df; border-color: #e7d9df; color: #fff; cursor: not-allowed; }
.adm-icon--putback { width: auto; padding: 0 .8rem; border-radius: var(--radius-pill); display: inline-flex; gap: .35rem; align-items: center; font: inherit; font-size: .78rem; color: var(--putback); border-color: #bfe0cc; }
.adm-icon--putback:hover { background: var(--putback-soft); border-color: var(--putback); color: var(--putback); }

/* Editing: the prices become boxes where they are */
.adm-pprices { display: grid; gap: .35rem; justify-items: end; }
.adm-pf { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--text-muted); white-space: nowrap; }
.adm-pf__box { display: flex; align-items: center; width: 110px; height: 34px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); overflow: hidden; }
.adm-pf__box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.adm-pf__box span { padding: 0 2px 0 .6rem; color: var(--text-muted); }
.adm-pf__box input { width: 100%; height: 100%; min-height: 0; border: 0; padding: 0 .5rem 0 .25rem; background: transparent; color: var(--ink); text-align: right; outline: none; }
.adm-pf.is-off { opacity: .55; }
.adm-pf.is-off .adm-pf__box { background: var(--surface-soft); }
.adm-pf.is-wrong .adm-pf__box { border-color: var(--wrong); box-shadow: 0 0 0 3px #fbe1df; }
.adm-pf.is-wrong .adm-pf__box span { color: var(--wrong); }
.adm-pprices__error { font-size: .74rem; color: var(--wrong); text-align: right; max-width: 230px; }
.adm-pprices__error:empty { display: none; }

/* Edit all: the save bar along the bottom of the window */
.adm-plist__bar { position: fixed; inset: auto 0 0; z-index: 30; background: var(--heading); color: #fff; padding: .7rem 0; }
.adm-plist__bar[hidden] { display: none; }
.adm-plist__bar-in { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.adm-plist__bar-in span { flex: 1 1 220px; font-size: .9rem; }
.adm-plist__bar .button { border-radius: var(--radius-pill); }
.adm-plist__bar .button--ghost { color: #fff; border-color: #fff; }
.adm-plist__bar .button--ghost:hover { background: #fff; color: var(--heading); }
.adm-plist__bar .button:disabled { opacity: .45; cursor: not-allowed; }
.adm-plist.is-editing-all { padding-bottom: 4.5rem; }

/* Remove-from-shop confirmation and the Undo message */
.adm-confirm { border: 0; border-radius: 18px; padding: 0; max-width: 420px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(46, 42, 43, .25); }
.adm-confirm::backdrop { background: rgba(46, 42, 43, .45); }
.adm-confirm__body { padding: var(--space-6) var(--space-5); text-align: center; }
.adm-confirm__icon { width: 56px; height: 56px; margin: 0 auto var(--space-3); display: grid; place-items: center; border-radius: 50%; background: #fdeedf; color: #e0680f; }
.adm-confirm__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.adm-confirm h2 { font: var(--weight-display) 1.6rem/1.15 var(--font-display); margin: 0 0 var(--space-2); }
.adm-confirm p { margin: 0 0 var(--space-5); font-size: .92rem; }
.adm-confirm__buttons { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.adm-confirm__buttons .button { border-radius: var(--radius-pill); }
.adm-confirm__remove { background: #e0680f; border-color: #e0680f; }
.adm-confirm__remove:hover { background: #c45a0b; border-color: #c45a0b; }
.adm-toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; display: flex; gap: .9rem; align-items: center; max-width: calc(100% - 32px); padding: .75rem 1rem; border-radius: 12px; background: var(--ink); color: #fff; font-size: .9rem; transform: translate(-50%, 200%); visibility: hidden; transition: transform .25s; }
.adm-toast.is-on { transform: translate(-50%, 0); visibility: visible; }
.adm-plist.is-editing-all .adm-toast { bottom: 84px; }
.adm-toast button { border: 0; background: none; color: #ffb3d6; font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.adm-toast button[hidden] { display: none; }

@media (max-width: 700px) {
  .adm-headbar__tools { margin-left: 0; width: 100%; }
  .adm-plist__tools select { flex: 1 1 100%; width: 100%; }
  .adm-headbar__tools .button { flex: 1; justify-content: center; }
  .adm-prow { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "img main main" "img price actions"; row-gap: .5rem; }
  .adm-prow > .acct-line__img { grid-area: img; align-self: start; width: 56px; height: 56px; }
  .adm-prow__main { grid-area: main; }
  .adm-prow__price { grid-area: price; display: flex; flex-wrap: wrap; gap: 0 .5rem; align-items: baseline; justify-items: start; min-width: 0; }
  .adm-prow__actions { grid-area: actions; justify-content: flex-end; }
  .adm-prow.is-editing { grid-template-areas: "img main main" "price price price" "actions actions actions"; }
  .adm-pprices { grid-area: price; justify-items: stretch; }
  .adm-pf { justify-content: space-between; }
  .adm-pf__box { width: 140px; }
  .adm-pprices__error { text-align: left; max-width: none; }
}
.adm-unmapped { margin-top: var(--space-5); }

/* Product and customer editors */
.adm-product-edit, .adm-customer { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-5); align-items: start; }
.adm-product-edit__side, .adm-customer__side { display: grid; gap: var(--space-5); position: sticky; top: calc(var(--header-h) + var(--space-4)); }
.adm-photo { aspect-ratio: 1; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, var(--accent-soft), var(--surface-soft)); color: var(--accent-deep); font-size: .9rem; }
.adm-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.adm-photo-form { margin-top: var(--space-4); }
.adm-photo-form .button, .adm-note-form .button { border-radius: var(--radius-pill); justify-self: start; }

/* Add a product: "Fill in from a product link" box, the pink outline on fields it filled, and the supplier's photos. */
.adm-fetch { margin-bottom: var(--space-5); padding: var(--space-4); border-radius: 14px; background: linear-gradient(135deg, #fff5fa, #fdf1f6); border: 1px solid #f1cfe1; }
.adm-fetch__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.adm-fetch__icon { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.adm-fetch svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.adm-fetch__head strong { display: block; color: var(--heading); font-weight: 500; }
.adm-fetch__head div span { font-size: .84rem; color: var(--text-muted); }
.adm-fetch__row { display: flex; gap: var(--space-2); }
.adm-fetch__row input { flex: 1; min-width: 0; height: 46px; font: inherit; padding: 0 var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-pill); background: #fff; color: var(--ink); }
.adm-fetch__row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.adm-fetch__row .button { border-radius: var(--radius-pill); gap: var(--space-2); white-space: nowrap; }
.adm-fetch__row .button:disabled { opacity: .65; cursor: progress; }
.adm-fetch__spin { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: adm-spin .8s linear infinite; }
@keyframes adm-spin { to { transform: rotate(360deg); } }
.adm-fetch__variant { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; font-size: .88rem; color: var(--heading); }
.adm-fetch__variant select { min-height: 40px; border-radius: 10px; border: 1px solid var(--border); padding: 0 var(--space-3); background: #fff; max-width: 100%; }
.adm-fetch__msg { margin-top: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: 10px; font-size: .88rem; display: flex; gap: var(--space-2); align-items: flex-start; }
.adm-fetch__msg svg { width: 18px; height: 18px; margin-top: 2px; }
.adm-fetch__msg a { color: inherit; font-weight: 500; }
.adm-fetch__msg--ok { background: #e6f4ec; color: #1f6b43; }
.adm-fetch__msg--warn { background: #fff4d9; color: #8a5a00; }
.adm-fetch__msg--bad { background: #fbe1df; color: #b3261e; }
.adm-linkfield { display: flex; gap: var(--space-2); align-items: center; }
.adm-linkfield input { flex: 1; min-width: 0; }
.adm-linkfield .button { border-radius: var(--radius-pill); flex: none; }
.adm-linkfield .button:not([href]) { display: none; }
.acct-form .field .is-filled { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fffafd; }
.adm-fetch-tip { margin: var(--space-1) 0 0; font-size: .8rem; color: var(--accent-deep); background: var(--accent-soft); border-radius: 8px; padding: var(--space-2) var(--space-3); }
.adm-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: var(--space-2); }
.adm-thumbs button { aspect-ratio: 1; border: 2px solid var(--border); border-radius: 8px; background: #fff; padding: 2px; cursor: pointer; overflow: hidden; }
.adm-thumbs button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.adm-thumbs img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 560px) {
  .adm-fetch__row { flex-direction: column; }
  .adm-fetch__row input { flex: none; }
  .adm-fetch__row .button { justify-content: center; }
}
.adm-view-link { justify-self: start; color: var(--accent); }
.adm-prefix, .adm-suffix { display: flex; align-items: stretch; }
.adm-prefix span, .adm-suffix span { display: grid; place-items: center; padding: 0 .8rem; border: 1px solid var(--border); background: var(--bg); color: var(--text-muted); }
.adm-prefix span { border-right: 0; border-radius: 10px 0 0 10px; }
.adm-suffix span { border-left: 0; border-radius: 0 10px 10px 0; }
.acct-form .adm-prefix input { border-radius: 0 10px 10px 0; min-width: 0; }
.acct-form .adm-suffix input { border-radius: 10px 0 0 10px; min-width: 0; }
.adm-field--short { max-width: 14rem; }
.adm-notes { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: .5rem; max-height: 22rem; overflow-y: auto; }
.adm-notes li { padding: .6rem .8rem; border-radius: 10px; background: var(--bg); font-size: .88rem; overflow-wrap: anywhere; }
.adm-note-form { margin-top: 0; gap: var(--space-2); }
.adm-facts .acct-details { font-size: .9rem; }

/* One order */
.adm-order-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adm-order { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--space-6); align-items: start; }
.adm-order__side { display: grid; gap: var(--space-4); }
.adm-order__side .acct-label { min-height: 0; font-size: .9rem; }
.adm-box { padding: var(--space-4); border: 1px solid var(--border); border-radius: 12px; }
.adm-box p { margin: .2rem 0 0; overflow-wrap: anywhere; }
.adm-box .acct-card__title { margin-bottom: var(--space-2); }
.adm-box__name { font-weight: 500; color: var(--heading); }
.adm-totals { max-width: 320px; margin: var(--space-4) 0 0 auto; }
.adm-danger-link { margin-left: auto; font-size: var(--fs-sm); color: var(--accent-deep); }
.adm-danger { background: #a32a2a; border-color: #a32a2a; }
.adm-danger:hover { background: #7f1f1f; border-color: #7f1f1f; }
.adm-confirm .acct-details { margin: var(--space-4) 0; }
.adm-steps { margin: 0 0 var(--space-4); padding-left: 1.2rem; display: grid; gap: var(--space-2); }

@media (max-width: 1100px) {
  .adm-split, .adm-split--form, .adm-product-edit, .adm-customer, .adm-order { grid-template-columns: minmax(0, 1fr); }
  .adm-product-edit__side, .adm-customer__side { position: static; }
  .adm-photo { max-width: 320px; }
}
@media (max-width: 860px) {
  .adm { margin-top: var(--space-4); }
  .adm-order-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .adm-table thead { display: none; }
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; }
  .adm-table tr { padding: .6rem 0; border-bottom: 1px solid var(--border); }
  .adm-table td { display: flex; justify-content: space-between; gap: var(--space-4); padding: .2rem 0; border: 0; text-align: right; }
  .adm-table td::before { content: attr(data-label); flex: 0 0 auto; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); text-align: left; }
  .adm-who { justify-items: end; }
  .adm-product { grid-template-columns: 56px minmax(0, 1fr); }
  .adm-product .acct-line__img { width: 56px; height: 56px; }
  .adm-product__price { grid-column: 2; justify-items: start; grid-auto-flow: column; gap: .5rem; align-items: baseline; }
  .adm-toolbar__new { margin-left: 0; }
  .adm-danger-link { margin-left: 0; }
}

/* Printing an order: just the order. */
@media print {
  .announcement, .site-header, .site-footer, .adm-head, .acct-menu, .adm-noprint, .acct-flash, .skip-link { display: none !important; }
  .acct { display: block; margin: 0; }
  .acct-panel { border: 0; padding: 0; box-shadow: none; }
  .adm-order { grid-template-columns: minmax(0, 1fr) 240px; }
  body { background: #fff; }
}

/* ───────── Checkout (/checkout) ───────── */
/* Slim header and footer: no menu or search to wander off to. */
.co-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.co-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.co-secure { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--text-muted); }
.co-secure svg { width: 16px; height: 16px; fill: none; stroke: #1f6b43; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.co-footer { padding: var(--space-5) 0 var(--space-6); border-top: 1px solid var(--border); font-size: .8rem; color: var(--text-muted); text-align: center; }
.co-footer a { color: inherit; }
.co { padding-bottom: var(--space-8); }
.co svg, .co-placed svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.co-steps { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: var(--space-6) 0 var(--space-5); }
.co-steps li { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-muted); }
.co-steps li + li::before { content: ""; width: 28px; height: 1px; background: var(--border); }
.co-steps a { display: inline-flex; align-items: center; gap: .5rem; color: inherit; text-decoration: none; }
.co-steps__dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--border); font-size: .75rem; font-weight: 500; background: var(--surface); }
.co-steps li[aria-current] { color: var(--heading); font-weight: 500; }
.co-steps li[aria-current] .co-steps__dot { border-color: var(--accent); background: var(--accent); color: #fff; }
.co-steps li.is-done .co-steps__dot { border-color: var(--accent); color: var(--accent); }
.co-steps li.is-done .co-steps__dot::after { content: "✓"; }

/* The step beside the order summary */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(1.25rem, 1rem + 2vw, 3rem); align-items: start; }
.co-card, .co-summary, .co-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.co-card { padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); }
.co-card__title { font: 500 1.75rem/1.1 var(--font-display); margin: 0 0 .35rem; }
.co-card__lead { margin: 0 0 var(--space-5); color: var(--text-muted); font-size: .95rem; }
.co-card .form { margin-top: 0; }
.co-card .acct-form .field input:not([type=checkbox]):not([type=radio]), .co-card .acct-form .field select, .co-card .acct-form .field textarea { border-radius: 10px; min-height: 46px; }
.co-subtitle { font: 500 1.3rem/1.2 var(--font-display); margin: var(--space-3) 0 var(--space-3); }
.co-note { display: flex; gap: .6rem; align-items: flex-start; margin: 0; padding: .75rem .9rem; border-radius: 10px; background: var(--bg); font-size: .86rem; }
.co-note svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--accent); margin-top: .1rem; }
.co-note > div { flex: 1; }
.co-note--ok { background: #e9f5ee; color: #1f6b43; }
.co-note--ok svg { color: #1f6b43; }
.co-progress { display: block; width: 100%; height: 6px; margin: .4rem 0 .1rem; border: 0; border-radius: 6px; background: #eee5e2; overflow: hidden; -webkit-appearance: none; appearance: none; }
.co-progress::-webkit-progress-bar { background: #eee5e2; border-radius: 6px; }
.co-progress::-webkit-progress-value { background: linear-gradient(90deg, #e889b9, var(--accent)); border-radius: 6px; }
.co-progress::-moz-progress-bar { background: linear-gradient(90deg, #e889b9, var(--accent)); border-radius: 6px; }
.co-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-top: var(--space-2); }
.co-card .button { border-radius: var(--radius-pill); }
.co-back { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--text-muted); text-decoration: none; }
.co-back svg { width: 16px; height: 16px; }

/* Choice cards (delivery, payment) */
.co-choices { display: grid; gap: .65rem; margin-bottom: var(--space-2); }
.co-choice { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .2rem .85rem; align-items: center; padding: .95rem 1.05rem; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--surface); transition: border-color var(--dur), box-shadow var(--dur); }
.co-choice:hover { border-color: #eab9d2; }
.co-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-choice__radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #cdbfc2; grid-row: span 2; }
.co-choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.co-choice:has(input:checked) .co-choice__radio { border: 6px solid var(--accent); }
.co-choice:has(input:focus-visible) { outline: 2px solid var(--heading); outline-offset: 2px; }
.co-choice strong { font-weight: 500; color: var(--heading); }
.co-choice small { grid-column: 2; font-size: .82rem; color: var(--text-muted); }
.co-choice__price { grid-row: span 2; font-weight: 500; color: var(--ink); white-space: nowrap; }
.co-choice__price.is-free { color: #1f6b43; }
[data-co-delivery] [data-co-ship] { display: grid; gap: var(--space-4); }
[data-co-delivery].has-js [data-co-ship]:not(.is-shown) { display: none; }

/* Review */
.co-recap { margin: 0 0 var(--space-5); border: 1px solid var(--border); border-radius: 12px; }
.co-recap > div { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 1rem; padding: .8rem 1rem; font-size: .9rem; }
.co-recap > div + div { border-top: 1px solid var(--border); }
.co-recap dt { color: var(--text-muted); }
.co-recap dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.co-recap a { font-size: .8rem; color: var(--accent); }
.co-code { margin-bottom: var(--space-4); }
.co-code__row { display: flex; gap: .5rem; }
.co-code__row input { flex: 1; text-transform: uppercase; }
.co-code__row .button { min-height: 46px; }
.co-code__msg { margin-top: .5rem; }
.co-place { margin-top: var(--space-4); min-height: 52px; }
.co-place[aria-busy="true"] { opacity: .7; pointer-events: none; }
.co-terms { margin: .9rem 0 0; font-size: .8rem; color: var(--text-muted); }

/* Order summary (beside the steps; a fold-out bar on phones) */
.co-summary { position: sticky; top: var(--space-5); padding: var(--space-5); }
.co-summary h2 { font: 500 1.35rem/1.2 var(--font-display); margin: 0 0 var(--space-4); }
.co-summary__toggle { display: none; }
.co-summary__note { display: flex; gap: .45rem; align-items: center; margin: var(--space-4) 0 0; font-size: .8rem; color: var(--text-muted); }
.co-summary__note svg { width: 16px; height: 16px; color: #1f6b43; }
.co-lines { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: .8rem; }
.co-lines li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: .8rem; align-items: center; font-size: .88rem; }
.co-lines strong { display: block; font-weight: 500; color: var(--heading); line-height: 1.3; }
.co-lines li > span:nth-child(2) > span { color: var(--text-muted); font-size: .8rem; }
.co-lines__price { text-align: right; white-space: nowrap; color: var(--ink); }
.co-lines__price s { display: block; color: var(--text-muted); font-size: .76rem; }
.co-thumb { position: relative; width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(160deg, var(--accent-soft), var(--surface-soft)); font-size: .7rem; font-weight: 600; color: var(--accent-deep); }
.co-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; mix-blend-mode: multiply; }
.co-thumb b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; background: var(--heading); color: #fff; font-size: .68rem; }
.co-totals { display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; margin: 0; padding-top: var(--space-4); border-top: 1px solid var(--border); font-size: .92rem; }
.co-totals dt { color: var(--text-muted); }
.co-totals dd { margin: 0; text-align: right; color: var(--ink); white-space: nowrap; }
.co-totals__minus { color: #1f6b43 !important; }
.co-totals .co-totals__grand { padding-top: .7rem; margin-top: .3rem; border-top: 1px solid var(--border); font: 500 1.45rem/1.2 var(--font-display); color: var(--heading); }

/* ── Order placed ── */
.co-placed { max-width: 820px; padding: var(--space-5) 0 var(--space-8); display: grid; gap: 1rem; }
/* Compact thank-you banner: tick, message, then the order number */
.co-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.1rem 1.4rem; padding: 1.15rem 1.5rem; border-radius: 18px; border: 1px solid var(--border);
  background: radial-gradient(60% 140% at 100% 0%, #f9d7e8 0%, transparent 60%), radial-gradient(40% 120% at 0% 100%, #fdeef5 0%, transparent 70%), var(--surface); }
.co-hero::after { content: ""; position: absolute; right: -30px; bottom: -50px; width: 160px; height: 120px; opacity: .45; pointer-events: none; transform: rotate(-14deg);
  background: radial-gradient(closest-side, #f3b6d3 0 98%, transparent) 60px 0 / 60px 90px no-repeat, radial-gradient(closest-side, #f7cde1 0 98%, transparent) 10px 40px / 90px 60px no-repeat; }
.co-hero > * { position: relative; z-index: 1; }
.co-hero__badge { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 0 0 6px var(--accent-soft); animation: co-pop .45s cubic-bezier(.2,.9,.3,1.4) both; }
.co-hero__badge.is-waiting { background: #e0a020; box-shadow: 0 0 0 6px #fdf3e2; }
.co-hero__badge svg { width: 26px; height: 26px; stroke-width: 2.2; }
.co-hero h1 { font: 500 clamp(1.6rem, 1.35rem + 1vw, 2.1rem)/1.1 var(--font-display); margin: 0; }
.co-hero h1 em { color: var(--accent); }
.co-hero p { margin: .2rem 0 0; font-size: .92rem; }
.co-hero__order { display: grid; justify-items: end; gap: .2rem; padding-left: 1.4rem; border-left: 1px dashed #eab9d2; text-align: right; }
.co-hero__order small { font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); }
.co-hero__order strong { font: 600 1.15rem/1 var(--font-display); letter-spacing: .04em; color: var(--accent-deep); white-space: nowrap; }
@keyframes co-pop { from { transform: scale(.4); opacity: 0; } }

/* WhatsApp Beth */
.co-chat { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: inherit; transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur); }
.co-chat:hover { border-color: #eab9d2; box-shadow: 0 10px 26px -18px #7a144970; transform: translateY(-1px); color: inherit; }
.co-chat__icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--accent-soft); color: var(--accent); }
.co-chat__icon svg { width: 24px; height: 24px; }
.co-chat__text { flex: 1; line-height: 1.35; }
.co-chat__text strong { display: block; color: var(--heading); font-weight: 500; }
.co-chat__text span { font-size: .88rem; color: var(--text-muted); }
.co-chat__go { font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }

/* Deposit slip: a bank form with boxed digits, a cheque-style number line and a teller's ink stamp */
.dslip { position: relative; border-radius: 6px; overflow: hidden; color: var(--ink); border: 1px solid #ecd3de; box-shadow: 0 18px 30px -22px #7a144955;
  background: repeating-radial-gradient(circle at 100% 0, transparent 0 9px, #f7e3ec 9px 10px), #fffdfb; }
.dslip::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #fffdfbf2 0 38%, #fffdfbcc); }
.dslip > * { position: relative; z-index: 1; }
.dslip__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.4rem; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); color: #fff; }
.dslip__head strong { font: 600 .78rem/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; }
.dslip__head span { font: italic 500 1.05rem/1 var(--font-display); opacity: .92; }
.dslip__no { font: 600 1rem/1 var(--font-body) !important; font-style: normal !important; letter-spacing: .12em; }
.dslip__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 1.4rem; padding: 1.3rem 1.4rem .4rem; }
.dfield { display: grid; gap: .3rem; }
.dfield--wide { grid-column: 1 / -1; }
.dfield > small { font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-deep); }
.dfield__aside { letter-spacing: .04em; text-transform: none; font-weight: 400; color: var(--text-muted); }
.dfield__line { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 40px; padding: .35rem .75rem; border: 1px solid #e5ccd7; border-radius: 4px; background: #fffefd; }
.dfield__line b { font-weight: 500; }
.dfield__line em { font: italic 500 1.3rem/1.1 var(--font-display); color: var(--heading); }
.dfield__row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.dfield--amount .dfield__row { flex-wrap: nowrap; }
.boxes { display: flex; flex-wrap: wrap; gap: 3px; }
.boxes i { width: 24px; height: 32px; display: grid; place-items: center; border: 1px solid #e5ccd7; border-radius: 3px; background: #fffefd; font: 500 1.05rem/1 var(--font-body); font-style: normal; color: var(--ink); }
.boxes--ref i { border-color: var(--accent); color: var(--accent-deep); font-weight: 600; background: #fff7fb; }
.amount-box { display: flex; align-items: center; min-height: 44px; border: 1.5px solid var(--accent); border-radius: 4px; background: #fff7fb; overflow: hidden; }
.amount-box span { align-self: stretch; display: grid; place-items: center; padding: 0 .7rem; background: var(--accent); color: #fff; font-weight: 600; }
.amount-box b { padding: 0 .9rem; font: 600 1.35rem/1 var(--font-display); color: var(--accent-deep); letter-spacing: .02em; }
.pill-copy { font: 500 .66rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: #fff; border: 1px solid #f0dfe6; border-radius: 99px; padding: .4rem .7rem; cursor: pointer; }
.pill-copy:hover { background: var(--accent-soft); }
.pill-copy.is-done { background: #e9f5ee; color: #1f6b43; border-color: transparent; }
.micr { margin: 1rem 1.4rem 0; padding: .7rem 0 1rem; border-top: 1px dashed #e5ccd7; font: 500 .95rem/1 "Courier New", ui-monospace, monospace; letter-spacing: .28em; color: #8d6f7c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.micr span { color: var(--accent); letter-spacing: .1em; }
/* The stamp floats on the right under Branch; account, reference and amount flow around it */
.stamp-zone { grid-column: 1 / -1; display: flow-root; }
.stamp-zone > .dfield + .dfield { margin-top: 1rem; }
.teller { position: relative; float: right; margin: .5rem .8rem .6rem 1.25rem; padding: .45rem .8rem .5rem; border: 3px double #c8217dcc; border-radius: 6px; color: #c8217dd9; text-align: center; transform: rotate(-9deg); line-height: 1.1; background: #fff9;
  -webkit-mask-image: radial-gradient(circle at 20% 30%, #000 0 60%, #0008 61% 63%, #000 64%), repeating-linear-gradient(115deg, #000 0 3px, #000c 3px 4px);
  mask-image: radial-gradient(circle at 20% 30%, #000 0 60%, #0008 61% 63%, #000 64%), repeating-linear-gradient(115deg, #000 0 3px, #000c 3px 4px);
  -webkit-mask-composite: source-in; mask-composite: intersect; animation: co-stamp .45s cubic-bezier(.2,.9,.3,1.4) .35s both; }
.teller small { display: block; font: 700 .56rem/1.2 var(--font-body); letter-spacing: .2em; text-transform: uppercase; }
.teller strong { display: block; margin: .2rem 0; padding: .18rem 0; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; font: 700 1.05rem/1.1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.teller span { font: 600 .7rem/1 var(--font-body); letter-spacing: .14em; }
@keyframes co-stamp { from { opacity: 0; transform: rotate(-30deg) scale(1.9); } to { opacity: 1; transform: rotate(-9deg) scale(1); } }
.dslip-foot { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-top: 1rem; font-size: .86rem; }
.dslip-foot p { margin: 0; display: flex; gap: .5rem; align-items: center; }
.dslip-foot svg { width: 18px; height: 18px; color: var(--accent); }
.dslip-card { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-left: auto; }
.dslip-card small { color: var(--text-muted); }
.co-card-note { margin: 0 0 var(--space-4); }

/* Panels under the slip */
.co-panel { padding: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); }
.co-panel h2 { font: 500 1.45rem/1.2 var(--font-display); margin: 0 0 var(--space-4); }
.co-panel h3 { font-size: .95rem; font-weight: 500; color: var(--heading); margin: 0 0 var(--space-2); }
.co-panel p { margin: 0; }
.co-panel .co-lines { margin-bottom: var(--space-3); }
.co-panel > .co-note { margin-top: var(--space-4); }
.co-panel--row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.co-panel .button { border-radius: var(--radius-pill); }
.co-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-5); }
.co-split .acct-label { min-height: 0; }
.co-next { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.co-next li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: .75rem; font-size: .92rem; }
.co-next__n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; font-size: .85rem; }
.co-next strong { display: block; font-weight: 500; color: var(--heading); }
.co-continue { text-align: center; margin-top: var(--space-3); }
.co-continue .button { border-radius: var(--radius-pill); }
@media (prefers-reduced-motion: reduce) { .co-hero__badge, .teller { animation: none; } }

@media (max-width: 900px) {
  .co-grid { grid-template-columns: minmax(0, 1fr); }
  .co-summary { order: -1; position: static; padding: 0; overflow: hidden; }
  .co-summary__toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; background: none; border: 0; cursor: pointer; color: var(--heading); font: inherit; }
  .co-summary__toggle span { display: inline-flex; gap: .45rem; align-items: center; font-size: .9rem; color: var(--accent); }
  .co-summary__toggle svg { width: 18px; height: 18px; }
  .co-summary__toggle strong { font: 500 1.25rem var(--font-display); }
  .co-summary__body { padding: 0 1.1rem 1.1rem; }
  .co-summary h2 { display: none; }
  .co-summary.has-js:not(.is-open) .co-summary__body { display: none; }
}
@media (max-width: 620px) {
  .co-steps .co-steps__label { display: none; }
  .co-steps li[aria-current] .co-steps__label { display: inline; }
  .co-recap > div { grid-template-columns: minmax(0, 1fr) auto; }
  .co-recap dt { grid-column: 1 / -1; font-size: .78rem; }
  .co-actions .button { width: 100%; }
  .co-actions .co-back { margin: 0 auto; }
  .co-secure span { display: none; }
  .co-hero { grid-template-columns: auto minmax(0, 1fr); padding: 1rem 1.1rem; gap: .8rem 1rem; }
  .co-hero__badge { width: 44px; height: 44px; }
  .co-hero__order { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; padding: .7rem 0 0; border-left: 0; border-top: 1px dashed #eab9d2; }
  .co-chat__go { display: none; }
  .co-split { grid-template-columns: minmax(0, 1fr); }
  .dslip__body { grid-template-columns: minmax(0, 1fr); padding: 1.1rem 1rem .3rem; }
  .dslip__head { padding: .75rem 1rem; }
  .dslip__head > span:not(.dslip__no) { display: none; }
  .teller { padding: .25rem .45rem .3rem; }
  .teller strong { font-size: .74rem; letter-spacing: .1em; max-width: 6.2em; margin-inline: auto; }
  .teller small, .teller span { font-size: .46rem; }
  .boxes i { width: 21px; height: 30px; font-size: .95rem; }
  .micr { margin: .8rem 1rem 0; font-size: .8rem; letter-spacing: .18em; }
}
/* Narrow phones: the digit boxes need the full width, so the stamp sits beside the amount */
@media (max-width: 480px) {
  .stamp-zone { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem .4rem; }
  .stamp-zone > .dfield + .dfield { margin-top: 0; }
  .stamp-zone > .dfield:not(.dfield--amount) { grid-column: 1 / -1; }
  .stamp-zone > .dfield--amount { grid-column: 1; grid-row: 3; }
  .stamp-zone .teller { float: none; grid-column: 2; grid-row: 3; margin: .4rem .1rem 0 0; }
  .amount-box b { font-size: 1.12rem; padding: 0 .6rem; }
  .amount-box span { padding: 0 .55rem; }
  .dfield--amount .pill-copy { padding: .4rem .55rem; }
}

/* ---------- Shop by need (/shop/for/...) ---------- */
.need-head__intro { max-width: 62ch; display: grid; gap: var(--space-3); color: var(--text); font-size: var(--fs-lg, 1.05rem); line-height: 1.6; }
.need-head__intro p { margin: 0; }
.need-head__pick { display: inline-flex; align-items: center; gap: .6rem; margin: var(--space-4) 0 0; padding: .55rem 1rem; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-deep); font-size: .92rem; }
.need-head__pick svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linejoin: round; }
.need-head__pick a { color: var(--accent-deep); font-weight: 500; }
.need-links { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.need-links h2 { font: var(--weight-display) 1.35rem/1.2 var(--font-display); margin: 0 0 var(--space-3); }
.need-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.need-links a { display: inline-block; padding: .45rem .95rem; border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--heading); text-decoration: none; font-size: .88rem; background: var(--surface); }
.need-links a:hover { border-color: var(--accent); color: var(--accent-text); }
