/* =============================================================================
   SHOP CSS (ported from the 28x.dev boilerplate, 2026-08-10)
   Token prelude: boilerplate token names mapped to this site's palette.
   The site's own styles never read these — scope is the shop blocks below.
   ============================================================================= */
:root {
  --color-accent:          #ec4509;
  --color-accent-dark:     #c93a08;
  --color-accent-light:    #F9F2EC;
  --color-accent-contrast: #ffffff;

  --color-heading:       #000000;
  --color-text:          #282828;
  --color-muted:         #6f6f6f;
  --color-bg:            #ffffff;
  --color-bg-alt:        #f8f8f8;
  --color-border:        #e9e9e9;
  --color-border-strong: #c4c4c4;

  --color-success:    #3f5b0b;
  --color-success-bg: #f1f5e6;
  --color-error:      #c0392f;
  --color-error-bg:   #fbeeec;
  --color-info:       #6d8517;
  --color-info-bg:    #f4f7e8;

  --font-heading: 'Montserrat', sans-serif;
  --fs-xs:   0.8125rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.375rem;
  --fs-h1:   clamp(2.375rem, 1.4rem + 3.2vw, 3.875rem);
  --fs-h2:   clamp(1.625rem, 1.2rem + 1.5vw, 2.375rem);
  --fs-h3:   clamp(1.3125rem, 1.1rem + 0.75vw, 1.625rem);
  --fs-h4:   1.1875rem;
  --fw-normal:   400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --ls-caps:     0.08em;

  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6.5rem;

  --header-height: 100px;
  --measure: 44rem;

  --radius:      6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-pill: 999px;
  --transition:  0.22s ease;
  --shadow:    0 1px 2px rgba(18, 22, 27, 0.05), 0 4px 16px rgba(18, 22, 27, 0.06);
  --shadow-lg: 0 8px 24px rgba(18, 22, 27, 0.10), 0 24px 64px rgba(18, 22, 27, 0.12);
}


/* =============================================================================
   SHOP — cart / checkout / order pages (shop-*.tpl)
   ============================================================================= */

/* --- Add-to-cart toast (shop-scripts-core.tpl builds it) ---- */
/* The badge pulse alone is not an answer to "did that work?" — on a phone the
   header is off screen by the time you have scrolled to a product. */
.shop-toast {
  position: fixed;
  z-index: 1080;
  inset-block-end: var(--space-md);
  inset-inline-end: var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  max-width: min(26rem, calc(100vw - 2 * var(--space-md)));
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-success);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.shop-toast.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.shop-toast.is-warn { border-left-color: var(--color-accent-2-dark); }
.shop-toast-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shop-toast-body strong { color: var(--color-heading); }
.shop-toast-body span { color: var(--color-muted); overflow-wrap: anywhere; }
.shop-toast-link { flex: none; align-self: center; font-weight: var(--fw-medium); white-space: nowrap; }
.shop-toast-close {
  flex: none;
  align-self: flex-start;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--color-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.shop-toast-close:hover { background: var(--color-bg-alt); color: var(--color-heading); }
@media (max-width: 575.98px) {
  /* above the checkout's fixed action bar, never under it */
  .shop-toast { inset-inline: var(--space-sm); inset-block-end: calc(var(--space-sm) + 84px); max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .shop-toast { transition: opacity var(--transition); transform: none; } }

/* nothing left to add: the button says so instead of counting into a refusal */
.btn-one.is-maxed, .btn-one.is-maxed:hover { background: var(--color-bg-alt); color: var(--color-muted); box-shadow: none; transform: none; }

/* --- Product listing (shop-list.tpl) ------------------------ */
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.45em 0.9em;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-heading);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.chip:hover { border-color: var(--color-accent); color: var(--color-accent); text-decoration: none; }
.chip.is-active { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-contrast); }
.chip-count { font-size: var(--fs-xs); opacity: 0.7; font-variant-numeric: tabular-nums; }
.shop-count { margin: 0; font-size: var(--fs-sm); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.filter-active { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--fs-sm); color: var(--color-muted); margin-bottom: var(--space-md); }
.filter-clear { font-size: var(--fs-xs); }
.shop-list-intro { margin-top: var(--space-xl); max-width: var(--measure); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-md);
}
@media (max-width: 575.98px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
}

/* --- Product card (partials/cards/product.tpl) -------------- */
.card-product { display: flex; flex-direction: column; }
.card-product .card-img { position: relative; }
.card-product .card-img img { aspect-ratio: 1; }
.card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: var(--color-bg-alt);
  color: var(--color-border-strong);
  font-size: 2rem;
}
.card-flags { position: absolute; inset-block-start: var(--space-xs); inset-inline-start: var(--space-xs); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2xs); }
.tag-sale    { background: var(--color-accent-2-light); color: var(--color-accent-2-contrast); }
.tag-low     { background: var(--color-bg-alt); color: var(--color-muted); }
.tag-soldout { background: var(--color-error-bg); color: var(--color-error); }
.card-product .card-body { display: flex; flex-direction: column; flex: 1; padding: var(--space-sm) var(--space-sm) var(--space-md); }
.card-product .card-title { font-size: var(--fs-base); font-weight: var(--fw-medium); letter-spacing: -0.01em; }
.card-product .card-title a { color: var(--color-heading); text-decoration: none; }
.card-product .card-title a:hover { color: var(--color-accent); }
.card-product .card-summary { font-size: var(--fs-sm); color: var(--color-muted); margin-bottom: var(--space-xs); }
.card-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs); margin-top: auto; padding-top: var(--space-xs); }
.card-buy-note { font-size: var(--fs-xs); color: var(--color-muted); }
.card-buy-note.is-incart { display: inline-flex; align-items: center; gap: var(--space-2xs); color: var(--color-accent); font-weight: var(--fw-medium); }
.card-product.is-soldout .card-img img { opacity: 0.55; filter: saturate(0.4); }

/* Price — printed by partials/shop-price.tpl everywhere */
.price { display: inline-flex; align-items: baseline; gap: var(--space-2xs); font-variant-numeric: tabular-nums; }
.price-now { font-weight: var(--fw-semibold); color: var(--color-heading); }
.price-was { font-size: var(--fs-sm); font-weight: var(--fw-normal); color: var(--color-muted); }
.price.is-sale .price-now { color: var(--color-error); }
.price-lg { font-size: var(--fs-h3); margin-block: var(--space-xs) var(--space-sm); }
.price-lg .price-was { font-size: var(--fs-lg); }

/* --- Product page (shop-product.tpl) ------------------------ */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
.product-figure { margin: 0; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg-alt); }
.product-figure img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-figure .card-img-placeholder { font-size: 3rem; }
.product-thumbs { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-xs); padding: 0; }
.product-thumbs a { display: block; width: 72px; height: 72px; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.product-thumbs a:hover, .product-thumbs a.is-active { border-color: var(--color-accent); }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-cat { display: inline-block; font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--color-accent); text-decoration: none; margin-bottom: var(--space-xs); }
.product-title { font-size: var(--fs-h2); margin-bottom: var(--space-xs); }
.product-subtitle { font-size: var(--fs-lg); margin-bottom: var(--space-sm); }
.product-stock { display: flex; align-items: center; gap: var(--space-2xs); font-size: var(--fs-sm); color: var(--color-success); margin-bottom: var(--space-md); }
.product-stock.is-low { color: var(--color-accent-2-dark); }
.product-stock.is-out { color: var(--color-error); }

.product-add { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); padding-block: var(--space-sm); border-block: 1px solid var(--color-border); }
.product-add-btn { min-height: 48px; flex: 1; min-width: 12rem; }
.product-add-btn.is-added { background: var(--color-success); }
/* everything the shop has is already in this basket — a fact about the button,
   never about the stock line above it */
.product-add-full { justify-content: space-between; }
.product-add-full p { margin: 0; color: var(--color-muted); font-size: var(--fs-sm); }
.product-add-note { margin: var(--space-xs) 0 0; font-size: var(--fs-sm); color: var(--color-muted); }
.product-add-note[hidden] { display: none; }
.product-soldout { padding: var(--space-sm) 0; border-block: 1px solid var(--color-border); }
.stock-notify-row { display: flex; gap: var(--space-xs); margin-top: var(--space-xs); }
.stock-notify-row .form-control { flex: 1; min-width: 0; }
.stock-notify-msg { margin: var(--space-xs) 0 0; font-size: var(--fs-sm); color: var(--color-success); }

.product-facts { margin: var(--space-md) 0 0; font-size: var(--fs-sm); }
.product-facts li { display: flex; gap: var(--space-xs); padding-block: 0.2rem; }
.product-facts li span { min-width: 6rem; color: var(--color-muted); }
.product-fact-note { color: var(--color-muted); }
.product-assurance { display: flex; flex-direction: column; gap: var(--space-2xs); margin-top: var(--space-md); font-size: var(--fs-xs); color: var(--color-muted); }
.product-assurance i { color: var(--color-accent); margin-right: var(--space-2xs); }
.product-tags { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-top: var(--space-md); }
.product-tags .tag-basic { text-decoration: none; }

.product-detail { max-width: var(--measure); margin-top: var(--space-xl); }
.product-rail { margin-top: var(--space-xl); }
.product-rail h2 { font-size: var(--fs-h3); margin-bottom: var(--space-md); }

@media (max-width: 991.98px) {
  .product-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
}

/* --- Basket page (shop-cart.tpl) ---------------------------- */
/* Shares the checkout's layout + summary card; only the item rows are its own.
   Layout rules live with .checkout-layout below (one place, two pages). */

.cart-items { list-style: none; margin: 0; padding: 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); }
.cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto 40px;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
}
.cart-item + .cart-item { border-top: 1px solid var(--color-border); }
.cart-item-media { display: block; width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; background: var(--color-bg-alt); }
.cart-item-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { min-width: 0; }
.cart-item-title { display: block; font-weight: var(--fw-medium); color: var(--color-heading); text-decoration: none; }
.cart-item-title:hover { color: var(--color-accent); }
.cart-item-unit { font-size: var(--fs-sm); color: var(--color-muted); margin-top: 2px; }
.cart-item-unit s { margin-right: 0.35rem; }
.cart-item-unit-label { font-size: var(--fs-xs); }
.cart-item-note { display: flex; align-items: center; gap: var(--space-2xs); margin: 0.35rem 0 0; font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--color-muted); }
.cart-item-error { display: flex; align-items: center; gap: var(--space-2xs); margin: 0.35rem 0 0; font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--color-error); }
.cart-item-total { text-align: right; font-weight: var(--fw-semibold); color: var(--color-heading); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-item-total s { display: block; font-weight: var(--fw-normal); font-size: var(--fs-sm); color: var(--color-muted); }
.cart-item-remove { flex: none; }
/* .icon-btn is declared further down (checkout primitives) — win on specificity
   rather than on source order, so the red hover survives a reshuffle */
.cart-item-remove.icon-btn:hover { color: var(--color-error); background: var(--color-error-bg); }
.cart-item.is-soldout .cart-item-media img { opacity: 0.5; }
.cart-continue { margin: var(--space-md) 0 0; }

.shop-qty { display: inline-flex; align-items: center; gap: 0.25rem; }
.shop-qty input[data-shop-qty] { width: 3rem; height: 36px; text-align: center; border: 1px solid var(--color-border-strong); border-radius: var(--radius); padding: 0.2rem; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.shop-qty input[data-shop-qty]::-webkit-outer-spin-button,
.shop-qty input[data-shop-qty]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-qty-btn { width: 36px; height: 36px; border: 1px solid var(--color-border-strong); background: var(--color-bg); border-radius: var(--radius); color: var(--color-heading); cursor: pointer; line-height: 1; transition: background var(--transition), border-color var(--transition), color var(--transition); }
.shop-qty-btn:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-contrast); }

@media (max-width: 767.98px) {
  /* two lines: media + title on top, stepper and money underneath */
  .cart-item { grid-template-columns: 64px minmax(0, 1fr) 40px; row-gap: var(--space-xs); padding: var(--space-sm); }
  .cart-item-media { width: 64px; height: 64px; }
  .cart-item-qty { grid-column: 2; }
  .cart-item-total { grid-column: 3 / -1; grid-row: 2; align-self: center; }
  .cart-item-remove { grid-column: 3; grid-row: 1; align-self: start; }
}

/* --- Order confirmation (shop-checkout-ok.tpl) -------------- */
.shop-order-box { max-width: 640px; margin: 0 auto; }
.shop-summary-items { list-style: none; margin: 0 0 var(--space-sm); padding: 0; }
.shop-summary-items li { display: flex; align-items: baseline; gap: var(--space-xs); padding: 0.35rem 0; font-size: var(--fs-sm); }
.shop-summary-qty { color: var(--color-muted); font-variant-numeric: tabular-nums; }
.shop-summary-title { flex: 1; min-width: 0; color: var(--color-heading); }
.shop-summary-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.shop-summary-rows { margin: 0; }
.shop-summary-rows > div { display: flex; justify-content: space-between; gap: var(--space-sm); padding: 0.4rem 0; }
.shop-summary-rows dt { color: var(--color-muted); font-weight: 400; }
.shop-summary-rows dd { margin: 0; font-variant-numeric: tabular-nums; }
.shop-summary-total { border-top: 1px solid var(--color-border); margin-top: 0.35rem; padding-top: 0.6rem !important; font-size: var(--fs-lg); font-weight: 700; }
.shop-summary-total dt { color: inherit; font-weight: 700; }
.shop-order-paid { display: inline-block; background: var(--color-success-bg); color: var(--color-success); font-size: var(--fs-xs); font-weight: 700; border-radius: var(--radius-pill); padding: 0.15rem 0.6rem; margin-left: 0.5rem; text-transform: uppercase; }
.shop-order-pending h2 { color: var(--color-muted); }
.shop-order-summary { margin: 1.5rem 0; }
.shop-empty { text-align: center; padding: 3rem 1.5rem; }
.shop-empty > i { display: block; font-size: 1.75rem; color: var(--color-muted); margin-bottom: var(--space-xs); }
.shop-empty .btn-two { margin-top: 1rem; }

/* back-in-stock notify form (product page, out of stock) */
.stock-notify-form { margin-top: 0.75rem; max-width: 26rem; }
.stock-notify-form label { display: block; margin-bottom: 0.4rem; font-weight: 600; }
.stock-notify-form [data-stock-notify-msg] { margin-top: 0.6rem; color: var(--color-accent); font-weight: 600; }


/* =============================================================================
   CHECKOUT — one-page guest checkout (shop-checkout.tpl)
   Design system handoff 2026-08-02. Neutral, reusable class names; every value
   comes from a token, so a project re-themes this by overriding :root only.
   ============================================================================= */

/* --- Form primitives the checkout composes with ------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-sm); }
.form-field { margin-bottom: var(--space-sm); min-width: 0; }
.form-field-full { grid-column: 1 / -1; }
.form-field > .form-label { display: inline-block; margin-bottom: 0.25rem; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-heading); }
.form-field .req { color: var(--color-error); }
.form-field .form-hint { display: block; margin: 0.25rem 0 0; }
.form-error-msg { display: flex; align-items: flex-start; gap: var(--space-2xs); margin: 0.25rem 0 0; font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--color-error); }
.form-field.has-error .form-control,
.form-field.has-error .form-select { border-color: var(--color-error); }
.form-field.has-error .form-control:focus,
.form-field.has-error .form-select:focus { box-shadow: 0 0 0 3px var(--color-error-bg); }
@media (max-width: 575.98px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.btn-sm { padding: 0.45em 1em; font-size: var(--fs-sm); }
.btn-link { border: 0; background: none; padding: var(--space-2xs); font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-medium); color: inherit; text-decoration: underline; cursor: pointer; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: var(--radius); background: none; color: var(--color-muted); cursor: pointer; }
.icon-btn:hover { background: var(--color-bg-alt); color: var(--color-heading); }
.spinner { display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: -0.1em; }
@keyframes spin { to { transform: rotate(360deg); } }
button.is-busy { pointer-events: none; opacity: 0.9; }

/* --- Layout: form + sticky summary -------------------------- */
/* The basket page uses the same grid (.cart-*), so the two steps of the flow
   line up column-for-column. */
.checkout-layout,
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--space-xl); align-items: start; }
.checkout-main,
.cart-main { min-width: 0; }
.checkout-aside,
.cart-aside { position: sticky; top: calc(var(--header-height) + var(--space-md)); min-width: 0; }
@media (max-width: 1199.98px) {
  .checkout-layout,
  .cart-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-lg); }
}
@media (max-width: 991.98px) {
  .checkout-layout,
  .cart-layout { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-sm); }
  .checkout-aside { position: static; order: -1; width: 100%; }
  /* the basket summary stays UNDER the items: the shopper is still editing
     quantities here, so the list is the thing that must be at the top */
  .cart-aside { position: static; width: 100%; }
  .checkout-main,
  .cart-main { width: 100%; }
  /* room for the fixed action bar */
  .shop-checkout { padding-bottom: 96px; }
}

/* --- Step strip --------------------------------------------- */
.checkout-steps { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); list-style: none; margin: 0 0 var(--space-md); padding: 0; font-size: var(--fs-sm); color: var(--color-muted); }
.checkout-steps li { display: inline-flex; align-items: center; gap: var(--space-xs); }
.checkout-steps li + li::before { content: ""; width: 28px; height: 1px; background: var(--color-border-strong); }
.checkout-steps .is-current { color: var(--color-heading); font-weight: var(--fw-semibold); }
.checkout-steps a { color: var(--color-muted); text-decoration: none; }
.checkout-steps a:hover { color: var(--color-accent); }

/* --- Section blocks ----------------------------------------- */
.co-section { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); padding: var(--space-md); margin: 0 0 var(--space-sm); min-width: 0; }
.co-section-title { display: flex; align-items: center; gap: var(--space-xs); float: left; width: 100%; padding: 0; margin: 0 0 var(--space-sm); font-family: var(--font-heading); font-size: var(--fs-h4); font-weight: var(--fw-bold); letter-spacing: -0.01em; color: var(--color-heading); }
.co-section-title + * { clear: both; }
.co-step-num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: var(--radius-pill); background: var(--color-accent-light); color: var(--color-accent); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.co-note { margin-bottom: var(--space-md); }
.co-note > summary { cursor: pointer; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--color-accent); }
.co-note > summary::marker { color: var(--color-border-strong); }
.co-note .form-field { margin: var(--space-xs) 0 0; }
/* why an option list is shorter than usual (pickup-only basket). A muted line
   above the cards was read as fine print and the missing option still looked
   like a bug — this is a callout in the site's info voice, and the store icon
   is the same one the summary marks the offending line with */
.co-restriction { display: flex; align-items: flex-start; gap: var(--space-xs); margin: 0 0 var(--space-sm); padding: var(--space-sm) var(--space-md); border: 1px solid rgba(22, 160, 127, 0.25); border-radius: var(--radius-md); background: var(--color-info-bg); font-size: var(--fs-sm); font-weight: var(--fw-medium); line-height: 1.45; color: var(--color-heading); }
.co-restriction .icon { flex: none; margin-top: 0.15em; font-size: 1.1em; color: var(--color-info); }

/* the same fact on the line that causes it, in the order summary */
.pickup-badge { display: inline-flex; align-items: center; gap: var(--space-2xs); margin-top: 0.3rem; padding: 0.1rem var(--space-xs); border-radius: var(--radius-pill); background: var(--color-info-bg); font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--color-info); }

/* --- Opt-in reveal blocks (R1, different address) ------------ */
.reveal { border-top: 1px solid var(--color-border); margin-top: var(--space-sm); padding-top: var(--space-sm); }
.reveal > .form-check { margin-bottom: 0; }
.reveal > .form-check label { font-weight: var(--fw-medium); color: var(--color-heading); }
.reveal-body { display: none; border: 0; margin: var(--space-sm) 0 0; padding: var(--space-sm) 0 0; border-top: 1px dashed var(--color-border); min-width: 0; }
.reveal:has(> .form-check input:checked) .reveal-body { display: block; }

/* --- Option cards (delivery / payment radios) --------------- */
.option-list { display: flex; flex-direction: column; gap: var(--space-xs); margin: 0; }
.option-card { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-sm); min-height: 56px; padding: var(--space-sm); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-bg); cursor: pointer; transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), opacity var(--transition); }
.option-card:hover { border-color: var(--color-accent); }
.option-card input[type="radio"] { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1px solid var(--color-border-strong); border-radius: 50%; background: var(--color-bg); cursor: pointer; transition: border var(--transition); }
.option-card input[type="radio"]:checked { border: 6px solid var(--color-accent); }
.option-card:has(input:checked) { border-color: var(--color-accent); background: var(--color-accent-light); box-shadow: inset 0 0 0 1px var(--color-accent); }
.option-card:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.option-body { display: block; flex: 1; min-width: 0; }
.option-title { display: flex; align-items: center; gap: var(--space-xs); font-weight: var(--fw-medium); color: var(--color-heading); }
.option-title .icon { flex: none; color: var(--color-muted); }
.option-card:has(input:checked) .option-title .icon { color: var(--color-accent); }
.option-desc { display: block; font-size: var(--fs-sm); color: var(--color-muted); margin: 2px 0 0; }
.option-price { flex: none; margin-left: auto; font-weight: var(--fw-semibold); color: var(--color-heading); font-variant-numeric: tabular-nums; white-space: nowrap; }
.option-price-free { color: var(--color-success); }
/* Unavailable: stays in place, explains itself, posts nothing */
.option-card.is-unavailable { background: var(--color-bg-alt); border-style: dashed; border-color: var(--color-border); cursor: not-allowed; opacity: 0.7; }
.option-card.is-unavailable:hover { border-color: var(--color-border); }
.option-card.is-unavailable .option-title,
.option-card.is-unavailable .option-price { color: var(--color-muted); }
.option-card.is-unavailable input[type="radio"] { opacity: 0.4; }
.option-reason { flex-basis: 100%; display: none; align-items: center; gap: var(--space-2xs); margin: 0 0 0 28px; font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--color-muted); }
.option-card.is-unavailable .option-reason { display: flex; }
/* Single-option shop: the radio stays in the DOM, the chrome does not */
.option-list.is-single .option-card { cursor: default; background: var(--color-bg-alt); border-color: var(--color-border); box-shadow: none; }
.option-list.is-single .option-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.option-list.is-single .option-card:hover { border-color: var(--color-border); }

/* Extra panel attached under a chosen option (locker picker) */
.option-block { display: flex; flex-direction: column; }
.option-extra { margin: var(--space-xs) 0 0 28px; }
.option-block:not(:has(input:checked)) .option-extra { display: none; }

/* --- Locker picker ------------------------------------------ */
.locker-chosen { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-sm); border: 1px solid var(--color-accent); border-radius: var(--radius); background: var(--color-bg); }
.locker-chosen .icon { color: var(--color-accent); }
.locker-chosen-body { display: block; flex: 1; min-width: 0; }
.locker-chosen-name { display: block; font-weight: var(--fw-medium); color: var(--color-heading); }
.locker-chosen-addr { display: block; font-size: var(--fs-sm); color: var(--color-muted); }
.picker-trigger { min-height: 44px; margin-top: var(--space-xs); }

.picker { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.picker[hidden] { display: none; }
@media (min-width: 768px) { .picker { align-items: center; padding: var(--space-md); } }
.picker-backdrop { position: absolute; inset: 0; background: rgba(18, 22, 27, 0.45); border: 0; padding: 0; }
.picker-panel { position: relative; display: flex; flex-direction: column; width: min(560px, 100%); max-height: min(86vh, 720px); background: var(--color-bg); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-lg); overflow: hidden; }
@media (min-width: 768px) { .picker-panel { border-radius: var(--radius-lg); } }
.picker-head { display: flex; align-items: flex-start; gap: var(--space-sm); padding: var(--space-md) var(--space-md) var(--space-xs); }
.picker-head h2 { margin: 0; font-size: var(--fs-h4); }
.picker-head p { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--color-muted); }
.picker-search { padding: var(--space-xs) var(--space-md) var(--space-sm); border-bottom: 1px solid var(--color-border); }
.picker-list { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: var(--space-xs); -webkit-overflow-scrolling: touch; }
.picker-group { position: sticky; top: 0; z-index: 1; padding: var(--space-xs) var(--space-sm) var(--space-2xs); background: var(--color-bg); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--color-muted); }
.picker-item { display: flex; align-items: center; gap: var(--space-sm); width: 100%; min-height: 56px; padding: var(--space-xs) var(--space-sm); border: 0; border-radius: var(--radius); background: none; font: inherit; text-align: left; cursor: pointer; transition: background var(--transition); }
.picker-item:hover { background: var(--color-accent-light); }
.picker-item .icon { flex: none; color: var(--color-muted); }
.picker-item > span { display: flex; flex-direction: column; min-width: 0; }
.picker-item-name { display: block; font-weight: var(--fw-medium); color: var(--color-heading); }
.picker-item-addr { display: block; font-size: var(--fs-sm); color: var(--color-muted); }
.picker-empty { padding: var(--space-md); text-align: center; color: var(--color-muted); font-size: var(--fs-sm); }
.picker-foot { padding: var(--space-xs) var(--space-md) var(--space-md); border-top: 1px solid var(--color-border); font-size: var(--fs-xs); color: var(--color-muted); }
/* the plain text field is the no-JS baseline; the picker replaces it */
[data-locker][data-enhanced] [data-locker-raw] { display: none; }
[data-locker]:not([data-enhanced]) [data-picker-open],
[data-locker]:not([data-enhanced]) [data-locker-chosen] { display: none; }

/* --- Turnstile slot ----------------------------------------- */
.verify-slot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.verify-note { flex: 1; min-width: 12rem; font-size: var(--fs-xs); color: var(--color-muted); margin: 0; }

/* --- Summary ------------------------------------------------ */
.summary-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); overflow: hidden; }
.summary-card > summary,
.summary-card > .summary-head { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); cursor: pointer; list-style: none; font-weight: var(--fw-semibold); color: var(--color-heading); }
/* the basket's head is a heading, not a disclosure control */
.summary-card > .summary-head { cursor: default; }
.summary-card > .summary-head .icon { color: var(--color-muted); }
.summary-card > summary::-webkit-details-marker { display: none; }
.summary-card > summary .icon { transition: transform var(--transition); color: var(--color-muted); }
.summary-card[open] > summary .icon-chevron { transform: rotate(180deg); }
.summary-head-total { margin-left: auto; font-variant-numeric: tabular-nums; }
.summary-body { padding: var(--space-md); }

.summary-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-sm); }
.summary-item { display: flex; align-items: flex-start; gap: var(--space-sm); font-size: var(--fs-sm); }
.summary-item img { flex: none; width: 48px; height: 48px; border-radius: var(--radius); object-fit: cover; background: var(--color-bg-alt); }
.summary-item-body { display: block; flex: 1; min-width: 0; }
.summary-item-title { display: block; color: var(--color-heading); font-weight: var(--fw-medium); }
.summary-item-meta { display: block; color: var(--color-muted); }
.summary-item-total { flex: none; font-weight: var(--fw-medium); color: var(--color-heading); font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary-item-total s { display: block; font-weight: var(--fw-normal); color: var(--color-muted); }
.summary-item.is-soldout .summary-item-title,
.summary-item.is-soldout .summary-item-total { color: var(--color-error); }
.summary-item.is-soldout img { opacity: 0.5; }
.summary-edit { margin: var(--space-sm) 0 0; font-size: var(--fs-sm); }

.summary-rows { display: flex; flex-direction: column; gap: var(--space-2xs); margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: 1px solid var(--color-border); font-size: var(--fs-sm); }
/* first thing in the card (basket page): no rule and no gap above it */
.summary-rows-flush { margin-top: 0; padding-top: 0; border-top: 0; }
.summary-note { margin: var(--space-sm) 0 0; font-size: var(--fs-xs); color: var(--color-muted); }
.sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); padding: 2px var(--space-2xs); border-radius: var(--radius); }
.sum-row .sum-label { color: var(--color-text); }
.sum-row .sum-value { font-variant-numeric: tabular-nums; color: var(--color-heading); white-space: nowrap; }
.sum-row-discount .sum-label b { color: var(--color-success); font-weight: var(--fw-semibold); }
.sum-row-discount .sum-value { color: var(--color-success); }
.sum-row-total { margin-top: var(--space-xs); padding-top: var(--space-sm); border-top: 1px solid var(--color-border); align-items: flex-start; font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
.sum-row-total .sum-label small { display: block; font-size: var(--fs-xs); font-weight: var(--fw-normal); color: var(--color-muted); }
.sum-row-total .sum-value { font-size: var(--fs-xl); }
.sum-row[hidden] { display: none; }
.sum-row.is-updated { animation: sumFlash 1.4s ease; }
@keyframes sumFlash { 0%, 25% { background: var(--color-accent-2-light); } 100% { background: transparent; } }
.sum-value s { color: var(--color-muted); font-weight: var(--fw-normal); margin-right: var(--space-2xs); }
/* nothing to pay yet: an em dash, not a payable-looking number with a currency */
.sum-row.is-unpriced .sum-value { color: var(--color-error); }
.sum-row.is-unpriced .cur { display: none; }
.sum-value .is-free { color: var(--color-success); }

.summary-status { display: none; align-items: center; gap: var(--space-xs); margin: var(--space-xs) 0 0; font-size: var(--fs-xs); color: var(--color-muted); }
.is-repricing .summary-status { display: flex; }
.is-repricing .summary-rows { opacity: 0.55; transition: opacity var(--transition); }
.shop-postage-error { display: flex; align-items: flex-start; gap: var(--space-2xs); font-size: var(--fs-sm); color: var(--color-error); margin: var(--space-sm) 0 0; }

/* Coupon */
.shop-coupon { margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: 1px dashed var(--color-border); }
.shop-coupon > summary { list-style: none; cursor: pointer; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--color-accent); display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 24px; }
.shop-coupon > summary::-webkit-details-marker { display: none; }
.shop-coupon-row { display: flex; gap: var(--space-xs); margin-top: var(--space-xs); }
.shop-coupon-row .form-control { flex: 1; min-width: 0; text-transform: uppercase; }
.shop-coupon-msg { display: flex; align-items: flex-start; gap: var(--space-2xs); margin: var(--space-xs) 0 0; font-size: var(--fs-xs); }
.shop-coupon-error { color: var(--color-error); }
.shop-coupon-applied { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius); background: var(--color-success-bg); color: var(--color-success); font-size: var(--fs-sm); }
.shop-coupon-applied .icon { flex: none; }
.shop-coupon-applied .shop-coupon-msg { flex: 1; min-width: 0; margin: 0; font-size: inherit; }
.shop-coupon-remove { border: 0; background: none; padding: var(--space-2xs); font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-medium); color: inherit; text-decoration: underline; cursor: pointer; }
/* one state at a time: while a coupon is on the basket the field is the strip */
.shop-coupon:has([data-shop-coupon-applied]:not([hidden])) > details { display: none; }

/* Submit area */
.summary-submit { margin-top: var(--space-md); }
.summary-submit .btn-one { width: 100%; min-height: 52px; }
.shop-summary-legal { margin: var(--space-xs) 0 0; font-size: var(--fs-xs); color: var(--color-muted); text-align: center; }
.summary-assurance { display: flex; flex-direction: column; gap: var(--space-2xs); margin-top: var(--space-sm); font-size: var(--fs-xs); color: var(--color-muted); }
.summary-assurance span { display: flex; align-items: center; gap: var(--space-xs); }
.summary-assurance .icon { flex: none; color: var(--color-accent); }

/* --- Fixed mobile action bar -------------------------------- */
.checkout-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-md); padding-bottom: max(var(--space-xs), env(safe-area-inset-bottom)); background: var(--color-bg); border-top: 1px solid var(--color-border); box-shadow: 0 -2px 16px rgba(18, 22, 27, 0.08); }
@media (max-width: 991.98px) { .checkout-bar { display: flex; } }
.checkout-bar-total { display: flex; flex-direction: column; line-height: 1.25; }
.checkout-bar-total span { font-size: var(--fs-xs); color: var(--color-muted); }
.checkout-bar-total b { font-size: var(--fs-lg); color: var(--color-heading); font-variant-numeric: tabular-nums; }
.checkout-bar .btn-one { flex: 1; min-height: 48px; }

/* --- Error summary ------------------------------------------ */
.shop-checkout-error { display: flex; align-items: flex-start; gap: var(--space-xs); margin-bottom: var(--space-md); }
.error-summary ul { margin: var(--space-2xs) 0 0; padding-left: 1.1em; font-size: var(--fs-sm); }
.error-summary a { color: inherit; }

/* --- Leaving-the-site overlay ------------------------------- */
.redirect-overlay { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: var(--space-md); background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(3px); }
.redirect-overlay[hidden] { display: none; }
.redirect-card { max-width: 380px; padding: var(--space-lg); text-align: center; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.redirect-card .spinner { font-size: 1.75rem; color: var(--color-accent); margin-bottom: var(--space-sm); }
.redirect-card h2 { font-size: var(--fs-h4); margin-bottom: var(--space-2xs); }
.redirect-card p { font-size: var(--fs-sm); color: var(--color-muted); margin: 0; }

/* --- Static (non-editable) value, e.g. a single delivery country */
.static-value { display: flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0.55em 0.9em; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg-alt); color: var(--color-heading); font-weight: var(--fw-medium); }
.static-value .icon { color: var(--color-muted); }

/* The row flash and the spinner are the only motion here; a reader who asked
   for less gets a static ring instead of the flash. The global reduce rule
   below zeroes durations, which would leave the flash colour painted on. */
@media (prefers-reduced-motion: reduce) {
  .sum-row.is-updated { animation: none; box-shadow: inset 0 0 0 1px var(--color-accent-2); }
}


