/* Sophia Lee Floristry: the public site's design system.
   Tokens first, then base, layout, header/footer, components, utilities.
   Feature pages add their own file (static/css/{feature}.css) through
   {% block head %}; they reuse these tokens and components rather than
   restyling them. No inline styles anywhere: the CSP forbids them. */

/* ------------------------------------------------------------ tokens */
:root {
  color-scheme: light;
  --ground: #f7f9f7;
  --surface: #ffffff;
  --surface-2: #fbfcfb;
  --ink: #1d2620;
  --muted: #5d6b60;
  --line: #dde5dd;
  --line-strong: #c9d5ca;
  --green: #2f5d43;
  --green-dark: #234836;
  --green-soft: #e6f0e8;
  /* Accent from the logo: --coral is the drawing's own ink (decoration only, 3.9:1 on white);
     --peony is the deeper coral used for text, prices and badges (4.7:1 or better on every ground). */
  --coral: #e04e50;
  --peony: #c23b3e;
  --peony-dark: #9e2b2e;
  --peony-soft: #fdeeed;
  --peony-line: #f6cfcd;
  --danger: #b3261e;
  --danger-soft: #fdeceb;
  --warn: #7a5200;
  --warn-soft: #fff3d6;

  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --pill: 999px;
  --shadow-soft: 0 1px 2px rgba(29, 38, 32, .05), 0 1px 1px rgba(29, 38, 32, .03);
  --shadow-lift: 0 18px 40px -18px rgba(29, 38, 32, .32), 0 4px 10px rgba(29, 38, 32, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --wrap: 1160px;
  --gutter: 16px;
  --header-h: 64px;
  --tap: 44px;
}
@media (min-width: 700px) { :root { --gutter: 24px; } }

/* -------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--ground); color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; height: auto; }
:where(svg) { width: 1.2em; height: 1.2em; vertical-align: -.2em; flex-shrink: 0; } /* inline icons; classes size the rest */
img { display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.35rem + 2.8vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); }
h3, .h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.25em; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .15s; }
a:hover { color: var(--green-dark); }
strong, b { font-weight: 650; }
small, .small { font-size: .875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
::selection { background: var(--peony-soft); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--peony); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--pill); }
.skip:focus { top: 12px; color: #fff; }

/* ------------------------------------------------------------ layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 760px; }
.wrap.medium { max-width: 960px; }
.section { padding-block: clamp(32px, 5vw, 72px); }
.section.tight { padding-block: clamp(20px, 3vw, 36px); }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(18px, 3vw, 28px); }
.section-head h2 { margin: 0; }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cluster.end { justify-content: flex-end; }
.cluster.between { justify-content: space-between; }
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 240px)), 1fr)); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: clamp(16px, 2.5vw, 28px); grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.split { display: grid; gap: clamp(24px, 4vw, 56px); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
  .split.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .split .sticky-col { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 249, 247, .84);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(221, 229, 221, .8);
}
.header-row { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: var(--tap); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: auto; height: 44px; flex-shrink: 0; transform-origin: 50% 90%; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg); }
.mark-large { display: block; width: auto; height: 150px; margin: 0 auto; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1; white-space: nowrap; }
@media (min-width: 420px) { .brand-name { font-size: 1.3rem; } }
/* On narrow phones the wordmark stacks: "Sophia Lee" over a small "FLORISTRY". */
@media (max-width: 419px) {
  .site-header .brand-name { display: grid; gap: 4px; }
  .site-header .brand-tail { font-family: var(--font-body); font-size: .6rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--peony-dark); line-height: 1; }
}

.main-nav { display: none; }
@media (min-width: 860px) {
  .main-nav { display: flex; gap: 2px; margin-left: 24px; }
  .main-nav a {
    display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px; border-radius: var(--pill);
    color: var(--ink); text-decoration: none; font-weight: 500; transition: background .15s, color .15s;
  }
  .main-nav a:hover { background: var(--green-soft); color: var(--green-dark); }
  .main-nav a[aria-current="page"] { color: var(--green); font-weight: 650; background: var(--green-soft); }
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: var(--tap); height: var(--tap);
  border-radius: var(--pill); color: var(--ink); background: transparent; border: 0; cursor: pointer;
  transition: background .15s, color .15s; text-decoration: none;
}
.icon-btn:hover { background: var(--green-soft); color: var(--green-dark); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .count {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center; border-radius: var(--pill); background: var(--peony); color: #fff;
  font-size: .72rem; font-weight: 700; line-height: 1; box-shadow: 0 0 0 2px var(--ground);
}
.ig-link { display: none; }
@media (min-width: 480px) { .ig-link { display: inline-grid; } }

/* the phone menu: a <details class="menu"> */
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 240px; max-width: calc(100vw - 2 * var(--gutter));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift);
  padding: 8px; display: grid; animation: menu-in .18s var(--ease);
}
.menu-panel a, .menu-panel button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--tap); padding: 0 14px;
  border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 500;
  background: none; border: 0; font: inherit; text-align: left; cursor: pointer; width: 100%;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--green-soft); }
.menu-panel a[aria-current="page"] { color: var(--green); font-weight: 650; }
.menu-panel hr { margin: 6px 8px; }
.menu-head { padding: 10px 14px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (min-width: 860px) { .phone-menu { display: none; } }

/* ------------------------------------------------------------ footer */
.site-footer { margin-top: clamp(40px, 6vw, 80px); background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 28px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-grid h2 { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--green); text-decoration: underline; }
.footer-brand p { color: var(--muted); max-width: 36ch; }
.footer-base { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: var(--muted); font-size: .85rem; }
.footer-base a { color: var(--muted); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--pill); border: 1px solid transparent;
  background: var(--green); color: #fff; font: 600 1rem/1.1 var(--font-body); text-decoration: none; text-align: center;
  cursor: pointer; transition: background .18s, border-color .18s, color .18s, transform .12s, box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.secondary:hover { border-color: var(--green); color: var(--green-dark); background: var(--surface); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: var(--green-soft); color: var(--green-dark); }
.btn.accent { background: var(--peony); }
.btn.accent:hover { background: var(--peony-dark); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #8f1d17; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.btn.large { min-height: 56px; padding: 0 30px; font-size: 1.05rem; }
.btn.block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-link {
  background: none; border: 0; padding: 0; color: var(--green); font: inherit; text-decoration: underline;
  text-underline-offset: .2em; cursor: pointer; min-height: 0;
}
.btn-link:hover { color: var(--green-dark); }
.btn-link.danger { color: var(--danger); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row.centered { justify-content: center; }

/* ------------------------------------------------------------ forms */
.form { display: grid; gap: 18px; max-width: 640px; }
.form.wide { max-width: none; }
.field, .form label:not(.check):not(.choice):not(.uploader) { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.hint { display: block; font-weight: 400; font-size: .875rem; color: var(--muted); }
.req { color: var(--peony); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"],
input[type="url"], input[type="date"], input[type="time"], input[type="datetime-local"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; margin: 0;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink);
  font: 400 1rem/1.4 var(--font-body); /* 16px: iOS does not zoom */
  transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: #8b978d; }
input:hover, select:hover, textarea:hover { border-color: #b4c3b6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
textarea { min-height: 120px; resize: vertical; }
select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235d6b60' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
input[type="date"], input[type="time"], input[type="datetime-local"] { min-width: 0; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); flex-shrink: 0; cursor: pointer; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; cursor: pointer; min-height: 28px; }
.check .hint { margin-top: 2px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .form-row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.field-error, .error-text { color: var(--danger); font-size: .875rem; font-weight: 500; }
.char-count { justify-self: end; font-size: .8rem; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.char-count.over { color: var(--danger); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 600; font-size: .95rem; margin-bottom: 8px; padding: 0; }
/* The honeypot: a field people never see, bots fill in. Name it "website". */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* choice cards: radio/checkbox options shown as tappable cards (sizes, dates, fulfilment) */
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 140px)), 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice > input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-body {
  display: grid; gap: 2px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); transition: border-color .15s, box-shadow .15s, background .15s;
}
.choice:hover .choice-body { border-color: #a9bbac; }
.choice > input:checked + .choice-body { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); background: #fcfefc; }
.choice > input:focus-visible + .choice-body { outline: 3px solid var(--peony); outline-offset: 2px; }
.choice > input:disabled + .choice-body { opacity: .5; cursor: not-allowed; background: var(--surface-2); }
.choice-title { font-weight: 650; }

/* quantity stepper: <div class="stepper" data-stepper><button data-step="-1">…<input type=number>…<button data-step="1"> */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--surface); }
.stepper button { width: var(--tap); height: var(--tap); border: 0; background: none; border-radius: var(--pill); font-size: 1.25rem; color: var(--green); cursor: pointer; }
.stepper button:hover { background: var(--green-soft); }
.stepper input { width: 3.2em; min-height: 40px; border: 0; text-align: center; padding: 0; font-weight: 600; box-shadow: none !important; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* the person check partial (_human.html) */
.human { display: grid; gap: 8px; padding: 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.human-img { border-radius: 8px; border: 1px solid var(--line); background: var(--ground); width: 220px; height: 70px; }
.human-input { max-width: 220px; text-transform: uppercase; letter-spacing: .2em; }

/* ------------------------------------------------------------ cards and photos */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.card.flat { border: 0; background: var(--surface-2); }
.card.lifted { border-color: transparent; box-shadow: var(--shadow-lift); }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.card-head h2, .card-head h3 { margin: 0; }

.photo { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--green-soft); aspect-ratio: 4 / 5; }
.photo.square { aspect-ratio: 1; }
.photo.wide { aspect-ratio: 16 / 10; }
.photo.free { aspect-ratio: auto; }
.photo > img, .photo > .photo-placeholder { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  display: block; width: 100%; height: 100%; min-height: 120px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%23e04e50' fill-opacity='.22'%3E%3Cellipse cx='16' cy='9.4' rx='4.6' ry='6.6'/%3E%3Cellipse cx='16' cy='9.4' rx='4.6' ry='6.6' transform='rotate(72 16 16)'/%3E%3Cellipse cx='16' cy='9.4' rx='4.6' ry='6.6' transform='rotate(144 16 16)'/%3E%3Cellipse cx='16' cy='9.4' rx='4.6' ry='6.6' transform='rotate(216 16 16)'/%3E%3Cellipse cx='16' cy='9.4' rx='4.6' ry='6.6' transform='rotate(288 16 16)'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='3.4' fill='%23fdeeed'/%3E%3C/svg%3E") center / 34% no-repeat,
    radial-gradient(120% 90% at 20% 15%, var(--peony-soft) 0, transparent 55%),
    radial-gradient(110% 90% at 85% 90%, var(--green-soft) 0, transparent 60%),
    #f2f6f2;
}
.photo-card { display: block; color: inherit; text-decoration: none; }
.photo-card:hover { color: inherit; }
.photo-card .photo img { transition: transform .6s var(--ease); }
.photo-card:hover .photo img { transform: scale(1.035); }
.photo-card .photo .badge { position: absolute; top: 10px; left: 10px; }
.card-body { padding-top: 12px; display: grid; gap: 2px; }
.card-title { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.25; margin: 0; }
.card-meta { color: var(--muted); font-size: .9rem; }
.price { color: var(--peony); font-weight: 700; font-variant-numeric: tabular-nums; }
.price.large { font-size: 1.5rem; }
.from { color: var(--muted); font-weight: 500; font-size: .85em; }

/* a product gallery: main photo + thumbnails (site.js swaps them) */
.gallery { display: grid; gap: 10px; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs button {
  flex: 0 0 64px; height: 80px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden;
  background: var(--green-soft); cursor: pointer; transition: border-color .15s;
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--green); }

/* ------------------------------------------------------------ badges, chips */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--pill);
  background: var(--green-soft); color: var(--green-dark); font-size: .78rem; font-weight: 650; line-height: 1.5; white-space: nowrap;
}
.badge.peony { background: var(--peony-soft); color: var(--peony-dark); }
.badge.muted { background: #eef2ee; color: var(--muted); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.solid { background: var(--peony); color: #fff; }
.status-pending, .status-expired, .status-cancelled { background: #eef2ee; color: var(--muted); }
.status-paid { background: var(--green-soft); color: var(--green-dark); }
.status-making { background: var(--warn-soft); color: var(--warn); }
.status-out_for_delivery, .status-ready { background: var(--peony-soft); color: var(--peony-dark); }
.status-done { background: var(--ink); color: #fff; }
.status-refunded { background: var(--danger-soft); color: var(--danger); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding-inline: 0; } }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 40px; padding: 0 16px;
  border-radius: var(--pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--green); color: var(--green-dark); }
.chip[aria-current="page"], .chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.chip .n { font-size: .78rem; opacity: .75; }

/* ------------------------------------------------------------ alerts, empty states */
.flash, .alert {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px;
  background: var(--green-soft); color: var(--green-dark); border: 1px solid #cfe2d3; font-weight: 500;
}
.flash { margin: 16px 0 0; animation: menu-in .25s var(--ease); }
.flash.error, .alert.error { background: var(--danger-soft); color: var(--danger); border-color: #f4c7c3; }
.alert.warn { background: var(--warn-soft); color: var(--warn); border-color: #f0dca6; }
.alert.info { background: var(--surface); color: var(--ink); border-color: var(--line); }
.alert.peony { background: var(--peony-soft); color: var(--peony-dark); border-color: var(--peony-line); }
.alert > div > :last-child { margin-bottom: 0; }

.empty {
  display: grid; justify-items: center; gap: 6px; text-align: center; padding: clamp(32px, 6vw, 56px) 20px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface);
}
.empty-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--peony-soft); color: var(--peony); margin-bottom: 6px; }
.empty-icon svg { width: 26px; height: 26px; }
.empty h2, .empty h3 { font-size: 1.3rem; margin: 0; }
.empty p { color: var(--muted); max-width: 46ch; margin: 0; }
.empty .btn { margin-top: 12px; }

/* ------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th {
  text-align: left; font-weight: 650; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fbfdfb; }
.table .num, .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table a.row-link { color: inherit; font-weight: 600; text-decoration: none; }
.table a.row-link:hover { color: var(--green); text-decoration: underline; }
/* .table.stacked turns rows into cards on phones; give each <td data-label="…">. */
@media (max-width: 640px) {
  .table.stacked thead { display: none; }
  .table.stacked, .table.stacked tbody, .table.stacked tr, .table.stacked td { display: block; width: 100%; }
  .table.stacked tr { padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .table.stacked tr:last-child { border-bottom: 0; }
  .table.stacked td { border: 0; padding: 4px 12px; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  .table.stacked td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; text-align: left; font-weight: 500; }
  .table.stacked td[data-label=""]::before { content: none; }
}

/* ------------------------------------------------------------ order summary */
.summary { display: grid; gap: 8px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.summary-row.total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.line-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; }
.line-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-list li:first-child { padding-top: 0; }
.line-list li:last-child { border-bottom: 0; }
.line-list li.sub { padding-left: 18px; color: var(--muted); font-size: .95rem; }
.line-list li.refunded > span:first-child { text-decoration: line-through; text-decoration-color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 6px; counter-reset: step; }
.steps li { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.steps li + li::before { content: ""; width: 18px; height: 1px; background: var(--line-strong); }
.steps li.done { color: var(--green-dark); font-weight: 600; }
.steps li.current { color: var(--peony-dark); font-weight: 700; }
.gift-card { background: var(--peony-soft); border-color: var(--peony-line); }
.card-message { font-family: var(--font-display); font-size: 1.15rem; white-space: pre-line; color: var(--ink); }
.pre-line { white-space: pre-line; }

/* ------------------------------------------------------------ shared feature pieces */
/* Used by more than one feature's pages (the home page shows the shop's and
   the events' cards), so they live here rather than in static/css/{feature}.css. */
.back-link { margin: clamp(12px, 3vw, 24px) 0 12px; }
.back-link a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); color: var(--muted); font-weight: 500; text-decoration: none; }
.back-link a:hover { color: var(--green); }
.see-all { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); font-weight: 600; text-decoration: none; }
.see-all:hover { text-decoration: underline; }
.see-all svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.see-all:hover svg { transform: translateX(3px); }

/* bouquet cards (shop/_cards.html bouquet_card) */
.bouquet-grid { display: grid; gap: clamp(14px, 2.5vw, 28px) clamp(12px, 2vw, 24px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 960px) { .bouquet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bouquet-card .card-title { font-size: clamp(1rem, .95rem + .3vw, 1.2rem); }
.bouquet-card .price { font-size: .98rem; }
.bouquet-card:hover .card-title, .event-card:hover .card-title { color: var(--green-dark); }

/* workshop cards and the calendar-page date tile (events/_macros.html). Numbers
   are in the body font: Young Serif's 0 reads as an o. */
.event-card .card-body { gap: 4px; }
.event-card .card-title { display: block; }
.event-meta { display: flex; align-items: flex-start; gap: 6px; color: var(--muted); }
.event-meta svg { width: 1.05em; height: 1.05em; margin-top: .22em; color: var(--green); }
.event-card-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 6px; }
.event-card-foot .badge { margin-left: auto; align-self: center; }
.date-tile {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  display: grid; justify-items: center; min-width: 58px; padding: 6px 8px 7px;
  border-radius: 12px; background: rgba(255, 255, 255, .95); color: var(--ink);
  box-shadow: var(--shadow-soft); font-family: var(--font-body); line-height: 1.05; text-align: center;
}
.date-tile-day { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.date-tile-num { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 2px 0 1px; }
.date-tile-month { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--peony); white-space: nowrap; }
/* In console rows the tile sits in the row, not over a photo. */
.date-tile.small { position: static; width: 62px; min-width: 0; padding: 5px 4px; background: var(--peony-soft); box-shadow: none; flex-shrink: 0; }
.date-tile.small .date-tile-num { font-size: 1.3rem; }
.date-tile.small .date-tile-month { letter-spacing: .04em; font-size: .68rem; }

/* ------------------------------------------------------------ hero, prose */
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--peony); margin-bottom: 10px; }
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.hero { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; padding-block: clamp(24px, 5vw, 64px); }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4rem); margin-bottom: .35em; }
.hero-photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--green-soft); box-shadow: var(--shadow-lift); }
@media (min-width: 900px) { .hero-photo { aspect-ratio: 5 / 6; } }
.hero-photo > img, .hero-photo > .photo-placeholder { width: 100%; height: 100%; object-fit: cover; }

.page-title { padding-block: clamp(28px, 5vw, 56px) clamp(8px, 2vw, 20px); }
.page-title h1 { margin-bottom: .25em; }
.prose { max-width: 68ch; font-size: 1.05rem; overflow-wrap: break-word; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--peony); color: var(--muted); font-style: italic; }
/* A Markdown table or code block wider than a phone scrolls on its own, never the page. */
.prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.prose pre { overflow-x: auto; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose code { background: var(--green-soft); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

/* ------------------------------------------------------------ sticky bar */
/* A bar fixed to the bottom of the screen on phones (add to basket, pay,
   save); an ordinary row from 900px. Give <body> .has-sticky-bar so the
   page's last content is not hidden behind it. */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; align-items: center; gap: 12px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -20px rgba(29, 38, 32, .35);
}
.sticky-bar .btn { flex: 1; }
.sticky-bar .sticky-info { display: grid; line-height: 1.25; }
body.has-sticky-bar main { padding-bottom: 88px; }
@media (min-width: 900px) {
  .sticky-bar { position: static; padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sticky-bar .btn { flex: 0 1 auto; }
  body.has-sticky-bar main { padding-bottom: 0; }
}

/* ------------------------------------------------------------ order status page */
.status-hero { display: grid; gap: 10px; justify-items: start; padding: clamp(22px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.status-hero.ok { background: linear-gradient(160deg, var(--green-soft), var(--surface) 70%); border-color: #cfe2d3; }
.status-hero.wait { background: linear-gradient(160deg, var(--warn-soft), var(--surface) 70%); border-color: #f0dca6; }
.status-hero.off { background: var(--surface-2); }
.status-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; }
.status-hero.wait .status-icon { background: var(--warn); }
.status-hero.off .status-icon { background: var(--muted); }
.status-icon svg { width: 26px; height: 26px; }
.status-hero h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.5rem); margin: 0; }

/* the fake payment page: unmistakably not real */
.fake-pay { max-width: 460px; margin: 40px auto; }
.fake-pay .test-ribbon { display: inline-block; background: repeating-linear-gradient(-45deg, #ffe08a 0 10px, #ffd24d 10px 20px); color: #4d3800; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: var(--pill); }

/* ------------------------------------------------------------ utilities */
.muted { color: var(--muted); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.full { width: 100%; }
/* Stacks space their children evenly. Declared after .m-0 on purpose: inside
   a stack the stack sets the gap even on an element that clears its margins. */
.stack > * + * { margin-top: var(--stack, 16px); }
.stack-lg > * + * { margin-top: clamp(24px, 4vw, 40px); }
.inline { display: inline; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 699px) { .hide-phone { display: none !important; } }
@media (min-width: 700px) { .phone-only { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .sticky-bar, .no-print, .skip { display: none !important; }
  body { background: #fff; }
  .card { border-color: #bbb; }
}
