/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 50px; padding: 12px 28px; border-radius: var(--rounded-sm); border: 1px solid transparent;
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:active:not([disabled]):not([aria-disabled="true"]) { transform: translateY(1px) scale(0.99); }
.btn .icon { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--forest-green); color: var(--ivory-cream); }
.btn-primary:hover { background: var(--forest-deep); color: var(--ivory-cream); }
.btn-secondary { background: transparent; color: var(--forest-green); border-color: var(--forest-green); }
.btn-secondary:hover { background: var(--forest-green); color: var(--ivory-cream); }
.btn-ghost { background: none; color: var(--forest-green); padding-inline: var(--space-2); min-height: 44px; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 5px; text-transform: none; letter-spacing: 0; font-size: var(--fs-small); font-weight: 500; }
.btn-ghost:hover { text-decoration-color: currentColor; }
.btn-zalo { background: var(--white); color: var(--charcoal); border-color: var(--linen); }
.btn-zalo:hover { border-color: var(--charcoal); color: var(--charcoal); }
.btn-block { width: 100%; }
.btn-square { padding: 0; width: 50px; flex: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; 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 a drawn underline that grows on hover. */
.link-arrow { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; font-size: var(--fs-small); font-weight: 500; text-decoration: none; color: var(--forest-green); position: relative; }
.link-arrow::after { content: ""; position: absolute; left: 0; right: 26px; bottom: 10px; height: 1px; background: currentColor; transform-origin: left; transform: scaleX(.35); transition: transform var(--dur-base) var(--ease); }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--rounded-pill); color: var(--charcoal); background: none; border: 0; cursor: pointer; position: relative; transition: background-color var(--dur-fast) var(--ease); }
.icon-btn:hover { background: var(--paper); color: var(--charcoal); }
.icon-btn .icon { width: 22px; height: 22px; stroke-width: 1.5; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--ivory-cream) 94%, transparent); border-bottom: 1px solid var(--linen); }
@supports (backdrop-filter: blur(8px)) { .site-header { backdrop-filter: saturate(1.2) blur(10px); } }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); }
.wordmark { justify-self: center; display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--forest-green); line-height: 1; }
.wordmark:hover { color: var(--forest-deep); }
.wordmark-name { font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; letter-spacing: -0.01em; }
.wordmark-sub { font-size: 0.5625rem; font-weight: 500; letter-spacing: 0.52em; margin-top: 5px; margin-right: -0.52em; color: var(--champagne-deep); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 0; }
.header-hotline { display: none; align-items: center; gap: var(--space-2); font-size: var(--fs-small); font-weight: 500; font-variant-numeric: tabular-nums; text-decoration: none; color: var(--charcoal); margin-right: var(--space-3); min-height: 44px; }
.header-hotline .icon { width: 16px; height: 16px; color: var(--champagne-deep); }
.cart-badge { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--rounded-pill); background: var(--forest-green); color: var(--ivory-cream); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease); }
.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: var(--ivory-cream); border-bottom: 1px solid var(--linen); box-shadow: var(--shadow-soft); padding: var(--space-2) var(--gutter) var(--space-6); max-height: calc(100dvh - var(--header-h)); overflow: auto; }
.nav-drawer[open] .drawer { animation: drawer-in var(--dur-overlay) var(--ease-out); }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.drawer a:not(.btn) { display: flex; align-items: center; justify-content: space-between; min-height: 56px; color: var(--charcoal); text-decoration: none; border-bottom: 1px solid var(--linen); font-family: var(--font-display); font-size: 1.375rem; }
.drawer a:not(.btn):hover { color: var(--forest-green); }
.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; }
.nav-drawer[open] > summary .icon-menu { display: none; }
.nav-drawer:not([open]) > summary .icon-close { display: none; }
@media (min-width: 1024px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: var(--space-8); }
  .nav-drawer { display: none; }
  .wordmark { justify-self: start; }
  .wordmark-name { font-size: 1.625rem; }
  .main-nav { display: flex; justify-content: center; gap: clamp(20px, 2.4vw, 40px); }
  .main-nav a { position: relative; color: var(--charcoal); text-decoration: none; font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase; padding-block: var(--space-3); }
  .main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--champagne-gold); transform: scaleX(0); transform-origin: center; transition: transform var(--dur-base) var(--ease); }
  .main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .main-nav a:hover { color: var(--forest-green); }
  .header-hotline { display: inline-flex; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--blush-soft); color: var(--charcoal); padding-block: clamp(48px, 6vw, 88px) var(--space-6); margin-top: var(--space-8); }
.site-footer a { color: var(--charcoal); text-decoration: none; }
.site-footer a:hover { color: var(--forest-green); text-decoration: underline; }
.footer-top { display: grid; gap: var(--space-8); padding-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid color-mix(in srgb, var(--dusty-rose) 45%, transparent); }
.footer-brand { display: grid; gap: var(--space-4); justify-items: start; align-content: start; }
.footer-brand .wordmark { align-items: flex-start; justify-self: start; }
.footer-brand .slogan { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.2; color: var(--rose-deep); max-width: 16ch; }
.footer-grid { display: grid; gap: var(--space-8); grid-template-columns: 1fr 1fr; }
.footer-col h2 { font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase; margin-bottom: var(--space-3); color: var(--taupe); }
.footer-col ul { display: grid; }
.footer-col li > a { display: inline-flex; align-items: center; min-height: 40px; font-size: var(--fs-small); }
.footer-contact { grid-column: 1 / -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 li > span a { display: inline-block; padding-block: 8px; text-decoration: underline; text-underline-offset: 4px; }
.footer-contact .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--rose-deep); }
.footer-seo { padding-block: var(--space-6); font-size: var(--fs-small); color: var(--taupe); }
.footer-seo ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); }
.footer-seo a { display: inline-flex; min-height: 40px; align-items: center; color: var(--taupe) !important; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center; font-size: var(--fs-small); color: var(--taupe); padding-top: var(--space-4); border-top: 1px solid color-mix(in srgb, var(--dusty-rose) 45%, transparent); }
.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-top { grid-template-columns: 5fr 7fr; gap: var(--space-16); } }

/* ---------- Contact Dock (single sticky bottom bar, mobile) ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: color-mix(in srgb, var(--ivory-cream) 96%, transparent); border-top: 1px solid var(--linen); box-shadow: 0 -8px 24px rgba(48, 45, 43, 0.06);
  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); }
@supports (backdrop-filter: blur(8px)) { .dock { backdrop-filter: blur(10px); } }
.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(--taupe); }
.dock-actions { display: flex; gap: var(--space-2); flex: none; }
body.kb-open .dock { transform: translateY(110%); }
@media (min-width: 1024px) { .dock { display: none; } }

/* ---------- Chips ---------- */
.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; min-height: 44px; padding: 8px 16px; border-radius: var(--rounded-sm); background: transparent; color: var(--charcoal); border: 1px solid var(--linen);
  font-size: var(--fs-small); white-space: nowrap; text-decoration: none; cursor: pointer; flex: none; position: relative;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.chip:hover { border-color: var(--charcoal); color: var(--charcoal); }
.chip[aria-current="true"], .chip.is-selected, input:checked + .chip { background: var(--forest-green); color: var(--ivory-cream); border-color: var(--forest-green); }
input:focus-visible + .chip { outline: 2px solid var(--forest-green); 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; } }

/* ---------- Arch frame (signature) ---------- */
.arch { border-radius: var(--arch); overflow: hidden; background: var(--paper); isolation: isolate; }
.arch img, .arch .ph { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Product card & grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-3); }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12) var(--space-6); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-16) clamp(24px, 2.4vw, 40px); } }
.product-card { display: flex; flex-direction: column; color: var(--charcoal); text-decoration: none; }
.product-card:hover { color: var(--charcoal); }
.product-card .media { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper); margin-bottom: var(--space-3); isolation: isolate; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) { .product-card:hover .media img { transform: scale(1.035); } }
.product-card .label { font-size: 0.6875rem; color: var(--taupe); margin-bottom: 2px; }
.product-card .meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px var(--space-3); }
.product-card .name { font-size: 0.9375rem; font-weight: 500; line-height: 1.4; flex: 1 1 12ch; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .price { font-size: 0.9375rem; color: var(--forest-green); }
.product-card .name { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size var(--dur-base) var(--ease); }
@media (hover: hover) { .product-card:hover .name { background-size: 100% 1px; } }
.product-card:focus-visible { outline-offset: 6px; }
.product-card.is-out .media { opacity: .6; }
.product-card .stock { font-size: var(--fs-small); color: var(--taupe); }
.quote-price { color: var(--rose-deep); font-weight: 500; font-size: var(--fs-small); }
@media (max-width: 639px) { .product-card .meta { display: grid; gap: 2px; } .product-card .name { flex: none; } }

/* 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-pink); color: var(--rose-deep);
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border: 1px dashed var(--dusty-rose); border-radius: inherit; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: var(--fs-small); color: var(--taupe); 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(--line-strong); }
.breadcrumb a { color: var(--taupe); text-decoration: none; display: inline-block; padding-block: 10px; }
.breadcrumb a:hover { color: var(--forest-green); text-decoration: underline; }
.breadcrumb [aria-current] { padding-block: 10px; display: inline-block; color: var(--charcoal); }

/* ---------- 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(--linen); }
.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(--taupe); margin-bottom: var(--space-4); min-height: 44px; }
.result-count { color: var(--charcoal); font-weight: 500; font-variant-numeric: tabular-nums; }
.search-field { position: relative; }
.search-field input { padding-left: 44px; min-height: 46px; padding-block: 10px; background: var(--white); }
.search-field .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--taupe); pointer-events: none; }
.load-more { display: flex; justify-content: center; margin-top: var(--space-12); }

/* ---------- Occasion tile: a row of small arches ---------- */
.occasion-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 30%; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--space-2); scroll-padding-inline: var(--gutter); }
.occasion-grid::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .occasion-grid { grid-auto-columns: 22%; } }
@media (min-width: 1024px) { .occasion-grid { grid-auto-flow: row; grid-template-columns: repeat(8, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: clamp(16px, 1.8vw, 28px); } }
.occasion-tile { display: grid; gap: var(--space-3); justify-items: center; text-decoration: none; color: var(--charcoal); scroll-snap-align: start; text-align: center; }
.occasion-tile .frame { width: 100%; aspect-ratio: 3 / 4; border-radius: var(--arch); overflow: hidden; background: var(--paper); isolation: isolate; }
.occasion-tile img, .occasion-tile .ph { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; transition: transform 600ms var(--ease-out); }
.occasion-tile .ph { background: var(--blush-soft); border-color: var(--dusty-rose); font-size: 0.625rem; }
.occasion-tile .name { font-size: var(--fs-small); font-weight: 500; line-height: 1.3; }
@media (hover: hover) { .occasion-tile:hover img { transform: scale(1.04); } .occasion-tile:hover .name { color: var(--forest-green); } }

/* ---------- Rating badge & reviews ---------- */
.rating-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--charcoal); text-decoration: none; font-size: var(--fs-small); }
.rating-badge .icon { width: 16px; height: 16px; color: var(--champagne-gold); fill: currentColor; }
.rating-badge strong { font-weight: 600; }
.rating-badge:hover { color: var(--forest-green); }
.stars { display: inline-flex; gap: 2px; color: var(--champagne-gold); }
.stars .icon { width: 14px; height: 14px; fill: currentColor; }
.review-track { display: grid; align-items: start; grid-auto-flow: column; grid-auto-columns: 84%; gap: var(--space-6); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--space-2); scroll-padding-inline: var(--gutter); }
.review-track::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .review-track { grid-auto-columns: 46%; } }
@media (min-width: 1024px) { .review-track { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: var(--space-12) clamp(32px, 4vw, 64px); } }
.review-card { scroll-snap-align: start; padding-top: var(--space-6); border-top: 1px solid var(--champagne-gold); display: flex; flex-direction: column; gap: var(--space-4); }
.review-card blockquote { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--charcoal); text-wrap: pretty; }
.review-card .who { font-size: var(--fs-small); color: var(--taupe); margin-top: auto; }

/* ---------- Gallery ---------- */
.gallery { position: relative; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--arch); 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(--paper); }
.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(--linen); transition: background-color var(--dur-fast), transform var(--dur-base) var(--ease); }
.gallery-dots a.is-active::before { background: var(--forest-green); 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(--arch); overflow: hidden; aspect-ratio: 4 / 5; opacity: .6; outline-offset: 3px; transition: opacity var(--dur-base) var(--ease); }
  .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(--taupe); text-wrap: pretty; }
.lightbox { border: 0; padding: 0; max-width: min(92vw, 900px); background: transparent; }
.lightbox[open] { animation: fade-in var(--dur-overlay) var(--ease-out); }
.lightbox::backdrop { background: rgba(48, 45, 43, .88); }
.lightbox img { max-height: 88vh; width: auto; margin: auto; border-radius: var(--rounded-md); }
.lightbox .icon-btn { position: fixed; top: 12px; right: 12px; background: var(--ivory-cream); }

/* ---------- Quantity stepper ---------- */
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--linen); border-radius: var(--rounded-sm); background: var(--white); }
.qty-stepper button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: var(--rounded-sm); cursor: pointer; color: var(--charcoal); transition: background-color var(--dur-fast) var(--ease); }
.qty-stepper button:hover:not([disabled]) { background: var(--paper); }
.qty-stepper button[disabled] { color: var(--linen); cursor: not-allowed; }
.qty-stepper .icon { width: 16px; height: 16px; }
.qty-stepper output { min-width: 28px; text-align: center; font-weight: 600; 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: 600; color: var(--charcoal); }
legend.field-label { margin-bottom: 6px; }
.field .hint { font-size: var(--fs-small); color: var(--taupe); }
.req { color: var(--rose-deep); }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--berry-red); font-size: var(--fs-small); animation: fade-in var(--dur-base) var(--ease); }
.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(--berry-red); color: var(--berry-red); background: var(--white); border-radius: var(--rounded-sm); padding: var(--space-3) var(--space-4); font-size: var(--fs-small); }
.form-note { border-top: 1px solid var(--champagne-gold); padding-top: var(--space-3); color: var(--taupe); 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(--linen); }
.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-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-display); font-style: italic; font-size: 1.5rem; line-height: 1; color: var(--rose-deep); flex: none; min-width: 1.25em; }

/* ---------- 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(--rounded-sm); border: 1px solid var(--line-strong); background: var(--white); cursor: pointer; text-align: center;
  font-variant-numeric: tabular-nums; font-weight: 600; line-height: 1.25;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.slot label small { font-size: 0.75rem; font-weight: 400; color: var(--taupe); }
.slot input:hover + label { border-color: var(--charcoal); }
.slot input:active:not(:disabled) + label { transform: scale(.98); }
.slot input:checked + label { background: var(--forest-green); border-color: var(--forest-green); color: var(--ivory-cream); }
.slot input:checked + label small { color: var(--ivory-cream); }
.slot input:focus-visible + label { outline: 2px solid var(--forest-green); outline-offset: 2px; }
.slot input:disabled + label { background: var(--ivory-cream); border-color: var(--linen); color: var(--taupe); cursor: not-allowed; font-weight: 500; }

/* ---------- Gift card note (signature interaction) ---------- */
.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-6) var(--space-4); background: var(--blush-soft); border-radius: var(--rounded-md); display: grid; place-items: center; }
.card-preview { position: relative; width: 100%; max-width: 340px; background: var(--white); border-radius: var(--rounded-sm); 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-card); transform: rotate(-1.2deg); transition: transform var(--dur-overlay) var(--ease-out); }
.card-preview::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--champagne-gold); border-radius: 2px; pointer-events: none; }
.card-preview .label { text-align: center; }
.card-preview .rule { height: 1px; width: 40px; background: var(--champagne-gold); align-self: center; }
.card-preview .msg { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--charcoal); text-align: center; text-wrap: pretty; }
.card-preview .msg:empty::before { content: attr(data-empty); color: var(--taupe); }
.card-preview .from { font-family: var(--font-display); font-style: italic; color: var(--rose-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(--taupe); 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(--linen); border-radius: var(--rounded-sm); 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(--charcoal); transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease); }
.suggestions button:hover { border-color: var(--forest-green); background: var(--forest-4); }
details.suggest > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-1); min-height: 44px; color: var(--forest-green); font-weight: 500; }
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-base) var(--ease); }
details.suggest[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
details.suggest[open] .suggestions { animation: fade-up var(--dur-base) var(--ease-out); }
details.suggest > summary::-webkit-details-marker { display: none; }

/* ---------- Order summary ---------- */
.summary { background: var(--paper); border-radius: var(--rounded-md); padding: clamp(20px, 3vw, 32px); display: grid; gap: var(--space-4); }
.summary > h2 { font-family: var(--font-display); 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(--arch); overflow: hidden; background: var(--blush-pink); }
.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 var(--linen); 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: 600; color: var(--forest-green); 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(--rounded-pill); font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.status--new { background: var(--blush-pink); color: var(--rose-deep); }
.status--confirmed { background: var(--linen); color: var(--charcoal); }
.status--making { background: var(--linen); color: var(--champagne-deep); }
.status--delivering { background: var(--forest-10); color: var(--forest-green); }
.status--done { background: var(--forest-green); color: var(--ivory-cream); }
.status--cancelled { background: var(--linen); color: var(--taupe); text-decoration: line-through; }
.status--paid { background: var(--forest-10); color: var(--forest-green); }
.status--unpaid { background: var(--linen); color: var(--charcoal); }

/* ---------- Payment QR ---------- */
.payment-qr { background: var(--white); border: 1px solid var(--linen); border-radius: var(--rounded-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(--rounded-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(--linen); }
.copy-row dt { font-size: var(--fs-small); color: var(--taupe); }
.copy-row dd { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--linen); background: var(--white); border-radius: var(--rounded-sm); cursor: pointer; font-size: var(--fs-small); color: var(--forest-green); transition: border-color var(--dur-fast) var(--ease); }
.copy-btn .icon { width: 16px; height: 16px; }
.copy-btn:hover { border-color: var(--forest-green); }

/* ---------- 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(--charcoal); color: var(--ivory-cream); border-radius: var(--rounded-sm); padding: 12px 20px; box-shadow: var(--shadow-soft); font-size: var(--fs-small); font-weight: 500; display: inline-flex; gap: var(--space-2); align-items: center; animation: toast-in var(--dur-overlay) var(--ease-out); }
.toast .icon { width: 18px; height: 18px; color: var(--blush-pink); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } 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(--dusty-rose); stroke-width: 1; }
.empty-state p { color: var(--taupe); text-wrap: pretty; }

/* ---------- Info list (hairline rows, no box) ---------- */
.info-box { display: grid; gap: 0; border-top: 1px solid var(--linen); }
.info-box > li { display: flex; gap: var(--space-3); font-size: var(--fs-small); padding-block: var(--space-3); border-bottom: 1px solid var(--linen); }
.info-box .icon { width: 18px; height: 18px; color: var(--champagne-deep); flex: none; margin-top: 2px; }
.pending-note { display: inline-block; font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rose-deep); background: var(--blush-pink); border-radius: var(--rounded-sm); padding: 2px 10px; }
.draft-banner { background: var(--blush-pink); color: var(--rose-deep); border-radius: var(--rounded-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-3); border: 1px solid var(--linen); border-radius: var(--rounded-sm); text-decoration: none; font-size: var(--fs-small); transition: border-color var(--dur-fast) var(--ease); }
.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(--dusty-rose) 60%, transparent); }
