/* Greenville flood-sale store — stylesheet.
 *
 * Visual language: the Notion design system (from the `popular-web-designs` skill) — warm
 * neutral greys with yellow-brown undertones, near-black text at 95%, whisper-weight 1px
 * borders, multi-layer shadows whose individual opacity never exceeds 0.05, one saturated
 * accent (Notion Blue #0075de) for the CTA only. The warm white #f6f5f4 is what carries the
 * section rhythm.
 *
 * Mobile-first: every layout below is written for a 360-430px phone and widened at 640px /
 * 900px. The buyer is standing in a queue looking at this on a phone, so the primary action
 * is a full-width button within thumb reach, and the cart / add-to-cart bars are pinned to
 * the bottom of the viewport.
 *
 * Motion: restrained and always interruptible — a 160-260ms transition, an opacity+translate
 * reveal as sections scroll in, a badge that pops when the cart changes. `prefers-reduced-
 * motion` turns all of it off.
 */

:root {
  /* --- Notion palette ------------------------------------------------------------- */
  --ink: rgba(0, 0, 0, 0.95);
  --ink-soft: rgba(0, 0, 0, 0.75);
  --warm-dark: #31302e;
  --warm-500: #615d59;
  --warm-300: #a39e98;
  --warm-100: #f6f5f4;
  --warm-050: #fbfaf9;
  --white: #ffffff;
  --border: 1px solid rgba(0, 0, 0, 0.1);
  --border-strong: 1px solid rgba(0, 0, 0, 0.16);
  --blue: #0075de;
  --blue-dark: #005bab;
  --blue-tint: #f2f9ff;
  --blue-text: #097fe8;
  --green: #1aae39;
  --green-tint: #f0fbf2;
  --orange: #dd5b00;
  --orange-tint: #fff6ee;
  --red: #d43f3a;
  --red-tint: #fdf2f2;
  --navy: #213183;

  /* --- Elevation (multi-layer, cumulative opacity <= 0.05) ------------------------ */
  --shadow-card:
    rgba(0, 0, 0, 0.04) 0 4px 18px, rgba(0, 0, 0, 0.027) 0 2px 7.85px,
    rgba(0, 0, 0, 0.02) 0 0.8px 2.93px, rgba(0, 0, 0, 0.01) 0 0.175px 1.04px;
  --shadow-deep:
    rgba(0, 0, 0, 0.01) 0 1px 3px, rgba(0, 0, 0, 0.02) 0 3px 7px,
    rgba(0, 0, 0, 0.02) 0 7px 15px, rgba(0, 0, 0, 0.04) 0 14px 28px,
    rgba(0, 0, 0, 0.05) 0 23px 52px;
  --shadow-bar: 0 -1px 0 rgba(0, 0, 0, 0.08), 0 -8px 24px rgba(0, 0, 0, 0.05);

  /* --- Spacing: 8px base, the organic Notion scale ------------------------------- */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  --tap: 44px;                     /* minimum touch target height */
  --content: 1080px;
  --bar-h: 68px;                   /* pinned bottom bar height, reserved in body padding */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Thai',
    'Sarabun', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

body.no-bar { padding-bottom: 0; }

/* Thai script needs a touch more line-height than Latin to avoid clipping the loop marks,
 * and it has no case, so a 500-weight label reads as emphasis the way caps do in English. */
:lang(th) { line-height: 1.6; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 0 0 var(--s4); color: var(--warm-500); }
p:last-child { margin-bottom: 0; }

img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 var(--s4); }
.wrap--narrow { max-width: 720px; }
.stack > * + * { margin-top: var(--s4); }
.muted { color: var(--warm-500); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--white); padding: var(--s2) var(--s3);
  z-index: 100; border: var(--border);
}
.skip-link:focus { left: var(--s2); }

/* ---------------------------------------------------------------- top bar + nav ---- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: var(--border);
}
.topbar__inner {
  display: flex; align-items: center; gap: var(--s3);
  height: 56px; width: 100%; max-width: var(--content);
  margin: 0 auto; padding: 0 var(--s4);
}
.brand { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.brand__mark {
  width: 30px; height: 30px; border-radius: var(--radius); flex: none;
  background: linear-gradient(140deg, #1aae39, #0d7a2a);
  color: #fff; font-weight: 700; font-size: 15px;
  display: grid; place-items: center;
}
.brand__text { min-width: 0; }
.brand__name { font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.brand__sub {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.125px;
  color: var(--blue-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar__spacer { flex: 1; }

.iconbtn {
  position: relative; display: inline-grid; place-items: center;
  min-width: var(--tap); height: var(--tap); padding: 0 var(--s3);
  border: var(--border); border-radius: var(--radius); background: var(--white);
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.iconbtn:hover { background: var(--warm-100); text-decoration: none; }
.iconbtn:active { transform: scale(0.96); }
.cartbtn { position: relative; }
.cartbtn__label { display: none; }
.badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: var(--radius-pill); background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 600; line-height: 20px; text-align: center;
}
.badge--pop { animation: pop 320ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* --------------------------------------------------------------------- hero ------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 420px at 88% -12%, rgba(26, 174, 57, 0.10), transparent 62%),
    linear-gradient(180deg, var(--warm-100), var(--white));
  border-bottom: var(--border);
}
.hero__inner { padding: var(--s6) 0 var(--s5); display: grid; gap: var(--s5); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-tint); color: var(--blue-text);
  border-radius: var(--radius-pill); padding: 4px 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.125px;
  width: fit-content;
}
.hero h1 {
  font-size: clamp(28px, 8.4vw, 54px); line-height: 1.12; letter-spacing: -0.03em;
  font-weight: 700;
}
.hero__sub { font-size: 16px; color: var(--warm-500); margin-top: var(--s4); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

.hero__media {
  position: relative; border: var(--border); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-card); background: var(--warm-100);
  aspect-ratio: 4 / 3;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__float {
  position: absolute; left: var(--s3); bottom: var(--s3); right: var(--s3);
  background: rgba(255, 255, 255, 0.94); border-radius: var(--radius);
  border: var(--border); padding: var(--s3); display: flex; gap: var(--s3);
  align-items: center; backdrop-filter: blur(6px);
}
.hero__float strong { font-size: 14px; }
.hero__float svg { flex: none; }

.facts { display: grid; gap: var(--s2); grid-template-columns: 1fr; }
.fact {
  display: flex; align-items: baseline; gap: var(--s2);
  border: var(--border); border-radius: var(--radius-lg); background: var(--white);
  padding: var(--s3) var(--s4); box-shadow: var(--shadow-card);
}
.fact__value { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.fact__key { font-size: 13px; color: var(--warm-500); }

/* ------------------------------------------------------------------- buttons ------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--tap); padding: 10px var(--s4);
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.3;
  cursor: pointer; text-align: center;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 2px; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--secondary { background: rgba(0, 0, 0, 0.05); color: var(--ink); }
.btn--secondary:hover { background: rgba(0, 0, 0, 0.08); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { text-decoration: underline; }
.btn--danger { background: var(--red-tint); color: var(--red); border-color: rgba(212, 63, 58, 0.2); }
.btn--block { width: 100%; }
.btn--sm { min-height: 36px; padding: 6px var(--s3); font-size: 14px; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.55; cursor: not-allowed; }

/* ------------------------------------------------------------------- sections ----- */

.section { padding: var(--s7) 0; }
.section--tint { background: var(--warm-100); }
.section--dark { background: var(--warm-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255, 255, 255, 0.78); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); }
.section h2 { font-size: clamp(22px, 5.6vw, 34px); letter-spacing: -0.026em; line-height: 1.18; }
.section__lead { margin-top: var(--s3); max-width: 62ch; }

.story { display: grid; gap: var(--s5); }
.story__body p { font-size: 16px; }
.story--inverse .story__body p { color: rgba(255, 255, 255, 0.82); }
.signature { font-weight: 600; color: var(--ink); }
.section--dark .signature { color: #fff; }

.steps { display: grid; gap: var(--s3); counter-reset: step; }
.step {
  position: relative; border: var(--border); border-radius: var(--radius-lg);
  background: var(--white); padding: var(--s4) var(--s4) var(--s4) 60px;
  box-shadow: var(--shadow-card);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: var(--s4); top: var(--s4);
  width: 28px; height: 28px; border-radius: var(--radius-pill);
  background: var(--blue-tint); color: var(--blue-text);
  font-size: 13px; font-weight: 700; display: grid; place-items: center;
}
.step h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.step p { font-size: 14px; margin-top: 2px; }

.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.bullets li { position: relative; padding-left: 26px; color: var(--warm-500); font-size: 15px; }
.bullets li::before {
  content: ''; position: absolute; left: 4px; top: 9px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--green);
}

.timeline { display: grid; gap: var(--s3); }
.timeline__row { display: grid; grid-template-columns: 108px 1fr; gap: var(--s3); }
.timeline__when { font-size: 12px; color: var(--warm-300); }
.timeline__what { font-size: 14px; }

/* ------------------------------------------------------------------- cards -------- */

.grid { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--wide { grid-template-columns: 1fr; }

.card {
  display: flex; flex-direction: column;
  background: var(--white); border: var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.card:hover { box-shadow: var(--shadow-deep); transform: translateY(-2px); }
.card__media { position: relative; aspect-ratio: 4 / 5; background: var(--warm-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__body { padding: var(--s3); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.card__title { font-size: 15px; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.card__title a { color: var(--ink); }
.card__sub { font-size: 13px; color: var(--warm-500); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.card__price { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.card__price small { font-size: 12px; font-weight: 500; color: var(--warm-300); text-decoration: line-through; margin-left: 4px; }

.label {
  position: absolute; top: var(--s2); left: var(--s2);
  background: #e8474b; color: #fff; border-radius: var(--radius-sm);
  padding: 3px 7px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.label--soft { background: var(--blue-tint); color: var(--blue-text); box-shadow: none; }
.label--green { background: var(--green-tint); color: #0d7a2a; box-shadow: none; }
.label--warn { background: var(--orange-tint); color: var(--orange); box-shadow: none; }
.label--muted { background: var(--warm-100); color: var(--warm-500); box-shadow: none; }
.label--float { position: static; display: inline-block; }

.chips { display: flex; gap: var(--s2); overflow-x: auto; padding: var(--s1) 0 var(--s2); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  border: var(--border); border-radius: var(--radius-pill); background: var(--white);
  padding: 7px var(--s3); font-size: 13px; font-weight: 500; color: var(--warm-500);
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.chip:hover { background: var(--warm-100); text-decoration: none; }
.chip[aria-current='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip__count { font-size: 12px; color: var(--warm-300); }
.chip[aria-current='true'] .chip__count { color: rgba(255, 255, 255, 0.7); }

.segmented {
  display: flex; gap: var(--s1); padding: 4px; background: var(--warm-100);
  border-radius: var(--radius); border: var(--border); width: fit-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented a {
  flex: none; padding: 8px var(--s3); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--warm-500);
  transition: background 160ms ease, color 160ms ease;
}
.segmented a:hover { text-decoration: none; color: var(--ink); }
.segmented a[aria-current='true'] { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-card); }

.pager { display: flex; align-items: center; justify-content: center; gap: var(--s3); margin-top: var(--s5); }

/* ---------------------------------------------------------------- search / forms --- */

.searchbar { display: flex; gap: var(--s2); align-items: center; }
.input, .select, .textarea {
  width: 100%; min-height: var(--tap); padding: 10px var(--s3);
  border: 1px solid #ddd; border-radius: var(--radius-sm); background: var(--white);
  font-family: inherit; font-size: 15px; color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.input::placeholder, .textarea::placeholder { color: var(--warm-300); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--blue-text); box-shadow: 0 0 0 3px rgba(9, 127, 232, 0.15);
}
.textarea { min-height: 92px; resize: vertical; }
.field { display: grid; gap: 6px; }
.field > label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field__hint { font-size: 12px; color: var(--warm-300); }
.field__req { color: var(--orange); }
.formgrid { display: grid; gap: var(--s3); }
.formgrid--2 { grid-template-columns: 1fr; }

.notice {
  border: var(--border); border-left: 3px solid var(--blue);
  background: var(--blue-tint); border-radius: var(--radius); padding: var(--s3) var(--s4);
  font-size: 14px; color: var(--warm-500);
}
.notice--error { border-left-color: var(--red); background: var(--red-tint); color: #8c2b27; }
.notice--ok { border-left-color: var(--green); background: var(--green-tint); color: #14622a; }
.notice--warn { border-left-color: var(--orange); background: var(--orange-tint); color: #8a3900; }
.notice strong { color: inherit; }

/* --------------------------------------------------------------- bottom bars ------ */

.pinbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(12px);
  border-top: var(--border); box-shadow: var(--shadow-bar);
  padding: var(--s2) var(--s4) calc(var(--s2) + env(safe-area-inset-bottom, 0px));
  transform: translateY(0);
  animation: rise 280ms ease-out;
}
@keyframes rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
.pinbar__inner {
  display: flex; align-items: center; gap: var(--s3);
  max-width: var(--content); margin: 0 auto;
}
.pinbar__price { flex: none; }
.pinbar__price strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.pinbar__price span { font-size: 12px; color: var(--warm-500); }
.pinbar__action { flex: 1; }
.pinbar .btn { min-height: 48px; }
.pinbar--cart { border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }

/* -------------------------------------------------------------- quantity widget --- */

.qty { display: inline-flex; align-items: center; border: var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty button {
  width: 40px; height: 40px; border: 0; background: var(--white); font-size: 18px;
  color: var(--ink); cursor: pointer; transition: background 160ms ease;
}
.qty button:hover { background: var(--warm-100); }
.qty input {
  width: 46px; height: 40px; border: 0; border-left: var(--border); border-right: var(--border);
  text-align: center; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ------------------------------------------------------------------- product ------ */

.pdp { display: grid; gap: var(--s5); padding: var(--s4) 0 var(--s6); }
.pdp__media { border: var(--border); border-radius: var(--radius-xl); overflow: hidden; background: var(--warm-100); box-shadow: var(--shadow-card); }
.pdp__media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pdp__thumbs { display: flex; gap: var(--s2); margin-top: var(--s2); overflow-x: auto; }
.pdp__thumbs img { width: 68px; height: 68px; border-radius: var(--radius); border: var(--border); object-fit: cover; flex: none; }
.pdp h1 { font-size: clamp(24px, 6.6vw, 38px); letter-spacing: -0.028em; line-height: 1.15; }
.pdp__price { display: flex; align-items: baseline; gap: var(--s3); margin: var(--s3) 0; }
.pdp__price .now { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.pdp__price .was { font-size: 16px; color: var(--warm-300); text-decoration: line-through; }
.taglist { display: flex; flex-wrap: wrap; gap: 6px; }

.accordion { border: var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.accordion details { border-bottom: var(--border); }
.accordion details:last-child { border-bottom: 0; }
.accordion summary {
  cursor: pointer; padding: var(--s4); font-weight: 600; font-size: 15px; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '+'; font-size: 20px; color: var(--warm-300); font-weight: 400; line-height: 1;
  transition: transform 200ms ease;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion__body { padding: 0 var(--s4) var(--s4); color: var(--warm-500); font-size: 15px; }

/* --------------------------------------------------------------------- cart ------- */

.lineitem {
  display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s3);
  align-items: start; padding: var(--s3);
  border: var(--border); border-radius: var(--radius-lg); background: var(--white);
  box-shadow: var(--shadow-card);
}
.lineitem + .lineitem { margin-top: var(--s2); }
.lineitem__media { width: 64px; height: 80px; border-radius: var(--radius); overflow: hidden; background: var(--warm-100); border: var(--border); }
.lineitem__media img { width: 100%; height: 100%; object-fit: cover; }
.lineitem__title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.lineitem__title a { color: var(--ink); }
.lineitem__meta { font-size: 13px; color: var(--warm-500); margin-top: 2px; }
.lineitem__row { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); flex-wrap: wrap; }
.lineitem__total { text-align: right; font-weight: 700; font-size: 16px; white-space: nowrap; }

.summary { border: var(--border); border-radius: var(--radius-lg); background: var(--warm-050); padding: var(--s4); box-shadow: var(--shadow-card); }
.summary__row { display: flex; justify-content: space-between; gap: var(--s3); font-size: 15px; padding: 6px 0; color: var(--warm-500); }
.summary__row strong { color: var(--ink); }
.summary__row--total { border-top: var(--border); margin-top: var(--s2); padding-top: var(--s3); font-size: 18px; }
.summary__row--total strong { font-size: 22px; letter-spacing: -0.02em; }

/* -------------------------------------------------------------- order / receipt --- */

.panel { border: var(--border); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-card); padding: var(--s4); }
.panel + .panel { margin-top: var(--s3); }
.panel__title { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); flex-wrap: wrap; }

.kv { display: grid; grid-template-columns: 116px 1fr; gap: 6px var(--s3); font-size: 14px; }
.kv dt { color: var(--warm-300); }
.kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

.bankcard {
  border: 1px solid rgba(0, 117, 222, 0.25); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--blue-tint), var(--white));
  padding: var(--s4);
}
.bankcard__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 7px 0; border-bottom: 1px dashed rgba(0, 0, 0, 0.08); }
.bankcard__row:last-child { border-bottom: 0; }
.bankcard__label { font-size: 13px; color: var(--warm-500); }
.bankcard__value { font-size: 16px; font-weight: 700; letter-spacing: 0.01em; overflow-wrap: anywhere; text-align: right; }
.codebox {
  display: inline-flex; align-items: center; gap: var(--s2);
  border: 1px dashed rgba(0, 0, 0, 0.22); border-radius: var(--radius-sm);
  background: var(--warm-050); padding: 6px var(--s3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
}
.copybtn { border: 0; background: transparent; color: var(--blue); font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px; }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: var(--radius-pill); padding: 4px 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.125px;
  background: var(--warm-100); color: var(--warm-500);
}
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--pending_payment { background: var(--orange-tint); color: var(--orange); }
.status--awaiting_review { background: var(--blue-tint); color: var(--blue-text); }
.status--paid { background: var(--green-tint); color: #0d7a2a; }
.status--packing { background: #f4f1fb; color: #5234a0; }
.status--shipped { background: #eef6ff; color: var(--navy); }
.status--delivered { background: var(--green-tint); color: #0d7a2a; }
.status--cancelled { background: var(--red-tint); color: var(--red); }
.status--ready { background: var(--green-tint); color: #0d7a2a; }
.status--used { background: var(--warm-100); color: var(--warm-500); }
.status--unpaid, .status--unknown { background: var(--warm-100); color: var(--warm-500); }

/* ------------------------------------------------------------------- voucher ------- */

.voucher {
  border: var(--border); border-radius: var(--radius-xl); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-deep); max-width: 420px; margin: 0 auto;
}
.voucher__head {
  background: linear-gradient(150deg, #1aae39, #0d7a2a); color: #fff;
  padding: var(--s5) var(--s4) var(--s4); text-align: center;
}
.voucher__head h1 { font-size: 22px; color: #fff; letter-spacing: -0.02em; }
.voucher__head p { color: rgba(255, 255, 255, 0.85); font-size: 14px; margin-top: 6px; }
.voucher__qr { padding: var(--s4); background: var(--white); display: grid; place-items: center; }
.voucher__qr svg { width: min(280px, 74vw); height: auto; display: block; }
.voucher__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 19px; font-weight: 700; letter-spacing: 0.14em; text-align: center; color: var(--ink);
}
.voucher__foot { border-top: 1px dashed rgba(0, 0, 0, 0.15); padding: var(--s4); }
.voucher--used .voucher__head { background: linear-gradient(150deg, var(--warm-500), var(--warm-dark)); }

/* --------------------------------------------------------------------- faq -------- */

.faq { display: grid; gap: var(--s2); }

/* ------------------------------------------------------------------- footer ------- */

.footer { border-top: var(--border); background: var(--warm-100); padding: var(--s6) 0 var(--s7); }
.footer__grid { display: grid; gap: var(--s5); }
.footer h3 { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.footer a { color: var(--warm-500); font-size: 14px; }
.footer a:hover { color: var(--ink); }
.footer__links { display: grid; gap: 6px; margin-top: var(--s3); }
.footer__bottom { margin-top: var(--s6); padding-top: var(--s4); border-top: var(--border); font-size: 13px; color: var(--warm-300); display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; }

/* -------------------------------------------------------------------- back office -- */

.bo { background: var(--warm-050); min-height: 100vh; }
.bo__head {
  background: var(--white); border-bottom: var(--border); padding: var(--s3) 0;
  position: sticky; top: 0; z-index: 30;
}
.bo__head .wrap { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.bo__nav { display: flex; gap: var(--s1); flex-wrap: wrap; }
.bo__nav a {
  padding: 6px var(--s3); border-radius: var(--radius-sm); font-size: 14px;
  font-weight: 500; color: var(--warm-500);
}
.bo__nav a:hover { background: var(--warm-100); text-decoration: none; color: var(--ink); }
.bo__nav a[aria-current='page'] { background: var(--ink); color: #fff; }
.bo__body { padding: var(--s4) 0 var(--s7); }

.statgrid { display: grid; gap: var(--s2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { border: var(--border); border-radius: var(--radius-lg); background: var(--white); padding: var(--s3) var(--s4); box-shadow: var(--shadow-card); }
.stat__value { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.stat__key { font-size: 13px; color: var(--warm-500); }

.table-wrap { overflow-x: auto; border: var(--border); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-card); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 10px var(--s3); text-align: left; border-bottom: var(--border); white-space: nowrap; }
table.data th { font-size: 12px; font-weight: 600; color: var(--warm-500); background: var(--warm-050); position: sticky; top: 0; }
table.data tbody tr:hover { background: var(--warm-050); }
table.data td.wrap-cell { white-space: normal; min-width: 220px; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tfoot td { font-weight: 700; background: var(--warm-050); }

.filters { display: grid; gap: var(--s2); grid-template-columns: 1fr 1fr; }
.filters .field--wide { grid-column: 1 / -1; }

.slip { border: var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); max-width: 320px; }
.slip img { display: block; width: 100%; }

/* --------------------------------------------------------------------- print ------- */

.label-sheet { display: grid; gap: var(--s4); }
.label-card {
  border: 1.5px solid #000; border-radius: 6px; padding: var(--s4);
  background: #fff; break-inside: avoid; page-break-inside: avoid;
}
.label-card__code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 20px; font-weight: 700; letter-spacing: 0.06em; }
.label-card__to { font-size: 17px; font-weight: 700; margin-top: var(--s2); }
.label-card__addr { font-size: 16px; line-height: 1.5; margin-top: 2px; }
.label-card__meta { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s3); padding-top: var(--s2); border-top: 1px dashed #999; font-size: 13px; }
.label-card__items { margin-top: var(--s2); font-size: 13px; }

@media print {
  .no-print, .topbar, .pinbar, .footer { display: none !important; }
  body { padding: 0; background: #fff; }
  .bo, .bo__body { background: #fff; }
  .label-sheet { gap: 10mm; }
  .label-card { border-width: 1.5px; }
}

/* ------------------------------------------------------------------- motion -------- */

.reveal { opacity: 0; transform: translateY(12px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 420ms ease, transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ responsive ----- */

@media (min-width: 560px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
  .formgrid--2 { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .statgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cartbtn__label { display: inline; }
  .iconbtn { padding: 0 var(--s4); }
}

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding: var(--s8) 0; }
  .pdp { grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: start; }
  .story { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pinbar { padding-bottom: var(--s2); }
}
