/* Lavies components. Signature pieces (wrap-frame, ribbon-tag, deckle-divider, wordmark) are
   documented in DESIGN.md; page layouts live in home.css / shop.css. */

/* ---------- Buttons ----------
   One loud button: .btn-primary (peony). Everything else is quiet. Sentence case, no caps. */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 12px 26px; border-radius: var(--radius-pill); border: 1px solid transparent;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-quick) var(--ease-bloom), color var(--dur-quick) var(--ease-bloom), border-color var(--dur-quick) var(--ease-bloom), transform var(--dur-quick) var(--ease-bloom);
}
.btn:active:not([disabled]):not([aria-disabled="true"]) { transform: translateY(1px) scale(0.985); }
.btn .icon { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--peony); color: var(--white); }
.btn-primary:hover { background: var(--peony-deep); color: var(--white); }
.btn-secondary { background: transparent; color: var(--cocoa); border-color: color-mix(in srgb, var(--cocoa) 30%, transparent); }
.btn-secondary:hover { border-color: var(--cocoa); background: color-mix(in srgb, var(--blush-50) 70%, transparent); color: var(--cocoa); }
/* Text button with the animated underline. */
.btn-ghost, .btn-link {
  background: none; color: var(--sage-deep); padding-inline: var(--space-1); min-height: 44px; border-radius: var(--radius-xs);
  font-size: var(--fs-small); font-weight: 700;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-position: var(--space-1) calc(100% - 10px); background-repeat: no-repeat;
  transition: color var(--dur-quick) var(--ease-bloom), background-size var(--dur-quick) var(--ease-bloom);
}
.btn-ghost { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 32%, transparent); text-underline-offset: 6px; }
.btn-ghost:hover, .btn-link:hover { color: var(--sage-ink); background-size: calc(100% - 2 * var(--space-1)) 1px; }
.btn-ghost:hover { text-decoration-color: transparent; }
/* Zalo/neutral button (existing markup). */
.btn-zalo { background: var(--white); color: var(--cocoa); border-color: var(--line); }
.btn-zalo:hover { border-color: var(--cocoa); color: var(--cocoa); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: var(--fs-small); }
.btn-block { width: 100%; }
.btn-square { padding: 0; width: 48px; flex: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn .spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.htmx-request.btn .spinner, .htmx-request .btn[type=submit] .spinner { display: inline-block; }
.htmx-request.btn .icon, .htmx-request .btn[type=submit] .icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 639px) { .form .btn-primary[type=submit] { width: 100%; } }

/* Text link with an arrow; the underline draws on hover. */
.link-arrow { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; font-size: var(--fs-small); font-weight: 700; text-decoration: none; color: var(--sage-deep); position: relative; }
.link-arrow::after { content: ""; position: absolute; left: 0; right: 26px; bottom: 10px; height: 1px; background: currentColor; transform-origin: left; transform: scaleX(.3); transition: transform var(--dur-quick) var(--ease-bloom); }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--dur-quick) var(--ease-bloom); }
.link-arrow:hover .icon { transform: translateX(3px); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill); color: var(--cocoa); background: none; border: 0; cursor: pointer; position: relative; transition: background-color var(--dur-quick) var(--ease-bloom); }
.icon-btn:hover { background: color-mix(in srgb, var(--kraft-50) 80%, transparent); color: var(--cocoa); }
.icon-btn .icon { width: 22px; height: 22px; stroke-width: 1.5; }

/* ---------- Wordmark: "lavies." Fraunces italic, peony dot, tiny sprig ---------- */
.wordmark { display: inline-flex; align-items: flex-end; gap: 2px; color: var(--cocoa); text-decoration: none; line-height: 1; flex: none; }
.wordmark:hover { color: var(--cocoa); }
.wordmark__sprig { width: .62em; height: auto; color: var(--sage-deep); margin-bottom: .12em; transform-origin: 50% 100%; transition: transform var(--dur-soft) var(--ease-bloom); }
.wordmark__sprig .bud { fill: var(--peony); }
.wordmark__text { font-family: var(--font-display); font-style: italic; font-weight: 500; font-variation-settings: var(--display-soft); letter-spacing: -0.035em; font-size: inherit; }
.wordmark__dot { color: var(--peony); font-style: normal; margin-left: .02em; }
@media (hover: hover) { .wordmark:hover .wordmark__sprig { transform: rotate(-8deg); } }
.wordmark--sm { font-size: 1.75rem; }
.wordmark--xl { font-size: clamp(4.5rem, 2rem + 13vw, 13rem); gap: 0; }
.wordmark--xl .wordmark__sprig { width: .36em; margin-bottom: .16em; }

/* ---------- Header: paper bar; transparent over a hero marked [data-header-over] ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; background-color: var(--paper); background-image: var(--grain);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur-soft) var(--ease-bloom), border-color var(--dur-soft) var(--ease-bloom), box-shadow var(--dur-soft) var(--ease-bloom);
}
html.is-scrolled .site-header { box-shadow: 0 6px 18px -14px rgba(59, 47, 44, .35); }
/* Over-hero mode needs JS (boot.js sets html.is-scrolled); without JS the bar stays paper. */
html.js body:has([data-header-over]) .site-header { position: fixed; left: 0; right: 0; }
html.js:not(.is-scrolled) body:has([data-header-over]) .site-header:not(:has(.nav-drawer[open])) { background-color: transparent; background-image: none; border-color: transparent; }
.header-inner { display: flex; align-items: center; gap: var(--space-4); height: var(--header-h); }
.header-inner > .wordmark { font-size: 1.875rem; margin-right: auto; }
.header-actions { display: flex; align-items: center; gap: var(--space-1); }
.header-cta { display: none; }
.cart-badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--peony); color: var(--white); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; transition: transform var(--dur-quick) var(--ease-bloom), opacity var(--dur-quick) var(--ease-bloom); }
.cart-badge.htmx-added { transform: scale(.4); opacity: 0; }
.main-nav { display: none; }
.nav-drawer > summary { list-style: none; }
.nav-drawer > summary::-webkit-details-marker { display: none; }
.drawer {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 40; background-color: var(--paper); background-image: var(--grain);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-pop);
  padding: var(--space-2) var(--gutter) calc(var(--space-6) + env(safe-area-inset-bottom)); max-height: calc(100dvh - var(--header-h)); overflow: auto; overscroll-behavior: contain;
}
.nav-drawer[open] .drawer { animation: drawer-in var(--dur-soft) var(--ease-bloom); }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.drawer a:not(.btn) { display: flex; align-items: center; justify-content: space-between; min-height: 58px; color: var(--cocoa); text-decoration: none; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-variation-settings: var(--display-soft); font-size: 1.5rem; letter-spacing: -0.01em; }
.drawer a:not(.btn):hover, .drawer a[aria-current="page"] { color: var(--peony); }
.drawer a:not(.btn) .icon { width: 18px; height: 18px; color: var(--kraft); }
.drawer .drawer-contact { margin-top: var(--space-6); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.drawer .drawer-contact .btn { padding-inline: 12px; }
.drawer .drawer-note { margin-top: var(--space-4); font-size: var(--fs-small); color: var(--cocoa-soft); }
.nav-drawer[open] > summary .icon-menu { display: none; }
.nav-drawer:not([open]) > summary .icon-close { display: none; }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }
@media (min-width: 1100px) {
  .header-inner { gap: var(--space-6); }
  .header-inner > .wordmark { font-size: 2.125rem; margin-right: 0; }
  .nav-drawer { display: none; }
  .main-nav { display: flex; flex: 1; justify-content: center; gap: clamp(14px, 1.7vw, 30px); }
  .main-nav a { position: relative; color: var(--cocoa); text-decoration: none; font-size: 0.9375rem; font-weight: 600; padding-block: var(--space-3); white-space: nowrap; }
  .main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--peony); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-quick) var(--ease-bloom); }
  .main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--peony-deep); }
}

/* ---------- Deckle divider: torn kraft-paper edge between sections ----------
   Colour = the section it opens (default kraft-50). Put it right before that section, or as the
   first child with .deckle-divider--overlap. --flip turns it into a bottom edge. */
.deckle-divider { --deckle-color: var(--kraft-50); display: block; height: var(--deckle-h, 22px); background-color: var(--deckle-color); background-image: var(--grain);
  -webkit-mask: var(--deckle) 0 100% / 240px 100% repeat-x; mask: var(--deckle) 0 100% / 240px 100% repeat-x; pointer-events: none; }
.deckle-divider--kraft { --deckle-color: var(--kraft-50); }
.deckle-divider--mint { --deckle-color: var(--mint-50); }
.deckle-divider--blush { --deckle-color: var(--blush-50); }
.deckle-divider--paper { --deckle-color: var(--paper); }
.deckle-divider--flip { transform: scaleY(-1); }
.deckle-divider--overlap { margin-top: calc(-1 * var(--deckle-h, 22px) + 1px); position: relative; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background-color: var(--kraft-50); background-image: var(--grain); color: var(--cocoa); padding-block: 0 calc(var(--space-6) + var(--dock-space, 0px)); margin-top: var(--space-16); }
.site-footer > .deckle-divider { position: absolute; left: 0; right: 0; top: calc(-1 * var(--deckle-h, 22px) + 1px); }
.site-footer a:not(.btn):not(.wordmark) { color: var(--cocoa); text-decoration: none; }
.site-footer a:not(.btn):not(.wordmark):hover { color: var(--peony-deep); }
.footer-hero { display: grid; gap: var(--space-4); padding-block: clamp(48px, 6vw, 96px) clamp(32px, 4vw, 56px); border-bottom: 1px solid color-mix(in srgb, var(--kraft) 55%, transparent); }
.footer-hero .wordmark { justify-self: start; }
.footer-tagline { font-family: var(--font-display); font-variation-settings: var(--display-soft); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.5rem); line-height: 1.2; letter-spacing: -0.01em; max-width: 22ch; text-wrap: balance; }
.footer-grid { display: grid; gap: var(--space-8) var(--space-6); grid-template-columns: 1fr 1fr; padding-block: clamp(32px, 4vw, 56px); }
.footer-col h2 { font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--tracking-label); margin-bottom: var(--space-3); color: var(--kraft-deep); }
.footer-col ul { display: grid; }
.footer-col li > a { display: inline-flex; align-items: center; min-height: 40px; font-size: var(--fs-small); font-weight: 600; }
.footer-col li > a { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-position: 0 calc(100% - 9px); background-repeat: no-repeat; transition: color var(--dur-quick) var(--ease-bloom), background-size var(--dur-quick) var(--ease-bloom); }
.footer-col li > a:hover { background-size: 100% 1px; }
.footer-contact { grid-column: 1 / -1; }
.footer-contact ul { gap: var(--space-1); }
.footer-contact li { display: flex; gap: var(--space-3); align-items: flex-start; padding-block: 6px; font-size: var(--fs-small); }
.footer-contact li > a { min-height: 0; }
.footer-contact .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--sage-deep); }
.footer-contact .tel { font-weight: 700; font-variant-numeric: tabular-nums; }
.footer-contact .map-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 700; color: var(--sage-deep) !important; }
.footer-contact .map-link .icon { width: 16px; height: 16px; margin: 0; }
.footer-socials { grid-column: 1 / -1; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); justify-content: space-between; align-items: center; font-size: var(--fs-small); color: var(--cocoa-soft); padding-top: var(--space-4); border-top: 1px solid color-mix(in srgb, var(--kraft) 55%, transparent); }
.footer-bottom .demo-note { flex: 1 1 260px; }
.footer-bottom .mct img { height: 48px; width: auto; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-contact { grid-column: auto; } }
@media (min-width: 1024px) {
  .footer-hero { grid-template-columns: auto 1fr; align-items: end; column-gap: var(--space-12); }
  .footer-tagline { justify-self: end; text-align: right; padding-bottom: .9em; }
  .footer-grid { grid-template-columns: 4fr 3fr 3fr 3fr; }
  .footer-socials { grid-column: auto; }
}

/* ---------- Dock: sticky bottom bar (mobile) ----------
   Pages may replace it (product, cart, checkout). The default .dock--cta shows below 768px only. */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background-color: var(--paper); background-image: var(--grain); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -18px rgba(59, 47, 44, .4);
  min-height: calc(var(--dock-h) + env(safe-area-inset-bottom)); padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  display: flex; gap: var(--space-2); align-items: center; transition: transform var(--dur-overlay) var(--ease-bloom); }
.dock > .btn { flex: 1; padding-inline: 10px; min-height: 48px; }
.dock .btn-square { flex: none; width: 48px; }
.dock-total { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.dock-total .price { font-size: 1.125rem; }
.dock-total .small { color: var(--cocoa-soft); }
.dock-actions { display: flex; gap: var(--space-2); flex: none; }
.dock--cta .btn-secondary { flex: 1.25; font-variant-numeric: tabular-nums; }
body.kb-open .dock { transform: translateY(110%); }
@media (min-width: 768px) { .dock--cta { display: none; } }
@media (min-width: 1024px) { .dock { display: none; } }

/* ---------- Chips: hairline at rest, blush when selected ---------- */
.chips { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; padding-block: 2px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
.chips > label { position: relative; flex: none; display: flex; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 18px; border-radius: var(--radius-pill); background: transparent; color: var(--cocoa); border: 1px solid var(--line);
  font-size: var(--fs-small); font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; flex: none; position: relative;
  transition: background-color var(--dur-quick) var(--ease-bloom), border-color var(--dur-quick) var(--ease-bloom), color var(--dur-quick) var(--ease-bloom); }
.chip:hover { border-color: var(--blush); background: var(--blush-50); color: var(--cocoa); }
.chip[aria-current="true"], .chip[aria-pressed="true"], .chip.is-selected, input:checked + .chip { background: var(--blush); color: var(--cocoa); border-color: var(--blush); }
.chip[aria-current="true"]::before, .chip[aria-pressed="true"]::before, .chip.is-selected::before, input:checked + .chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--peony); }
input:focus-visible + .chip { outline: 2px solid var(--peony); outline-offset: 2px; }
.chip-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
@media (min-width: 1024px) { .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; -webkit-mask-image: none; mask-image: none; } }

/* ---------- Badge: small soft label (new, best seller, demo) ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--paper); border: 1px solid var(--line); color: var(--cocoa); font-size: 0.75rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--butter); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kraft) 60%, transparent); }
.badge--blush { background: var(--blush-50); border-color: var(--blush); }
.badge--blush::before { background: var(--peony); box-shadow: none; }
.badge--mint { background: var(--mint-50); border-color: var(--mint); color: var(--sage-ink); }
.badge--mint::before { background: var(--sage-deep); box-shadow: none; }
.badge--plain::before { display: none; }

/* ---------- Wrap frame (signature): photo on two layered wrapping-paper sheets ----------
   <div class="wrap-frame wrap-frame--mint"><div class="wrap-frame__photo"><img…></div></div>
   Back sheet (::before) is kraft at -3deg; front sheet (::after) takes the variant colour at +2deg.
   --tilt-x / --tilt-y: unitless degrees (-6..6) that motion.js may set for a 3D tilt. */
.wrap-frame {
  --sheet-back: var(--kraft); --sheet-front: var(--mint); --tilt-x: 0; --tilt-y: 0; --fan: 0;
  position: relative; z-index: 0; display: block; aspect-ratio: var(--frame-ratio, 4 / 5);
  margin: 6% 4% 0;
  transform: perspective(900px) rotateX(calc(var(--tilt-x) * 1deg)) rotateY(calc(var(--tilt-y) * 1deg));
  transition: transform var(--dur-soft) var(--ease-bloom);
}
.wrap-frame::before, .wrap-frame::after {
  content: ""; position: absolute; z-index: -1; border-radius: var(--radius-xs); background-color: var(--sheet-back); background-image: var(--grain);
  box-shadow: var(--shadow-paper); transform-origin: 50% 100%;
  transition: transform var(--dur-soft) var(--ease-bloom);
}
/* Sheets peek above the photo (opened wrap) and tuck in toward the bottom. */
.wrap-frame::before { inset: -6% 2% 16% -4%; transform: translate(calc(var(--tilt-y) * -0.8px), calc(var(--tilt-x) * 0.8px)) rotate(calc(-3deg - var(--fan) * 3deg)); }
.wrap-frame::after { inset: -4% -4% 20% 3%; background-color: var(--sheet-front); transform: translate(calc(var(--tilt-y) * -1.4px), calc(var(--tilt-x) * 1.4px)) rotate(calc(2deg + var(--fan) * 2.5deg)); }
.wrap-frame__photo { position: relative; height: 100%; border-radius: var(--radius-sm); overflow: hidden; background: var(--kraft-50); box-shadow: 0 1px 0 rgba(59, 47, 44, .05); }
.wrap-frame__photo > img, .wrap-frame__photo > picture > img, .wrap-frame__photo > .ph { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-bloom) var(--ease-bloom), opacity var(--dur-soft) var(--ease-bloom); }
/* Optional second photo, cross-faded on hover. */
.wrap-frame__photo > .wrap-frame__alt { position: absolute; inset: 0; opacity: 0; }
.wrap-frame--kraft { --sheet-back: var(--mint); --sheet-front: var(--kraft); }
.wrap-frame--mint { --sheet-front: var(--mint); }
.wrap-frame--blush { --sheet-front: var(--blush); }
/* Tone-matched sheets (catalog.WrapFor): the paper behind the photo echoes the bouquet's main tone. */
.wrap-frame--rose { --sheet-back: var(--blush); --sheet-front: var(--rose); }
.wrap-frame--butter { --sheet-front: var(--butter); }
.wrap-frame--flat { margin: 0; }
.wrap-frame--flat::before, .wrap-frame--flat::after { display: none; }
@media (hover: hover) {
  .wrap-frame:hover, a:hover > .wrap-frame, .is-hovered > .wrap-frame { --fan: 1; }
  .wrap-frame:hover .wrap-frame__photo > img, a:hover > .wrap-frame .wrap-frame__photo img, a:hover > .wrap-frame .wrap-frame__photo > .ph { transform: scale(1.04); }
  a:hover > .wrap-frame .wrap-frame__photo:has(.wrap-frame__alt) > picture > img, a:hover > .wrap-frame .wrap-frame__photo:has(.wrap-frame__alt) > .ph { opacity: 0; }
  a:hover > .wrap-frame .wrap-frame__alt { opacity: 1; }
}
/* Slot for a ribbon tag hanging off the frame's lower right corner. */
.wrap-frame__tag { position: absolute; z-index: 2; right: -6%; bottom: 9%; }

/* ---------- Ribbon tag (signature): small hanging gift tag ----------
   <span class="ribbon-tag">450.000đ <span class="ribbon-tag__note">gửi thương</span></span>
   Variants: --blush, --mint, --kraft, --peony, --static (no string, no tilt). --tag-rot, --string-len. */
.ribbon-tag {
  --tag-bg: var(--paper); --tag-line: var(--kraft); --tag-ink: var(--cocoa); --tag-rot: -4deg; --string-len: 30px;
  position: relative; display: inline-flex; align-items: baseline; gap: 8px;
  padding: 6px 14px 6px 26px; border: 1px solid var(--tag-line); border-radius: 12px 4px 4px 12px;
  background-color: var(--tag-bg); color: var(--tag-ink); box-shadow: var(--shadow-paper);
  font-family: var(--font-body); font-size: var(--fs-small); font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap;
  transform: rotate(var(--tag-rot)); transform-origin: 12px 50%;
  transition: transform var(--dur-soft) var(--ease-bloom);
}
/* Punched hole. */
.ribbon-tag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--tag-line), inset 0 1px 2px rgba(59, 47, 44, .18); }
/* String rising from the hole. */
.ribbon-tag::after { content: ""; position: absolute; left: 12.5px; bottom: 50%; width: 1px; height: var(--string-len); background: var(--kraft-deep); opacity: .7; transform: rotate(32deg); transform-origin: 50% 100%; }
.ribbon-tag__note { font-family: var(--font-script); font-weight: 500; font-size: 1.125rem; line-height: 1; color: var(--peony-deep); letter-spacing: 0; }
.ribbon-tag--blush { --tag-bg: var(--blush-50); --tag-line: var(--blush); }
.ribbon-tag--mint { --tag-bg: var(--mint-50); --tag-line: var(--mint); }
.ribbon-tag--kraft { --tag-bg: var(--kraft-50); --tag-line: var(--kraft); }
.ribbon-tag--peony { --tag-bg: var(--peony); --tag-line: var(--peony-deep); --tag-ink: var(--white); }
.ribbon-tag--peony .ribbon-tag__note { color: var(--white); }
.ribbon-tag--static { --tag-rot: 0deg; }
.ribbon-tag--static::after { display: none; }
.ribbon-tag--muted { --tag-ink: var(--cocoa-soft); font-weight: 600; }
@media (hover: hover) { a:hover .ribbon-tag, .ribbon-tag:hover { transform: rotate(calc(var(--tag-rot) * -0.4)); } }

/* ---------- Product card & grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12) var(--space-4); }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-16) var(--space-8); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-20) clamp(28px, 2.6vw, 44px); } }
.product-card { display: flex; flex-direction: column; color: var(--cocoa); text-decoration: none; }
.product-card:hover { color: var(--cocoa); }
.product-card > .wrap-frame { margin-bottom: var(--space-4); }
/* Rotate the sheet colour through the grid so neighbours differ. */
.product-grid > :nth-child(3n+1) > .wrap-frame:not([class*="wrap-frame--"]) { --sheet-front: var(--mint); }
.product-grid > :nth-child(3n+2) > .wrap-frame:not([class*="wrap-frame--"]) { --sheet-front: var(--blush); }
.product-grid > :nth-child(3n+3) > .wrap-frame:not([class*="wrap-frame--"]) { --sheet-back: var(--mint); --sheet-front: var(--kraft); }
.product-grid > :nth-child(even) .ribbon-tag { --tag-rot: 3deg; }
.product-card .label { font-size: 0.75rem; color: var(--sage-deep); margin-bottom: 2px; }
.product-card .name { font-family: var(--font-display); font-variation-settings: var(--display-soft); font-size: 1.125rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; min-width: 0;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size var(--dur-quick) var(--ease-bloom); }
@media (hover: hover) { .product-card:hover .name { background-size: 100% 1px; } }
.product-card .meta { display: grid; gap: 2px; }
.product-card .price { font-size: var(--fs-small); }
.product-card:focus-visible { outline-offset: 8px; border-radius: var(--radius-sm); }
.product-card.is-out .wrap-frame__photo { opacity: .6; }
.product-card .stock { font-size: var(--fs-small); color: var(--cocoa-soft); }
.quote-price { color: var(--peony-deep); font-weight: 700; font-size: var(--fs-small); }
@media (min-width: 640px) { .product-card .name { font-size: 1.25rem; } }

/* Placeholder image: blush block with "PLACEHOLDER: <name>" so nobody mistakes it for a real photo. */
.ph { width: 100%; height: 100%; aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; padding: var(--space-4); background: var(--blush-50); color: var(--peony-deep);
  font-size: var(--fs-label); font-weight: 700; letter-spacing: .04em; border: 1px dashed var(--blush); border-radius: inherit; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: var(--fs-small); color: var(--cocoa-soft); padding-top: var(--space-3); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li:not(:last-child)::after { content: "·"; margin-left: 6px; color: var(--kraft); }
.breadcrumb a { color: var(--cocoa-soft); text-decoration: none; display: inline-block; padding-block: 10px; }
.breadcrumb a:hover { color: var(--peony-deep); }
.breadcrumb [aria-current] { padding-block: 10px; display: inline-block; color: var(--cocoa); }

/* ---------- Filter bar ---------- */
.filter-bar { display: grid; gap: var(--space-3); padding-block: var(--space-4); margin-bottom: var(--space-2); border-block: 1px solid var(--line); }
.filter-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
@media (min-width: 1024px) {
  .filter-bar { grid-template-columns: minmax(260px, 1fr) auto; align-items: center; column-gap: var(--space-6); row-gap: var(--space-4); }
  .filter-bar > fieldset { grid-column: 1 / -1; grid-row: 1; }
  .filter-row { display: flex; }
  .filter-row > * { flex: none; min-width: 150px; }
}
.result-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font-size: var(--fs-small); color: var(--cocoa-soft); margin-bottom: var(--space-4); min-height: 44px; }
.result-count { color: var(--cocoa); font-weight: 700; font-variant-numeric: tabular-nums; }
.search-field { position: relative; }
.search-field input { padding-left: 46px; min-height: 48px; padding-block: 10px; border-radius: var(--radius-pill); background: var(--white); }
.search-field .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--cocoa-soft); pointer-events: none; }
.load-more { display: flex; justify-content: center; margin-top: var(--space-12); }

/* ---------- Reviews ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--kraft); }
.stars .icon { width: 15px; height: 15px; fill: var(--butter); }
.review-track { display: grid; align-items: start; grid-auto-flow: column; grid-auto-columns: 80%; gap: var(--space-6); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: var(--space-6) var(--gutter) var(--space-4); scroll-padding-inline: var(--gutter); }
.review-track::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .review-track { grid-auto-columns: 44%; } }
@media (min-width: 1024px) { .review-track { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: var(--space-6) 0 0; gap: var(--space-8) clamp(24px, 2.4vw, 40px); } }
/* Review card: a handwritten note pinned with a strip of washi tape. */
.review-card {
  --note-bg: var(--paper); --note-rot: -1.2deg; --tape: color-mix(in srgb, var(--mint) 70%, transparent);
  position: relative; scroll-snap-align: start; display: flex; flex-direction: column; gap: var(--space-4);
  padding: var(--space-8) var(--space-6) var(--space-6); background-color: var(--note-bg); background-image: var(--grain);
  border-radius: var(--radius-xs); box-shadow: var(--shadow-paper); transform: rotate(var(--note-rot));
  transition: transform var(--dur-soft) var(--ease-bloom);
}
.review-card::before { content: ""; position: absolute; top: -10px; left: 50%; width: 76px; height: 22px; margin-left: -38px; background: var(--tape); transform: rotate(-3deg); border-radius: 2px; }
.review-card:nth-child(2n) { --note-rot: 1.4deg; --note-bg: var(--blush-50); --tape: color-mix(in srgb, var(--kraft) 55%, transparent); }
.review-card:nth-child(3n) { --note-rot: -0.6deg; --note-bg: var(--mint-50); --tape: color-mix(in srgb, var(--blush) 80%, transparent); }
@media (hover: hover) { .review-card:hover { transform: rotate(0deg) translateY(-3px); } }
.review-card blockquote { font-family: var(--font-display); font-variation-settings: var(--display-soft); font-style: italic; font-size: 1.3125rem; line-height: 1.45; color: var(--cocoa); text-wrap: pretty; }
.review-card .who { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-small); font-weight: 600; color: var(--cocoa-soft); margin-top: auto; }
.review-card .who::before { content: ""; width: 18px; height: 1px; background: var(--kraft); }

/* ---------- Gallery ---------- */
.gallery { position: relative; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius-sm); gap: 0; isolation: isolate; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 5; background: var(--kraft-50); }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.zoom-btn { display: block; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }
.gallery-dots { display: flex; justify-content: center; gap: 2px; margin-top: var(--space-2); }
.gallery-dots a { display: grid; place-items: center; width: 24px; height: 24px; }
.gallery-dots a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background-color var(--dur-quick), transform var(--dur-quick) var(--ease-bloom); }
.gallery-dots a.is-active::before { background: var(--peony); transform: scale(1.25); }
.gallery-thumbs { display: none; }
@media (min-width: 1024px) {
  .gallery-dots { display: none; }
  .gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3); margin-top: var(--space-4); }
  .gallery-thumbs a { border-radius: var(--radius-xs); overflow: hidden; aspect-ratio: 4 / 5; opacity: .6; outline-offset: 3px; transition: opacity var(--dur-quick) var(--ease-bloom); }
  .gallery-thumbs a:hover, .gallery-thumbs a.is-active { opacity: 1; }
  .gallery-thumbs img, .gallery-thumbs .ph { width: 100%; height: 100%; object-fit: cover; font-size: 9px; padding: 4px; }
}
.gallery-note { margin-top: var(--space-3); font-size: var(--fs-small); color: var(--cocoa-soft); text-wrap: pretty; }

/* ---------- Dialog / lightbox base ---------- */
.dialog { border: 0; padding: clamp(20px, 3vw, 32px); width: min(560px, calc(100vw - 2 * var(--gutter))); max-height: min(86dvh, 760px); border-radius: var(--radius-lg); background-color: var(--paper); background-image: var(--grain); color: var(--cocoa); box-shadow: var(--shadow-pop); }
.dialog[open] { animation: dialog-in var(--dur-soft) var(--ease-bloom); }
.dialog::backdrop { background: rgba(59, 47, 44, .45); }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 639px) {
  .dialog--sheet { margin: auto 0 0; width: 100%; max-width: none; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom)); }
  .dialog--sheet[open] { animation: sheet-in var(--dur-soft) var(--ease-bloom); }
}
.lightbox { border: 0; padding: 0; max-width: min(92vw, 900px); background: transparent; }
.lightbox[open] { animation: fade-in var(--dur-overlay) var(--ease-bloom); }
.lightbox::backdrop { background: rgba(59, 47, 44, .88); }
.lightbox img { max-height: 88vh; width: auto; margin: auto; border-radius: var(--radius-sm); }
.lightbox .icon-btn { position: fixed; top: 12px; right: 12px; background: var(--paper); }

/* ---------- Accordion (details) ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion > details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 56px; padding-block: var(--space-3); cursor: pointer; list-style: none; font-weight: 700; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; color: var(--peony); transition: transform var(--dur-quick) var(--ease-bloom); }
.accordion details[open] > summary::after { transform: rotate(45deg); }
.accordion summary:hover { color: var(--peony-deep); }
.accordion .accordion-body { padding-bottom: var(--space-4); color: var(--cocoa-soft); }
.accordion details[open] .accordion-body { animation: fade-up var(--dur-soft) var(--ease-bloom); }

/* ---------- Quantity stepper ---------- */
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--white); }
.qty-stepper button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: var(--radius-pill); cursor: pointer; color: var(--cocoa); transition: background-color var(--dur-quick) var(--ease-bloom), color var(--dur-quick) var(--ease-bloom); }
.qty-stepper button:hover:not([disabled]) { background: var(--blush-50); color: var(--peony-deep); }
.qty-stepper button[disabled] { color: var(--line-strong); cursor: not-allowed; }
.qty-stepper .icon { width: 16px; height: 16px; }
.qty-stepper output { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Form field ---------- */
.form { display: grid; gap: var(--space-6); }
.field { display: grid; gap: 6px; }
.field > label:not(.check), .field > .field-label, legend.field-label { font-size: var(--fs-small); font-weight: 700; color: var(--cocoa); }
legend.field-label { margin-bottom: 6px; }
.field .hint { font-size: var(--fs-small); color: var(--cocoa-soft); }
.req { color: var(--peony); }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--danger); font-size: var(--fs-small); animation: fade-in var(--dur-quick) var(--ease-bloom); }
.field-error::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E") center / contain no-repeat; }
.form-alert { border: 1px solid var(--danger); color: var(--danger); background: var(--white); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); font-size: var(--fs-small); }
/* Form notice: the form was not sent, but nothing the visitor typed is wrong (cart changed, already sent). */
.form-notice { display: grid; gap: var(--space-2); border: 1px solid var(--line); border-left: 3px solid var(--kraft); background: var(--kraft-50); color: var(--cocoa); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); font-size: var(--fs-small); }
.form-notice ul { display: grid; gap: var(--space-1); padding-left: var(--space-4); list-style: disc; }
.form-note { border-top: 1px solid var(--kraft); padding-top: var(--space-3); color: var(--cocoa-soft); font-size: var(--fs-small); }
.row-2 { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Checkout steps ---------- */
.step { display: grid; gap: var(--space-4); padding-block: var(--space-8); border-top: 1px solid var(--line); }
.step:first-of-type { border-top: 0; padding-top: 0; }
.step-title { display: flex; align-items: baseline; gap: var(--space-3); font-family: var(--font-display); font-variation-settings: var(--display-soft); font-size: var(--fs-subhead); font-weight: 500; line-height: 1.2; margin-bottom: var(--space-2); padding: 0; float: left; width: 100%; }
.step-num { font-family: var(--font-script); font-weight: 500; font-size: 1.75rem; line-height: 1; color: var(--peony); flex: none; min-width: 1.1em; }

/* ---------- Delivery slot picker ---------- */
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: var(--space-2); }
.slot-list > p { grid-column: 1 / -1; }
.slot { position: relative; display: flex; }
/* z-index keeps the input above the label while :active scales it (a transformed label would steal mouseup and drop the click). */
.slot input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.slot input:disabled { cursor: not-allowed; }
.slot label {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; padding: 6px 12px;
  border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--white); cursor: pointer; text-align: center;
  font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1.25;
  transition: background-color var(--dur-quick) var(--ease-bloom), border-color var(--dur-quick) var(--ease-bloom), color var(--dur-quick) var(--ease-bloom), transform var(--dur-quick) var(--ease-bloom);
}
.slot label small { font-size: 0.75rem; font-weight: 400; color: var(--cocoa-soft); }
.slot input:hover + label { border-color: var(--cocoa); }
.slot input:active:not(:disabled) + label { transform: scale(.98); }
.slot input:checked + label { background: var(--blush); border-color: var(--peony); color: var(--cocoa); box-shadow: inset 0 0 0 1px var(--peony); }
.slot input:checked + label small { color: var(--cocoa); }
.slot input:focus-visible + label { outline: 2px solid var(--peony); outline-offset: 2px; }
.slot input:disabled + label { background: var(--paper); border-color: var(--line); color: var(--cocoa-soft); cursor: not-allowed; font-weight: 600; }

/* ---------- Gift card note (greeting-card preview) ---------- */
.gift-card { display: grid; gap: var(--space-6); }
@media (min-width: 1024px) { .gift-card { grid-template-columns: 1fr 1fr; align-items: start; } }
.card-stage { padding: var(--space-8) var(--space-4); background-color: var(--mint-50); background-image: var(--grain); border-radius: var(--radius-md); display: grid; place-items: center; }
.card-preview { position: relative; width: 100%; max-width: 340px; background-color: var(--paper); background-image: var(--grain); border-radius: var(--radius-xs); padding: var(--space-8) var(--space-6) var(--space-6); min-height: 220px; display: flex; flex-direction: column; gap: var(--space-4);
  box-shadow: var(--shadow-paper); transform: rotate(-1.2deg); transition: transform var(--dur-soft) var(--ease-bloom); }
.card-preview::before { content: ""; position: absolute; top: -10px; left: 50%; width: 80px; height: 22px; margin-left: -40px; background: color-mix(in srgb, var(--blush) 80%, transparent); transform: rotate(-3deg); border-radius: 2px; pointer-events: none; }
.card-preview .label { text-align: center; }
.card-preview .rule { height: 1px; width: 40px; background: var(--kraft); align-self: center; }
.card-preview .msg { font-family: var(--font-script); font-weight: 500; font-size: 1.625rem; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--cocoa); text-align: center; text-wrap: pretty; }
.card-preview .msg:empty::before { content: attr(data-empty); color: var(--cocoa-soft); }
.card-preview .from { font-family: var(--font-script); font-weight: 500; font-size: 1.25rem; color: var(--peony-deep); text-align: right; margin-top: auto; min-height: 1.5em; }
.gift-card:focus-within .card-preview { transform: rotate(0deg) translateY(-2px); }
.counter { font-size: var(--fs-small); color: var(--cocoa-soft); text-align: right; font-variant-numeric: tabular-nums; }
.suggestions { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.suggestions button { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); min-height: 44px; cursor: pointer; font: inherit; font-size: var(--fs-small); line-height: 1.5; color: var(--cocoa); transition: border-color var(--dur-quick) var(--ease-bloom), background-color var(--dur-quick) var(--ease-bloom); }
.suggestions button:hover { border-color: var(--blush); background: var(--blush-50); }
details.suggest > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-1); min-height: 44px; color: var(--sage-deep); font-weight: 700; }
details.suggest > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 6px; transition: transform var(--dur-quick) var(--ease-bloom); }
details.suggest[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
details.suggest[open] .suggestions { animation: fade-up var(--dur-quick) var(--ease-bloom); }
details.suggest > summary::-webkit-details-marker { display: none; }

/* ---------- Order summary ---------- */
.summary { background-color: var(--kraft-50); background-image: var(--grain); border-radius: var(--radius-md); padding: clamp(20px, 3vw, 32px); display: grid; gap: var(--space-4); }
.summary > h2 { font-family: var(--font-display); font-variation-settings: var(--display-soft); font-weight: 500; font-size: var(--fs-subhead); }
.summary-items { display: grid; gap: var(--space-3); }
.summary-item { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--space-3); align-items: center; font-size: var(--fs-small); }
.summary-item .thumb { width: 56px; aspect-ratio: 4 / 5; border-radius: var(--radius-xs); overflow: hidden; background: var(--blush-50); }
.summary-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.summary-item .thumb .ph { font-size: 6px; padding: 2px; letter-spacing: 0; }
.summary-lines { display: grid; gap: var(--space-2); border-top: 1px solid color-mix(in srgb, var(--kraft) 55%, transparent); padding-top: var(--space-4); font-size: var(--fs-small); }
.summary-lines div { display: flex; justify-content: space-between; gap: var(--space-4); }
.summary-lines .total { font-size: var(--fs-title); font-weight: 700; color: var(--cocoa); align-items: baseline; }
.summary-lines dd { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Status badge ---------- */
.status { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.status--new { background: var(--blush-50); color: var(--peony-deep); }
.status--confirmed { background: var(--kraft-50); color: var(--cocoa); }
.status--making { background: var(--kraft-50); color: var(--kraft-deep); }
.status--delivering { background: var(--mint-50); color: var(--sage-ink); }
.status--done { background: var(--sage-deep); color: var(--white); }
.status--cancelled { background: var(--line); color: var(--cocoa-soft); text-decoration: line-through; }
.status--paid { background: var(--mint-50); color: var(--sage-ink); }
.status--unpaid { background: var(--kraft-50); color: var(--cocoa); }

/* ---------- Payment QR ---------- */
.payment-qr { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: clamp(20px, 3vw, 32px); display: grid; gap: var(--space-4); }
.payment-qr img { width: 100%; max-width: 280px; margin-inline: auto; border-radius: var(--radius-sm); }
.copy-rows { display: grid; gap: var(--space-2); }
.copy-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-3); padding-block: var(--space-2); border-bottom: 1px solid var(--line); }
.copy-row dt { font-size: var(--fs-small); color: var(--cocoa-soft); }
.copy-row dd { font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius-pill); cursor: pointer; font-size: var(--fs-small); font-weight: 600; color: var(--sage-deep); transition: border-color var(--dur-quick) var(--ease-bloom); }
.copy-btn .icon { width: 16px; height: 16px; }
.copy-btn:hover { border-color: var(--sage-deep); }

/* ---------- Toast ---------- */
.toast-region { position: fixed; left: 0; right: 0; bottom: calc(var(--dock-h) + env(safe-area-inset-bottom) + 12px); z-index: 50; display: flex; justify-content: center; pointer-events: none; padding-inline: var(--gutter); }
@media (min-width: 1024px) { .toast-region { bottom: 28px; } }
.toast { background: var(--cocoa); color: var(--white); border-radius: var(--radius-pill); padding: 12px 22px; box-shadow: var(--shadow-pop); font-size: var(--fs-small); font-weight: 600; display: inline-flex; gap: var(--space-2); align-items: center; animation: toast-in var(--dur-soft) var(--ease-bloom); }
.toast .icon { width: 18px; height: 18px; color: var(--blush); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Empty state ---------- */
.empty-state { display: grid; justify-items: center; text-align: center; gap: var(--space-4); padding: clamp(48px, 8vw, 96px) var(--space-4); max-width: 460px; margin-inline: auto; }
.empty-state .icon { width: 44px; height: 44px; color: var(--sage-deep); stroke-width: 1; }
.empty-state .empty-note { font-family: var(--font-script); font-weight: 500; font-size: var(--fs-script); color: var(--peony-deep); }
.empty-state p { color: var(--cocoa-soft); text-wrap: pretty; }

/* ---------- Info list (hairline rows, no box) ---------- */
.info-box { display: grid; gap: 0; border-top: 1px solid var(--line); }
.info-box > li { display: flex; gap: var(--space-3); font-size: var(--fs-small); padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
.info-box .icon { width: 18px; height: 18px; color: var(--sage-deep); flex: none; margin-top: 2px; }
.pending-note { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: .02em; color: var(--peony-deep); background: var(--blush-50); border-radius: var(--radius-pill); padding: 2px 10px; }
.draft-banner { background: var(--blush-50); color: var(--peony-deep); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); font-size: var(--fs-small); margin-bottom: var(--space-6); }
.form:has([name=delivery_type][value=pickup]:checked) [data-address] { display: none; }

/* Social channel links (footer + contact page). Touch targets stay >= 44px. */
.socials ul { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.socials a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding-inline: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-pill); text-decoration: none; font-size: var(--fs-small); font-weight: 600; transition: border-color var(--dur-quick) var(--ease-bloom); }
.socials a:hover { border-color: currentColor; text-decoration: none; }
.socials .icon { width: 18px; height: 18px; flex: none; }
.socials .title { margin-bottom: var(--space-3); }
.footer-socials a { border-color: color-mix(in srgb, var(--kraft) 70%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .wrap-frame { transform: none; }
  .wrap-frame::before { transform: rotate(-3deg); }
  .wrap-frame::after { transform: rotate(2deg); }
}
