/* Fiore's Roses.
 * Mobile-first: base rules are for phones; min-width queries add tablet (640/768px) and
 * desktop (960px+). Brand colors and fonts are the custom properties in :root.
 */

/* Fonts are served from this site (Latin subsets from Google Fonts, SIL Open Font License; see fonts/OFL.txt).
   Characters outside the range fall back to the system font stack below. */
@font-face { font-family: "Sorts Mill Goudy"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/sorts-mill-goudy-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sorts Mill Goudy"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/sorts-mill-goudy-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/alegreya-sans-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/alegreya-sans-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/alegreya-sans-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/alegreya-sans-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #fbf6ee;
  --paper-2: #f4eadb;
  --paper-3: #eadcc6;
  --kraft: #dcc29f;
  --card: #fffdf9;
  --ink: #2a201b;
  --ink-2: #5b4b41;
  --ink-3: #85736a;
  --rose: #b74554;          /* from the FIORE'S ROSES wordmark */
  --rose-deep: #943442;
  --rose-tint: #f7e4e3;
  --sage: #55694a;
  --sage-tint: #e3eadb;
  --line: rgba(42, 32, 27, 0.11);
  --line-strong: rgba(42, 32, 27, 0.22);
  --shadow-sm: 0 1px 2px rgba(42, 32, 27, 0.05), 0 4px 12px -6px rgba(42, 32, 27, 0.14);
  --shadow-md: 0 18px 40px -22px rgba(42, 32, 27, 0.4);
  --shadow-lg: 0 30px 80px -30px rgba(42, 32, 27, 0.55);
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --font-display: "Sorts Mill Goudy", "Goudy Old Style", "Iowan Old Style", Georgia, serif; /* one weight + italic */
  --font-body: "Alegreya Sans", "Gill Sans", "Segoe UI", system-ui, sans-serif;
  --gutter: 20px;
  --maxw: 1200px;
  --header-h: 60px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
@media (max-width: 359px) { :root { --gutter: 16px; } }
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 960px) { :root { --header-h: 76px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-gutter: stable;
}
html.modal-open { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }
::selection { background: var(--rose-tint); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--rose); outline-offset: 3px; }
[data-quiet-focus]:focus, [data-quiet-focus]:focus-visible { outline: none; } /* focus returned after a tap (js/app.js) */
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container {
  width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
/* Paint the phone's status-bar area so content never shows through above the sticky header. */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31;
  background: var(--paper);
}
.icon {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* Rose line drawing from the logo. Size it with --w. */
.rose-mark { --w: 100px; position: relative; display: block; flex: none; width: var(--w); max-width: 100%; aspect-ratio: 324 / 374; }
.rose-mark img { width: 100%; height: 100%; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .15s var(--ease-out);
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn .icon { width: 18px; height: 18px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--rose); color: #fff; box-shadow: 0 10px 22px -12px rgba(183, 69, 84, 0.85); }
.btn-primary:hover:not(:disabled) { background: var(--rose-deep); }
.btn-primary:disabled { background: #d3c4ba; box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--rose); background: var(--rose); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #120d0b; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  transition: background-color .2s;
}
.icon-btn:hover { background: rgba(42, 32, 27, 0.06); }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--rose-deep); font-size: 15.5px; font-weight: 600; text-decoration: none;
}
.text-link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Prototype bar ---------- */
.proto-bar { background: var(--ink); color: #eadfcf; font-size: 14px; line-height: 1.3; }
.proto-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; min-height: 42px; padding-block: 6px; }
.proto-bar strong { color: #fff; font-weight: 600; letter-spacing: 0.02em; }
.proto-seg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; max-width: 100%; }
.proto-seg-label { margin-right: 4px; color: #cdbfae; }
.proto-seg button {
  min-height: 30px; padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
  background: transparent; color: #eadfcf; font-size: 13.5px; font-weight: 600;
}
.proto-seg button[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--ink); }
.proto-seg button:focus-visible { outline-color: #fff; }
@media (max-width: 599px) { .hide-sm { display: none; } }
@media (max-width: 359px) { .proto-seg-label { display: none; } }
/* No menu style to pick on phones (always the plain cards) or while Storybook is switched off. */
@media (max-width: 639px) { .proto-seg[aria-label="Preview the menu style"] { display: none; } }
[data-storybook="off"] .proto-seg[aria-label="Preview the menu style"] { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s;
}
/* Frosted glass only on computer screens: re-blurring the page under a sticky header on every
   scroll frame is too much work for budget phones, which get the solid fill above. */
@media (min-width: 960px) {
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-header { background: rgba(251, 246, 238, 0.8); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); }
  }
}
.site-header.is-stuck { border-bottom-color: var(--line); }
/* Equal outer columns keep the wordmark centered even when the cart button widens to show the flower. */
.header-row { display: grid; grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr); align-items: center; gap: 8px; height: var(--header-h); }
.menu-btn { justify-self: start; margin-left: -10px; }
.book-btn { display: none; } /* the Classic/Storybook switch: computer screens only (css/menu-book.css) */
.wordmark {
  justify-self: center; padding: 8px 0;
  font-family: var(--font-display); font-size: clamp(17px, 5.4vw, 21px); font-weight: 450; line-height: 1;
  letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap;
  color: var(--rose); text-decoration: none;
}
.nav-desktop { display: none; }
.cart-btn {
  position: relative; justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 44px; min-width: 44px; padding: 0 10px; margin-right: -10px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  font-size: 16px; font-weight: 600;
  transition: background-color .2s, border-color .2s;
}
.cart-btn:hover { background: rgba(42, 32, 27, 0.06); }
.cart-btn-label { display: none; }
/* Item count on a small red flower (#i-cart-rose), beside the bag. */
.cart-count {
  position: relative; flex: none;
  width: 27px; height: 27px;
}
.cart-rose { position: absolute; inset: 0; width: 100%; height: 100%; }
.cart-count-num {
  position: absolute; left: 0; right: 0; top: 7.5px;
  color: #fff; font-size: 11px; font-weight: 700; line-height: 13px; text-align: center;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.3); } }

/* The loaf or muffin that hops into the cart; the shadow keeps it visible over the red add button. */
.fly-bread {
  position: fixed; z-index: 70; display: grid; place-items: center;
  width: 44px; height: 44px; background: none;
  pointer-events: none; will-change: transform;
}
.fly-bread .loaf { width: 40px; height: 40px; filter: drop-shadow(0 2px 3px rgba(42, 32, 27, 0.3)); }
.cart-btn .icon.catch { animation: catch .5s var(--ease-out); }
@keyframes catch {
  30% { transform: scale(1.28) rotate(-10deg); }
  60% { transform: scale(0.94) rotate(5deg); }
}

@media (min-width: 960px) {
  .header-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; }
  .menu-btn { display: none; }
  .wordmark { justify-self: start; font-size: 24px; }
  .nav-desktop { display: flex; justify-content: center; gap: clamp(16px, 2.4vw, 34px); }
  .nav-desktop a { position: relative; padding: 10px 2px; color: var(--ink-2); font-size: 16px; font-weight: 500; text-decoration: none; transition: color .2s; }
  .nav-desktop a::after {
    content: ""; position: absolute; left: 2px; right: 2px; bottom: 4px; height: 1.5px;
    background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
  }
  .nav-desktop a:hover { color: var(--ink); }
  .nav-desktop a:hover::after { transform: scaleX(1); }
  /* The bag in a pill outline that widens to fit the count. */
  .cart-btn { margin-right: 0; padding: 0 9px; gap: 6px; border: 1.5px solid var(--line-strong); }
  .cart-btn:hover { border-color: var(--ink); background: transparent; }
}

/* ---------- Status pill (preorder window) ---------- */
.status-pill {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow-sm);
  color: var(--ink-2); font-size: 14.5px; line-height: 1.35;
}
.status-pill--flat { justify-self: start; background: var(--paper); box-shadow: none; }
.status-pill:has(.status-icon) { padding-left: 9px; }
/* Open: the spoon stirs and lifts out of the bowl. Closed: steam rises off the loaf. */
.status-icon { display: grid; flex: none; width: 24px; height: 24px; }
.status-icon .si { grid-area: 1 / 1; width: 100%; height: 100%; overflow: visible; }
.status-icon .si--closed, [data-state="closed"] .status-icon .si--open { display: none; }
[data-state="closed"] .status-icon .si--closed { display: block; }
.status-icon .steam { transform-box: fill-box; transform-origin: 50% 100%; }
.status-icon .spoon { transform-box: view-box; transform-origin: 13px 22px; /* the scoop's center */ animation: spoon-lift 3.8s ease-in-out infinite; }
.status-icon .steam { animation: steam-rise 2.6s ease-in-out infinite; }
.status-icon .steam:nth-child(2) { animation-delay: .55s; }
.status-icon .steam:nth-child(3) { animation-delay: 1.1s; }
@keyframes spoon-lift {
  0% { transform: none; }
  10% { transform: rotate(-7deg); }
  20% { transform: rotate(5deg); }
  30% { transform: none; }
  48%, 74% { transform: translate(0, -9px) rotate(15deg); }
  92%, 100% { transform: none; }
}
@keyframes steam-rise {
  0% { opacity: 0; transform: translateY(2.5px); }
  35% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(-2.5px); }
}
@media (prefers-reduced-motion: reduce) {
  .status-icon .spoon, .status-icon .steam { animation: none; }
}
.status-label { color: var(--ink); font-weight: 600; }
.status-sub:empty { display: none; }

/* ---------- Preorder countdown (flip clock) ---------- */
.countdown {
  display: grid; justify-items: center; text-align: center;
  padding: 4px 0 40px; margin-bottom: 36px; border-bottom: 1px solid var(--line);
}
/* The label and unit words sit above the cards (z-index) so they can tuck into the cards' empty space. */
.cd-label {
  position: relative; z-index: 3;
  color: var(--rose); font-family: var(--font-display); font-size: clamp(21px, 5.6vw, 30px); font-weight: 400;
  line-height: 1.15; letter-spacing: -0.01em;
}
.flipclock {
  --h: clamp(84px, 24vw, 178px); /* height of each flip card */
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2.6vw, 22px);
  /* Measured so the gap above the digits matches the gap below them at every width. */
  width: 100%; max-width: 780px; margin-top: calc(var(--h) * -0.043 - 4.7px);
}
.flip-unit { display: grid; }
.flip {
  position: relative; height: var(--h); perspective: calc(var(--h) * 4);
  color: var(--rose); font-family: var(--font-display); font-size: calc(var(--h) * 0.66); font-weight: 380;
  font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.03em;
}
/* Halves are filled with the page color so a folding half hides the digit behind it. */
.flip .half { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: var(--paper); }
.flip .top { top: 0; }
.flip .bottom { bottom: 0; }
.flip .num { position: absolute; left: 0; right: 0; height: var(--h); line-height: var(--h); text-align: center; }
.flip .top .num { top: 0; }
.flip .bottom .num { bottom: 0; }
.flap-top, .flap-bottom { z-index: 2; visibility: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flap-top { transform-origin: 50% 100%; }
.flap-bottom { transform-origin: 50% 0; transform: rotateX(90deg); }
.flip.is-flipping .flap-top { visibility: visible; animation: flap-top .3s ease-in forwards; }
.flip.is-flipping .flap-bottom { visibility: visible; animation: flap-bottom .3s ease-out .3s forwards; }
@keyframes flap-top { from { transform: rotateX(0); } to { transform: rotateX(-90deg); } }
@keyframes flap-bottom { from { transform: rotateX(90deg); } to { transform: rotateX(0); } }
.flip-label {
  position: relative; z-index: 3; margin-top: calc(var(--h) * -0.2);
  color: var(--ink-2); font-family: var(--font-display); font-size: clamp(14px, 3.7vw, 19px); font-style: italic; font-weight: 400;
  line-height: 1.2;
}
.cd-sub { margin-top: 18px; color: var(--ink); font-size: clamp(17px, 4.6vw, 23px); font-weight: 600; line-height: 1.35; text-wrap: balance; }
.cd-window { max-width: 44ch; margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.countdown .btn { margin-top: 20px; }
@media (min-width: 960px) {
  .countdown { padding: 8px 0 64px; margin-bottom: 56px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 24px 0 44px; }
.hero-grid { display: grid; gap: 28px; }
.hero-title {
  margin-top: 0;
  font-size: clamp(2.5rem, 10.4vw, 4.4rem); font-weight: 340; line-height: 1.04; letter-spacing: -0.015em;
}
.hero-title em { color: var(--rose); font-style: italic; font-weight: 300; }
.hero-lede { max-width: 40ch; margin-top: 16px; color: var(--ink-2); font-size: 18px; }
.hero-actions { display: grid; gap: 10px; margin-top: 26px; }
.hero-media { position: relative; }
.hero-photo { position: relative; aspect-ratio: 1073 / 1110; max-width: 100%; overflow: hidden; border-radius: var(--r-lg); background: var(--paper-3); box-shadow: var(--shadow-md); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-badge {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 253, 249, 0.93); box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 600;
}
.hero-badge em { color: var(--rose); font-family: var(--font-display); font-size: 14.5px; font-style: italic; font-weight: 400; }
.hero-rose { display: none; }
@media (min-width: 600px) {
  .hero-actions { display: flex; flex-wrap: wrap; }
  .hero-media { width: 100%; max-width: 560px; margin-inline: auto; }
}
@media (min-width: 960px) {
  .hero { padding: 48px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 6vw, 88px); }
  .hero-media { max-width: none; }
  .hero-badge { left: auto; right: 16px; bottom: 16px; }
  .hero-rose { display: block; --w: clamp(110px, 10vw, 150px); margin: 28px auto -12px; transform: rotate(-8deg); }
}

/* ---------- Section scaffolding ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 28px; }
.eyebrow { color: var(--rose); font-family: var(--font-display); font-size: 18px; font-style: italic; font-weight: 400; line-height: 1.2; }
.section-title { margin-top: 10px; font-size: clamp(2rem, 7.5vw, 3.2rem); font-weight: 360; line-height: 1.06; letter-spacing: -0.025em; }
.section-title:first-child { margin-top: 0; }
.section-lede { margin-top: 14px; color: var(--ink-2); font-size: 17.5px; }
.section-lede:empty { display: none; }
@media (min-width: 960px) {
  .section { padding: 112px 0; }
  .section-head { margin-bottom: 40px; }
}

/* ---------- How it works ---------- */
.steps { padding: 8px 0 60px; }
.step-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--rose-tint); color: var(--rose-deep); }

/* Bake-week timeline, Sunday to Sunday: 8 days at 12.5% each. Order runs Sunday 3 PM (7.8125%) to
   the end of Wednesday (50%), baking Thursday-Friday, pickup Saturday-Sunday. Update these if the
   preorder or pickup times change. */
.week { --open-at: 7.8125%; --close-at: 50%; --pickup-at: 75%; margin-top: 8px; }
.week-bands { position: relative; height: clamp(46px, 12vw, 58px); border-bottom: 1.5px solid var(--ink-3); }
.week-band { position: absolute; bottom: 7px; height: 12px; border-radius: 999px; }
.week-band--order { left: var(--open-at); width: calc(var(--close-at) - var(--open-at) - 3px); background: var(--rose); }
.week-band--bake { left: calc(var(--close-at) + 3px); width: calc(var(--pickup-at) - var(--close-at) - 6px); background: var(--kraft); }
.week-band--pickup { left: calc(var(--pickup-at) + 3px); width: calc(100% - var(--pickup-at) - 3px); background: var(--sage); }
.week-band--bake .week-band-label { color: #86683f; } /* darker than the bar, for contrast */
.week-band--pickup .week-band-label { color: var(--sage); }
.week-band-label {
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  font-family: var(--font-display); font-size: clamp(13px, 3.6vw, 21px); line-height: 1.1; white-space: nowrap;
}
.week-band--order .week-band-label { color: var(--rose-deep); }
.week-days { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.week-days li {
  padding: 9px 0 0 6px; border-left: 1px solid var(--line-strong);
  color: var(--ink-2); font-size: clamp(11.5px, 3.2vw, 14px); font-weight: 600;
}
.week-days li:last-child { border-right: 1px solid var(--line-strong); }
.week-times { position: relative; height: 22px; margin-top: 6px; color: var(--ink-3); font-size: clamp(11px, 3vw, 13px); }
.week-time { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); }
.week-time--open { left: var(--open-at); transform: none; }
.week-time--close { left: var(--close-at); }
.week-time--pickup { right: 0; transform: none; }
.week-notes { display: grid; gap: 22px; margin-top: 30px; }
.week-notes h3 { font-size: 19px; font-weight: 500; line-height: 1.25; }
.week-notes p { margin-top: 4px; color: var(--ink-2); font-size: 16px; }
.week-notes .text-link { margin-top: 8px; }
@media (min-width: 768px) {
  .week-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
}
@media (min-width: 960px) { .steps { padding-bottom: 96px; } }

/* ---------- Menu ---------- */
.menu { position: relative; padding: 60px 0 68px; background: var(--paper-2); }
.menu::before, .menu::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px; pointer-events: none;
  background-size: 24px 12px; background-repeat: repeat-x;
}
/* Scalloped edges */
.menu::before { top: -11px; background-image: radial-gradient(circle at 12px 12px, var(--paper-2) 11.5px, transparent 12px); }
.menu::after { bottom: -11px; background-image: radial-gradient(circle at 12px 0, var(--paper-2) 11.5px, transparent 12px); }
.menu-groups { display: grid; gap: 48px; }
.group-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px;
  margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.group-title { font-size: 24px; font-weight: 450; }
.group-note { color: var(--ink-3); font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }

.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--card);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.card:has(.card-open:focus-visible) { outline: 2.5px solid var(--rose); outline-offset: 3px; }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .card:hover .card-media img { transform: scale(1.045); }
}
.card-media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--kraft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.tag {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  background: var(--card); color: var(--rose-deep); box-shadow: var(--shadow-sm);
  font-family: var(--font-display); font-size: 14px; font-style: italic; font-weight: 400; line-height: 1.3;
}
.card-media .tag { position: absolute; top: 10px; left: 10px; }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 12px 12px 12px 14px; }
.card-title { font-size: 17px; font-weight: 500; line-height: 1.22; }
.card-open { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; }
.card-open:focus-visible { outline: none; }
.card-open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-blurb {
  display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  color: var(--ink-2); font-size: 14.5px; line-height: 1.45;
}
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.price { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.add-btn {
  position: relative; z-index: 2; display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; margin: -2px -6px -2px 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent;
  transition: transform .28s cubic-bezier(0.34, 1.56, 0.64, 1); /* slight spring past full size */
}
.add-btn .bud { width: 38px; height: 38px; }
@media (hover: hover) { .add-btn:hover { transform: scale(1.35); } }
.add-btn:active { transform: scale(0.94); }
.is-closed .add-btn { visibility: hidden; } /* keeps its space so prices don't shift */

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
  .card-body { padding: 16px 16px 16px 18px; }
  .card-title { font-size: 19px; }
  .card-blurb { font-size: 15px; }
}
@media (min-width: 960px) {
  .menu { padding: 96px 0 104px; }
  .menu-groups { gap: 64px; }
  .group-title { font-size: 28px; }
}
@media (min-width: 1100px) { .grid { gap: 32px 28px; } }

/* ---------- Story ---------- */
.story-grid { display: grid; gap: 24px; }
.story-rose { --w: 104px; margin-top: 24px; }
.story-body { display: grid; gap: 18px; max-width: 62ch; color: var(--ink-2); font-size: 18px; }
.story-lead { color: var(--ink); font-size: 20px; line-height: 1.55; }
.pull-quote {
  margin: 8px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--rose);
  color: var(--ink); font-family: var(--font-display); font-size: clamp(1.45rem, 5.6vw, 2.1rem);
  font-style: italic; font-weight: 340; line-height: 1.25; letter-spacing: -0.01em;
}
.signature { color: var(--rose); font-family: var(--font-display); font-size: 22px; font-style: italic; }
@media (min-width: 960px) {
  .story-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; }
  .story-head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
  .story-rose { --w: 200px; margin-top: 40px; }
}

/* ---------- Values ---------- */
.values { padding-top: 0; }
.values-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.value { padding: 18px 16px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.value-icon { display: block; width: 40px; height: 40px; margin-left: -3px; }
.value h3 { margin-top: 12px; font-size: 18px; font-weight: 500; line-height: 1.25; }
.value p { margin-top: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
@media (min-width: 960px) {
  .values-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .value { padding: 26px 24px 28px; }
  .value h3 { font-size: 20px; }
}

/* ---------- Newsletter / flowers ---------- */
.signup-wrap { padding: 0 0 72px; }
.signup {
  position: relative; display: grid; gap: 22px; overflow: hidden;
  padding: 32px 22px; border-radius: var(--r-lg); background: var(--rose); color: #fff;
}
.signup :focus-visible { outline-color: #fff; }
.signup .eyebrow { color: rgba(255, 255, 255, 0.85); }
.signup .section-title { color: #fff; font-size: clamp(1.9rem, 7vw, 2.8rem); }
.signup-copy { position: relative; }
.signup-copy p:not(.eyebrow) { max-width: 46ch; margin-top: 12px; color: rgba(255, 255, 255, 0.92); }
.signup-rose { position: absolute; --w: 190px; right: -44px; bottom: -56px; opacity: 0.2; pointer-events: none; }
.signup-rose img { filter: brightness(0) invert(1); }
.signup-form { position: relative; display: grid; gap: 10px; }
.signup-form input {
  width: 100%; min-height: 52px; padding: 0 20px; border: 0; border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 17px;
}
.signup-form input::placeholder { color: var(--ink-3); }
.signup-form .btn { min-height: 52px; }
.signup .form-msg { color: #fff; }
@media (min-width: 640px) {
  .signup-form { grid-template-columns: minmax(0, 1fr) auto; }
  .signup-form .form-msg { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .signup-wrap { padding-bottom: 112px; }
  .signup { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 56px; padding: 56px; }
  .signup-rose { --w: 240px; right: -64px; bottom: -120px; opacity: 0.16; }
}

/* ---------- Allergens + contact ---------- */
.info { padding-top: 0; }
.info-grid { display: grid; gap: 16px; }
.panel { padding: 28px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.panel-title { margin-top: 10px; font-size: clamp(1.75rem, 6.5vw, 2.4rem); font-weight: 380; letter-spacing: -0.02em; }
.panel > p { margin-top: 12px; color: var(--ink-2); font-size: 16.5px; }
.chip-title { margin-top: 22px; color: var(--ink-2); font-family: var(--font-display); font-size: 17px; font-style: italic; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { padding: 6px 13px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); font-size: 15px; }
.chip--used { border-color: transparent; background: var(--rose-tint); color: var(--rose-deep); font-weight: 600; }
.panel .fine { margin-top: 16px; }
.fine { color: var(--ink-3); font-size: 14.5px; }
.callout { display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--paper); color: var(--ink-2); font-size: 15.5px; }
.callout .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--rose); }
.callout a { color: var(--rose-deep); font-weight: 600; }

.disclosure { margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.disclosure summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after {
  content: ""; width: 9px; height: 9px; margin-right: 4px; flex: none;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform .2s var(--ease-out);
}
.disclosure[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.disclosure-body { display: grid; gap: 10px; padding-bottom: 16px; color: var(--ink-2); font-size: 15.5px; }
.disclosure-body strong { color: var(--ink); font-weight: 600; }

.contact-form { display: grid; gap: 14px; margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--paper); font-size: 17px; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--rose); background: #fff; box-shadow: 0 0 0 4px var(--rose-tint); }
.form-msg { color: var(--sage); font-size: 15.5px; font-weight: 500; }
.form-msg:empty { display: none; }
.form-msg.is-error { color: var(--rose-deep); }
.form-msg a { color: inherit; font-weight: 600; }
/* a field people never see; spam bots fill it in */
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-links { display: grid; gap: 2px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.contact-links a { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--ink); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact-links a:hover { color: var(--rose-deep); }
.contact-links .icon { color: var(--rose); }
@media (min-width: 960px) {
  .info-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 24px; }
  .panel { padding: 40px; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 32px; border-top: 1px solid var(--line); background: var(--paper-2); }
.footer-grid { display: grid; gap: 28px; }
.wordmark--footer { display: inline-block; padding: 0; font-size: 22px; }
.footer-brand p { max-width: 34ch; margin-top: 12px; color: var(--ink-2); font-size: 16px; }
.social { display: flex; gap: 8px; margin-top: 16px; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink);
  transition: background-color .2s, border-color .2s, color .2s;
}
.social a:hover { border-color: var(--rose); background: var(--rose); color: #fff; }
.social .icon { width: 20px; height: 20px; }
.footer-title { margin-bottom: 10px; color: var(--rose); font-family: var(--font-display); font-size: 19px; font-style: italic; font-weight: 400; }
.footer-col p { color: var(--ink-2); font-size: 16px; }
.footer-col p + p { margin-top: 10px; }
.footer-links { display: grid; gap: 6px; margin-top: 14px; }
.footer-links a { color: var(--ink); font-size: 16px; text-decoration: none; }
.footer-links a:hover { color: var(--rose-deep); text-decoration: underline; }
.footer-rose { display: flex; align-items: center; gap: 20px; margin-top: 36px; }
.footer-rose::before, .footer-rose::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.footer-rose .rose-mark { --w: 72px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px;
  margin-top: 16px;
  color: var(--ink-3); font-size: 14px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .footer-rose .rose-mark { --w: 88px; }
}

/* ---------- Sticky "view order" bar ---------- */
.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 12px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(12px + var(--safe-b)) max(var(--gutter), env(safe-area-inset-left, 0px));
  pointer-events: none; visibility: hidden; transform: translateY(120%);
  transition: transform .35s var(--ease-out), visibility 0s linear .35s;
}
.has-cart .cart-bar { visibility: visible; transform: none; transition: transform .35s var(--ease-out), visibility 0s; }
.is-typing .cart-bar { visibility: hidden; transform: translateY(120%); }
.cart-bar-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 560px; min-height: 58px; margin: 0 auto;
  padding: 0 20px 0 12px; border: 0; border-radius: 18px;
  background: var(--ink); color: #fff; box-shadow: 0 16px 34px -14px rgba(42, 32, 27, 0.65);
  font-size: 16.5px; font-weight: 600; pointer-events: auto;
}
.cart-bar-count { position: relative; flex: none; width: 38px; height: 38px; }
.cart-bar-num {
  position: absolute; left: 0; right: 0; top: 10.5px;
  color: #fff; font-size: 14px; font-weight: 700; line-height: 17px; text-align: center;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.cart-bar-total { margin-left: auto; font-variant-numeric: tabular-nums; }
.has-cart .site-footer { padding-bottom: calc(112px + var(--safe-b)); }
@media (min-width: 960px) {
  .cart-bar { display: none; }
  .has-cart .site-footer { padding-bottom: 32px; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + var(--safe-b)); z-index: 26;
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 2 * var(--gutter));
  padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg);
  font-size: 15.5px; font-weight: 500; line-height: 1.35;
  opacity: 0; visibility: hidden; transform: translate(-50%, 16px);
  transition: opacity .25s, transform .3s var(--ease-out), visibility 0s linear .3s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .25s, transform .3s var(--ease-out), visibility 0s; }
.has-cart .toast { bottom: calc(94px + var(--safe-b)); }
.toast .icon { width: 20px; height: 20px; color: var(--sage); stroke-width: 2.2; }
.toast span { min-width: 0; }
.toast-action { flex: none; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--rose-tint); color: var(--rose-deep); font-size: 15px; font-weight: 600; }
@media (min-width: 960px) {
  .toast, .has-cart .toast { left: auto; right: 32px; top: calc(var(--header-h) + 54px); bottom: auto; transform: translateY(-10px); }
  .toast.show { transform: none; }
}

/* ---------- Dialogs: shared sheet behavior ---------- */
dialog { max-width: none; max-height: none; padding: 0; overflow: visible; border: 0; background: transparent; color: inherit; }
dialog::backdrop { background: rgba(33, 24, 20, 0.5); }
dialog[open]::backdrop { animation: fade-in .3s ease both; }
dialog.closing::backdrop { animation: fade-out .25s ease both; }

/* Phones: every dialog is a bottom sheet */
.sheet { width: 100%; margin: auto 0 0; }
.sheet-panel {
  position: relative; display: flex; flex-direction: column;
  max-height: 92vh; max-height: 92dvh; overflow: hidden;
  border-radius: 24px 24px 0 0; background: var(--card); box-shadow: var(--shadow-lg);
}
.sheet[open] .sheet-panel { animation: sheet-up .42s var(--ease-out) both; }
.sheet.closing .sheet-panel { animation: sheet-down .26s cubic-bezier(0.4, 0, 1, 1) both; }

@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
@keyframes nav-in { from { transform: translateX(-100%); } }
@keyframes nav-out { to { transform: translateX(-100%); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(10px) scale(0.97); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

/* ---------- Product sheet ---------- */
.pd-close { position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(255, 253, 249, 0.94); box-shadow: var(--shadow-sm); }
.pd-close:hover { background: #fff; }
.pd-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pd-media { aspect-ratio: 6 / 5; overflow: hidden; background: var(--kraft); }
.pd-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.pd-media img.is-loading { opacity: 0; }
.pd-body { padding: 22px var(--gutter) 28px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pd-tags .tag { background: var(--rose-tint); box-shadow: none; }
.pd-title { font-size: clamp(1.9rem, 7vw, 2.4rem); font-weight: 400; letter-spacing: -0.02em; }
.pd-price { margin-top: 6px; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pd-desc { display: grid; gap: 10px; margin-top: 14px; color: var(--ink-2); font-size: 16.5px; }

.opt-group { min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
.opt-legend { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 10px; padding: 0; font-size: 16px; font-weight: 600; }
.req { padding: 3px 9px; border-radius: 999px; background: var(--rose-tint); color: var(--rose-deep); font-size: 13px; font-weight: 600; }
.opts { display: grid; gap: 8px; }
.opts--row { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.opts--wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt-box {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 100%; min-height: 58px;
  padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--card);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.opt:hover .opt-box { border-color: var(--ink-3); }
.opt input:checked + .opt-box { border-color: var(--rose); background: var(--rose-tint); box-shadow: inset 0 0 0 1px var(--rose); }
.opt input:focus-visible + .opt-box { outline: 2.5px solid var(--rose); outline-offset: 2px; }
.opt-name { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.opt-price { color: var(--ink-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.opt-badge { color: var(--sage); font-family: var(--font-display); font-size: 14px; font-style: italic; font-weight: 400; }

.mod-count { margin: -2px 0 10px; color: var(--ink-2); font-size: 15px; }
.mod-count strong { color: var(--ink); }
.mod-list { display: grid; overflow: hidden; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); }
.mod-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; transition: background-color .15s; }
.mod-row + .mod-row { border-top: 1px solid var(--line); }
.mod-row.has-qty { background: var(--rose-tint); }
.mod-name { display: grid; font-size: 15.5px; font-weight: 500; line-height: 1.3; }

.stepper { display: inline-flex; flex: none; align-items: center; gap: 2px; padding: 3px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--card); }
.stepper-btn {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink);
  transition: background-color .15s, opacity .15s;
}
.stepper-btn:hover:not([aria-disabled="true"]) { background: var(--paper-2); }
.stepper-btn[aria-disabled="true"] { opacity: 0.35; cursor: not-allowed; }
.stepper-btn .icon { width: 18px; height: 18px; stroke-width: 2; }
.stepper-val { min-width: 24px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.stepper--sm .stepper-btn { width: 36px; height: 36px; }
.stepper--sm .stepper-btn .icon { width: 16px; height: 16px; }

.pd-flavor { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); }
.pd-flavor h3 { font-size: 19px; font-weight: 500; }
.pd-flavor p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.pd-allergen { display: flex; gap: 10px; margin-top: 16px; color: var(--ink-2); font-size: 14.5px; }
.pd-allergen .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--rose); }
.pd-allergen a { color: var(--rose-deep); font-weight: 600; }
.pd-footer {
  display: flex; align-items: center; gap: 12px;
  padding: 12px var(--gutter) calc(12px + var(--safe-b));
  border-top: 1px solid var(--line); background: var(--card);
}
.pd-add { flex: 1; min-height: 52px; padding: 0 16px; text-align: center; white-space: normal; }

/* ---------- Cart sheet ---------- */
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 12px var(--gutter); border-bottom: 1px solid var(--line); }
.cart-title { font-size: 26px; font-weight: 400; }
.cart-scroll { display: grid; flex: 1 1 auto; align-content: start; gap: 16px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px var(--gutter) 20px; }
.cart-lines { display: grid; }
.cart-lines:empty { display: none; }
/* Each cart item is a sliding layer (.line-inner) over a red Remove button.
   On touch screens, swipe left to show it; swipe past halfway to remove the item. */
.line { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.line-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px 0;
  background: var(--card); touch-action: pan-y;
}
.line:first-child .line-inner { padding-top: 4px; }
.line-inner.is-settling { transition: transform .28s var(--ease-out); }
.line-remove {
  position: absolute; top: 8px; right: 0; bottom: 8px; left: 0;
  display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 0 18px;
  border: 0; border-radius: var(--r-sm); background: var(--rose); color: #fff;
  font-size: 15px; font-weight: 600; transition: background-color .15s;
}
.line:first-child .line-remove { top: 2px; }
.line-remove .icon { width: 18px; height: 18px; }
.line.is-armed .line-remove { background: var(--rose-deep); }
.line-undo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px;
}
.line-undo-btn { flex: none; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--rose-tint); color: var(--rose-deep); font-size: 15px; font-weight: 600; }
.line-img { width: 64px; height: 64px; border-radius: 12px; background: var(--kraft); object-fit: cover; }
.line-name { font-family: var(--font-display); font-size: 17px; font-weight: 500; line-height: 1.25; }
.line-detail { margin-top: 2px; color: var(--ink-2); font-size: 14.5px; line-height: 1.4; }
.line-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.line-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-empty { display: grid; justify-items: center; gap: 8px; padding: 24px 0 12px; text-align: center; }
.cart-empty .rose-mark { --w: 84px; margin-bottom: 6px; }
.cart-empty-title { font-family: var(--font-display); font-size: 22px; }
.cart-empty p:not(.cart-empty-title) { color: var(--ink-2); font-size: 16px; }
.cart-empty .btn { margin-top: 10px; }
.pickup-card {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  color: var(--ink-2); font-size: 15px;
}
.pickup-title { color: var(--ink); font-size: 16px; font-weight: 600; }
.pickup-days { margin-top: 14px; }
.pickup-days .opts--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pickup-days .opt-box { min-height: 52px; padding: 8px 12px; }
.cart-foot { padding: 14px var(--gutter) calc(14px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--card); }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; font-size: 17px; }
.cart-total strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.cart-foot .fine { margin-top: 2px; }
.cart-foot .btn { margin-top: 14px; }
.pay-note { margin-top: 10px; color: var(--ink-3); font-size: 13.5px; text-align: center; }

/* ---------- Mobile menu ---------- */
.sheet--nav { width: min(380px, 88vw); height: 100%; margin: 0 auto 0 0; }
.sheet--nav .sheet-panel {
  height: 100%; max-height: none; border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: env(safe-area-inset-top, 0px) 0 var(--safe-b) env(safe-area-inset-left, 0px);
}
.sheet--nav[open] .sheet-panel { animation-name: nav-in; }
.sheet--nav.closing .sheet-panel { animation-name: nav-out; }
.navp-head { display: flex; flex: none; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 10px 0 var(--gutter); border-bottom: 1px solid var(--line); }
.navp-links { display: grid; padding: 8px var(--gutter); overflow-y: auto; }
.navp-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0;
  border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 25px; letter-spacing: -0.01em; text-decoration: none;
}
.navp-links .icon { width: 20px; height: 20px; color: var(--ink-3); }
.navp-foot { display: grid; gap: 14px; margin-top: auto; padding: 20px var(--gutter) 28px; color: var(--ink-2); font-size: 15px; }
.navp-foot .social { margin-top: 0; }

/* ---------- Checkout hand-off ---------- */
.co { align-items: center; gap: 12px; padding: 32px var(--gutter) calc(24px + var(--safe-b)); text-align: center; }
.co-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--rose-tint); color: var(--rose-deep); }
.co h2 { font-size: 26px; }
.co p { max-width: 40ch; color: var(--ink-2); font-size: 16px; }
.co .btn { margin-top: 8px; }

/* ---------- Tablet & desktop dialogs ---------- */
@media (min-width: 768px) {
  .sheet--product, .sheet--center { width: min(100% - 64px, 1000px); margin: auto; }
  .sheet--center { width: min(100% - 64px, 460px); }
  .sheet--product .sheet-panel, .sheet--center .sheet-panel { border-radius: var(--r-lg); }
  .sheet--product[open] .sheet-panel, .sheet--center[open] .sheet-panel { animation-name: pop-in; animation-duration: .38s; }
  .sheet--product.closing .sheet-panel, .sheet--center.closing .sheet-panel { animation-name: pop-out; animation-duration: .2s; }

  .pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; height: min(88vh, 620px); max-height: none; }
  .pd-scroll { display: contents; }
  .pd-media { grid-column: 1; grid-row: 1 / span 2; height: 100%; aspect-ratio: auto; }
  .pd-body { grid-column: 2; grid-row: 1; overflow-y: auto; overscroll-behavior: contain; padding: 40px 36px 28px; }
  .pd-footer { grid-column: 2; grid-row: 2; padding: 16px 36px 20px; }

  .sheet--drawer { width: min(440px, 100%); height: 100%; margin: 0 0 0 auto; }
  .sheet--drawer .sheet-panel { height: 100%; max-height: none; border-radius: var(--r-lg) 0 0 var(--r-lg); }
  .sheet--drawer[open] .sheet-panel { animation-name: drawer-in; }
  .sheet--drawer.closing .sheet-panel { animation-name: drawer-out; }
  .cart-head { padding: 22px 18px 16px 28px; }
  .cart-scroll, .cart-foot { padding-inline: 28px; }

  .co { padding: 40px 36px 32px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Desktop: larger italic labels ---------- */
@media (min-width: 960px) {
  .eyebrow { font-size: 24px; }
  .chip-title { font-size: 22px; }
  .footer-title { font-size: 24px; }
  .tag { font-size: 18px; }
  .opt-badge { font-size: 18px; }
}
