/* =========================================================================
   Lotus Clothing Store — app shell
   Mobile top bar, bottom tab bar, product page, cart and sheets.
   Loaded after style.css.
   ========================================================================= */

:root {
  --tabbar-h:  62px;
  --topbar-h:  60px;
}

/* --------------------------------------------------- Mobile top bar */
.appbar {
  position: sticky; top: 0; z-index: 58;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(150%) blur(12px);
}
.appbar-inner {
  display: flex; align-items: center; gap: .5rem;
  min-height: var(--topbar-h); padding-block: .45rem;
}
.appbar-lead { flex: none; }
.appbar-title {
  flex: 1; min-width: 0; font-size: 1.05rem; font-weight: 700;
  letter-spacing: -0.035em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.appbar-actions { display: flex; align-items: center; gap: .45rem; flex: none; }

@media (min-width: 1024px) { .appbar { display: none; } }

/* Below 1024 the app bar replaces the desktop header row — but the nav drawer
   lives inside .site-header, so the header must NOT be display:none or the
   drawer can never render. Collapse it to nothing instead and hide only the
   parts the app bar duplicates. The drawer is position:fixed, so it takes up
   no space while closed. */
@media (max-width: 1023px) {
  .site-header { position: static; background: none; backdrop-filter: none; }
  .site-header .header-inner { display: block; min-height: 0; padding: 0; }
  .site-header .brand,
  .site-header .header-actions,
  .site-header .nav-toggle { display: none; }
}

/* Saved-state toggle, shared by card hearts and the gallery heart */
[data-wish] .wish-on { display: none; }
[data-wish][aria-pressed="true"] { color: var(--danger); }
[data-wish][aria-pressed="true"] .wish-on { display: block; }
[data-wish][aria-pressed="true"] .wish-off { display: none; }

/* Count badge shared by cart pills and wishlist buttons */
.count-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  border: 2px solid var(--paper);
  border-radius: var(--pill); font-size: .58rem; font-weight: 600; line-height: 1;
}
.cart-pill .count-badge { position: static; border: 0; background: transparent; color: inherit; font-size: .88rem; font-weight: 500; min-width: 0; height: auto; padding: 0; }

/* --------------------------------------------------------- Tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 68;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .2rem; min-height: var(--tabbar-h); padding: .4rem .2rem;
  background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size: .64rem; font-weight: 500;
  transition: color .2s var(--ease);
}
.tab .icon { width: 21px; height: 21px; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); }
.tab.is-active .icon { stroke-width: 2; }
.tab-icon { position: relative; display: inline-flex; }

@media (min-width: 1024px) { .tabbar { display: none; } }
@media (max-width: 1023px) {
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  body[data-template="product"], body[data-template="cart"] { padding-bottom: 0; }
  body[data-template="product"] .tabbar, body[data-template="cart"] .tabbar { display: none; }
}

/* ---------------------------------------------------- Category strip */
.catstrip-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem;
}
.catstrip-item {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 1rem .35rem; text-align: center;
  background: var(--surface-2); border-radius: var(--r-md);
  transition: background .2s var(--ease);
}
.catstrip-item:hover { background: var(--surface); }
.catstrip-item.is-active { background: var(--ink); color: #fff; }
.catstrip-icon { width: 34px; height: 34px; display: grid; place-items: center; }
.catstrip-icon .icon { width: 26px; height: 26px; }
.catstrip-label { font-size: .78rem; font-weight: 500; line-height: 1.2; }

/* --------------------------------------------------- Sort + filter */
.sortbar { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; }
.sortbar-scroll { display: flex; gap: .4rem; overflow-x: auto; flex: 1; scrollbar-width: none; }
.sortbar-scroll::-webkit-scrollbar { display: none; }
.sort-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .3rem;
  padding: .5rem .95rem; border: 0; border-radius: var(--pill);
  background: var(--surface); color: var(--ink-soft); cursor: pointer;
  font-size: .84rem; font-weight: 500;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.sort-chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.sort-chip .icon { width: 14px; height: 14px; }
.sort-dir { font-size: .74rem; opacity: .75; }

.filter-btn {
  flex: none; display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem; border: 1px solid var(--line); border-radius: var(--pill);
  background: var(--paper); color: var(--ink); cursor: pointer;
  font-size: .84rem; font-weight: 500;
}
.filter-btn .icon { width: 15px; height: 15px; }
.filter-btn[data-active="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.shop-search { position: relative; display: flex; align-items: center; min-width: 240px; }
.shop-search .icon { position: absolute; left: .85rem; color: var(--muted); pointer-events: none; }
.shop-search input {
  width: 100%; padding: .6rem 1rem .6rem 2.5rem;
  border: 1px solid var(--line); border-radius: var(--pill); background: var(--paper);
  font-family: var(--font); font-size: .88rem; color: var(--ink); -webkit-appearance: none;
}
.shop-search input:focus { outline: none; border-color: var(--ink); }
@media (max-width: 1023px) { .sortbar .shop-search { display: none; } }

/* Search sheet (mobile) */
.searchpill { position: relative; display: flex; align-items: center; width: 100%; }
.searchpill .icon { position: absolute; left: .9rem; color: var(--muted); pointer-events: none; }
.searchpill input {
  width: 100%; padding: .8rem 1rem .8rem 2.7rem;
  border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface-2);
  font-family: var(--font); font-size: .95rem; color: var(--ink); -webkit-appearance: none;
}
.searchpill input:focus { outline: none; border-color: var(--ink); background: var(--paper); }

/* ------------------------------------------------------ Bottom sheet */
.sheet-scrim {
  position: fixed; inset: 0; z-index: 95; background: rgba(0, 0, 0, .4);
  opacity: 0; transition: opacity .28s var(--ease);
}
.sheet-scrim.is-visible { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 96;
  max-height: 86vh; overflow-y: auto;
  background: var(--paper);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: .9rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%); transition: transform .32s var(--ease);
  box-shadow: var(--shadow);
}
.sheet.is-open { transform: none; }
.sheet-grip { width: 40px; height: 4px; border-radius: var(--pill); background: var(--line); margin: 0 auto 1.1rem; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.sheet-head h2 { font-size: 1.2rem; }
.sheet-group { margin-bottom: 1.35rem; }
.sheet-group h3 { font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: .65rem; }
.sheet-opts { display: flex; flex-wrap: wrap; gap: .45rem; }
.sheet-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.sheet-opt span {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1.05rem; background: var(--surface); border-radius: var(--pill);
  font-size: .86rem; font-weight: 500; cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.sheet-opt input:checked + span { background: var(--ink); color: #fff; }
.sheet-opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.sheet-actions { display: flex; gap: .6rem; }
.sheet-actions .btn { flex: 1; }

@media (min-width: 700px) {
  .sheet {
    left: 50%; right: auto; bottom: auto; top: 50%;
    width: min(500px, 92vw); border-radius: var(--r-lg);
    transform: translate(-50%, -46%); opacity: 0; pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
  }
  .sheet.is-open { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
  .sheet-grip { display: none; }
}

/* ------------------------------------------------------- Product page */
.pdp-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .pdp-grid { grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); gap: 3rem; align-items: start; } }

.gallery { position: relative; }
.gallery-stage {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--surface-2); border-radius: var(--r-xl);
}
.gallery-stage img { width: 100%; height: 100%; object-fit: cover; }

.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-card);
}
.gallery-nav:hover { background: #fff; }
.gallery-prev { left: .75rem; }
.gallery-next { right: .75rem; }

.gallery-float {
  position: absolute; z-index: 4; top: .85rem;
  display: flex; gap: .45rem;
}
.gallery-float-right { right: .85rem; }
.gallery-float .icon-btn { background: rgba(255,255,255,.92); }
.gallery-float .icon-btn:hover { background: #fff; }

.gallery-dots { display: flex; gap: .3rem; justify-content: center; margin-top: .85rem; }
.gallery-dots button {
  width: 24px; height: 4px; border: 0; padding: 0; border-radius: var(--pill);
  background: var(--line); cursor: pointer; transition: background .2s var(--ease);
}
.gallery-dots button.is-active { background: var(--ink); }

.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: .75rem; }
.gallery-thumb {
  aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--r-md);
  border: 2px solid transparent; background: var(--surface-2); padding: 0; cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--ink); }

.pdp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.pdp-head h1 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.pdp-price { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.pdp-was { display: flex; align-items: baseline; gap: .5rem; margin-top: .25rem; justify-content: flex-end; }
.pdp-summary { color: var(--muted); margin: .75rem 0 1.25rem; }
.pdp-rating { display: flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.pdp-rating strong { color: var(--ink); font-weight: 600; }
.pill-tag {
  display: inline-flex; align-items: center; padding: .35rem .8rem;
  background: var(--surface); border-radius: var(--pill);
  font-size: .78rem; font-weight: 500; margin-bottom: .85rem;
}

.opt-group { margin-bottom: 1.25rem; }
.opt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.opt-label { font-size: .82rem; color: var(--muted); }
.opt-label strong { color: var(--ink); font-weight: 600; }
.opt-link { font-size: .82rem; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.opt-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.opt {
  min-width: 3rem; padding: .6rem 1rem; border: 0;
  background: var(--surface); border-radius: var(--pill);
  font-size: .86rem; font-weight: 500; cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.opt:hover { background: #e6e6e6; }
.opt.is-active { background: var(--ink); color: #fff; }

.qty {
  display: inline-flex; align-items: center;
  background: var(--surface); border-radius: var(--pill); padding: .2rem;
}
.qty button {
  width: 34px; height: 34px; background: var(--paper); border: 0; border-radius: 50%;
  cursor: pointer; display: grid; place-items: center; color: var(--ink);
}
.qty button:hover { background: #ececec; }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 2.4rem; text-align: center; font-size: .9rem; font-weight: 600; }

.pdp-actions { display: flex; gap: .6rem; margin-block: 1.5rem; }
.pdp-actions .btn { flex: 1; }
.order-error { margin-top: .6rem; font-size: .84rem; color: var(--danger); display: none; }
.order-error.is-visible { display: block; }

.pdp-meta { display: grid; gap: .55rem; margin-top: 1.25rem; }
.pdp-meta li { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; color: var(--ink-soft); }
.pdp-meta .icon { margin-top: .15rem; color: var(--muted); }

/* Sticky action bar, mobile */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 66;
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.action-bar .btn-soft { flex: none; }
.action-bar .btn-primary-grow { flex: 1; }
@media (min-width: 1000px) { .action-bar { display: none; } }

/* ------------------------------------------------------------- Banner */
.banner-wrap { padding-block: clamp(1rem, 2.5vw, 1.5rem); }
.banner {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  aspect-ratio: 16 / 11;
  background: var(--surface);
}
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.78) 100%);
}
.banner-body {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: clamp(1.1rem, 3vw, 1.9rem); color: #fff;
}
.banner-title {
  font-size: clamp(1.4rem, 4.5vw, 2.2rem); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.1; margin: 0 0 .35rem; max-width: 18ch;
}
.banner-copy {
  font-size: .92rem; color: rgba(255,255,255,.85);
  margin: 0 0 1rem; max-width: 42ch;
}
.banner-body .btn { margin-top: .1rem; }

@media (min-width: 700px)  { .banner { aspect-ratio: 21 / 8; } }
@media (min-width: 1024px) { .banner { aspect-ratio: 24 / 7; } }

/* --------------------------------------------------------------- Cart */
.cart-list { display: grid; gap: .6rem; }
.cart-row {
  display: grid; grid-template-columns: 68px 1fr; gap: .85rem;
  align-items: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: .7rem;
}
.cart-thumb {
  width: 68px; height: 68px; border-radius: var(--r-md);
  overflow: hidden; background: var(--surface-2);
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cart-info { min-width: 0; }
.cart-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.cart-cat { font-size: .76rem; color: var(--muted); margin: 0; }
.cart-name { font-size: .92rem; font-weight: 600; margin: 0; letter-spacing: -0.015em; }
.cart-variant { text-align: right; flex: none; }
.cart-variant .size { font-size: .8rem; font-weight: 500; display: block; }
.cart-variant .colour { font-size: .78rem; color: var(--muted); display: block; }
.cart-bottom { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .5rem; }
.cart-price { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.cart-controls { display: flex; align-items: center; gap: .4rem; }
.cart-remove {
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--danger-soft); color: var(--danger);
  display: grid; place-items: center; cursor: pointer; flex: none;
  transition: background .18s var(--ease);
}
.cart-remove:hover { background: #fbdcdc; }

.cart-summary {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.25rem; margin-top: 1.25rem;
}
.cart-line { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: .9rem; margin-bottom: .6rem; }
.cart-line .muted { color: var(--muted); }
.cart-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-top: .85rem; margin-top: .35rem; border-top: 1px solid var(--line);
}
.cart-total dt { font-size: .9rem; color: var(--muted); }
.cart-total dd { margin: 0; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; }
.cart-note { font-size: .82rem; color: var(--muted); margin-top: .85rem; display: flex; gap: .5rem; align-items: flex-start; }
.cart-note .icon { margin-top: .1rem; flex: none; }

/* Sticky checkout bar */
.checkout-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 66;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem var(--gutter) calc(.8rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.checkout-bar .label { font-size: .78rem; color: var(--muted); margin: 0; }
.checkout-bar .amount { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
@media (min-width: 1000px) { .checkout-bar { display: none; } }

/* ------------------------------------------------------------- Wishlist */
.state-empty { padding: clamp(2.5rem, 8vw, 4.5rem) 0; text-align: center; }
.state-empty .icon { width: 36px; height: 36px; color: var(--muted-2); margin: 0 auto 1rem; }
.state-empty h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin-bottom: .5rem; }
.state-empty p { color: var(--muted); max-width: 42ch; margin-inline: auto; margin-bottom: 1.5rem; }
.state-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

/* ------------------------------------------------------------- Steps */
.steps { display: grid; gap: .85rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface-2); border-radius: var(--r-lg); padding: 1.35rem; }
.step-n {
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: .82rem; font-weight: 600; margin-bottom: .75rem;
}
.step h2, .step h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.step p { font-size: .87rem; color: var(--muted); margin: 0; }

/* -------------------------------------------------------------- Toast */
.toast {
  position: fixed; left: 50%; z-index: 99;
  bottom: calc(var(--tabbar-h) + 1rem + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 12px);
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem 1.1rem; border-radius: var(--pill);
  background: var(--ink); color: #fff; font-size: .84rem; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  max-width: calc(100vw - 2rem);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1024px) { .toast { bottom: 1.5rem; } }

/* ------------------------------------------------------- Share sheet */
.share-lede {
  margin: 0 0 1.1rem; font-size: .88rem; color: var(--muted);
}

.share-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
}
@media (min-width: 520px) {
  .share-grid { grid-template-columns: repeat(6, 1fr); }
}

.share-target {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: .95rem .3rem; border: 0; cursor: pointer;
  background: var(--surface-2); border-radius: var(--r-md);
  color: var(--ink); text-align: center; font: inherit;
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.share-target:hover  { background: var(--surface); }
.share-target:active { transform: scale(.97); }

.share-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--brand-2); }
.share-icon .icon { width: 22px; height: 22px; }
.share-label { font-size: .74rem; font-weight: 500; line-height: 1.2; }

/* Each network keeps its own colour so the row is scannable at a glance. */
.share-whatsapp  .share-icon { color: #25d366; }
.share-facebook  .share-icon { color: #1877f2; }
.share-x         .share-icon { color: var(--ink); }
.share-pinterest .share-icon { color: #e60023; }
.share-email     .share-icon { color: var(--muted); }

/* Copy link swaps its icon and its label once the clipboard write lands. */
[data-copy-link] .copy-done { display: none; }
[data-copy-link].is-copied .copy-idle { display: none; }
[data-copy-link].is-copied .copy-done { display: block; }
[data-copy-link].is-copied { background: var(--brand-soft); }
[data-copy-link].is-copied .share-icon { color: var(--brand-ink); }

.share-url {
  margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line);
  font-size: .76rem; color: var(--muted-2); word-break: break-all;
}

/* The plain-language share control under the buy buttons. */
.share-link {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: 1rem; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: .85rem; font-weight: 500; color: var(--muted);
  transition: color .2s var(--ease);
}
.share-link:hover { color: var(--brand-ink); }

/* Eight categories instead of the original four. Two and four columns divide
   eight exactly, so every row is full — three and six would leave a ragged
   last row. This lives in app.css, not in style.css's brand layer, because
   app.css loads second and .catstrip-grid is declared here, so an override of
   equal specificity in the earlier file would simply lose. */
.catstrip-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .catstrip-grid { grid-template-columns: repeat(4, 1fr); } }

/* The numbered step markers are filled discs, so they take the gold as a
   background with a dark numeral on top — gold behind white would not read.
   Declared here for the same reason as the category strip above. */
.step-n { background: var(--brand); color: var(--ink); }

/* --------------------------------------------------- Pickup / delivery */
.fulfilment {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1rem, 3vw, 1.4rem);
  margin-bottom: 1.25rem;
}
.fulfilment h2 { margin: 0 0 .9rem; }

.fulfil-opts { display: grid; gap: .6rem; }
@media (min-width: 620px) { .fulfil-opts { grid-template-columns: 1fr 1fr; } }

.fulfil-opt {
  display: flex; align-items: flex-start; gap: .7rem;
  width: 100%; text-align: left; cursor: pointer;
  padding: .95rem 1rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font: inherit; color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.fulfil-opt:hover { border-color: var(--muted-2); }
.fulfil-opt.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.fulfil-icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--ink);
}
.fulfil-opt.is-active .fulfil-icon { background: var(--brand); color: var(--ink); }
.fulfil-icon .icon { width: 18px; height: 18px; }

.fulfil-text { display: block; min-width: 0; }
.fulfil-text strong { display: block; font-size: .92rem; margin-bottom: .15rem; }
.fulfil-text span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; }

/* The address field only exists once delivery is chosen. */
.fulfil-extra { margin-top: 1rem; }
.fulfil-extra label {
  display: block; font-size: .85rem; font-weight: 500; margin-bottom: .4rem;
}
.fulfil-extra input {
  width: 100%; padding: .85rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--pill);
  background: var(--paper); font: inherit; color: var(--ink);
}
.fulfil-extra input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.fulfil-extra.has-error input { border-color: var(--danger); background: var(--danger-soft); }

.fulfil-note {
  display: flex; gap: .5rem; align-items: flex-start;
  margin: .7rem 0 0; font-size: .8rem; color: var(--muted);
}
.fulfil-note .icon { flex: none; color: var(--brand); margin-top: .1rem; }

/* Matches the size-not-chosen error on the product page. */
.fulfil-extra .order-error { display: none; margin: .55rem 0 0; }
.fulfil-extra.has-error .order-error { display: block; }
