/* ═══════════════════════════════════════════════════════════════════════════
   ST. ANDREW ORTHODOX CHURCH, PENSACOLA
   store.css: everything specific to /bake-sale/ (Sweet Shop & Freezer Sale).
   Loads AFTER styles.css and reuses its tokens, .btn, .section, .eyebrow,
   .section-title and breakpoints (600 / 880 / 920). Nothing in here is
   needed by any other page.

   Contrast (WCAG AA, computed 2026-09-04, not eyeballed):
     navy-ink on gold (btn-primary) 5.57 · white on navy 11.46 · gold-light on navy 6.04
     text-body on white 13.04 / ivory 12.09 / cream 11.41 · text-muted on white 6.29 / ivory 5.83 / cream 5.50
     gold-dark labels on white 5.90 / ivory 5.47 / cream 5.16 · burgundy on white 10.20 / ivory 9.46
     navy price on white 11.46 · navy on gold-pale 8.98 · text-dark on gold-pale 13.74
     navy-ink badge on gold-light 8.70 · UI border #8b7748 on white 4.35 / ivory 4.03 / cream 3.80 (non-text floor 3:1)
     Focus rings: navy on white 11.46 (the site's gold ring is 2.96 on white, so store controls use navy on light,
     gold-light on navy 6.04).
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --store-border: #8b7748;
  --store-error: #7a1f2b;
  --store-error-bg: #fbeeee;
  --store-fab-h: 60px;
  --store-drawer-w: 440px;
}

/* ────────────────────────── UTILITIES ────────────────────────── */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.link-button {
  background: none;
  border: 0;
  padding: 0 0.25rem;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--burgundy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}
.link-button:hover { color: var(--gold-dark); }

/* Store controls get a navy ring on light backgrounds (the site's gold ring measures 2.96:1 on white). */
.qty__btn:focus-visible,
.qty__input:focus-visible,
.product__add:focus-visible,
.field__input:focus-visible,
.link-button:focus-visible,
.cart-line__remove:focus-visible,
#cart-checkout:focus-visible,
#checkout-continue:focus-visible,
#success-done:focus-visible,
.radio:focus-within {
  outline: 2px solid var(--navy-deep);
  outline-offset: 2px;
}
.cart-fab:focus-visible,
.cart-drawer__close:focus-visible,
.cart-drawer:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ────────────────────────── HERO ────────────────────────── */
.store-hero {
  overflow: hidden;
  padding-top: clamp(2.75rem, 5.5vw, 4.5rem);
  padding-bottom: clamp(4.75rem, 8vw, 6.75rem);
}
/* Atmosphere: two soft gold glows plus a fine dot grid, all CSS, no image. */
.store-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 88% 18%, rgba(216, 185, 107, 0.18), transparent 55%),
    radial-gradient(circle at 8% 95%, rgba(216, 185, 107, 0.10), transparent 45%),
    radial-gradient(rgba(216, 185, 107, 0.11) 1px, transparent 1.6px);
  background-size: auto, auto, 22px 22px;
}
.store-hero__inner { position: relative; z-index: 1; }
.store-hero__eyebrow { letter-spacing: 0.18em; margin-bottom: 1.25rem; }
.store-hero__title { margin-bottom: 1.25rem; }
.store-hero__intro { margin-bottom: 2rem; max-width: 46rem; }
.store-hero__intro q, .store-hero__intro em { color: var(--gold-pale); }
.store-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* styles.css paints every link inside .section--navy gold-light, which would put pale gold text on the
   gold button (about 1.7:1). Restore the button's navy-ink label here (5.57:1 on gold, 8.70 on hover). */
.store-hero .btn-primary,
.store-hero .btn-primary:hover { color: var(--navy-ink); text-decoration: none; }
@media (max-width: 520px) {
  .store-hero__eyebrow { font-size: 0.72rem; letter-spacing: 0.14em; }
  .store-hero__actions .btn { flex: 1 1 100%; white-space: normal; }
}

/* ────────────────────────── SALE INFO PANEL (overlaps the hero edge) ────────────────────────── */
.store-shop { padding-top: 0; }
.sale-info {
  position: relative;
  z-index: 2;
  margin-top: -3rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.sale-info__grid {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
}
.sale-info__cell {
  padding: 1.25rem 1.4rem;
  border-top: 1px dashed var(--rule);
}
.sale-info__cell:first-child { border-top: 0; }
.sale-info__label {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.45rem;
}
.sale-info__value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-dark);
  margin: 0;
  overflow-wrap: anywhere;
}
.sale-info__value a { color: var(--burgundy); }
.sale-info__note {
  display: block;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.5;
}
@media (min-width: 600px) {
  .sale-info__grid { grid-template-columns: 1fr 1fr; }
  .sale-info__cell { border-top: 0; border-left: 1px dashed var(--rule); }
  .sale-info__cell:nth-child(odd) { border-left: 0; }
  .sale-info__cell:nth-child(n+3) { border-top: 1px dashed var(--rule); }
}
@media (min-width: 880px) {
  /* Measured at 1280: the deadline label needs ~185px at this size, the email ~165px; these
     proportions keep every label on one line so the four values share a baseline. */
  .sale-info__grid { grid-template-columns: 1.15fr 1.3fr 1.25fr 1fr; }
  .sale-info__cell,
  .sale-info__cell:nth-child(n+3) { border-top: 0; border-left: 1px dashed var(--rule); }
  .sale-info__cell:first-child { border-left: 0; }
  .sale-info__label { font-size: 0.66rem; letter-spacing: 0.14em; white-space: nowrap; }
  .sale-info__value { font-size: 1.08rem; }
}

/* ────────────────────────── PAGE BANNER (closed / unavailable) ────────────────────────── */
.store-banner {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.55;
}
.store-banner strong { color: var(--navy-deep); }

/* ────────────────────────── PRODUCT GROUPS ────────────────────────── */
.store-group { margin-top: clamp(2.5rem, 5vw, 4rem); }
.store-group--frozen {
  position: relative;
  padding-top: clamp(2rem, 4vw, 3rem);
}
.store-group--frozen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}
.store-group__head { margin-bottom: 0.5rem; }
.store-group__title { margin-bottom: 0.5rem; }
.store-group__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-top: 1rem;
}
@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

/* ────────────────────────── PRODUCT CARD ────────────────────────── */
.product {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.product:hover { box-shadow: var(--shadow-md); }
/* Hover: the photo eases in a touch (same feel as the therapist portrait on totalbodyflowmassage.com) instead of
   the card jumping. overflow:hidden on .product__media keeps the enlarged image inside its 4:3 box. */
.product:hover .product__media img, .product:focus-within .product__media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .product__media img { transition: none; } }
.product--featured { border-top: 4px solid var(--gold); }

.product__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ivory-dim);
  flex-shrink: 0;
}
/* The img lives inside a <picture> whose height is auto, so a percentage height on the img would
   resolve to auto and the photo would render at its native ratio (a beige strip under every 3:2
   photo). Absolute positioning resolves the 100% against the 4:3 box itself. */
.product__media picture { position: static; }
.product__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Matches the therapist-portrait zoom on totalbodyflowmassage.com exactly: 0.8s on a plain ease curve
     (cubic-bezier(0.25, 0.1, 0.25, 1)). An "expo out" curve here (0.22, 1, 0.36, 1) put almost the whole
     movement into the first fraction of a second, which reads as a jerk rather than a glide. */
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
  object-fit: cover;
  object-position: center;
}
/* The pastitsio photo is a wide 900x345 banner; its subject sits slightly right of center. */
.product__media--pastitsio img { object-position: 54% center; }

.product__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.15rem 1.25rem 1.3rem;
}
.product__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-dark);
  margin: 0 0 0.45rem;
  text-wrap: balance;
}
/* "size ........ price" menu-card row: the dotted leader keeps prices aligned right whatever the name length. */
.product__meta {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
}
.product__size {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  white-space: nowrap;
}
.product__leader {
  flex: 1 1 auto;
  border-bottom: 1px dotted rgba(122, 97, 34, 0.5);
  transform: translateY(-0.3em);
  min-width: 1rem;
}
.product__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy-deep);
  white-space: nowrap;
  line-height: 1;
}
.product__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-body);
  margin: 0 0 1.1rem;
  flex: 1 1 auto;
}

.product__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

/* Quantity stepper: 44px targets, visible boundary, no native spinners. */
.qty {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  border: 1px solid var(--store-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}
.qty__btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory-dim);
  border: 0;
  color: var(--navy-deep);
  transition: background 0.15s, color 0.15s;
}
.qty__btn:hover { background: var(--gold-pale); }
.qty__btn svg { display: block; }
.qty__input {
  width: 3rem;
  height: 44px;
  border: 0;
  border-left: 1px solid var(--store-border);
  border-right: 1px solid var(--store-border);
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  background: #fff;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus-visible { outline-offset: -2px; }

.product__add {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
}
.product__add.is-added { background: var(--navy-deep); color: #fff; }
.product__add.is-added:hover { background: var(--navy-deep); color: #fff; transform: none; }

/* Closed / disabled controls */
.qty__btn[disabled], .product__add[disabled], .qty__input[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}
.product__add[disabled]:hover { background: var(--gold); color: var(--navy-ink); transform: none; box-shadow: none; }
.qty__btn[disabled]:hover { background: var(--ivory-dim); }

@media (max-width: 380px) {
  .product__actions { flex-wrap: wrap; }
  .product__add { flex-basis: 100%; }
}

/* ────────────────────────── OTHER WAYS TO ORDER (deliberately quiet) ────────────────────────── */
.other-ways { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.other-ways__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.35rem;
}
.other-ways__lede {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}
.other-ways__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 2.5rem;
}
@media (min-width: 600px) { .other-ways__grid { grid-template-columns: 1fr 1fr; } }
.other-ways__label {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--rule);
}
.other-ways__col p { font-size: 0.95rem; line-height: 1.6; color: var(--text-body); margin: 0; }

/* ────────────────────────── FLOATING CART BUTTON ────────────────────────── */
.cart-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 56px;
  padding: 0 1.35rem 0 1.15rem;
  background: var(--navy-deep);
  color: var(--gold-light);
  border: 1px solid rgba(216, 185, 107, 0.45);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(12, 31, 58, 0.30), 0 2px 6px rgba(12, 31, 58, 0.18);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
}
.cart-fab:hover { background: var(--navy-mid); color: #fff; transform: translateY(-1px); }
.cart-fab__icon { flex-shrink: 0; }
.cart-fab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: var(--gold-light);
  color: var(--navy-ink);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}
.cart-fab__total { display: none; }
.cart-fab.is-bumped .cart-fab__count { animation: fabBump 0.35s ease-out; }
@keyframes fabBump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

@media (max-width: 599px) {
  .cart-fab {
    left: 0; right: 0; bottom: 0;
    min-height: var(--store-fab-h);
    padding: 0 1.25rem;
    padding-bottom: env(safe-area-inset-bottom, 0);
    border-radius: 0;
    border: 0;
    border-top: 1px solid rgba(216, 185, 107, 0.45);
    justify-content: flex-start;
    box-shadow: 0 -6px 20px rgba(12, 31, 58, 0.22);
  }
  .cart-fab:hover { transform: none; }
  .cart-fab__total { display: inline-block; margin-left: auto; color: #fff; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
  /* Keep the bar from covering the footer's last line. */
  .site-footer { padding-bottom: calc(1.5rem + var(--store-fab-h)); }
}

/* ────────────────────────── BACKDROP + DRAWER ────────────────────────── */
body.cart-open { overflow: hidden; }

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 31, 58, 0.55);
  opacity: 0;
  transition: opacity 0.25s;
}
.cart-backdrop.is-open { opacity: 1; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 210;
  width: min(var(--store-drawer-w), 100%);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  box-shadow: -12px 0 40px rgba(12, 31, 58, 0.25);
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer[hidden] { display: none; }

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem 0.9rem 1.35rem;
  background: var(--navy-deep);
  color: #fff;
  border-bottom: 1px solid rgba(216, 185, 107, 0.45);
  flex-shrink: 0;
}
.cart-drawer__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}
.cart-drawer__close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(216, 185, 107, 0.45);
  border-radius: var(--radius-sm);
  color: var(--gold-light);
  transition: background 0.15s, color 0.15s;
}
.cart-drawer__close:hover { background: rgba(216, 185, 107, 0.16); color: #fff; }

.cart-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.1rem 1.35rem 1.5rem;
}
.cart-drawer__foot {
  flex-shrink: 0;
  padding: 0.9rem 1.35rem calc(0.9rem + env(safe-area-inset-bottom, 0));
  background: #fff;
  border-top: 1px solid var(--rule);
}
.cart-drawer__foot[hidden] { display: none; }

@media (max-width: 599px) {
  .cart-drawer {
    left: 0;
    width: 100%;
    box-shadow: none;
    transform: translateY(100%);
  }
  .cart-drawer.is-open { transform: translateY(0); }
}

/* ────────────────────────── CART LINES ────────────────────────── */
.cart-step__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.9rem;
}
.cart-empty {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  text-align: center;
  padding: 2.5rem 1rem;
  margin: 0;
}
.cart-empty[hidden] { display: none; }
.cart-lines { list-style: none; padding: 0; margin: 0; }
.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.6rem 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px dashed var(--rule);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line__thumb {
  width: 64px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--rule);
  grid-row: 1 / span 2;
  align-self: start;
}
.cart-line__info { min-width: 0; }
.cart-line__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-dark);
  margin: 0 0 0.15rem;
}
.cart-line__meta { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.cart-line__controls {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.cart-line__controls .qty__input { width: 2.6rem; }
.cart-line__total {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-left: auto;
  white-space: nowrap;
}
.cart-line__remove {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
}
.cart-line__remove:hover { color: var(--burgundy); background: var(--ivory-dim); }
.cart-fineprint { font-size: 0.8rem; color: var(--text-muted); margin: 0.9rem 0 0; }

/* ────────────────────────── DRAWER FOOTER ────────────────────────── */
.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.cart-total__label {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.cart-total__value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1;
}
.cart-foot__note {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.5;
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.9rem;
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
}
.cart-foot__note[hidden] { display: none; }
.cart-foot__back { display: block; margin: 0.35rem auto 0; }
.cart-foot__back[hidden] { display: none; }
#cart-checkout[hidden] { display: none; }
#cart-checkout[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ────────────────────────── CHECKOUT FORM ────────────────────────── */
.checkout-notice {
  padding: 0.9rem 1rem;
  margin: 0 0 1.1rem;
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.55;
}
.checkout-notice[hidden] { display: none; }
.checkout-notice p { margin: 0 0 0.5rem; color: var(--text-dark); }
.checkout-notice p:last-child { margin-bottom: 0; }
.checkout-notice a { color: var(--burgundy); font-weight: 600; }
.checkout-notice .link-button { min-height: 36px; }
.checkout-notice--error { background: var(--store-error-bg); border-left-color: var(--store-error); }
.checkout-notice.is-attention { animation: noticePulse 0.7s ease-out; }
@keyframes noticePulse {
  0% { box-shadow: 0 0 0 0 rgba(180, 145, 74, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(180, 145, 74, 0); }
}

.field { margin: 0 0 1rem; border: 0; padding: 0; min-width: 0; }
.field__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}
.field__input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: #fff;
  border: 1px solid var(--store-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}
.field__input:hover { border-color: var(--navy-deep); }
.field__input[aria-invalid="true"] { border: 2px solid var(--store-error); }
.field__input[readonly] { background: var(--ivory-dim); color: var(--text-body); }
.field__hint { font-size: 0.82rem; color: var(--text-muted); margin: 0.35rem 0 0; }
.field__error {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--store-error);
  margin: 0.4rem 0 0;
  line-height: 1.4;
}
.field__error[hidden] { display: none; }
.field--radios legend { padding: 0; margin-bottom: 0.5rem; }
.field--radios.is-invalid .radio { border-color: var(--store-error); }

.radio {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 56px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.5rem;
  background: #fff;
  border: 1px solid var(--store-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.radio:hover { border-color: var(--navy-deep); }
.radio:has(.radio__input:checked) { border-color: var(--navy-deep); background: var(--gold-pale); box-shadow: inset 0 0 0 1px var(--navy-deep); }
.radio__input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--navy-deep); }
.radio__text { display: flex; flex-direction: column; line-height: 1.3; }
.radio__day { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); }
.radio__hours { font-size: 0.84rem; color: var(--text-muted); }
.radio[data-disabled="true"] { opacity: 0.7; cursor: default; }

.checkout-form__address { font-size: 0.86rem; color: var(--text-muted); margin: 0.25rem 0 1rem; line-height: 1.5; }
.checkout-continue { white-space: normal; line-height: 1.25; }
.checkout-continue[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.checkout-form[hidden] { display: none; }

/* ────────────────────────── PAYMENT PANEL ────────────────────────── */
.payment-panel {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.payment-panel[hidden] { display: none; }
.payment-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}
.payment-panel__label {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0;
}
.payment-status {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-body);
  margin: 0 0 0.9rem;
  min-height: 1.4em;
}
.payment-status.is-error { color: var(--store-error); font-weight: 600; }
.payment-status:empty { display: none; }
#paypal-button-container { min-height: 0; }
#paypal-button-container:empty { display: none; }

/* ────────────────────────── SUCCESS VIEW ────────────────────────── */
.cart-success__eyebrow {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0.25rem 0 0.35rem;
}
.cart-success__title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.75rem;
}
.cart-success__number {
  font-size: 0.95rem;
  color: var(--text-body);
  margin: 0 0 1.1rem;
  padding: 0.8rem 1rem;
  background: #fff;
  border: 1px dashed var(--store-border);
  border-radius: var(--radius-sm);
}
.cart-success__number strong {
  display: block;
  font-family: var(--font-body);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy-deep);
  margin-top: 0.15rem;
}
.cart-success__items { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.cart-success__items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 0.95rem;
  color: var(--text-body);
}
.cart-success__items li span:last-child { font-weight: 600; color: var(--navy-deep); white-space: nowrap; }
.cart-success__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding-top: 0.5rem;
}
.cart-success__total span { font-family: var(--font-accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dark); }
.cart-success__total strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--navy-deep); }
.cart-success__pickup {
  padding: 0.9rem 1rem;
  margin-bottom: 1.1rem;
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
}
.cart-success__label { font-family: var(--font-accent); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dark); margin: 0 0 0.35rem; }
.cart-success__when { font-weight: 600; color: var(--text-dark); margin: 0 0 0.4rem; }
.cart-success__where { font-size: 0.92rem; color: var(--text-body); line-height: 1.5; margin: 0; }
.cart-success__note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-body);
  margin: 0 0 1.25rem;
  line-height: 1.45;
}

/* ────────────────────────── MOTION + PRINT ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cart-drawer, .cart-backdrop, .product, .cart-fab { transition: none; }
  .cart-fab.is-bumped .cart-fab__count, .checkout-notice.is-attention { animation: none; }
}
@media print {
  .cart-fab, .cart-backdrop, .cart-drawer, .store-hero::before { display: none !important; }
  .product { break-inside: avoid; }
}
