/* Components, mapped 1:1 to the Figma component sets. */

/* =========================================================
   Button  (Variant: Primary / Secondary / Ghost x Size: L / M / S)
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  border: 0; border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-weight: 700;
  font-size: var(--button-size); line-height: var(--button-lh);
  padding: 13px 24px;                               /* M */
  background: transparent; color: var(--action-primary);
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}
.btn--l { font-size: 16px; line-height: 1.2; padding: 16px 28px; }
.btn--s { font-size: 13px; line-height: 1.2; padding: 8px 16px; }
.btn--block { display: flex; width: 100%; }

.btn--primary { background: var(--action-primary); color: var(--text-on-action); }
.btn--primary:hover { background: var(--action-primary-hover); color: var(--text-on-action); }

.btn--secondary { border: 1.5px solid var(--action-primary); color: var(--action-primary); }
.btn--secondary:hover {
  background: var(--surface-peach-soft);
  border-color: var(--action-primary-hover); color: var(--action-primary-hover);
}

.btn--ghost { padding: 13px 16px; }
.btn--ghost.btn--l { padding: 16px 20px; }
.btn--ghost.btn--s { padding: 8px; }
.btn--ghost:hover { background: var(--surface-peach-soft); color: var(--action-primary-hover); }

.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; }
.btn--primary:disabled, .btn--primary[aria-disabled="true"] {
  background: var(--action-disabled); color: var(--text-muted);
}
.btn--secondary:disabled { background: transparent; border-color: var(--border-default); color: var(--text-muted); }
.btn--ghost:disabled { background: transparent; color: var(--text-muted); }

/* On a colour block: #A9573F text drops below 4.5:1, so secondary becomes a light
   pill and ghost becomes underlined cocoa text. Primary keeps #A9573F (4.84:1 text). */
:is(.block--peach, .block--blush, .block--butter, .block--peach-soft, .block--blush-soft) .btn--secondary { background: var(--surface-card); border-color: var(--surface-card); color: var(--text-primary); }
:is(.block--peach, .block--blush, .block--butter, .block--peach-soft, .block--blush-soft) .btn--secondary:hover { background: var(--surface-peach-soft); border-color: var(--surface-peach-soft); color: var(--text-primary); }
:is(.block--peach, .block--blush, .block--butter, .block--peach-soft, .block--blush-soft) .btn--ghost { color: var(--text-primary); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
:is(.block--peach, .block--blush, .block--butter, .block--peach-soft, .block--blush-soft) .btn--ghost:hover { background: var(--surface-card); color: var(--text-primary); }

/* Text link with an arrow, e.g. "See full menu ->" */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: var(--body-sm-size); line-height: var(--body-sm-lh); font-weight: 500;
  color: var(--action-primary);
}
.link-arrow:hover { color: var(--action-primary-hover); text-decoration: underline; }
:is(.block--peach, .block--blush, .block--butter, .block--peach-soft, .block--blush-soft) .link-arrow { color: var(--text-primary); text-decoration: underline; text-underline-offset: 4px; }
:is(.block--peach, .block--blush, .block--butter, .block--peach-soft, .block--blush-soft) .link-arrow:hover { color: var(--text-primary); }
.link-inline { color: var(--action-primary); text-decoration: underline; text-underline-offset: 2px; }

/* =========================================================
   Filter chip  (State: Default / Hover / Selected)
   ========================================================= */
.chip {
  display: inline-flex; align-items: center;
  padding: 9px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--surface-card);
  font-size: var(--body-sm-size); line-height: var(--body-sm-lh); font-weight: 500;
  color: var(--text-primary); white-space: nowrap;
  transition: background-color var(--duration-fast);
}
.chip:hover { background: var(--surface-peach-soft); }
.chip[aria-pressed="true"] {
  background: var(--brand-peach); border-color: var(--text-primary); color: var(--text-primary);
  box-shadow: inset 0 0 0 0.5px var(--text-primary); font-weight: 700;
}

/* =========================================================
   Badge  (Type: Bestseller / New / Seasonal / Sold out)
   ========================================================= */
.badge {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: var(--radius-pill);
  font-size: 11px; line-height: 1.3; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-primary); background: var(--brand-butter);
}
.badge--new { background: var(--brand-blush); }
.badge--seasonal { background: var(--brand-peach); }
.badge--sold-out { background: var(--action-disabled); color: var(--text-muted); }

/* =========================================================
   Form field  (Type: Text / Select / Textarea x State)
   Border stays 1.5px in every state; focus adds a 0.5px inset ring so the
   field looks 2px but never changes size.
   ========================================================= */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field > legend { padding: 0; margin-bottom: var(--space-2); }
.field__label { font-size: var(--body-sm-size); line-height: var(--body-sm-lh); font-weight: 500; color: var(--text-primary); }
.field__label-row { display: flex; justify-content: space-between; gap: var(--space-3); }
.field__control {
  width: 100%;
  background: var(--surface-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: var(--body-size); line-height: var(--body-lh);
  color: var(--text-primary);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.field__control::placeholder { color: var(--text-muted); opacity: 1; }
.field__control:focus, .field__control:focus-visible {
  outline: none;
  border-color: var(--action-primary);
  box-shadow: inset 0 0 0 0.5px var(--action-primary);
}
.field__control:disabled { background: var(--action-disabled); color: var(--text-muted); }
textarea.field__control { min-height: 120px; resize: vertical; }
.field__helper { font-size: var(--body-sm-size); line-height: var(--body-sm-lh); color: var(--text-muted); }
.field__error { font-size: var(--body-sm-size); line-height: var(--body-sm-lh); color: var(--feedback-error); }
.field--error .field__control { border-color: var(--feedback-error); }
.field--error .field__control:focus { box-shadow: inset 0 0 0 0.5px var(--feedback-error); }
.field__counter { font-size: var(--body-sm-size); line-height: var(--body-sm-lh); color: var(--text-muted); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 479px) { .field-row { grid-template-columns: 1fr; } }

/* =========================================================
   Alert  (Type: Info / Warning / Error / Success)
   ========================================================= */
.alert {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: 14px 18px; border-radius: var(--radius-md);
  border: 1.5px solid var(--border-strong);
  background: var(--surface-peach-soft);
  font-size: var(--body-sm-size); line-height: var(--body-sm-lh); font-weight: 500;
  color: var(--text-primary);
}
.alert__icon { font-size: var(--button-size); line-height: 1.4; font-weight: 700; flex-shrink: 0; }
.alert--warning { background: var(--brand-butter); }
.alert--error { background: var(--surface-card); border-color: var(--feedback-error); color: var(--feedback-error); } /* error red is 4.41:1 on blush-soft, 5.34:1 on card */
.alert--success { background: var(--surface-card); border-color: var(--feedback-success); color: var(--feedback-success); }

/* =========================================================
   Checkbox  (Checked x Error)
   ========================================================= */
.checkbox { display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; }
.checkbox input {
  appearance: none; -webkit-appearance: none; flex-shrink: 0;
  width: 22px; height: 22px; margin: 2px 0 0;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-xs);
  background: var(--surface-card);
  display: inline-grid; place-content: center; cursor: pointer;
}
.checkbox input::after {
  content: "✓"; font-size: 13px; line-height: 1; font-weight: 700;
  color: var(--text-on-action); transform: scale(0);
}
.checkbox input:checked { background: var(--action-primary); border-color: var(--action-primary); }
.checkbox input:checked::after { transform: scale(1); }
.checkbox--error input { border-color: var(--feedback-error); }
.checkbox__label { font-size: var(--body-size); line-height: var(--body-lh); }

/* =========================================================
   Radio card  (Selected x Disabled)
   ========================================================= */
.radio-group { display: flex; flex-wrap: wrap; gap: var(--space-3); border: 0; padding: 0; margin: 0; min-width: 0; }
.radio-card {
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: 14px 20px; border-radius: var(--radius-md);
  border: 1.5px solid var(--border-default); background: var(--surface-card);
  font-size: var(--button-size); line-height: 1.5; font-weight: 500;
  cursor: pointer;
  transition: background-color var(--duration-fast), border-color var(--duration-fast);
}
.radio-card input {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; margin: 0;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--border-strong); background: var(--surface-card);
  cursor: pointer;
}
.radio-card:has(input:checked) {
  background: var(--surface-peach-soft); border-color: var(--action-primary);
  box-shadow: inset 0 0 0 0.5px var(--action-primary);
}
.radio-card input:checked { border: 6px solid var(--action-primary); }
.radio-card:has(input:focus-visible) { outline: var(--focus-ring-width) solid var(--action-primary); outline-offset: var(--focus-ring-offset); }
.radio-card input:focus-visible { outline: none; }
.radio-card:has(input:disabled) { background: var(--action-disabled); color: var(--text-muted); cursor: not-allowed; }
.radio-card input:disabled { cursor: not-allowed; }

/* =========================================================
   Size option  (State: Default / Selected / Disabled)
   ========================================================= */
.size-options { display: flex; gap: var(--space-3); border: 0; padding: 0; margin: 0; min-width: 0; }
.size-options legend { padding: 0; }
.size-option {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px; border-radius: var(--radius-md);
  border: 1.5px solid var(--border-strong); background: var(--surface-card);
  cursor: pointer;
  transition: background-color var(--duration-fast), border-color var(--duration-fast);
}
.size-option input { position: absolute; opacity: 0; pointer-events: none; }
.size-option__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.size-option__size { font-size: var(--h4-size); line-height: var(--h4-lh); font-weight: 700; }
.size-option__price { font-size: var(--price-size); line-height: var(--price-lh); font-weight: 700; color: var(--action-primary); }
.size-option__serves { font-size: var(--body-sm-size); line-height: var(--body-sm-lh); color: var(--text-muted); }
.size-option:has(input:checked) {
  background: var(--surface-peach-soft); border-color: var(--action-primary);
  box-shadow: inset 0 0 0 0.5px var(--action-primary);
}
/* On peach-soft, #A9573F and text/muted fall below 4.5:1, so selected text is cocoa. */
.size-option:has(input:checked) :is(.size-option__price, .size-option__serves) { color: var(--text-primary); }
.size-option:has(input:focus-visible) { outline: var(--focus-ring-width) solid var(--action-primary); outline-offset: var(--focus-ring-offset); }
.size-option:has(input:disabled) { background: var(--action-disabled); color: var(--text-muted); cursor: not-allowed; }
.size-option:has(input:disabled) .size-option__price { color: var(--text-muted); }

/* =========================================================
   Quantity stepper  (At minimum true / false)
   ========================================================= */
.stepper {
  display: inline-flex; align-items: center; gap: var(--space-1); flex-shrink: 0;
  padding: 6px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--surface-card);
}
.stepper__btn {
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: var(--surface-peach-soft); color: var(--text-primary);
  font-size: var(--button-size); line-height: 1; font-weight: 700;
}
.stepper__btn:hover:not(:disabled) { background: var(--brand-peach); }
.stepper__btn:disabled { background: var(--action-disabled); color: var(--text-muted); cursor: not-allowed; }
.stepper__value {
  min-width: 32px; text-align: center;
  font-size: var(--button-size); line-height: var(--button-lh); font-weight: 700;
}

/* =========================================================
   Product card  (Type: Sized / Dozen / Each)
   ========================================================= */
.product-card {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: 20px; border-radius: var(--radius-lg);
  background: var(--surface-card); border: 1px solid var(--border-default);
  min-width: 0;
}
.product-card { --mat: var(--brand-peach); }
:is(.menu-grid, .best-grid) > :nth-child(even) { --mat: var(--brand-blush); }
.product-card__media {
  position: relative; display: block;
  aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden;
  padding: 10px; background: var(--mat);
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.product-card__media .badge { position: absolute; top: 20px; left: 20px; }
.product-card__name a { color: inherit; }
.product-card__name a:hover { color: var(--action-primary); }
.product-card__desc { color: var(--text-muted); }
.product-card__price-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.product-card__buy { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; }
.product-card__buy .btn { flex: 1 1 auto; }
.message-toggle {
  align-self: flex-start; background: none; border: 0; padding: 0;
  font-size: var(--body-sm-size); line-height: var(--body-sm-lh); font-weight: 500;
  color: var(--action-primary);
}
.message-toggle:hover { color: var(--action-primary-hover); text-decoration: underline; }

/* Compact card: home best sellers, "You might also like" */
.product-card--compact { padding: 12px 12px 18px; border: 0; gap: var(--space-3); }
.product-card--compact .product-card__name, .product-card--compact .product-card__foot { padding-inline: 4px; }
.product-card--compact .btn--secondary,
:is(.block--peach, .block--blush, .block--butter, .block--peach-soft, .block--blush-soft) .product-card--compact .btn--secondary { background: var(--brand-peach); border-color: var(--brand-peach); color: var(--text-primary); }
.product-card--compact .btn--secondary:hover,
:is(.block--peach, .block--blush, .block--butter, .block--peach-soft, .block--blush-soft) .product-card--compact .btn--secondary:hover { background: var(--brand-blush); border-color: var(--brand-blush); color: var(--text-primary); }
.product-card--compact .product-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
}
@media (max-width: 767px) {
  .product-card--compact .product-card__foot { flex-direction: column; align-items: stretch; gap: var(--space-2); }
  .product-card--compact .product-card__foot .btn { width: 100%; }
}

/* =========================================================
   Category card (What we bake)
   ========================================================= */
.category-grid > li { --tile: var(--brand-peach); }
.category-grid > li:nth-child(5n + 2) { --tile: var(--brand-blush); }
.category-grid > li:nth-child(5n + 3) { --tile: var(--brand-butter); }
.category-grid > li:nth-child(5n + 4) { --tile: var(--surface-peach-soft); }
.category-grid > li:nth-child(5n + 5) { --tile: var(--surface-blush-soft); }
.category-card {
  display: flex; flex-direction: column; gap: var(--space-1); height: 100%; min-width: 0;
  padding: 12px 12px 18px; border-radius: var(--radius-lg); background: var(--tile);
  color: var(--text-primary);
  transition: transform var(--duration-fast) var(--ease-out);
}
.category-card:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .category-card:hover { transform: none; } }
.category-card__media { aspect-ratio: 1 / 1; border-radius: var(--radius-md); overflow: hidden; }
.category-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-drawer) var(--ease-out); }
.category-card:hover .category-card__media img { transform: scale(1.03); }
.category-card__name { margin-top: var(--space-3); padding-inline: 4px; }
.category-card__link {
  padding-inline: 4px; font-size: var(--body-sm-size); line-height: var(--body-sm-lh); font-weight: 500;
  color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong);
}
.category-card:hover { color: var(--text-primary); }
.category-card:hover .category-card__link { text-decoration-color: currentColor; }

/* =========================================================
   Step card
   ========================================================= */
.step-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--surface-card);
}
.step-card__num {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--brand-peach);
  font-size: var(--h4-size); line-height: 1; font-weight: 700;
}
.steps-grid > li:nth-child(3n + 2) .step-card__num { background: var(--brand-butter); }
.steps-grid > li:nth-child(3n + 3) .step-card__num { background: var(--brand-blush); }
.step-card__body { color: var(--text-muted); }
@media (max-width: 767px) {
  .step-card { padding: var(--space-5); gap: var(--space-2); }
  .step-card__head { display: flex; align-items: center; gap: var(--space-3); }
  .step-card__num { width: 32px; height: 32px; font-size: var(--button-size); }
}
@media (min-width: 768px) {
  .step-card__head { display: flex; flex-direction: column; gap: 14px; }
}

/* =========================================================
   Info card (Good to know)
   ========================================================= */
.info-card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-5); border-radius: var(--radius-lg);
  background: var(--surface-peach-soft);
}
.info-card p { color: var(--text-primary); }
.info-grid > :nth-child(4n + 2) { background: var(--brand-butter); }
.info-grid > :nth-child(4n + 3) { background: var(--surface-blush-soft); }
.info-grid > :nth-child(4n + 4) { background: var(--brand-peach); }

/* =========================================================
   Accordion item  (Open true / false), built on <details>
   ========================================================= */
.accordion { border-bottom: 1px solid var(--border-default); }
.accordion__item { border-top: 1px solid var(--border-default); }
.accordion__summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 20px 0; cursor: pointer; list-style: none;
  font-size: var(--h4-size); line-height: var(--h4-lh); font-weight: 700;
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__icon { color: var(--action-primary); font-weight: 700; }
.accordion__icon::before { content: "+"; }
.accordion__item[open] .accordion__icon::before { content: "–"; }
.accordion__body { padding-bottom: 20px; margin-top: -10px; color: var(--text-muted); }

/* =========================================================
   Nav / Desktop, Nav / Mobile
   ========================================================= */
.site-nav { background: var(--surface-page); border-bottom: 1px solid var(--border-default); position: relative; z-index: 20; }
.site-nav__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  min-height: 80px; padding-block: 16px;
}
/* Logo: Compact Light (docs/logo-handoff.md). 44px tall on desktop and in the footer.
   Clear space is about the door window's width (~38% of the height); the nav bar's
   18px above and below and the cluster gap keep it. */
.logo { display: inline-flex; flex-shrink: 0; border-radius: var(--radius-sm); }
.logo img { display: block; width: auto; height: 44px; }
.site-nav__cluster { display: flex; align-items: center; gap: 40px; }
.site-nav__links { display: flex; align-items: center; gap: 32px; }
.site-nav__links a {
  position: relative; display: inline-block; padding-block: 6px;
  font-family: var(--font-sans); font-size: 15px; line-height: 1.5; font-weight: 500;
  color: var(--text-primary);
}
/* Small underline: peach on hover, action/primary for the current page. */
.site-nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 20px; height: 3px; border-radius: var(--radius-pill);
  background: var(--brand-peach);
  transform: translateX(-50%) scaleX(0);
  transition: transform var(--duration-fast) var(--ease-out);
}
.site-nav__links a:hover { color: var(--action-primary-hover); }
.site-nav__links a:hover::after { transform: translateX(-50%) scaleX(1); }
.site-nav__links a[aria-current="page"] { color: var(--text-primary); }
.site-nav__links a[aria-current="page"]::after { background: var(--action-primary); transform: translateX(-50%) scaleX(1); }

/* Order button with a round item-count badge (hidden while the cart is empty). */
.site-nav__order { gap: var(--space-2); min-height: 40px; padding: 10px 20px; font-size: 14px; }
.site-nav__order:has(.count-badge:not([hidden])) { padding-inline-end: 9px; }
.count-badge {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding-inline: 6px; border-radius: var(--radius-pill);
  background: var(--brand-butter); color: var(--text-primary);
  font-size: 12px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums;
}
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: -10px;
  border: 0; background: none; border-radius: var(--radius-sm);
  font-size: 20px; line-height: 1; font-weight: 700; color: var(--text-primary);
}
.site-nav__mobile-menu { border-top: 1px solid var(--border-default); padding-block: var(--space-3) var(--space-4); }
.site-nav__mobile-menu a {
  display: block; padding: var(--space-3) 0; border-bottom: 1px solid var(--border-default);
  font-size: var(--body-size); font-weight: 500; color: var(--text-primary);
}
@media (max-width: 767px) {
  .site-nav__bar { min-height: 61px; padding-block: 14px; gap: var(--space-3); }
  .site-nav__order { min-height: 0; padding: 8px 16px; font-size: 13px; }
  .site-nav__order:has(.count-badge:not([hidden])) { padding-inline-end: 16px; }
  .site-nav__links { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  /* Mobile: about 30px tall per the handoff, scaled down on narrow phones so the
     menu toggle and "Order (n)" still fit (27px at 375). Never below the 140px minimum width. */
  .site-nav .logo img { height: clamp(20.4px, calc((100vw - 190px) / 6.9), 30px); }
}
@media (min-width: 768px) {
  .site-nav__mobile-menu { display: none !important; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--brand-butter); color: var(--text-primary); padding-block: var(--space-8); }
.site-footer__cols { display: flex; gap: 120px; flex-wrap: wrap; }
.site-footer__brand { display: flex; flex-direction: column; gap: var(--space-3); max-width: 320px; }
.site-footer__brand .logo { align-self: flex-start; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__heading { color: var(--text-primary); }
.site-footer a { color: var(--text-primary); }
.site-footer a:hover { color: var(--text-primary); text-decoration: underline; }
.site-footer__rule { height: 1px; background: var(--border-strong); margin-block: var(--space-6) var(--space-5); border: 0; }
.site-footer :focus-visible { outline-color: var(--text-primary); }
@media (max-width: 1023px) { .site-footer__cols { gap: var(--space-8); } }
@media (max-width: 767px) {
  .site-footer { padding-block: 40px; }
  .site-footer__cols { flex-direction: column; gap: var(--space-3); }
  .site-footer__brand p, .site-footer__heading, .site-footer__extra { display: none; }
  .site-footer__col--pages { flex-direction: row; flex-wrap: wrap; gap: 0; }
  .site-footer__col--pages a + a::before { content: "·"; padding-inline: 6px; color: var(--text-primary); display: inline-block; }
  .site-footer__rule { display: none; }
}

/* =========================================================
   Order bar (menu, sticky, appears once the cart has items)
   ========================================================= */
.order-bar {
  position: sticky; bottom: 0; z-index: 15;
  background: var(--brand-butter); color: var(--text-primary);
  border-top: 1px solid var(--border-strong); box-shadow: 0 -8px 24px rgba(74, 46, 41, 0.08);
}
.order-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-4); }

/* =========================================================
   Cart drawer (panel over a cocoa 40% overlay)
   ========================================================= */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(480px, 100vw); height: 100%; max-width: 100vw; max-height: 100%;
  padding: 0; border: 0;
  background: var(--surface-card); color: var(--text-primary);
}
.drawer[open] { animation: drawer-in var(--duration-drawer) var(--ease-out); }
/* ::backdrop does not reliably inherit custom properties in older browsers,
   so the overlay value (cocoa at 40%) is repeated here. */
.drawer::backdrop { background: rgb(74 46 40 / 0.4); }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer__panel { display: flex; flex-direction: column; height: 100%; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) var(--space-5) var(--space-3); }
.drawer__close {
  width: 44px; height: 44px; margin-right: -10px; border: 0; background: none;
  border-radius: 50%; font-size: 20px; line-height: 1; color: var(--text-primary);
}
.drawer__close:hover { background: var(--surface-peach-soft); }
.drawer__body { flex: 1; overflow-y: auto; padding: 0 var(--space-5) var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.drawer__foot { border-top: 1px solid var(--border-default); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.drawer__empty { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; padding-top: var(--space-5); }
.add-more {
  align-self: flex-start; background: none; border: 0; padding: var(--space-1) 0;
  font-size: var(--body-sm-size); font-weight: 700; color: var(--action-primary);
}
.add-more:hover { text-decoration: underline; color: var(--action-primary-hover); }

/* Cart line item */
.cart-line {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: start;
  padding-block: var(--space-4); border-bottom: 1px solid var(--border-default);
}
.cart-line__thumb { width: 72px; height: 72px; border-radius: var(--radius-md); object-fit: cover; background: var(--surface-peach-soft); }
.cart-line__info { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.cart-line__meta { color: var(--text-muted); overflow-wrap: anywhere; }
.cart-line__remove {
  align-self: flex-start; background: none; border: 0; padding: 0;
  font-size: var(--body-sm-size); line-height: var(--body-sm-lh); font-weight: 500;
  color: var(--action-primary); text-decoration: underline; text-underline-offset: 2px;
}
.cart-line__remove:hover { color: var(--action-primary-hover); }
.cart-line__right { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); }
@media (max-width: 400px) {
  .cart-line { grid-template-columns: 56px 1fr; }
  .cart-line__thumb { width: 56px; height: 56px; }
  .cart-line__right { grid-column: 2; flex-direction: row-reverse; align-items: center; justify-content: space-between; }
}

/* =========================================================
   Order summary
   ========================================================= */
.order-summary {
  display: flex; flex-direction: column; gap: var(--space-4);
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--surface-card); border: 1px solid var(--border-default);
  box-shadow: var(--shadow-card);
}
.summary-lines { display: flex; flex-direction: column; gap: var(--space-3); }
.summary-line { display: flex; justify-content: space-between; gap: var(--space-4); }
.summary-line__name { color: var(--text-muted); }
.summary-line__price { font-weight: 500; white-space: nowrap; }
.summary-divider { height: 1px; background: var(--border-default); border: 0; margin: 0; }
.summary-total { display: flex; justify-content: space-between; gap: var(--space-4); }

/* =========================================================
   Date picker + Date cell  (State: Available / Selected / Disabled / Blocked)
   ========================================================= */
.date-field__button {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  max-width: 340px; text-align: left; cursor: pointer;
}
.date-field__button[data-empty="true"] .date-field__value { color: var(--text-muted); }
.date-picker {
  width: 340px; max-width: 100%;
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: 20px; border-radius: var(--radius-lg);
  background: var(--surface-card); border: 1px solid var(--border-default);
  box-shadow: var(--shadow-card);
}
.date-picker__head { display: flex; align-items: center; justify-content: space-between; }
.date-picker__nav { display: flex; gap: var(--space-1); }
.date-picker__arrow {
  width: 36px; height: 36px; border: 0; background: none; border-radius: 50%;
  font-size: var(--h4-size); line-height: 1; font-weight: 700; color: var(--action-primary);
}
.date-picker__arrow:hover:not(:disabled) { background: var(--surface-peach-soft); }
.date-picker__arrow:disabled { color: var(--action-disabled); cursor: not-allowed; }
.date-picker__grid { display: flex; flex-direction: column; gap: 3px; }
.date-picker__row { display: grid; grid-template-columns: repeat(7, 40px); gap: 3px; justify-content: space-between; }
.date-picker__weekday {
  height: 24px; display: grid; place-items: center;
  font-size: var(--body-sm-size); font-weight: 500; color: var(--text-muted);
}
.date-cell {
  width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; background: none;
  font-size: var(--body-sm-size); line-height: 1.5; font-weight: 500; color: var(--text-primary);
}
.date-cell:hover:not([aria-disabled="true"]) { background: var(--surface-peach-soft); }
.date-cell[aria-selected="true"] { background: var(--action-primary); color: var(--text-on-action); }
.date-cell--disabled { color: var(--text-muted); opacity: 0.5; cursor: not-allowed; }
.date-cell--blocked { color: var(--text-muted); text-decoration: line-through; cursor: not-allowed; }
@media (max-width: 400px) {
  .date-picker { padding: var(--space-4); }
  .date-picker__row { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
  .date-cell { width: 100%; aspect-ratio: 1; height: auto; }
}

/* =========================================================
   Newsletter block
   ========================================================= */
.newsletter {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-4); text-align: center;
  padding: 56px; border-radius: var(--radius-xl); background: var(--surface-peach-soft);
}
.newsletter__form { display: flex; gap: var(--space-3); width: 100%; max-width: 509px; margin-top: var(--space-2); }
.newsletter__input {
  flex: 1; min-width: 0;
  border: 1px solid var(--border-default); background: var(--surface-card);
  border-radius: var(--radius-pill); padding: 14px 20px;
  font-size: var(--body-size); line-height: var(--body-lh);
}
.newsletter__input::placeholder { color: var(--text-muted); }
.newsletter__input:focus-visible { outline-offset: 0; }
@media (max-width: 767px) {
  .newsletter { padding: var(--space-6) var(--space-5); align-items: stretch; text-align: left; }
  .newsletter__form { flex-direction: column; }
}

/* =========================================================
   Confirmation card
   ========================================================= */
.confirmation-card {
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
  width: 100%; max-width: 640px; margin-inline: auto;
  padding: var(--space-7); border-radius: var(--radius-xl);
  background: var(--surface-card); border: 1px solid var(--border-default);
  box-shadow: var(--shadow-card);
}
.confirmation-card__icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--feedback-success); color: var(--text-on-action);
  font-family: var(--font-serif); font-size: 24px; line-height: 1;
}
.confirmation-card__ref { display: flex; align-items: center; justify-content: center; gap: var(--space-2); flex-wrap: wrap; }
.ref-chip {
  display: inline-flex; padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--brand-butter);
  font-size: var(--button-size); line-height: var(--button-lh); font-weight: 700;
}
@media (max-width: 767px) { .confirmation-card { padding: var(--space-6) var(--space-5); } }

/* =========================================================
   Handwritten note
   ========================================================= */
.hand-note { display: inline-flex; align-items: center; gap: 6px; }

/* =========================================================
   Tick list, stage chips, policy tables
   ========================================================= */
.tick-list { display: flex; flex-direction: column; gap: var(--space-2); }
.tick-list li { display: flex; gap: var(--space-2); }
.tick-list li::before { content: "✓"; color: var(--action-primary); font-weight: 700; }

.stages { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.stage {
  display: inline-flex; padding: 6px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--surface-card);
  font-size: var(--body-sm-size); font-weight: 500;
}
.stage-arrow { color: var(--text-muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-card); }
.policy-table { width: 100%; min-width: 480px; font-size: var(--body-sm-size); line-height: var(--body-sm-lh); text-align: left; }
.policy-table th { font-weight: 700; background: var(--surface-peach-soft); }
.policy-table th, .policy-table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-default); vertical-align: top; }
.policy-table tr:last-child td { border-bottom: 0; }

/* =========================================================
   Photo tile: a photo on an offset colour tile
   ========================================================= */
.photo-tile { position: relative; isolation: isolate; overflow: visible; background: none; }
.photo-tile img { border-radius: var(--radius-lg); }
.photo-tile::before {
  content: ""; position: absolute; z-index: -1;
  inset: 24px -24px -24px 24px; border-radius: var(--radius-xl);
  background: var(--tile, var(--brand-butter));
}
.photo-tile--left::before { inset: 24px 24px -24px -24px; }
.photo-tile--butter { --tile: var(--brand-butter); }
.photo-tile--blush { --tile: var(--brand-blush); }
.photo-tile--peach { --tile: var(--brand-peach); }
@media (max-width: 1023px) {
  .photo-tile::before { inset: 14px -14px -14px 14px; }
  .photo-tile--left::before { inset: 14px 14px -14px -14px; }
}
@media (max-width: 767px) {
  .photo-tile { margin-inline-end: 12px; }
  .photo-tile--left { margin-inline: 12px 0; }
  .photo-tile::before { inset: 12px -12px -12px 12px; }
  .photo-tile--left::before { inset: 12px 12px -12px -12px; }
}
