/* Neutral Modern contract + กล้วยทอดแม่ประทุม brand layer */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-warm: var(--surface);
  --fg: #111111;
  --fg-2: var(--fg);
  --muted: #6b6b6b;
  --meta: var(--muted);
  --border: #e5e5e5;
  --border-soft: var(--border);
  --accent: #2f6feb;
  --accent-on: #ffffff;
  --accent-hover: color-mix(in oklab, var(--accent), black 8%);
  --accent-active: color-mix(in oklab, var(--accent), black 14%);
  --success: #17a34a;
  --warn: #eab308;
  --danger: #dc2626;
  --font-display: "Tahoma", "Leelawadee UI", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Tahoma", "Leelawadee UI", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", monospace;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 48px;
  --text-4xl: 64px;
  --leading-body: 1.5;
  --leading-tight: 1.2;
  --tracking-display: -0.01em;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-20: 80px;
  --section-y-desktop: 80px;
  --section-y-tablet: 48px;
  --section-y-phone: 32px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --elev-flat: none;
  --elev-ring: 0 0 0 1px var(--border);
  --elev-raised: 0 2px 8px color-mix(in oklab, var(--fg), transparent 92%);
  --focus-ring: 0 0 0 3px color-mix(in oklab, var(--accent), transparent 70%);
  --motion-fast: 150ms;
  --motion-base: 200ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --container-max: 1200px;
  --container-gutter-desktop: 24px;
  --container-gutter-tablet: 16px;
  --container-gutter-phone: 12px;
  --site-header-height: 82px;

  --color-primary: #ffc400;
  --color-primary-dark: #d89a00;
  --color-accent-orange: #f28b22;
  --color-text: #2c1b0f;
  --color-muted: #6f655e;
  --color-border: #eadfcd;
  --color-surface: #ffffff;
  --color-bg: #fffaf0;
  --hero-cream: #fffdf8;
  --hero-cream-warm: #fff6df;
  --hero-cream-edge: #ffedbd;
  --radius-xl: 24px;
  --shadow-card: 0 14px 35px color-mix(in oklab, var(--color-text), transparent 90%);
  --shadow-floating: 0 20px 60px color-mix(in oklab, var(--color-text), transparent 82%);
  --space-10: 40px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* overflow-x: clip (not hidden) prevents horizontal scroll WITHOUT turning
   html/body into a scroll container — `hidden` forces overflow-y to `auto`,
   which breaks the sticky topbar. `clip` keeps the topbar pinned correctly. */
html { scroll-behavior: smooth; overflow-x: clip; max-width: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: var(--leading-body);
  overflow-x: clip;
}
body.modal-open { overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--color-text);
  color: var(--surface);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
}
.container {
  width: min(var(--container-max), calc(100% - (var(--container-gutter-desktop) * 2)));
  margin-inline: auto;
}
.section { padding-block: var(--section-y-desktop); }

.feature-chip,
.quick-item,
.kpi-card,
.admin-row,
.admin-action { display: flex; align-items: center; gap: var(--space-3); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  /* GLASSMORPHISM TOPBAR — semi-transparent base with strong backdrop blur.
     A very faint warm tint (4% opacity) keeps legibility without becoming
     solid; full transparency would make the cream/yellow content area blend.
     Subtle bottom border separates header from main content beautifully. */
  background: rgba(255, 251, 235, 0.18);
  border-bottom: 1px solid rgba(234, 223, 205, 0.32);
  box-shadow: 0 1px 0 rgba(255, 196, 0, 0.08);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  transition:
    background var(--motion-base) var(--ease-standard),
    box-shadow var(--motion-base) var(--ease-standard),
    border-color var(--motion-base) var(--ease-standard);
}
/* Header entrance is enhancement-only — never let the topbar start invisible. */
@media (prefers-reduced-motion: no-preference) {
  .site-header { animation: bnnHeaderIn 480ms cubic-bezier(0.2, 0, 0, 1) both; }
}
.site-header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffc400 30%, #ffe389 50%, #ffc400 70%, transparent);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: bnnHeaderAccent 1800ms cubic-bezier(0.2, 0, 0, 1) 240ms forwards;
  pointer-events: none;
  opacity: .9;
}
.site-header.is-scrolled {
  /* Slightly stronger backdrop blur once scrolled so nav stays legible over
     busy content. Same glassmorphism aesthetic — no jarring solid background. */
  background: rgba(255, 251, 235, 0.32);
  border-bottom-color: rgba(255, 196, 0, 0.18);
  box-shadow: 0 4px 18px rgba(80, 54, 16, 0.06);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}
.site-header.is-scrolled .site-header__inner { min-height: 68px; }
.site-header.is-scrolled .brand__mark { width: 46px; height: 46px; font-size: 26px; }

/* ── TRANSPARENT TOPBAR — at top of page (before scrolling) ─────────── */
/* Uses :not(.is-scrolled) so base rules are the scrolled/opaque state.
   No !important needed — :not(.is-scrolled) adds specificity automatically. */
.site-header:not(.is-scrolled) {
  /* Fully transparent — no color tint — but keep a gentle blur so the logo,
     nav and icons stay legible over a busy hero image. */
  background: transparent;
  border-bottom-color: rgba(255, 196, 0, 0.10);
  box-shadow: none;
  backdrop-filter: blur(8px) saturate(108%);
  -webkit-backdrop-filter: blur(8px) saturate(108%);
}
/* Nav pill — centered glass capsule (absolute pos set on base .desktop-nav) */
.site-header .desktop-nav {
  background: rgba(255, 248, 220, 0.13);
  border: 1px solid rgba(255, 196, 0, 0.30);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}
/* Nav links: white on transparent bg */
.site-header .desktop-nav a,
.site-header .nav-dropdown__trigger {
  color: rgba(255, 255, 255, 0.90);
}
.site-header .desktop-nav a:hover,
.site-header .desktop-nav a:focus-visible,
.site-header .nav-dropdown__trigger:hover,
.site-header .nav-dropdown__trigger:focus-visible,
.site-header .nav-dropdown.is-open .nav-dropdown__trigger {
  background: rgba(255, 255, 255, 0.17);
  color: #ffffff;
}
.site-header .desktop-nav a.active,
.site-header .nav-dropdown__trigger.active {
  background: rgba(255, 196, 0, 0.95);
  color: #1a0c00;
  box-shadow: 0 2px 10px rgba(255, 196, 0, 0.35);
}
/* Dropdown MENU links sit in a white floating panel — keep them dark
   (otherwise white-on-white = invisible). */
.site-header .nav-dropdown__menu a {
  color: #2c1b0f;
}
.site-header .nav-dropdown__menu a:hover,
.site-header .nav-dropdown__menu a:focus-visible,
.site-header .nav-dropdown__menu a.active {
  background: linear-gradient(95deg, #fff4bf 0%, #ffe999 100%);
  color: #2c1b0f;
}
/* Brand text: white + text-shadow */
.site-header .brand strong {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.40);
}
.site-header .brand small {
  color: rgba(255, 218, 100, 0.90);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
/* Icon / login button: glass white */
.site-header .icon-button:not(.is-authenticated),
.site-header .circle-btn {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.site-header #loginBtn:not(.is-authenticated) {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

@keyframes bnnHeaderIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bnnHeaderAccent {
  to { width: min(560px, 76%); }
}
@keyframes bnnMobileMenuIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bnnMobileRowIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.site-header__inner {
  position: relative;  /* anchor for absolutely-centered nav pill */
  /* Full-bleed header: override .container's 1200px cap + auto centering so the
     logo sits flush to the left edge and the actions group flush to the right. */
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: clamp(20px, 3vw, 56px);
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.4vw, 30px);
  transition: min-height var(--motion-base) var(--ease-standard);
}
.brand, .admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  position: relative;
  padding: 4px 8px 4px 4px;
  border-radius: var(--radius-pill);
  transition: transform var(--motion-base) var(--ease-standard);
  overflow: hidden;
}
.brand::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
  opacity: 0;
  transition: transform 800ms cubic-bezier(0.2, 0, 0, 1), opacity 240ms;
}
.brand:hover { transform: translateY(-1px); }
.brand:hover::before { transform: translateX(120%); opacity: 1; }
.brand:active { transform: translateY(0); }
.brand__mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: conic-gradient(from 215deg at 50% 50%, #ffd75a 0deg, #ffc400 90deg, #f7b500 200deg, #ffd75a 360deg);
  border: 1px solid rgba(138, 77, 16, .08);
  box-shadow:
    inset 0 -3px 0 rgba(138, 77, 16, .12),
    inset 0 1px 0 rgba(255, 255, 255, .55),
    0 10px 22px rgba(255, 196, 0, .32);
  color: #2c1b0f;
  font-size: 30px;
  transition: transform var(--motion-base) var(--ease-standard), box-shadow var(--motion-base) var(--ease-standard), width var(--motion-base) var(--ease-standard), height var(--motion-base) var(--ease-standard), font-size var(--motion-base) var(--ease-standard);
}
.brand:hover .brand__mark {
  transform: rotate(-6deg) scale(1.05);
  box-shadow:
    inset 0 -3px 0 rgba(138, 77, 16, .12),
    inset 0 1px 0 rgba(255, 255, 255, .65),
    0 14px 28px rgba(255, 196, 0, .44);
}
.brand__mark.has-brand-logo {
  background: var(--surface);
  padding: 5px;
}
.brand__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: inherit;
}
.brand strong, .admin-brand strong {
  display: block;
  color: #17110a;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.brand > span { min-width: 0; }
.brand small, .admin-brand small {
  display: block;
  margin-top: 3px;
  color: #c58b00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .38em;
  line-height: 1;
  text-align: center;
}
.desktop-nav {
  /* Always absolutely centered (logo left / nav center pill / actions right layout).
     Pill bg/border applied only when :not(.is-scrolled) — see transparent block above. */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 8px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  pointer-events: auto;
  transition:
    background var(--motion-base) var(--ease-standard),
    border-color var(--motion-base) var(--ease-standard),
    backdrop-filter var(--motion-base) var(--ease-standard);
}
.desktop-nav a,
.nav-dropdown__trigger {
  position: relative;
  min-width: 68px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  color: #2c1b0f;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.28;
  text-align: center;
  transition:
    background var(--motion-base) var(--ease-standard),
    color var(--motion-base) var(--ease-standard),
    transform var(--motion-base) var(--ease-standard);
}
.desktop-nav a::after,
.nav-dropdown__trigger::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d89a00;
  transform: translate(-50%, 6px) scale(0);
  opacity: 0;
  transition: transform var(--motion-base) var(--ease-standard), opacity var(--motion-base) var(--ease-standard);
}
.nav-dropdown { position: relative; }
.nav-dropdown__trigger span {
  font-size: 11px;
  transition: transform var(--motion-base) var(--ease-standard);
}
.nav-dropdown.is-open .nav-dropdown__trigger span { transform: rotate(180deg); }
.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.nav-dropdown__trigger:hover,
.nav-dropdown__trigger:focus-visible,
.nav-dropdown.is-open .nav-dropdown__trigger {
  background: color-mix(in oklab, #ffc400, transparent 84%);
  color: #2c1b0f;
  box-shadow: none;
  outline: 0;
  transform: translateY(-1px);
}
.desktop-nav a.active,
.nav-dropdown__trigger.active {
  background: color-mix(in oklab, #ffc400, transparent 80%);
  color: #2c1b0f;
  transform: none;
  box-shadow: none;
}
.desktop-nav a.active::after,
.nav-dropdown__trigger.active::after,
.desktop-nav a:hover::after,
.nav-dropdown__trigger:hover::after,
.desktop-nav a:focus-visible::after,
.nav-dropdown__trigger:focus-visible::after {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
}
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 70;
  min-width: 208px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(234, 223, 205, .9);
  border-radius: 20px;
  background: rgba(255, 255, 255, .98);
  box-shadow:
    0 30px 60px rgba(80, 54, 16, .18),
    0 6px 14px rgba(80, 54, 16, .06);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(.96);
  transform-origin: top right;
  transition: opacity var(--motion-base) var(--ease-standard), transform var(--motion-base) var(--ease-standard);
}
.nav-dropdown.is-open .nav-dropdown__menu,
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.nav-dropdown__menu a {
  min-height: 44px;
  justify-content: flex-start;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  white-space: nowrap;
  transition: background var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard);
}
.nav-dropdown__menu a::after { display: none; }
.nav-dropdown__menu a:hover,
.nav-dropdown__menu a:focus-visible,
.nav-dropdown__menu a.active {
  background: linear-gradient(95deg, #fff4bf 0%, #ffe999 100%);
  color: #2c1b0f;
  box-shadow: none;
  transform: translateX(2px);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: max-content;
}
.icon-button, .circle-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 191, 144, .55);
  border-radius: var(--radius-pill);
  color: #1f160c;
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 0 rgba(80, 54, 16, .04),
    0 4px 10px rgba(80, 54, 16, .06);
  transition:
    background var(--motion-base) var(--ease-standard),
    border-color var(--motion-base) var(--ease-standard),
    color var(--motion-base) var(--ease-standard),
    box-shadow var(--motion-base) var(--ease-standard),
    transform var(--motion-base) var(--ease-standard);
}
.icon-button::after, .circle-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(255, 196, 0, .35);
  pointer-events: none;
  transition: box-shadow var(--motion-base) var(--ease-standard);
}
#loginBtn {
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 0 rgba(80, 54, 16, .04),
    0 4px 10px rgba(80, 54, 16, .06);
  font-weight: 900;
}
.icon-button:hover, .circle-btn:hover, .icon-button:focus-visible, .circle-btn:focus-visible {
  background: #fffdf4;
  border-color: rgba(255, 196, 0, .6);
  color: #8a4d10;
  outline: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 10px 22px rgba(255, 196, 0, .26);
  transform: translateY(-2px);
}
.icon-button:hover::after,
.icon-button:focus-visible::after { box-shadow: 0 0 0 4px rgba(255, 196, 0, .14); }
.icon-button:active, .circle-btn:active { transform: translateY(0); }
.icon-button svg, .circle-btn svg, .service-icon svg, .line-icon svg { width: 22px; height: 22px; stroke-width: 2.2; }
.icon-button.is-authenticated {
  background: linear-gradient(135deg, #ffe389 0%, #ffc400 55%, #f5af00 100%);
  border-color: rgba(138, 77, 16, .14);
  color: #2c1b0f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .65),
    inset 0 -2px 0 rgba(138, 77, 16, .14),
    0 6px 16px rgba(255, 196, 0, .42);
  padding: 0;
  overflow: hidden;
}
.icon-button.is-authenticated .auth-avatar-img {
  transition: transform 0.18s ease;
}
.icon-button.is-authenticated:hover .auth-avatar-img {
  transform: scale(1.06);
}
.icon-button.is-authenticated:hover,
.icon-button.is-authenticated:focus-visible {
  background: linear-gradient(135deg, #ffe389 0%, #ffc400 55%, #f5af00 100%);
  border-color: rgba(138, 77, 16, .2);
  color: #2c1b0f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .75),
    inset 0 -2px 0 rgba(138, 77, 16, .14),
    0 12px 26px rgba(255, 196, 0, .5);
  transform: translateY(-2px);
}
.icon-button.is-authenticated:hover::after,
.icon-button.is-authenticated:focus-visible::after { box-shadow: 0 0 0 5px rgba(255, 196, 0, .2); }
.icon-button.is-authenticated::before,
.icon-button.is-authenticated::after,
#loginBtn::before,
#loginBtn::after {
  display: none !important;
  content: none !important;
  background: transparent !important;
}
.auth-initial {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.02em;
}
/* ─── User Dropdown ─────────────────────────────────────────────────────── */
.user-menu-wrap {
  position: relative;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow:
    0 4px 6px -1px rgba(0,0,0,.06),
    0 20px 50px -8px rgba(0,0,0,.18),
    0 0 0 1px rgba(255,196,0,.06);
  overflow: hidden;
  z-index: 9999;
  animation: dropdownIn .18s var(--ease-standard) both;
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.user-dropdown__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px;
  background: linear-gradient(135deg, #fffdf5 0%, #fff8e0 100%);
  border-bottom: 1px solid rgba(255,196,0,.18);
}
.user-dropdown__avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe389 0%, #ffc400 55%, #f5af00 100%);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  color: #2c1b0f;
  box-shadow: 0 3px 10px rgba(255,196,0,.4);
}
.user-dropdown__info { min-width: 0; flex: 1; }
.user-dropdown__name {
  font-weight: 800;
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-dropdown__email {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.user-dropdown__wallet {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e8f0fe;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.user-dropdown__wallet:hover { background: #eef3ff; box-shadow: 0 2px 8px rgba(99,102,241,.12); }
.user-dropdown__wallet-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
}
.user-dropdown__wallet-icon svg { width: 16px; height: 16px; }
.user-dropdown__wallet-label { flex: 1; font-size: 12px; color: #64748b; }
.user-dropdown__wallet-amount { font-weight: 800; font-size: 15px; color: #1e293b; }
.user-dropdown__divider {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 0;
}
.user-dropdown__section-label {
  padding: 6px 16px 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffa000;
}
.user-dropdown__menu {
  display: flex;
  flex-direction: column;
  padding: 4px 8px;
}
.user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  text-decoration: none;
  transition: background .12s, color .12s;
}
.user-dropdown__item:hover { background: #f8fafc; color: #1a1a1a; }
.user-dropdown__item--admin { color: #f59e0b; }
.user-dropdown__item--admin:hover { background: #fffbeb; color: #d97706; }
.user-dropdown__item--logout { color: #ef4444; }
.user-dropdown__item--logout:hover { background: #fef2f2; color: #dc2626; }
.user-dropdown__item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 14px;
  transition: background .12s;
}
.user-dropdown__item:hover .user-dropdown__item-icon { background: #e2e8f0; }
.user-dropdown__item--admin .user-dropdown__item-icon { background: #fef3c7; }
.user-dropdown__item--admin:hover .user-dropdown__item-icon { background: #fde68a; }
.user-dropdown__item--logout .user-dropdown__item-icon { background: #fee2e2; }
.user-dropdown__item--logout:hover .user-dropdown__item-icon { background: #fecaca; }
.user-dropdown__item-icon svg { width: 16px; height: 16px; stroke-width: 2.2; }
.user-dropdown__foot {
  padding: 8px 12px 12px;
  border-top: 1px solid #f1f5f9;
}

/* ─── End User Dropdown ─────────────────────────────────────────────────── */
.wallet-quick-btn {
  position: relative;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(34, 139, 91, .26);
  border-radius: var(--radius-pill);
  padding: 6px 18px 6px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .55), transparent 60%),
    linear-gradient(95deg, #ecfaf2 0%, #d8f1e2 100%);
  color: #064e2c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    0 6px 16px rgba(34, 139, 91, .18);
  font-weight: 800;
  line-height: 1;
  text-align: left;
  text-transform: none;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--motion-base) var(--ease-standard),
    box-shadow var(--motion-base) var(--ease-standard);
}
.wallet-quick-btn > .wallet-quick-btn__icon,
.wallet-quick-btn > .wallet-quick-btn__copy { position: relative; z-index: 1; }
.wallet-quick-btn .btn-shine {
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: -60%;
  width: 60%;
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(255, 255, 255, .35) 30%,
    rgba(255, 255, 255, .95) 50%,
    rgba(255, 255, 255, .35) 70%,
    transparent 100%);
  transform: skewX(-22deg);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}
.wallet-quick-btn__icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 24px;
  flex: 0 0 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #2fbf6c 0%, #0e7a4a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 -2px 0 rgba(0, 0, 0, .14),
    0 3px 8px rgba(18, 138, 82, .35);
  transition: transform var(--motion-base) var(--ease-standard);
}
.wallet-quick-btn__icon svg {
  width: 18px;
  height: 18px;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .12));
}
.wallet-quick-btn:hover .wallet-quick-btn__icon,
.wallet-quick-btn:focus-visible .wallet-quick-btn__icon {
  transform: rotate(-6deg) scale(1.05);
}
.wallet-quick-btn__copy {
  display: grid;
  gap: 3px;
  line-height: 1;
}
.wallet-quick-btn__copy > span,
.wallet-quick-btn__copy > strong { display: block; }
.wallet-quick-btn__copy span {
  font-size: 10px;
  letter-spacing: .16em;
  color: #2f8a5c;
  text-transform: uppercase;
}
.wallet-quick-btn__copy strong {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #064e2c;
}
.wallet-quick-btn:hover,
.wallet-quick-btn:focus-visible {
  outline: 0;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 12px 26px rgba(34, 139, 91, .3);
}
.wallet-quick-btn.is-bump strong { animation: bnnWalletPulse 700ms cubic-bezier(0.2, 0, 0, 1); }
@keyframes bnnWalletPulse {
  0%   { transform: scale(1); color: #064e2c; }
  35%  { transform: scale(1.18); color: #128a52; }
  70%  { transform: scale(.96); }
  100% { transform: scale(1); color: #064e2c; }
}
.cart-button {
  position: relative;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0 18px 0 14px;
  background: linear-gradient(180deg, #ffd75a 0%, #ffc400 100%);
  color: #1f160c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -2px 0 rgba(138, 77, 16, .12),
    0 8px 22px rgba(255, 196, 0, .38);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--motion-base) var(--ease-standard),
    box-shadow var(--motion-base) var(--ease-standard);
}
.cart-button__icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
  color: #2c1b0f;
  flex: 0 0 28px;
  transition: transform var(--motion-base) var(--ease-standard);
}
.cart-button__icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}
.cart-button:hover .cart-button__icon,
.cart-button:focus-visible .cart-button__icon {
  transform: rotate(-8deg) scale(1.05);
}
.cart-button__text {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.cart-button[data-count="0"] strong {
  opacity: 0;
  transform: scale(.4);
  pointer-events: none;
  width: 0;
  min-width: 0;
  padding: 0;
  margin-left: -8px;
  overflow: hidden;
}
.cart-button > .cart-button__icon,
.cart-button > .cart-button__text,
.cart-button > strong { position: relative; z-index: 1; }
.cart-button .btn-shine {
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: -60%;
  width: 60%;
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(255, 255, 255, .4) 30%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, .4) 70%,
    transparent 100%);
  transform: skewX(-22deg);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}
.cart-button:hover,
.cart-button:focus-visible {
  outline: 0;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .65),
    inset 0 -2px 0 rgba(138, 77, 16, .12),
    0 14px 30px rgba(255, 196, 0, .5);
}
.cart-button:active { transform: translateY(0); }
.cart-button strong {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #2c1b0f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 4px 10px rgba(80, 54, 16, .14),
    0 0 0 2px rgba(255, 196, 0, .25);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  transition:
    transform var(--motion-base) var(--ease-standard),
    opacity var(--motion-base) var(--ease-standard),
    margin-left var(--motion-base) var(--ease-standard),
    width var(--motion-base) var(--ease-standard),
    min-width var(--motion-base) var(--ease-standard),
    background var(--motion-base) var(--ease-standard);
}
.cart-button strong.is-bump { animation: bnnCartBump 620ms cubic-bezier(0.2, 0, 0, 1); }
@keyframes bnnCartBump {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.4); background: #fff4bf; }
  60%  { transform: scale(.92); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header::after,
  .brand,
  .brand::before,
  .brand__mark,
  .desktop-nav a,
  .desktop-nav a::after,
  .nav-dropdown__trigger,
  .nav-dropdown__trigger::after,
  .nav-dropdown__menu,
  .icon-button,
  .wallet-quick-btn,
  .wallet-quick-btn strong,
  .cart-button,
  .cart-button strong {
    animation: none !important;
    transition: none !important;
  }
}
/* Hamburger = middle line (the span itself) + top/bottom lines (pseudo-els),
   absolutely positioned so they can morph into an ✕ when the menu opens. */
.hamburger {
  position: relative;
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: var(--radius-pill);
  background: currentColor;
  transition: background var(--motion-fast) var(--ease-standard), transform var(--motion-base) var(--ease-standard);
}
.hamburger::before, .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2.5px;
  border-radius: var(--radius-pill);
  background: currentColor;
  transition: top var(--motion-base) var(--ease-standard), transform var(--motion-base) var(--ease-standard), width var(--motion-base) var(--ease-standard);
}
.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; width: 15px; }
/* Open state → morph the three bars into a clean ✕ */
#mobileMenuBtn[aria-expanded="true"] .hamburger { background: transparent; }
#mobileMenuBtn[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
#mobileMenuBtn[aria-expanded="true"] .hamburger::after  { top: 0; width: 22px; transform: rotate(-45deg); }
.mobile-only, .mobile-status, .mobile-menu, .bottom-nav { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  /* Pull the hero up so its photo/background sits BEHIND the sticky (transparent)
     header, then pad the top back so hero content stays clear of the topbar. */
  margin-top: calc(-1 * var(--site-header-height));
  min-height: 100svh;
  padding-top: calc(clamp(48px, 7vh, 82px) + var(--site-header-height));
  padding-bottom: clamp(48px, 7vh, 82px);
  background:
    radial-gradient(circle at 75% 12%, color-mix(in oklab, var(--color-primary), transparent 52%), transparent 34%),
    linear-gradient(90deg, var(--hero-cream) 0%, var(--hero-cream) 52%, var(--hero-cream-warm) 100%),
    linear-gradient(180deg, var(--surface), var(--color-bg));
}
.hero.has-custom-hero-bg {
  background:
    var(--hero-bg-image),
    linear-gradient(180deg, var(--surface), var(--color-bg));
  background-position: center;
  background-size: cover;
}
.hero.has-custom-hero-bg.has-lcp-hero-image {
  background:
    linear-gradient(180deg, var(--surface), var(--color-bg));
}
.hero__lcp-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
}
.hero__lcp-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.hero:not(.has-lcp-hero-image) .hero__lcp-media {
  display: none;
}
.hero.has-custom-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 248, 224, .76) 0%, rgba(255, 248, 224, .36) 32%, rgba(255, 248, 224, .08) 52%, transparent 72%);
}
.hero.has-custom-hero-bg .hero__grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 680px);
  min-height: clamp(560px, calc(100svh - var(--site-header-height) - 128px), 720px);
  transform: translate(clamp(-115px, -5.6vw, -90px), clamp(-70px, -6vh, -48px));
}
/* Tablet/mobile — kill the negative-X translate that pulls the grid off-screen;
   keep the vertical lift only. */
@media (max-width: 1180px) {
  .hero.has-custom-hero-bg .hero__grid {
    transform: translate(0, clamp(-40px, -3vh, -20px));
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    padding-inline: clamp(16px, 4vw, 32px);
  }
}
@media (max-width: 767px) {
  .hero {
    min-height: 100svh;
    contain: layout paint;
  }
  .hero.has-custom-hero-bg.has-lcp-hero-image {
    background:
      var(--hero-bg-image),
      linear-gradient(180deg, var(--surface), var(--color-bg));
    background-position: center;
    background-size: cover;
  }
  .hero.has-lcp-hero-image .hero__lcp-media {
    display: none;
  }
  .hero.has-custom-hero-bg .hero__grid {
    transform: none;
    padding-inline: 16px;
    min-height: calc(100svh - var(--site-header-height) - 54px);
  }
}
.hero.has-custom-hero-bg .hero__visual {
  display: none;
}
.hero.has-custom-hero-bg .hero__copy {
  max-width: 650px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}
.hero.has-custom-hero-bg h1,
.hero.has-custom-hero-bg .hero__copy p,
.hero.has-custom-hero-bg .feature-chip {
  text-shadow: 0 2px 18px rgba(255, 248, 224, .78);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: var(--space-8);
}
.brand-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  font-weight: 700;
}
h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  line-height: var(--leading-tight);
}
h1 {
  max-width: 680px;
  margin-block: var(--space-5) var(--space-4);
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: var(--tracking-display);
  overflow-wrap: anywhere;
}
h1 span { display: inline; }
.hero__copy p {
  max-width: 560px;
  color: var(--color-muted);
  font-size: var(--text-lg);
}
.feature-row {
  margin: 18px 0 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-height: 54px;
}
.feature-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid rgba(255, 196, 0, .45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 2px 6px rgba(120, 75, 14, .05);
  font-size: 12.5px;
  font-weight: 700;
  color: #1f160c;
  line-height: 1.35;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 280ms ease, border-color 280ms ease;
}
.feature-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 196, 0, .55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 10px 22px rgba(255, 196, 0, .22);
}
.feature-chip .service-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffe389 0%, #ffc400 60%, #f5af00 100%);
  color: #2c1b0f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    0 4px 10px rgba(255, 196, 0, .35);
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-chip:hover .service-icon {
  transform: scale(1.08) rotate(-6deg);
}
.feature-chip .service-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}
.service-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--color-primary), transparent 75%);
  color: var(--color-primary-dark);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  max-width: 85%;
}
.hero__actions .btn {
  flex: 1 1 0;
  min-height: 50px;
  padding: 0 20px;
  font-size: 14.5px;
  font-weight: 900;
  border-radius: 14px;
  letter-spacing: -0.005em;
}
.hero__actions .btn-primary {
  background: linear-gradient(135deg, #ffe389 0%, #ffc400 55%, #f5af00 100%);
  color: #2c1b0f;
  border-color: transparent;
}
.hero__actions .btn-primary:hover { background: linear-gradient(135deg, #ffe389 0%, #ffc400 55%, #f5af00 100%); }
.hero__actions .btn-secondary {
  background: #ffffff;
  border-color: rgba(255, 196, 0, .35);
  color: #1f160c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 4px 10px rgba(120, 75, 14, .06);
}
.hero__actions .btn-secondary:hover { border-color: rgba(255, 196, 0, .6); }
.hero__actions .btn-line {
  background: #ffffff;
  border-color: rgba(31, 168, 96, .35);
  color: #128a4a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 4px 10px rgba(31, 168, 96, .14);
}
.btn {
  min-height: 46px;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  border: 1px solid transparent;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: transform var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
  border-color: var(--color-primary-dark);
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text);
}
.btn-primary:hover { background: color-mix(in oklab, var(--color-primary), white 18%); }
.btn-secondary {
  background: var(--surface);
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-ghost {
  background: color-mix(in oklab, var(--color-text), transparent 94%);
  border-color: transparent;
  color: var(--color-text);
}
.btn-line {
  background: var(--surface);
  border-color: color-mix(in oklab, var(--success), transparent 40%);
  color: var(--success);
}
.hero__visual {
  position: relative;
  min-height: 520px;
  border-radius: 46% 0 0 46%;
  background: linear-gradient(135deg, color-mix(in oklab, var(--color-primary), white 60%), var(--color-primary));
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero__visual::before {
  content: "";
  position: absolute;
  inset: auto -8% -14% 8%;
  height: 48%;
  border-radius: 50%;
  background: color-mix(in oklab, var(--color-primary-dark), transparent 42%);
  filter: blur(18px);
}
.banana-doodle {
  position: absolute;
  left: 52px;
  top: 76px;
  width: 210px;
  aspect-ratio: 1;
  border: 5px solid color-mix(in oklab, var(--surface), transparent 22%);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-26deg);
}
.food-basket, .food-img {
  background:
    radial-gradient(ellipse at 48% 38%, color-mix(in oklab, var(--color-accent-orange), white 28%) 0 10%, transparent 11%),
    radial-gradient(ellipse at 56% 47%, var(--color-accent-orange) 0 11%, transparent 12%),
    radial-gradient(ellipse at 39% 55%, color-mix(in oklab, var(--color-accent-orange), black 8%) 0 10%, transparent 11%),
    radial-gradient(ellipse at 60% 60%, color-mix(in oklab, var(--color-accent-orange), white 15%) 0 10%, transparent 11%),
    linear-gradient(135deg, color-mix(in oklab, var(--color-primary), white 80%), color-mix(in oklab, var(--color-accent-orange), white 42%));
}
.food-basket--hero {
  position: absolute;
  right: 120px;
  bottom: 54px;
  width: min(58%, 520px);
  aspect-ratio: 1.25;
  border-radius: 48% 48% 36% 36%;
  box-shadow: 0 24px 60px color-mix(in oklab, var(--color-text), transparent 70%);
}
.drink-cup {
  position: absolute;
  right: 34px;
  top: 110px;
  width: 170px;
  height: 310px;
  border-radius: 42px 42px 30px 30px;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--surface), transparent 12%), transparent 24%),
    linear-gradient(180deg, color-mix(in oklab, var(--color-primary), white 76%), color-mix(in oklab, var(--color-accent-orange), white 62%));
  box-shadow: var(--shadow-card);
}
.drink-cup::after {
  content: "กล้วยทอด\Aแม่ประทุม";
  white-space: pre;
  position: absolute;
  inset: 98px 30px auto;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  text-align: center;
  font-weight: 800;
}

.quick-strip {
  position: relative;
  z-index: 5;
  margin-top: calc(var(--space-8) * -1);
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
}
.quick-strip > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.quick-item {
  border: 0;
  background: transparent;
  color: var(--color-text);
  min-height: 78px;
  padding: var(--space-2) var(--space-4);
  border-right: 1px solid var(--color-border);
  text-align: left;
}
.quick-item:last-child { border-right: 0; }
.quick-item:nth-child(5) { display: none; }
.quick-item strong { display: block; }
.quick-item small { color: var(--color-muted); }

.about-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 196, 0, .12) 0%, transparent 30%),
    radial-gradient(circle at 92% 84%, rgba(255, 196, 0, .08) 0%, transparent 32%),
    linear-gradient(180deg, var(--surface) 0%, var(--color-bg) 100%);
  border-block: 0;
}
.about-card {
  display: grid;
  grid-template-columns: minmax(300px, .86fr) minmax(0, 1.14fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
  background:
    radial-gradient(circle at 6% 6%, rgba(255, 196, 0, .14) 0%, transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(255, 196, 0, .1) 0%, transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fffaef 100%);
  border: 1px solid rgba(255, 196, 0, .32);
  border-radius: 26px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 2px 4px rgba(120, 75, 14, .04),
    0 18px 42px rgba(120, 75, 14, .08);
  padding: clamp(20px, 2.4vw, 28px);
  position: relative;
  isolation: isolate;
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 350ms ease, border-color 300ms ease;
}
.about-card::before,
.about-card::after,
.about-card > .about-visual,
.about-card > .about-content { /* contained inside rounded card */ }
.about-mascot {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: clamp(120px, 14vw, 170px);
  height: auto;
  z-index: 5;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter:
    drop-shadow(0 4px 6px rgba(120, 75, 14, .18))
    drop-shadow(0 18px 28px rgba(120, 75, 14, .25));
  will-change: transform, filter;
  transform-origin: bottom center;
}
@media (max-width: 767px) {
  .about-mascot {
    width: 96px;
    right: -6px;
    bottom: -10px;
  }
}
.about-card::before {
  content: "";
  position: absolute;
  inset: auto -60px -100px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 0, .22) 0%, rgba(255, 196, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.about-card:hover {
  border-color: rgba(255, 196, 0, .52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 2px 4px rgba(120, 75, 14, .04),
    0 24px 56px rgba(255, 196, 0, .18);
}
.about-visual {
  position: relative;
  min-width: 0;
  min-height: 380px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(140deg, color-mix(in oklab, var(--color-primary), white 10%) 0%, color-mix(in oklab, var(--color-accent-orange), white 22%) 100%);
  background-position: center;
  background-size: cover;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .35),
    0 10px 28px rgba(120, 75, 14, .14);
  isolation: isolate;
  z-index: 1;
}
.about-visual__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.about-visual__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  will-change: opacity, transform, filter;
  /* No CSS transition — keyframe animations handle everything */
}
.about-visual__slide.is-active {
  animation:
    aboutSlideEnter 1500ms cubic-bezier(0.16, 1, 0.3, 1) both,
    aboutSlideKenBurns 9000ms ease-out 1500ms forwards;
}
.about-visual__slide.is-leaving {
  animation: aboutSlideExit 1100ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes aboutSlideEnter {
  0% {
    opacity: 0;
    transform: scale(1.18) translateY(24px);
    filter: blur(14px) saturate(.55) brightness(.92);
  }
  55% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0) saturate(1) brightness(1);
  }
}
@keyframes aboutSlideExit {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0) saturate(1) brightness(1);
  }
  100% {
    opacity: 0;
    transform: scale(.9) translateY(-16px);
    filter: blur(12px) saturate(.5) brightness(.85);
  }
}
@keyframes aboutSlideKenBurns {
  from {
    transform: scale(1) translateY(0);
    filter: blur(0) saturate(1) brightness(1);
  }
  to {
    transform: scale(1.09) translateY(-10px);
    filter: blur(0) saturate(1.05) brightness(1.02);
  }
}
@media (prefers-reduced-motion: reduce) {
  .about-visual__slide.is-active,
  .about-visual__slide.is-leaving {
    animation: none;
    transition: opacity 250ms ease;
  }
  .about-visual__slide.is-active { opacity: 1; }
  .about-visual__slide.is-leaving { opacity: 0; }
}
.about-visual.has-custom-about-image .about-visual__slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .25) 100%),
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, .15), transparent 45%);
  pointer-events: none;
  z-index: 1;
}
.about-visual__dots {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(31, 22, 12, .35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.about-visual__dots:empty { display: none; }
.about-visual__dots button {
  width: 7px;
  height: 7px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: width 320ms cubic-bezier(0.16, 1, 0.3, 1), background 320ms ease;
}
.about-visual__dots button:hover { background: rgba(255, 255, 255, .85); }
.about-visual__dots button.is-active {
  width: 24px;
  background: linear-gradient(90deg, #ffd75a, #ffc400);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.about-visual.has-custom-about-image {
  background-image:
    linear-gradient(180deg, color-mix(in oklab, var(--color-text), transparent 88%), color-mix(in oklab, var(--color-text), transparent 96%)),
    var(--about-visual-image);
}
.about-visual::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 28px;
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--color-surface), transparent 8%) 0 0) padding-box,
    repeating-linear-gradient(90deg, color-mix(in oklab, var(--color-primary-dark), transparent 86%) 0 1px, transparent 1px 22px);
  opacity: .58;
}
.about-visual.has-custom-about-image::before {
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--color-text), transparent 88%));
  opacity: .35;
}
.about-visual__plate {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: min(78%, 330px);
  aspect-ratio: 1.18;
  transform: translateX(-50%);
  border-radius: 48% 52% 42% 58% / 56% 44% 56% 44%;
  background:
    radial-gradient(circle at 28% 34%, color-mix(in oklab, var(--color-surface), transparent 6%) 0 18%, transparent 19%),
    radial-gradient(circle at 48% 50%, color-mix(in oklab, var(--color-primary), white 18%) 0 16%, transparent 17%),
    radial-gradient(circle at 68% 38%, color-mix(in oklab, var(--color-accent-orange), white 16%) 0 14%, transparent 15%),
    linear-gradient(140deg, var(--color-primary) 0%, var(--color-accent-orange) 100%);
  box-shadow:
    0 26px 45px color-mix(in oklab, var(--color-primary-dark), transparent 68%),
    inset 0 -16px 26px color-mix(in oklab, var(--color-text), transparent 88%);
}
.about-visual__plate::before,
.about-visual__plate::after {
  content: "";
  position: absolute;
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--color-surface), transparent 8%);
  transform: rotate(-16deg);
}
.about-visual__plate::before {
  width: 54%;
  height: 16px;
  left: 22%;
  top: 28%;
}
.about-visual__plate::after {
  width: 42%;
  height: 12px;
  right: 16%;
  bottom: 28%;
}
.about-visual.has-custom-about-image .about-visual__plate {
  opacity: 0;
  pointer-events: none;
}
.about-visual__badge {
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  gap: 2px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    0 6px 16px rgba(120, 75, 14, .18);
  color: #1f160c;
}
.about-visual__badge strong {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.005em;
}
.about-visual__badge span {
  color: #806e57;
  font-size: 12px;
  font-weight: 600;
}
.about-content {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px;
  gap: 4px;
}
.about-content .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding-left: 14px;
  position: relative;
  color: #8a4d10;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.about-content .section-kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #ffd75a 0%, #ffc400 50%, #f5af00 100%);
  box-shadow: 0 2px 4px rgba(255, 196, 0, .35);
}
.about-content h2 {
  margin: 8px 0 0;
  max-width: 640px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1f160c;
  overflow-wrap: anywhere;
}
.about-content h2 span { display: block; }
.about-content > p {
  margin: 10px 0 0;
  max-width: 680px;
  color: #806e57;
  font-size: 14.5px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.about-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.about-points article {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 156px;
  padding: 20px 16px 18px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fffaef 100%);
  border: 1px solid rgba(255, 196, 0, .28);
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 2px rgba(120, 75, 14, .04),
    0 8px 18px rgba(120, 75, 14, .07);
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 380ms ease, border-color 300ms ease;
}
/* Top gold accent bar */
.about-points article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: 40px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #ffd75a 0%, #ffc400 50%, #f5af00 100%);
  box-shadow: 0 2px 8px rgba(255, 196, 0, .45);
  z-index: 2;
  transition: width 380ms cubic-bezier(0.16, 1, 0.3, 1);
}
/* Bottom-right radial glow */
.about-points article::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 0, .2) 0%, rgba(255, 196, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
  transition: inset 480ms cubic-bezier(0.16, 1, 0.3, 1), background 480ms ease;
}
.about-points article:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 196, 0, .6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 2px rgba(120, 75, 14, .04),
    0 18px 36px rgba(255, 196, 0, .26);
}
.about-points article:hover::before { width: 64px; }
.about-points article:hover::after {
  background: radial-gradient(circle, rgba(255, 196, 0, .32) 0%, rgba(255, 196, 0, 0) 70%);
}
/* Repurpose the number span as a giant editorial watermark */
.about-points .about-point__icon {
  position: absolute;
  top: -4px;
  right: 8px;
  display: block;
  width: auto;
  height: auto;
  background: linear-gradient(135deg, rgba(255, 215, 90, .65) 0%, rgba(255, 196, 0, .28) 55%, rgba(245, 175, 0, .06) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 900;
  font-size: 76px;
  line-height: 1;
  letter-spacing: -0.06em;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  border-radius: 0;
  box-shadow: none;
  transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1), background 380ms ease;
}
.about-points article:hover .about-point__icon {
  transform: scale(1.12) rotate(-6deg);
  background: linear-gradient(135deg, rgba(255, 215, 90, .95) 0%, rgba(255, 196, 0, .5) 55%, rgba(245, 175, 0, .12) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.about-points article > strong,
.about-points article > span:not(.about-point__icon) {
  display: block;
  position: relative;
  z-index: 1;
}
.about-points article > strong {
  margin-top: auto;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.015em;
  color: #1f160c;
  line-height: 1.25;
}
.about-points article > span:not(.about-point__icon) {
  margin-top: 6px;
  color: #806e57;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.55;
}
.about-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.about-actions .btn {
  min-height: 50px;
  padding: 0 24px;
  font-size: 14.5px;
  font-weight: 900;
  border-radius: 14px;
  letter-spacing: -0.005em;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.about-actions .btn-primary {
  background: linear-gradient(135deg, #ffe389 0%, #ffc400 55%, #f5af00 100%);
  color: #2c1b0f;
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -2px 0 rgba(138,77,16,.15),
    0 12px 28px rgba(255,196,0,.42);
}
.about-actions .btn-primary:hover {
  background: linear-gradient(135deg, #ffe389 0%, #ffc400 55%, #f5af00 100%);
  transform: translateY(-2px);
}
.about-actions .btn > * { position: relative; z-index: 1; }
.about-actions .btn .btn-shine {
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: -60%;
  width: 60%;
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(255, 255, 255, .45) 30%,
    rgba(255, 255, 255, .95) 50%,
    rgba(255, 255, 255, .45) 70%,
    transparent 100%);
  transform: skewX(-22deg);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.section-kicker {
  color: var(--color-primary-dark);
  font-weight: 800;
}
.section-head h2 { font-size: var(--text-2xl); }
.carousel-controls { display: flex; gap: var(--space-2); }
.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 1fr);
  gap: var(--space-5);
  overflow-x: auto;
  padding: var(--space-3) var(--space-1) var(--space-3);
  scroll-snap-type: x proximity;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: #ffc400 rgba(255, 196, 0, .12);
}
/* WebKit scrollbar — themed yellow gradient */
.product-rail::-webkit-scrollbar {
  height: 10px;
}
.product-rail::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgba(255, 196, 0, .06), rgba(255, 196, 0, .14));
  border-radius: 999px;
  margin: 0 8px;
  box-shadow: inset 0 1px 2px rgba(120, 75, 14, .08);
}
.product-rail::-webkit-scrollbar-thumb {
  background:
    linear-gradient(180deg, #ffe389 0%, #ffc400 55%, #f5af00 100%);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(138, 77, 16, .18),
    0 2px 6px rgba(255, 196, 0, .35);
  transition: background 200ms;
}
.product-rail::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, #ffd75a 0%, #ffb800 55%, #e89e00 100%);
  background-clip: padding-box;
}
.product-rail::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #ffc400 0%, #e89e00 100%);
  background-clip: padding-box;
}
.product-card {
  position: relative;
  scroll-snap-align: start;
  background: linear-gradient(180deg, #ffffff 0%, #fffbf0 100%);
  border: 1px solid color-mix(in oklab, var(--color-primary), var(--color-border) 70%);
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 2px rgba(120, 75, 14, .04),
    0 6px 18px rgba(120, 75, 14, .07);
  transform: translateZ(0);
  transition:
    transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 400ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 300ms ease;
  animation: productCardEnter 600ms cubic-bezier(0.16, 1, 0.3, 1) var(--card-delay, 0ms) backwards;
}
@keyframes productCardEnter {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.product-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255, 196, 0, 0) 0%, rgba(255, 196, 0, 0) 35%, rgba(255, 196, 0, .9) 50%, rgba(255, 196, 0, 0) 65%, rgba(255, 196, 0, 0) 100%);
  background-size: 220% 220%;
  background-position: 0% 0%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease, background-position 900ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 4;
}
.product-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in oklab, var(--color-primary), transparent 55%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 18px 38px rgba(255, 196, 0, .22),
    0 8px 16px rgba(120, 75, 14, .12);
}
.product-card:hover::before {
  opacity: 1;
  background-position: 100% 100%;
}
.product-card.is-added-pulse {
  animation: productCardPulse 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes productCardPulse {
  0%   { box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 38px rgba(255, 196, 0, .22), 0 0 0 0 rgba(255, 196, 0, .55); }
  50%  { box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 22px 44px rgba(255, 196, 0, .35), 0 0 0 10px rgba(255, 196, 0, 0); }
  100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 38px rgba(255, 196, 0, .22), 0 0 0 0 rgba(255, 196, 0, 0); }
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3cf 0%, #fff8e1 100%);
}
.food-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), filter 400ms ease;
  will-change: transform;
}
.product-card:hover .food-img {
  transform: scale(1.08);
  filter: saturate(1.08) brightness(1.02);
}
.product-media__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .12) 100%),
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, .35), transparent 45%);
  pointer-events: none;
}
.product-media__link { position: absolute; inset: 0; z-index: 1; }
.product-media__link:focus-visible { outline: 3px solid #20170c; outline-offset: -4px; }
.product-title-link { display: block; min-width: 0; }
.product-title-link:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 3px; }
.admin-product-thumb {
  display: inline-block;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #fff4c2 0%, #ffd75a 55%, #ffc400 100%);
  color: #2c1b0f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    inset 0 -1px 0 rgba(138, 77, 16, .12),
    0 6px 14px rgba(255, 196, 0, .42),
    0 1px 3px rgba(80, 54, 16, .12);
  z-index: 2;
  transform-origin: left center;
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 350ms ease;
}
.product-card:hover .badge {
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    inset 0 -1px 0 rgba(138, 77, 16, .12),
    0 10px 22px rgba(255, 196, 0, .55),
    0 1px 3px rgba(80, 54, 16, .12);
}
.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2c1b0f;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .55);
  animation: badgeDotBlink 2.4s ease-in-out infinite;
}
@keyframes badgeDotBlink {
  0%, 60%, 100% { opacity: 1; transform: scale(1); }
  30% { opacity: .5; transform: scale(0.75); }
}

.product-body {
  padding: 12px 16px 14px;
  display: grid;
  gap: 3px;
}
.product-body h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: #1f160c;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-body__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #806e57;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.product-body__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed color-mix(in oklab, var(--color-primary), var(--color-border) 75%);
}
.product-price {
  display: inline-flex;
  align-items: baseline;
  color: #8a4d10;
  line-height: 1;
}
.product-price__cur {
  font-size: 14px;
  font-weight: 800;
  margin-right: 2px;
  opacity: .85;
}
.product-price__amount {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.025em;
  font-feature-settings: "tnum";
}
.product-stock {
  display: block;
  margin-top: 2px;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}
.product-stock--out { color: #b91c1c; }

/* ═══════════════════════════════════════════════════════════
   PUBLIC CATALOG CARD — Stock chip, Promo strip, Sold count
   ─────────────────────────────────────────────────────────
   Goals:
   • Stock chip as a clearly separated pill (not pasted to ฿)
   • Promo strip surfaces active offers above the price line
   • Sold count adds social proof for the shopper
   ═══════════════════════════════════════════════════════════ */

/* Price + stock now share a vertical "price block" so they
   never crowd each other horizontally. */
.product-price-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
}

/* Modern stock chip — pill with semantic color & dot */
.product-stock-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}
.product-stock-chip__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px color-mix(in oklab, currentColor, transparent 78%);
}
.product-stock-chip--ready {
  color: #047857;
  background: color-mix(in oklab, #10b981, white 86%);
}
.product-stock-chip--low {
  color: #b45309;
  background: color-mix(in oklab, #f59e0b, white 84%);
  animation: stockPulse 2s ease-in-out infinite;
}
.product-stock-chip--out {
  color: #b91c1c;
  background: color-mix(in oklab, #ef4444, white 86%);
}
@keyframes stockPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

/* Promo strip — gradient pill above sold count, eye-catching */
.product-promo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.product-promo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.35) 50%,
    transparent 100%);
  transform: translateX(-100%);
  animation: promoShine 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes promoShine {
  0%, 100% { transform: translateX(-100%); }
  50%      { transform: translateX(100%); }
}
.product-promo--hot {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #b91c1c;
  border-color: color-mix(in oklab, #ef4444, transparent 70%);
}
.product-promo--warm {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #c2410c;
  border-color: color-mix(in oklab, #f97316, transparent 70%);
}
.product-promo--cool {
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
  color: #0e7490;
  border-color: color-mix(in oklab, #06b6d4, transparent 70%);
}
.product-promo__icon { font-size: 13px; flex-shrink: 0; }
.product-promo__label {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Sold count — social proof, subtle but visible */
.product-sold {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #806e57;
  letter-spacing: .01em;
}
.product-sold strong {
  font-weight: 800;
  color: #8a4d10;
  font-variant-numeric: tabular-nums;
}
.product-sold__icon {
  font-size: 12px;
  filter: saturate(1.2);
}

.edd-widget {
  margin-top: 10px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid color-mix(in oklab, #16a34a, white 72%);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(240, 253, 244, .94), rgba(255, 251, 235, .92)),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
  display: grid;
  gap: 7px;
}
.edd-widget__top {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 8px;
  align-items: center;
}
.edd-widget__icon {
  grid-row: span 2;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(22, 163, 74, .22);
}
.edd-widget__promise {
  font-size: 10px;
  line-height: 1.1;
  color: #64748b;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.edd-widget__date {
  min-width: 0;
  color: #14532d;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.edd-widget__count {
  color: #854d0e;
  background: rgba(254, 243, 199, .78);
  border: 1px dashed rgba(245, 158, 11, .42);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}
.edd-widget__count strong {
  color: #9a3412;
  font-variant-numeric: tabular-nums;
}
.edd-widget__region {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
}
.edd-widget__region select {
  max-width: 150px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
  color: #1e3a8a;
  font: inherit;
  font-weight: 800;
  padding: 5px 8px;
  outline: none;
}
.edd-widget__region select:focus {
  box-shadow: 0 0 0 3px rgba(47, 111, 235, .14);
  border-color: #93c5fd;
}

/* Top-seller secondary badge (positioned top-right of media) */
.badge--top-seller {
  position: absolute;
  top: 10px; right: 10px; left: auto;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
  font-size: 10.5px;
  font-weight: 900;
  padding: 4px 9px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, .35);
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  animation: topSellerPop .6s cubic-bezier(.34, 1.56, .64, 1) .2s both;
}
.badge--top-seller .badge__dot { display: none; }
@keyframes topSellerPop {
  from { transform: scale(.6) rotate(-6deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   ADMIN FORM — Radio group (sold display mode picker)
   ═══════════════════════════════════════════════════════════ */
.prod-form__radio-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.prod-form__radio {
  flex: 1; min-width: 130px;
  display: inline-flex; align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  transition: all .12s;
}
.prod-form__radio:hover { border-color: #cbd5e1; color: #0f172a; }
.prod-form__radio input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; margin: 0;
  border: 2px solid #cbd5e1; border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  display: grid; place-items: center;
  transition: all .12s;
}
.prod-form__radio input[type="radio"]:checked {
  border-color: var(--color-primary, #fbbf24);
}
.prod-form__radio input[type="radio"]:checked::after {
  content: ""; width: 8px; height: 8px;
  border-radius: 50%; background: var(--color-primary, #fbbf24);
}
.prod-form__radio--active,
.prod-form__radio:has(input:checked) {
  background: color-mix(in oklab, var(--color-primary, #fbbf24), white 88%);
  border-color: var(--color-primary, #fbbf24);
  color: #78350f;
}

/* Promotion preview card in admin form */
.prod-promo-preview {
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}
.prod-promo-preview[hidden] { display: none; }
.add-cart:disabled {
  cursor: not-allowed;
  opacity: .45;
  box-shadow: none;
}
/* legacy price fallback */
.price {
  color: var(--color-primary-dark);
  font-size: var(--text-xl);
  font-weight: 900;
}

.add-cart {
  position: relative;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: #2c1b0f;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 220ms ease,
    color 200ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .65),
    inset 0 -2px 0 rgba(138, 77, 16, .15),
    0 6px 16px rgba(255, 196, 0, .42);
}
.add-cart__bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #ffe389 0%, #ffc400 55%, #f5af00 100%);
  transition: background 350ms ease, opacity 220ms ease;
  z-index: -1;
}
.add-cart::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 60%);
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: -1;
  pointer-events: none;
}
.add-cart:hover {
  transform: translateY(-2px) rotate(-4deg) scale(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .75),
    inset 0 -2px 0 rgba(138, 77, 16, .15),
    0 12px 26px rgba(255, 196, 0, .55);
}
.add-cart:hover::after { opacity: 1; }
.add-cart:active { transform: translateY(0) rotate(-2deg) scale(0.96); transition-duration: 120ms; }
.add-cart__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  transition: opacity 280ms ease, transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.add-cart__check {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4) rotate(-30deg);
}
.add-cart.is-added .add-cart__bg {
  background: linear-gradient(135deg, #69d695 0%, #2faa64 55%, #128a4a 100%);
}
.add-cart.is-added {
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -2px 0 rgba(8, 60, 32, .25),
    0 10px 24px rgba(31, 168, 96, .5);
}
.add-cart.is-added .add-cart__plus {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4) rotate(60deg);
}
.add-cart.is-added .add-cart__check {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}
.add-cart .btn-shine {
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: -60%;
  width: 70%;
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(255, 255, 255, .5) 30%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, .5) 70%,
    transparent 100%);
  transform: skewX(-22deg);
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}
.add-cart__ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  animation: addCartRipple 600ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  z-index: 2;
}
@keyframes addCartRipple {
  to {
    transform: translate(-50%, -50%) scale(8);
    opacity: 0;
  }
}

.location-review { padding-top: 0; }
.location-review__grid {
  display: grid;
  grid-template-columns: minmax(380px, .95fr) minmax(0, 1.25fr);
  align-items: stretch;
  gap: 22px;
}
.location-card, .review-card, .admin-panel, .kpi-card {
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}
.location-card, .review-card {
  min-height: 0;
}
.location-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(255, 196, 0, .32);
  background:
    radial-gradient(circle at 6% 98%, rgba(255, 196, 0, .14) 0%, transparent 36%),
    radial-gradient(circle at 100% 100%, rgba(255, 196, 0, .08) 0%, transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fffaef 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 2px 4px rgba(120, 75, 14, .04),
    0 16px 36px rgba(120, 75, 14, .08);
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 350ms ease, border-color 300ms ease;
}
.location-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 0, .22) 0%, rgba(255, 196, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.location-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 196, 0, .55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 2px 4px rgba(120, 75, 14, .04),
    0 22px 48px rgba(255, 196, 0, .18);
}
.location-card__map {
  position: relative;
  width: 100%;
  height: 180px;
  flex: 0 0 180px;
  z-index: 1;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 196, 0, .22);
  background:
    linear-gradient(135deg, rgba(255, 196, 0, .12) 0 34%, transparent 34% 100%),
    linear-gradient(45deg, rgba(255, 159, 28, .08) 0 24%, transparent 24% 100%),
    var(--surface);
  overflow: hidden;
}
.location-card__map::after {
  content: "Maps";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1f160c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 2px 6px rgba(120, 75, 14, .15);
  pointer-events: none;
}
.location-card__map-frame,
.location-card__map-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.location-card__map-frame {
  z-index: 2;
  border: 0;
  opacity: 0;
  background: var(--surface);
  transition: opacity .24s ease;
}
.location-card__map-frame.is-loaded { opacity: 1; }
.location-card__map-fallback { z-index: 1; }
.location-map__road {
  position: absolute;
  display: block;
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--color-text), transparent 88%);
}
.location-map__road--main {
  width: 150%;
  height: 28px;
  left: -28%;
  top: 54%;
  transform: rotate(-18deg);
}
.location-map__road--soft {
  width: 118%;
  height: 18px;
  right: -28%;
  top: 28%;
  transform: rotate(31deg);
  background: color-mix(in oklab, var(--color-accent-orange), transparent 72%);
}
.location-map__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--surface), transparent 14%);
  border: 1px solid color-mix(in oklab, var(--color-primary-dark), var(--surface) 62%);
  box-shadow: var(--shadow-floating);
  transform: translate(-50%, -50%);
}
.location-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 18px 20px 20px;
}
.location-card__eyebrow {
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 6px 12px 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #fff4c2 0%, #ffd75a 100%);
  color: #2c1b0f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    0 4px 10px rgba(255, 196, 0, .3);
}
.location-card__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2c1b0f;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .55);
  animation: badgeDotBlink 2.4s ease-in-out infinite;
}
.location-card h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #1f160c;
}
.location-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}
.location-detail-list p {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 196, 0, .35);
  align-items: start;
}
.location-detail-list p:first-child { padding-top: 4px; }
.location-detail-list p:last-child { border-bottom: 0; padding-bottom: 0; }
.location-detail-list span {
  color: #8a6f4a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.location-detail-list strong {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: #1f160c;
}
.location-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.location-card__actions .btn {
  flex: 1 1 0;
  min-height: 44px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.location-card__actions .btn > * { position: relative; z-index: 1; }
.location-card__actions .btn .btn-shine {
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: -60%;
  width: 60%;
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(255, 255, 255, .45) 30%,
    rgba(255, 255, 255, .95) 50%,
    rgba(255, 255, 255, .45) 70%,
    transparent 100%);
  transform: skewX(-22deg);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}
.location-card__icon, .review-star {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #ffe389 0%, #ffc400 60%, #f5af00 100%);
  color: #2c1b0f;
  font-size: 26px;
  flex: 0 0 56px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .6),
    inset 0 -2px 0 rgba(138, 77, 16, .15),
    0 8px 22px rgba(255, 196, 0, .45);
}
.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px 20px 16px !important;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 196, 0, .14) 0%, transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(255, 196, 0, .08) 0%, transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fffaef 100%);
  border-color: rgba(255, 196, 0, .32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 2px 4px rgba(120, 75, 14, .04),
    0 16px 36px rgba(120, 75, 14, .08);
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 350ms ease, border-color 300ms ease;
}
.review-card::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  right: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 120px;
  line-height: 1;
  color: rgba(255, 196, 0, .12);
  pointer-events: none;
  z-index: 0;
}
.review-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 196, 0, .55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 2px 4px rgba(120, 75, 14, .04),
    0 22px 48px rgba(255, 196, 0, .18);
}

/* ── Header ── */
.review-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.review-card__top h2 {
  margin: 4px 0 4px;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 900;
  letter-spacing: -0.015em;
  color: #1f160c;
}
.review-card__top p {
  margin: 0;
  color: #806e57;
  font-size: 12.5px;
  line-height: 1.4;
}
.btn-review-write {
  margin-left: auto;
  align-self: flex-start;
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 196, 0, .45);
  background: #ffffff;
  color: #5e4224;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.005em;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 2px 8px rgba(120, 75, 14, .08);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms ease, border-color 200ms ease;
}
.btn-review-write:hover {
  border-color: rgba(255, 196, 0, .75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 6px 16px rgba(255, 196, 0, .22);
  transform: translateY(-1px);
}
.btn-review-write:active { transform: translateY(0); }

.review-kicker {
  margin-bottom: 2px !important;
  color: #8a4d10 !important;
  font-size: 10.5px !important;
  font-weight: 900 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
}

/* ── Rating bar ── */
.review-summary {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 196, 0, .35);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 248, 210, .95) 0%, rgba(255, 228, 120, .6) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 3px 10px rgba(255, 196, 0, .15);
}
.review-summary strong {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #1f160c;
  font-feature-settings: "tnum";
}
.review-summary span {
  color: #f5af00;
  letter-spacing: .1em;
  font-weight: 900;
  font-size: 16px;
  flex: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
.review-summary small {
  color: #8a6f4a;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Review quote stack (2 rows) ── */
.review-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.review-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 16px 14px 18px;
  border: 1px solid rgba(234, 223, 205, .8);
  border-radius: 14px;
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 2px 8px rgba(120, 75, 14, .05);
  position: relative;
  overflow: hidden;
}
.review-item::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 0;
  width: 3px;
  background: linear-gradient(180deg, #ffd75a 0%, #ffc400 50%, #f5af00 100%);
  border-radius: var(--radius-pill);
  pointer-events: none;
}
.review-card blockquote {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  padding: 0;
  color: #2c1b0f;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.003em;
  flex: 1;
}
.review-person {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 196, 0, .38);
}
.review-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe389 0%, #ffc400 60%, #f5af00 100%);
  color: #2c1b0f;
  font-weight: 900;
  font-size: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .6),
    0 0 0 3px #ffffff,
    0 0 0 4px rgba(255, 196, 0, .35),
    0 4px 12px rgba(255, 196, 0, .3);
}
.review-person__meta { min-width: 0; }
.review-person cite {
  display: block;
  color: #1f160c;
  font-style: normal;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.005em;
}
.review-person small {
  display: block;
  color: #806e57;
  font-size: 12px;
  margin-top: 2px;
}
.review-person__stars {
  margin-left: auto;
  color: #f5af00;
  font-weight: 900;
  letter-spacing: .08em;
  font-size: 14px;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}
.review-dots {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
}
.review-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 196, 0, .25);
  cursor: pointer;
  transition: width 280ms cubic-bezier(0.16, 1, 0.3, 1), background 280ms ease;
}
.review-dots button:hover { background: rgba(255, 196, 0, .55); }
.review-dots button.active {
  width: 22px;
  background: linear-gradient(90deg, #ffd75a, #f5af00);
  box-shadow: 0 2px 6px rgba(255, 196, 0, .4);
}

.stats-bar {
  background: linear-gradient(180deg, color-mix(in oklab, var(--color-bg), white 42%), var(--surface));
  padding: var(--space-5) 0 var(--space-4);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  background: color-mix(in oklab, var(--surface), white 10%);
  border: 1px solid color-mix(in oklab, var(--color-border), white 18%);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px rgba(58, 42, 17, .07);
  padding: var(--space-4);
}
.stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-2) var(--space-5);
  border-right: 1px solid color-mix(in oklab, var(--color-border), transparent 18%);
}
.stat-item:last-child { border-right: 0; }
.stat-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  color: var(--color-primary-dark);
  background: color-mix(in oklab, var(--color-primary), white 70%);
  border: 1px solid color-mix(in oklab, var(--color-primary-dark), transparent 74%);
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
}
.stat-icon svg { width: 20px; height: 20px; }
.stat-item strong {
  display: block;
  color: var(--color-text);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1;
}
.stat-item small {
  display: block;
  margin-top: 6px;
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1.35;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.article-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fffaef 100%);
  border: 1px solid rgba(255, 196, 0, .28);
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 2px rgba(120, 75, 14, .04),
    0 10px 26px rgba(120, 75, 14, .08);
  transition:
    transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 400ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 300ms ease;
  animation: productCardEnter 600ms cubic-bezier(0.16, 1, 0.3, 1) var(--card-delay, 0ms) backwards;
}
.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 196, 0, .6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 22px 44px rgba(255, 196, 0, .22),
    0 8px 18px rgba(120, 75, 14, .12);
}
.article-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.article-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1.65;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3cf 0%, #fff8e1 100%);
}
.article-card__media .thumb,
.article-card .thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background-size: cover;
  background-position: center;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), filter 400ms ease;
  will-change: transform;
}
.article-card:hover .thumb {
  transform: scale(1.08);
  filter: saturate(1.08) brightness(1.02);
}
.article-card__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .15) 100%),
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, .35), transparent 45%);
  pointer-events: none;
  z-index: 1;
}
.article-card__chip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #8a4d10;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 4px 12px rgba(120, 75, 14, .14);
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}
.article-card:hover .article-card__chip {
  transform: translateY(-1px);
}
.article-card__chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f5af00;
  box-shadow: 0 0 0 2px rgba(255, 196, 0, .25);
  animation: badgeDotBlink 2.4s ease-in-out infinite;
}
.article-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.article-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: #1f160c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 220ms ease;
}
.article-card__link:hover h3,
.article-card__link:focus-visible h3 {
  color: #8a4d10;
  text-decoration: none;
}
.article-card p {
  margin: 0;
  color: #806e57;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 196, 0, .35);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8a6f4a;
  font-size: 12px;
  font-weight: 700;
}
.article-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.article-card__meta-item svg {
  width: 13px;
  height: 13px;
  opacity: .75;
}
.article-card__meta time,
.article-card__meta small { font-size: 12px; }
.article-card__arrow {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe389 0%, #ffc400 60%, #f5af00 100%);
  color: #2c1b0f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .6),
    0 4px 10px rgba(255, 196, 0, .35);
  transform: translateX(-4px);
  opacity: 0;
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), opacity 280ms ease;
}
.article-card__arrow svg { width: 14px; height: 14px; }
.article-card:hover .article-card__arrow,
.article-card__link:focus-visible .article-card__arrow {
  transform: translateX(0);
  opacity: 1;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 4% 0%, rgba(255, 196, 0, .18) 0%, transparent 28%),
    radial-gradient(circle at 96% 100%, rgba(255, 196, 0, .12) 0%, transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #fffaef 100%);
  border-top: 0;
  padding: 28px 0 16px;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 196, 0, 0) 8%,
    rgba(255, 196, 0, .7) 30%,
    #ffc400 50%,
    rgba(255, 196, 0, .7) 70%,
    rgba(255, 196, 0, 0) 92%,
    transparent 100%);
  pointer-events: none;
}
.site-footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(280px, .9fr) minmax(280px, .95fr);
  gap: clamp(20px, 2.4vw, 32px);
  align-items: start;
  padding-bottom: 16px;
}
.footer-brand {
  max-width: 560px;
}
.footer-brand__logo {
  margin-bottom: 10px;
}
.footer-brand p {
  max-width: 44ch;
  margin: 0 0 12px;
  color: #806e57;
  font-size: 13.5px;
  line-height: 1.55;
}
.footer-contact-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-contact-list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 13px 4px 5px;
  width: fit-content;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 196, 0, .25);
  color: #1f160c;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 1px 2px rgba(120, 75, 14, .04);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 280ms ease, border-color 280ms ease;
}
.footer-contact-list li:hover {
  transform: translateX(2px);
  border-color: rgba(255, 196, 0, .55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 4px 12px rgba(255, 196, 0, .18);
}
.footer-contact-list__icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe389 0%, #ffc400 60%, #f5af00 100%);
  color: #2c1b0f;
  flex: 0 0 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    0 2px 6px rgba(255, 196, 0, .35);
}
.footer-contact-list__icon svg { width: 13px; height: 13px; }

.footer-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 6px;
  align-content: start;
}
.footer-menu h2 {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  padding-left: 12px;
  position: relative;
  color: #1f160c;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-menu__bar {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #ffd75a 0%, #ffc400 50%, #f5af00 100%);
  box-shadow: 0 2px 4px rgba(255, 196, 0, .35);
}
.footer-menu button,
.footer-menu a {
  width: 100%;
  min-height: 24px;
  border: 0;
  background: transparent;
  color: #806e57;
  padding: 2px 0;
  text-align: left;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  position: relative;
  transition: color 220ms ease, padding-left 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-menu button::before,
.footer-menu a::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f5af00;
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer-menu button:hover,
.footer-menu button:focus-visible,
.footer-menu a:hover,
.footer-menu a:focus-visible {
  color: #8a4d10;
  padding-left: 12px;
  outline: 0;
}
.footer-menu button:hover::before,
.footer-menu button:focus-visible::before,
.footer-menu a:hover::before,
.footer-menu a:focus-visible::before {
  transform: translateY(-50%) scale(1);
}

.footer-cta {
  position: relative;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 196, 0, .18) 0%, transparent 50%),
    linear-gradient(135deg, #ffffff 0%, #fff7d8 100%);
  border: 1px solid rgba(255, 196, 0, .35);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 10px 24px rgba(255, 196, 0, .15);
  padding: 14px 16px 14px 20px;
  overflow: hidden;
  isolation: isolate;
}
.footer-cta::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 0;
  width: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #ffd75a 0%, #ffc400 50%, #f5af00 100%);
  box-shadow: 0 2px 6px rgba(255, 196, 0, .35);
}
.footer-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  padding: 3px 10px 3px 8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #fff4c2 0%, #ffd75a 100%);
  color: #2c1b0f;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    0 2px 6px rgba(255, 196, 0, .35);
}
.footer-cta__eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2c1b0f;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .55);
  animation: badgeDotBlink 2.4s ease-in-out infinite;
}
.footer-cta h2 {
  margin: 0 0 4px;
  color: #1f160c;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-transform: none;
}
.footer-cta p {
  margin: 0 0 10px;
  color: #806e57;
  font-size: 12.5px;
  line-height: 1.45;
}
.footer-cta__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.footer-cta__actions .btn {
  min-height: 36px;
  padding-inline: 12px;
  font-size: 13px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.footer-cta__actions .btn > * { position: relative; z-index: 1; }
.footer-cta__actions .btn .btn-shine {
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: -60%;
  width: 60%;
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(255, 255, 255, .5) 30%,
    rgba(255, 255, 255, .95) 50%,
    rgba(255, 255, 255, .5) 70%,
    transparent 100%);
  transform: skewX(-22deg);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}
.footer-cta__actions .btn-primary { grid-column: 1 / -1; }
.footer-cta__actions .btn-line {
  grid-column: auto;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 196, 0, .35);
}
.footer-bottom__copy {
  color: #8a6f4a;
  font-size: 12px;
  font-weight: 700;
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: #8a6f4a;
  font-size: 11px;
  line-height: 1.4;
}
.footer-credit strong {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #fff4c2 0%, #ffd75a 100%);
  color: #2c1b0f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .65),
    0 2px 6px rgba(255, 196, 0, .25);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: color-mix(in oklab, var(--fg), transparent 58%);
}
.drawer, .modal {
  position: fixed;
  z-index: 100;
  background: transparent;
}
.drawer {
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100dvh;
  transform: translateX(105%);
  transition: transform var(--motion-base) var(--ease-standard);
  background: var(--surface);
  box-shadow: var(--shadow-floating);
  display: flex;
  flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head, .drawer__footer {
  padding: var(--space-5);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer__footer { border-top: 1px solid var(--border); border-bottom: 0; display: block; }
.drawer__body { padding: var(--space-5); overflow-y: auto; flex: 1; }
.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--border-soft);
}
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.qty-controls { display: flex; gap: var(--space-2); align-items: center; margin-top: var(--space-2); }
.qty-controls button {
  width: 32px; height: 32px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface);
}
.empty-state { text-align: center; color: var(--muted); padding: var(--space-12) var(--space-4); }
.product-empty-state {
  grid-column: 1 / -1;
  width: min(100%, 720px);
  margin: 0 auto;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}
.modal {
  inset: 0;
  display: none;
  place-items: center;
  padding: var(--space-5);
}
.modal.is-open { display: grid; }
.modal__card {
  width: min(520px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-floating);
  border: 1px solid var(--border);
  padding: var(--space-6);
  position: relative;
}
.close-control {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}

/* ── Toast with undo action ── */
.toast--with-action {
  display: inline-flex; align-items: center; gap: 12px;
  padding-right: 6px;
}
.toast-undo {
  background: var(--color-primary, #fbbf24); color: #0f172a;
  border: 0; padding: 6px 12px;
  border-radius: 6px;
  font: inherit; font-size: 12.5px; font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}
.toast-undo:hover { filter: brightness(.95); }

/* ─── Ambient firefly effect — soft yellow lights drifting inside hero ──── */
.rain-fx {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
  transition: opacity .3s ease;
}
.rain-fx.is-hidden { opacity: 0; }

/* ───── Rain drop (theme: rain) ───────────────────────────────────── */
.rain-fx__drop {
  position: absolute;
  top: -40px;
  width: 1px;
  border-radius: 0 0 1px 1px;
  background: linear-gradient(180deg,
    rgba(170, 210, 250, 0) 0%,
    rgba(170, 210, 250, .50) 40%,
    rgba(220, 240, 255, .85) 90%,
    rgba(255, 255, 255, 1) 100%);
  filter: drop-shadow(0 0 1px rgba(170, 215, 255, .45));
  will-change: transform;
}
@keyframes rainFall {
  0%   { transform: translate3d(0, -40px, 0); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translate3d(14px, 110vh, 0); opacity: 0; }
}

/* ───── Snow flake (theme: snow) ──────────────────────────────────── */
.rain-fx__snow {
  position: absolute;
  top: -30px;
  color: #ffffff;
  text-shadow: 0 0 6px rgba(200, 220, 255, .85), 0 0 12px rgba(180, 210, 255, .35);
  line-height: 1;
  user-select: none;
  will-change: transform;
}
@keyframes snowFall {
  0%   { transform: translate3d(0,    -30px,  0) rotate(0deg); }
  25%  { transform: translate3d(20px,  25vh,  0) rotate(90deg); }
  50%  { transform: translate3d(-25px, 50vh,  0) rotate(180deg); }
  75%  { transform: translate3d(20px,  75vh,  0) rotate(270deg); }
  100% { transform: translate3d(0,    110vh,  0) rotate(360deg); }
}

/* ───── Autumn leaf (theme: leaves) ───────────────────────────────── */
.rain-fx__leaf {
  position: absolute;
  top: -50px;
  display: inline-block;
  line-height: 1;
  user-select: none;
  filter: drop-shadow(0 2px 4px rgba(60, 40, 10, .15));
  will-change: transform;
}
@keyframes leafDrift {
  0%   { transform: translate3d(0,    -50px,  0) rotate(0deg);   opacity: 0; }
  8%   { opacity: 1; }
  20%  { transform: translate3d(-40px, 22vh,  0) rotate(80deg); }
  40%  { transform: translate3d(35px,  44vh,  0) rotate(170deg); }
  60%  { transform: translate3d(-30px, 66vh,  0) rotate(260deg); }
  80%  { transform: translate3d(40px,  88vh,  0) rotate(340deg); }
  92%  { opacity: 1; }
  100% { transform: translate3d(15px,  112vh, 0) rotate(420deg); opacity: 0; }
}

/* ───── Sakura petal (theme: sakura) ──────────────────────────────── */
.rain-fx__petal {
  position: absolute;
  top: -50px;
  display: inline-block;
  line-height: 1;
  user-select: none;
  filter: drop-shadow(0 2px 6px rgba(220, 100, 130, .25));
  color: #ffafc8;
  will-change: transform;
}

/* ───── Sparkle (theme: sparkles) ─────────────────────────────────── */
.rain-fx__sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #fff8c4 50%, transparent 100%);
  box-shadow:
    0 0 4px 1px rgba(255, 255, 240, .95),
    0 0 10px 3px rgba(255, 235, 130, .55),
    0 0 18px 6px rgba(255, 200, 60, .25);
  will-change: opacity, transform;
}
@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0; transform: scale(.4); }
  50%      { opacity: 1; transform: scale(1.4); }
}

/* Firefly: small soft golden-yellow dot with warm glowing halo */
.rain-fx__firefly {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle,
    #fffce0 0%,
    #ffeb7a 35%,
    rgba(255, 213, 74, .65) 65%,
    transparent 100%);
  box-shadow:
    0 0 6px 1px rgba(255, 235, 130, .70),
    0 0 14px 4px rgba(255, 213, 74, .40),
    0 0 22px 8px rgba(255, 200, 60, .18);
  animation-name: fireflyFloat, fireflyGlow;
  animation-timing-function: ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite;
  will-change: transform, opacity;
}
@keyframes fireflyFloat {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(45px, -55px, 0); }
  40%  { transform: translate3d(-30px, -110px, 0); }
  60%  { transform: translate3d(60px, -150px, 0); }
  80%  { transform: translate3d(-20px, -90px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes fireflyGlow {
  0%, 100% { opacity: .35; }
  50%      { opacity: 1; }
}

/* Honor user's OS preference — but allow re-enable via .rain-fx--forced. */
@media (prefers-reduced-motion: reduce) {
  .rain-fx:not(.rain-fx--forced) { display: none; }
}

/* ─── Payment Choice Modal ───────────────────────────────────────────────── */
.modal__card.pmc-card {
  padding: 0;
  overflow: hidden;
  max-width: 400px;
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 30px 80px -24px rgba(15,23,42,.55), 0 0 0 1px rgba(255,255,255,.04);
}
/* Header */
.pmc-head {
  position: relative;
  overflow: hidden;
  padding: 24px 22px 22px;
  background: linear-gradient(135deg, #243042 0%, #161f2e 55%, #0d1420 100%);
  border-bottom: 1px solid rgba(255,196,0,.16);
}
.pmc-head__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
  width: 130px; height: 130px;
  top: -50px; right: 20px;
  background: radial-gradient(circle, rgba(255,196,0,.25), rgba(255,196,0,0) 70%);
}
.pmc-head__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 44px;
}
.pmc-head__logo {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffd84d 0%, #ffb300 100%);
  box-shadow: 0 6px 18px rgba(255,176,0,.40), inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 4px rgba(255,196,0,.12);
  color: #5c3600;
}
.pmc-head__logo svg { width: 24px; height: 24px; }
.pmc-head__title { margin: 0; font-size: 20px; font-weight: 900; color: #fff; letter-spacing: -.01em; line-height: 1.2; }
.pmc-head__sub { margin: 4px 0 0; font-size: 12.5px; color: rgba(255,255,255,.58); }
.pmc-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  cursor: pointer; z-index: 2;
  transition: background .16s, transform .16s, border-color .16s;
}
.pmc-close svg { width: 17px; height: 17px; }
.pmc-close:hover { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.3); transform: rotate(90deg); }
.pmc-close:focus-visible { outline: 2px solid #ffc400; outline-offset: 2px; }
/* Body */
.pmc-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
}
/* Balance strip */
.pmc-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid;
}
.pmc-balance--ok { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border-color: #6ee7b7; }
.pmc-balance--warn { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fcd34d; }
.pmc-balance__left {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
}
.pmc-balance--ok .pmc-balance__left { color: #065f46; }
.pmc-balance--ok .pmc-balance__left svg { color: #059669; }
.pmc-balance--warn .pmc-balance__left { color: #92400e; }
.pmc-balance--warn .pmc-balance__left svg { color: #d97706; }
.pmc-balance__left svg { width: 16px; height: 16px; flex-shrink: 0; }
.pmc-balance__amount { font-size: 22px; font-weight: 900; }
.pmc-balance--ok .pmc-balance__amount { color: #047857; }
.pmc-balance--warn .pmc-balance__amount { color: #b45309; }
/* Options */
.pmc-options { display: flex; flex-direction: column; gap: 10px; }
.pmc-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.pmc-option:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.pmc-option__icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
}
.pmc-option__icon svg { width: 20px; height: 20px; }
.pmc-option__text { display: flex; flex-direction: column; gap: 2px; }
.pmc-option__text strong { font-size: 14px; font-weight: 800; line-height: 1.2; }
.pmc-option__text small { font-size: 11.5px; font-weight: 500; }
/* Primary (pay with credit) */
.pmc-option--primary { background: linear-gradient(135deg, #fef9e7, #fef3c7); border-color: #fcd34d; }
.pmc-option--primary .pmc-option__icon { background: linear-gradient(145deg, #ffd84d, #ffb300); color: #5c3600; box-shadow: 0 4px 10px rgba(255,176,0,.3); }
.pmc-option--primary .pmc-option__text strong { color: #1a1209; }
.pmc-option--primary .pmc-option__text small { color: #92400e; }
/* Secondary (topup) */
.pmc-option--secondary { background: #f8fafc; border-color: #e2e8f0; }
.pmc-option--secondary .pmc-option__icon { background: #f1f5f9; color: #475569; }
.pmc-option--secondary .pmc-option__text strong { color: #1e293b; }
.pmc-option--secondary .pmc-option__text small { color: #64748b; }
.pmc-option--secondary:hover { border-color: #cbd5e1; }
/* Disabled */
.pmc-option--disabled { background: #f8fafc; border-color: #e2e8f0; opacity: .6; cursor: not-allowed; }
.pmc-option--disabled .pmc-option__icon { background: #f1f5f9; color: #94a3b8; }
.pmc-option--disabled .pmc-option__text strong { color: #94a3b8; }
.pmc-option--disabled .pmc-option__text small { color: #cbd5e1; }

/* ─── Topup Modal v2 ─────────────────────────────────────────────────────── */
.modal__card.topup2-card {
  padding: 0;
  overflow: hidden;
  max-width: 440px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 22px;
  box-shadow: 0 30px 80px -24px rgba(15,23,42,.55), 0 0 0 1px rgba(255,255,255,.04);
}
.topup2-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Header — premium dark with gold accent */
.topup2-head {
  position: relative;
  overflow: hidden;
  padding: 24px 22px 22px;
  background: linear-gradient(135deg, #243042 0%, #161f2e 55%, #0d1420 100%);
  border-bottom: 1px solid rgba(255,196,0,.16);
}
/* decorative orb */
.topup2-head__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
}
.topup2-head__orb--1 {
  width: 140px; height: 140px;
  top: -50px; left: -20px;
  background: radial-gradient(circle, rgba(255,196,0,.30), rgba(255,196,0,0) 70%);
}
.topup2-head__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 44px;
}
/* logo badge */
.topup2-head__logo {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffd84d 0%, #ffb300 100%);
  box-shadow:
    0 6px 18px rgba(255,176,0,.40),
    inset 0 1px 0 rgba(255,255,255,.55),
    0 0 0 4px rgba(255,196,0,.12);
  color: #5c3600;
}
.topup2-head__logo svg { width: 24px; height: 24px; }
.topup2-head__text { min-width: 0; }
.topup2-head__title { margin: 0; font-size: 20px; font-weight: 900; color: #fff; letter-spacing: -.01em; line-height: 1.2; }
.topup2-head__sub { margin: 4px 0 0; font-size: 12.5px; color: rgba(255,255,255,.58); line-height: 1.4; }
/* close button with X icon */
.topup2-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  cursor: pointer;
  z-index: 2;
  transition: background .16s, color .16s, border-color .16s, transform .16s;
}
.topup2-close svg { width: 17px; height: 17px; }
.topup2-close:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
  border-color: rgba(255,255,255,.3);
  transform: rotate(90deg);
}
.topup2-close:focus-visible { outline: 2px solid #ffc400; outline-offset: 2px; }
/* Balance strip */
.topup2-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 20px 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #a7f3d0;
  border-radius: 12px;
}
.topup2-balance__label { font-size: 12px; font-weight: 700; color: #065f46; }
.topup2-balance__amount { font-size: 20px; font-weight: 900; color: #047857; }
/* Sections */
.topup2-section { padding: 16px 20px 0; }
.topup2-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
/* Amount input */
.topup2-amount-wrap {
  display: flex;
  align-items: center;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.topup2-amount-wrap:focus-within {
  border-color: #ffc400;
  box-shadow: 0 0 0 3px rgba(255,196,0,.15);
  background: #fff;
}
.topup2-amount-currency {
  padding: 0 4px 0 16px;
  font-size: 20px;
  font-weight: 900;
  color: #94a3b8;
}
.topup2-amount-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  padding: 12px 16px 12px 6px;
  width: 100%;
}
/* Presets */
.topup2-presets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.topup2-preset {
  padding: 8px 4px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  transition: all .15s;
}
.topup2-preset:hover, .topup2-preset.is-active {
  border-color: #ffc400;
  background: #fffbeb;
  color: #b45309;
}
/* Payment methods */
.topup2-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.topup2-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  transition: all .15s;
}
.topup2-method:hover { border-color: #cbd5e1; background: #fff; }
.topup2-method.is-selected {
  border-color: #ffc400;
  background: #fffbeb;
  box-shadow: 0 0 0 3px rgba(255,196,0,.12);
}
.topup2-method__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #e2e8f0;
  display: grid;
  place-items: center;
  color: #475569;
  flex: 0 0 auto;
  transition: background .15s, color .15s;
}
.topup2-method__icon svg { width: 18px; height: 18px; }
.topup2-method.is-selected .topup2-method__icon { background: #fef3c7; color: #b45309; }
.topup2-method__label { flex: 1; font-size: 14px; font-weight: 700; color: #374151; }
.topup2-method.is-selected .topup2-method__label { color: #1a1a1a; }
.topup2-method__badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  background: #dcfce7;
  color: #15803d;
}
.topup2-method__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: all .15s;
}
.topup2-method__check svg { width: 11px; height: 11px; opacity: 0; }
.topup2-method.is-selected .topup2-method__check {
  border-color: #ffc400;
  background: #ffc400;
}
.topup2-method.is-selected .topup2-method__check svg { opacity: 1; color: #2c1b0f; }
/* Note */
.topup2-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 20px 0;
  padding: 9px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  font-size: 11.5px;
  color: #94a3b8;
}
/* Submit */
.topup2-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 20px 20px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffe389 0%, #ffc400 55%, #f5af00 100%);
  color: #2c1b0f;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255,196,0,.4);
  transition: opacity .15s, transform .1s, box-shadow .15s;
}
.topup2-submit:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,196,0,.5); }
.topup2-submit svg { width: 18px; height: 18px; }
/* Payment panel inside topup2 */
.topup2-card #topupPaymentPanel { padding: 0 20px; }
/* ─── End Topup Modal v2 ──────────────────────────────────────────────────── */

/* ─── Topup QR Modal (Step 2 Popup) ─────────────────────────────────────── */
.modal__card.topupqr-card {
  padding: 0;
  overflow: hidden;
  max-width: 410px;
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 30px 80px -24px rgba(15,23,42,.55), 0 0 0 1px rgba(255,255,255,.04);
}
.topupqr-card { display: flex; flex-direction: column; gap: 0; }

/* Header — premium dark matching wallet modal */
.topupqr-head {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 20px;
  background: linear-gradient(135deg, #243042 0%, #161f2e 55%, #0d1420 100%);
  border-bottom: 1px solid rgba(255,196,0,.16);
}
/* decorative orb */
.topupqr-head__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
  width: 130px; height: 130px;
  top: -50px; right: 30px;
  background: radial-gradient(circle, rgba(255,196,0,.25), rgba(255,196,0,0) 70%);
}
.topupqr-head__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 44px;
}
/* back button */
.topupqr-back {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s, border-color .15s, transform .15s;
}
.topupqr-back:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.28); transform: translateX(-2px); }
.topupqr-back svg { width: 18px; height: 18px; }
/* logo badge */
.topupqr-head__logo {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffd84d 0%, #ffb300 100%);
  box-shadow: 0 5px 14px rgba(255,176,0,.40), inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 4px rgba(255,196,0,.12);
  color: #5c3600;
}
.topupqr-head__logo svg { width: 22px; height: 22px; }
.topupqr-head__info { flex: 1; min-width: 0; }
.topupqr-head__title { margin: 0; font-size: 20px; font-weight: 900; color: #fff; letter-spacing: -.01em; line-height: 1.2; }
.topupqr-head__sub { margin: 4px 0 0; font-size: 12.5px; color: rgba(255,255,255,.58); }
/* close button with X icon */
.topupqr-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  cursor: pointer;
  z-index: 2;
  transition: background .16s, color .16s, border-color .16s, transform .16s;
}
.topupqr-close svg { width: 17px; height: 17px; }
.topupqr-close:hover { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.3); transform: rotate(90deg); }
.topupqr-close:focus-visible { outline: 2px solid #ffc400; outline-offset: 2px; }

/* Stepper */
.topupqr-stepper {
  display: flex;
  align-items: center;
  padding: 14px 20px 10px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.topupqr-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
}
.topupqr-step.is-done { color: #16a34a; }
.topupqr-step.is-active { color: #b45309; }
.topupqr-step__dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  background: #fff;
  color: #94a3b8;
}
.topupqr-step__dot svg { width: 12px; height: 12px; }
.topupqr-step.is-done .topupqr-step__dot { border-color: #16a34a; background: #16a34a; color: #fff; }
.topupqr-step.is-active .topupqr-step__dot { border-color: #ffc400; background: #ffc400; color: #2c1b0f; }
.topupqr-step__line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 6px;
  margin-bottom: 14px;
}
.topupqr-step__line.is-done { background: #16a34a; }

/* Amount badge */
.topupqr-amount-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 20px 0;
  padding: 11px 16px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: 12px;
}
.topupqr-amount-badge__label { font-size: 12px; font-weight: 700; color: #92400e; }
.topupqr-amount-badge__value { font-size: 22px; font-weight: 900; color: #b45309; }

/* QR */
.topupqr-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 20px 4px;
}
.topupqr-qr {
  width: min(200px, 60%);
  aspect-ratio: 1;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.topupqr-qr svg { width: 100%; height: 100%; }
.topupqr-qr-hint { font-size: 12px; color: #64748b; margin: 0; text-align: center; }

/* Details */
.topupqr-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 12px 20px 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.topupqr-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.topupqr-detail-row:last-child { border-bottom: none; }
.topupqr-detail-row > span { color: #64748b; flex: 0 0 auto; }
.topupqr-detail-row strong { font-weight: 700; color: #1e293b; white-space: nowrap; }
.topupqr-detail-row__val { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; justify-content: flex-end; }
.topupqr-copy-btn {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  transition: all .15s;
  flex: 0 0 auto;
}
.topupqr-copy-btn:hover { background: #fffbeb; border-color: #ffc400; color: #b45309; }
.topupqr-copy-btn.copied { background: #dcfce7; border-color: #86efac; color: #16a34a; }
.topupqr-copy-btn svg { width: 13px; height: 13px; }

/* Slip upload */
.topupqr-slip {
  margin: 14px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.topupqr-slip__head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}
.topupqr-slip__head svg { width: 16px; height: 16px; color: #ffc400; }
.topupqr-slip__drop {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  transition: all .15s;
  color: #64748b;
}
.topupqr-slip__drop:hover, .topupqr-slip__drop.has-file {
  border-color: #ffc400;
  background: #fffbeb;
  color: #b45309;
}
.topupqr-slip__drop input { display: none; }
.topupqr-slip__drop svg { width: 22px; height: 22px; opacity: .55; flex: 0 0 auto; }
.topupqr-slip__drop-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.topupqr-slip__drop span { font-size: 13px; font-weight: 600; }
.topupqr-slip__drop small { font-size: 11px; color: #94a3b8; }
.topupqr-slip__ref {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}
.topupqr-slip__ref input {
  padding: 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  font-size: 13px;
  background: #f8fafc;
  outline: none;
  transition: border-color .15s;
}
.topupqr-slip__ref input:focus { border-color: #ffc400; background: #fff; }
/* ─── End Topup QR Modal ──────────────────────────────────────────────────── */

.wallet-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--success), white 88%);
  border: 1px solid color-mix(in oklab, var(--success), transparent 65%);
  padding: var(--space-4);
}
.wallet-balance-card span {
  color: color-mix(in oklab, var(--success), black 20%);
  font-size: var(--text-sm);
  font-weight: 800;
}
.wallet-balance-card strong {
  color: color-mix(in oklab, var(--success), black 28%);
  font-size: var(--text-xl);
  font-weight: 900;
}
.topup-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
}
.topup-presets button {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: var(--space-2);
  font-weight: 800;
}
.topup-presets button:hover {
  border-color: var(--color-primary-dark);
  background: var(--color-primary);
}
.topup-payment-panel {
  display: grid;
  gap: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--surface), var(--color-primary) 5%);
  padding: var(--space-4);
}
.topup-payment-panel--pending {
  border-color: color-mix(in oklab, var(--success), var(--border) 45%);
  background: color-mix(in oklab, var(--surface), var(--success) 6%);
}
.topup-payment-panel strong {
  font-size: var(--text-base);
  font-weight: 900;
}
.topup-payment-panel p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}
.topup-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}
.topup-stepper span {
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  padding: var(--space-2) var(--space-3);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 800;
}
.topup-stepper span.is-active {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent), transparent 88%);
  color: var(--accent);
}
.topup-stepper span.is-done {
  border-color: var(--success);
  background: color-mix(in oklab, var(--success), transparent 88%);
  color: var(--success);
}
.topup-payment-detail {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.mock-qr {
  display: grid;
  place-items: center;
  inline-size: min(180px, 100%);
  aspect-ratio: 1;
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}
.mock-qr .scan-qr {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  shape-rendering: crispEdges;
  fill: var(--color-text, #2c1b0f);
}
.topup-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
@media (max-width: 560px) {
  .account-grid { grid-template-columns: 1fr; }
  .topup-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topup-card-grid { grid-template-columns: 1fr; }
  .wallet-quick-btn { min-width: 92px; padding-inline: 10px; }
  .admin-storage-grid,
  .admin-storage-columns,
  .admin-settings-grid,
  .admin-map-settings-preview {
    grid-template-columns: 1fr;
  }
  .admin-storage-row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .admin-storage-row > b {
    grid-column: 2;
  }
}
.field-error {
  margin: calc(var(--space-2) * -1) 0 var(--space-1);
  color: var(--danger);
  min-height: 18px;
  font-size: var(--text-sm);
}
.search-results {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.search-result {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}
.line-panel { width: min(390px, 100%); }
.line-chat {
  padding: var(--space-5);
  display: grid;
  gap: var(--space-3);
  overflow-y: auto;
  flex: 1;
  background: color-mix(in oklab, var(--success), transparent 94%);
}
.chat-bubble {
  max-width: 82%;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.chat-bubble.user { justify-self: end; background: var(--color-primary); }
.line-form {
  padding: var(--space-4);
  border-top: 1px solid var(--border);
}
.line-form div { display: flex; gap: var(--space-2); }
.line-form input { flex: 1; min-width: 0; }
.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  display: grid;
  justify-items: end;
  gap: 14px;
  pointer-events: none;
  transition: opacity var(--motion-base) var(--ease-standard), transform var(--motion-base) var(--ease-standard);
}
.chat-widget.is-footer-safe {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
}
/* Hide the chat widget while a modal/drawer (e.g. the cart) is open so it
   never overlaps the cart box. The cart still also sits above it via z-index. */
body.modal-open .chat-widget {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
}
.chat-widget__panel {
  width: min(320px, calc(100vw - 32px));
  overflow: hidden;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 16px 48px rgba(44, 27, 15, .18), 0 4px 16px rgba(44, 27, 15, .08), 0 0 0 1px rgba(44, 27, 15, .04);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(.96);
  transform-origin: bottom right;
  transition: opacity var(--motion-base) var(--ease-standard), transform var(--motion-base) var(--ease-standard);
}
.chat-widget.is-open .chat-widget__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.chat-widget__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  overflow: hidden;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(135deg, #f2a51e 0%, #8a4d10 100%);
}
.chat-widget__head::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -26px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 68%);
}
.chat-widget__head-icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.22);
}
.chat-widget__head-icon svg { width: 22px; height: 22px; }
.chat-widget__head span:last-child { position: relative; z-index: 1; display: grid; gap: 2px; }
.chat-widget__head strong { font-size: var(--text-sm); }
.chat-widget__head small { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.78); font-size: 11px; }
.chat-widget__head i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.16); }
.chat-widget__body { display: grid; gap: 8px; padding: 12px; }
.chat-widget__body > p {
  margin: 0;
  padding: 4px 8px;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.chat-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 14px;
  border-radius: 20px;
  color: #334155;
  background: #f8fafc;
  transition: color var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard);
}
.chat-channel:hover, .chat-channel:focus-visible { color: #fff; outline: 0; transform: translateY(-1px); }
.chat-channel--line:hover, .chat-channel--line:focus-visible { background: #06c755; box-shadow: 0 10px 24px rgba(6,199,85,.24); }
.chat-channel--facebook:hover, .chat-channel--facebook:focus-visible { background: #1877f2; box-shadow: 0 10px 24px rgba(24,119,242,.24); }
.chat-channel__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  background: rgba(6,199,85,.08);
  color: #06c755;
  transition: color var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard);
}
.chat-channel--facebook .chat-channel__icon { color: #1877f2; background: rgba(24,119,242,.08); }
.chat-channel:hover .chat-channel__icon, .chat-channel:focus-visible .chat-channel__icon { color: #fff; background: rgba(255,255,255,.22); }
.chat-channel__icon svg { width: 22px; height: 22px; }
.chat-channel__text { min-width: 0; flex: 1; display: grid; gap: 2px; }
.chat-channel__text strong { font-size: var(--text-sm); }
.chat-channel__text small { color: #94a3b8; font-size: 11px; transition: color var(--motion-fast) var(--ease-standard); }
.chat-channel:hover .chat-channel__text small, .chat-channel:focus-visible .chat-channel__text small { color: rgba(255,255,255,.78); }
.chat-channel__badge {
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  background: #dcfce7;
  color: #15803d;
  font-size: 10px;
  font-weight: 800;
  transition: color var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard);
}
.chat-channel--facebook .chat-channel__badge { background: #dbeafe; color: #1e40af; }
.chat-channel--phone .chat-channel__icon { color: #16a34a; background: rgba(22,163,74,.08); }
.chat-channel--phone .chat-channel__badge { background: #dcfce7; color: #15803d; }
.chat-channel--phone:hover, .chat-channel--phone:focus-visible { background: #16a34a; box-shadow: 0 10px 24px rgba(22,163,74,.28); }
.chat-channel--email .chat-channel__icon { color: #7c3aed; background: rgba(124,58,237,.08); }
.chat-channel--email .chat-channel__badge { background: #ede9fe; color: #6d28d9; }
.chat-channel--email:hover, .chat-channel--email:focus-visible { background: #7c3aed; box-shadow: 0 10px 24px rgba(124,58,237,.24); }
.chat-channel--custom .chat-channel__icon { color: #0f766e; background: rgba(15,118,110,.08); }
.chat-channel--custom .chat-channel__badge { background: #ccfbf1; color: #0f766e; }
.chat-channel--custom:hover, .chat-channel--custom:focus-visible { background: #0f766e; box-shadow: 0 10px 24px rgba(15,118,110,.24); }
.chat-channel:hover .chat-channel__badge, .chat-channel:focus-visible .chat-channel__badge { background: rgba(255,255,255,.22); color: #fff; }
.chat-channel__arrow { color: currentColor; font-size: 24px; line-height: 1; opacity: .45; transition: opacity var(--motion-fast), transform var(--motion-fast); }
.chat-channel:hover .chat-channel__arrow, .chat-channel:focus-visible .chat-channel__arrow { opacity: 1; transform: translateX(2px); }
.chat-widget__foot {
  border-top: 1px solid #f1f5f9;
  padding: 12px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 11px;
}
.chat-widget__toggle {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #f2a51e 0%, #8a4d10 100%);
  box-shadow: 0 8px 26px rgba(138,77,16,.38), 0 2px 8px rgba(0,0,0,.12);
  pointer-events: auto;
  transition: background var(--motion-base) var(--ease-standard), box-shadow var(--motion-base) var(--ease-standard), transform var(--motion-base) var(--ease-standard);
}
.chat-widget__toggle:hover, .chat-widget__toggle:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(255,196,0,.24), 0 8px 26px rgba(138,77,16,.38); }
.chat-widget.is-open .chat-widget__toggle { background: linear-gradient(135deg, #475569 0%, #334155 100%); transform: rotate(45deg); box-shadow: 0 6px 20px rgba(51,65,85,.38); }
.chat-widget__toggle svg { position: absolute; width: 24px; height: 24px; transition: opacity var(--motion-fast), transform var(--motion-fast); }
.chat-widget__toggle-close { opacity: 0; transform: scale(.72); }
.chat-widget.is-open .chat-widget__toggle-chat { opacity: 0; transform: scale(.72); }
.chat-widget.is-open .chat-widget__toggle-close { opacity: 1; transform: scale(1) rotate(-45deg); }
.chat-widget__toggle strong {
  position: absolute;
  right: -1px;
  top: -1px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 10px;
}
.chat-widget.is-open .chat-widget__toggle strong { display: none; }
.chat-widget__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(242,165,30,.28);
  animation: chatPulse 1.8s ease-out infinite;
}
.chat-widget.is-open .chat-widget__pulse { display: none; }
@keyframes chatPulse {
  0% { opacity: .7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.7); }
}
.mock-map {
  height: 260px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, transparent 49%, var(--border) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, var(--border) 50%, transparent 51%),
    color-mix(in oklab, var(--color-primary), white 70%);
  position: relative;
  overflow: hidden;
}
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  background: var(--danger);
  transform: translate(-50%, -70%) rotate(-45deg);
}
.modal-actions { display: flex; justify-content: flex-end; gap: var(--space-3); margin-top: var(--space-5); }
.toast-region {
  position: fixed;
  z-index: 200;
  right: var(--space-5);
  bottom: var(--space-5);
  display: grid;
  gap: var(--space-2);
}
.toast {
  min-width: 260px;
  border-radius: var(--radius-sm);
  background: var(--fg);
  color: var(--surface);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-floating);
}

@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 420px; border-radius: var(--radius-xl); }
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr);
    gap: var(--space-6);
  }
  .footer-menu { grid-column: 1 / -1; order: 3; }
  .footer-cta { grid-column: auto; }
  .admin-shell { grid-template-columns: 64px minmax(0, 1fr); }
  .admin-brand span:not(.brand__mark),
  .admin-nav button span.label,
  .admin-user span:not(.avatar),
  .admin-nav-group__title,
  .menu-badge { display: none; }
  .admin-brand { justify-content: center; padding: 16px 14px; }
  .admin-nav button { justify-content: center; padding: 0 8px; }
  .admin-user { justify-content: center; padding: 12px; }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-content-grid, .admin-list-grid { grid-template-columns: 1fr; }
  .quick-actions-bar { grid-template-columns: repeat(4, 1fr); }
  .quick-actions-bar::before { grid-column: 1 / -1; }
}

/* ── Tablet topbar (768–1024px) — hide desktop nav pill, use hamburger like
   mobile so the centered nav doesn't overlap the logo or right-side actions. */
@media (max-width: 1024px) {
  .site-header .desktop-nav { display: none; }
  .site-header .mobile-only,
  .site-header .icon-button.mobile-only,
  #mobileMenuBtn { display: grid; }
  .site-header__inner {
    min-height: 76px;
    gap: 12px;
    padding-inline: clamp(16px, 2.4vw, 24px);
  }
  /* Brand: 3-zone (hamburger | brand | actions) — no absolute centering at tablet
     either, so the long "กล้วยทอดแม่ประทุม" name has room without overlap. */
  .site-header .brand {
    position: static;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    overflow: hidden;
    transform: none;
  }
  .site-header .brand > span { overflow: hidden; min-width: 0; }
  .site-header .brand strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(18px, 2.4vw, 24px);
  }
  .site-header .brand small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .site-header__inner > .header-actions { flex: 0 0 auto; gap: 8px; }
  .site-header .icon-button,
  .site-header .circle-btn { width: 44px; height: 44px; }
  /* Hide the verbose cart label at tablet — keep the icon + floating count chip */
  .site-header .cart-button .cart-button__text { display: none; }
  .site-header .cart-button .btn-shine { display: none; }
  .site-header .cart-button {
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    justify-content: center;
    overflow: visible;
    position: relative;
  }
  /* Inner cart icon: drop the white inner-circle so it doesn't read as a
     double-bubble inside the yellow button. */
  .site-header .cart-button__icon {
    background: transparent;
    box-shadow: none;
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
  .site-header .cart-button__icon svg { width: 22px; height: 22px; }
  /* Count badge floats at the top-right corner instead of inline,
     so it doesn't squash the 44px button. */
  .site-header .cart-button > strong,
  .site-header .cart-button strong {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 5;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #1f160c;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(80, 54, 16, .18), 0 0 0 2px rgba(255, 196, 0, .35);
  }

  /* Hamburger button — same premium cream-gold circle as mobile.
     (Without this, at tablet it falls back to icon-button defaults and the
     hamburger lines render weirdly.) */
  #mobileMenuBtn {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: #7a5310;
    border: 1px solid rgba(255, 196, 0, .42);
    background: linear-gradient(150deg, #ffffff 0%, #fff4cf 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .95),
      0 6px 16px rgba(255, 196, 0, .18),
      0 2px 5px rgba(80, 54, 16, .08);
  }
  #mobileMenuBtn:hover,
  #mobileMenuBtn:focus-visible {
    color: #5d3d08;
    border-color: rgba(255, 196, 0, .65);
    background: linear-gradient(150deg, #fff9e6 0%, #ffe8a4 100%);
    transform: translateY(-1px);
  }

  /* Mobile menu panel — without these the menu stays display:none and the
     hamburger click toggles a class that has no visual effect. */
  .mobile-menu {
    display: none;
    gap: 6px;
    padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(255, 253, 248, .99) 0%, rgba(255, 248, 224, .98) 100%);
    border-top: 1px solid rgba(234, 223, 205, .55);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 22px 40px rgba(80, 54, 16, .14);
    -webkit-backdrop-filter: saturate(150%) blur(16px);
    backdrop-filter: saturate(150%) blur(16px);
  }
  .mobile-menu.is-open {
    display: grid;
    animation: bnnMobileMenuIn 280ms cubic-bezier(.2, 0, 0, 1) both;
  }
  .mobile-menu a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #2c1b0f;
    background: rgba(255, 255, 255, .55);
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
  }
  .mobile-menu a:hover,
  .mobile-menu a:focus-visible,
  .mobile-menu a.active {
    background: linear-gradient(95deg, #fff4bf 0%, #ffe999 100%);
    border-color: rgba(255, 196, 0, .55);
    transform: translateX(2px);
  }
}

@media (max-width: 900px) {
  .about-card {
    grid-template-columns: 1fr;
  }
  .about-visual {
    min-height: 280px;
  }
  .location-review__grid {
    grid-template-columns: 1fr;
  }
  .location-card, .review-card {
    min-height: 0;
  }
  .location-card__map {
    height: 220px;
    flex: 0 0 220px;
  }
}

@media (max-width: 767px) {
  :root { --site-header-height: 72px; }
  .container { width: min(100% - (var(--container-gutter-tablet) * 2), var(--container-max)); }
  .section { padding-block: var(--section-y-tablet); }
  .desktop-nav { display: none; }
  .mobile-only { display: grid; }
  /* Mobile topbar = solid frosted bar (not transparent) so it reads as a clean,
     organised bar over ANY section that scrolls beneath it.
     Both selectors are (0,2,0) to beat the transparent `:not(.is-scrolled)` rule. */
  .site-header:not(.is-scrolled),
  .site-header.is-scrolled {
    background: linear-gradient(180deg, rgba(255, 253, 248, .97) 0%, rgba(255, 248, 224, .95) 100%);
    border-bottom: 1px solid rgba(234, 223, 205, .60);
    box-shadow: 0 6px 20px rgba(80, 54, 16, .08);
    backdrop-filter: saturate(150%) blur(16px);
    -webkit-backdrop-filter: saturate(150%) blur(16px);
  }
  .site-header__inner {
    min-height: 72px;
    gap: 10px;
    padding-inline: 14px;
  }
  /* 3-zone layout: hamburger | centered logo (flexes) | actions. No absolute
     positioning, so the logo can never overlap the side controls. */
  .brand {
    position: static;
    left: auto;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    overflow: hidden;
    transform: none;
    padding: 4px 6px;
  }
  .brand > span { overflow: hidden; min-width: 0; text-align: center; }
  .brand__mark { display: none; }
  /* `.site-header` prefix (0,2,1) beats the white transparent-state rule so the
     name renders crisp & dark on the light mobile bar. */
  .site-header .brand strong {
    color: #1a1209;
    font-size: clamp(17px, 4.8vw, 22px);
    font-weight: 900;
    letter-spacing: .005em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: none;
    display: block;
  }
  /* Hide "แม่สาย เชียงราย" subtitle in the topbar to free up horizontal space. */
  .site-header .brand small { display: none; }
  /* Side controls on a LIGHT bar — neutral white circles with dark glyphs
     (overrides the transparent-over-hero white-glass styling). */
  .site-header .icon-button:not(.is-authenticated),
  .site-header .circle-btn,
  .site-header #loginBtn:not(.is-authenticated) {
    background: #ffffff;
    border: 1px solid rgba(214, 191, 144, .55);
    color: #1f160c;
    box-shadow: 0 2px 8px rgba(80, 54, 16, .10);
  }
  .site-footer .brand {
    position: static;
    width: auto;
    justify-content: flex-start;
    overflow: visible;
    transform: none;
  }
  .site-footer .brand > span { overflow: visible; }
  .site-footer .brand__mark { display: grid; }
  .site-footer .brand strong {
    color: var(--color-text);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .site-footer .brand small {
    color: var(--color-primary-dark);
    font-size: var(--text-sm);
    letter-spacing: .28em;
  }
  .site-footer {
    padding: var(--space-8) 0 calc(var(--space-5) + 74px);
  }
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding-bottom: var(--space-3);
  }
  .footer-menu { order: 0; }
  .footer-credit {
    justify-content: center;
    margin-block: var(--space-3) 0;
    padding-right: 0;
    text-align: center;
  }
  .footer-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-4);
  }
  .footer-menu h2 { grid-column: 1 / -1; }
  .footer-menu button,
  .footer-menu a { width: 100%; min-height: 34px; }
  .header-actions { flex: 0 0 auto; margin-left: 0; gap: 8px; }
  .icon-button, .circle-btn { width: 44px; height: 44px; }
  .mobile-only#mobileMenuBtn, .icon-button.mobile-only { flex: 0 0 auto; }
  /* Premium menu button — warm cream→gold circle with refined lift + glow,
     fills solid gold and morphs to ✕ when the menu is open. */
  #mobileMenuBtn {
    width: 46px;
    height: 46px;
    color: #7a5310;
    border: 1px solid rgba(255, 196, 0, .42);
    background: linear-gradient(150deg, #ffffff 0%, #fff4cf 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .95),
      0 6px 16px rgba(255, 196, 0, .18),
      0 2px 5px rgba(80, 54, 16, .08);
  }
  #mobileMenuBtn:hover,
  #mobileMenuBtn:focus-visible {
    color: #5d3d08;
    border-color: rgba(255, 196, 0, .65);
    background: linear-gradient(150deg, #fff9e6 0%, #ffe8a4 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .95),
      0 10px 22px rgba(255, 196, 0, .30);
    transform: translateY(-2px);
  }
  #mobileMenuBtn:active { transform: translateY(0) scale(.96); }
  #mobileMenuBtn[aria-expanded="true"] {
    color: #3a2400;
    border-color: rgba(216, 154, 0, .55);
    background: linear-gradient(150deg, #ffd75a 0%, #ffc400 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .55),
      0 8px 20px rgba(255, 196, 0, .38);
  }
  .wallet-quick-btn { display: none; }
  .cart-button { padding: 0; min-width: 46px; min-height: 46px; justify-content: center; background: linear-gradient(180deg, #ffd75a 0%, #ffc400 100%); position: relative; border-radius: var(--radius-pill); overflow: visible; }
  .cart-button__text { display: none; }
  /* shine sweep is a desktop-hover flourish; hide it so overflow:visible (needed
     for the count badge) doesn't let it spill on mobile. */
  .cart-button .btn-shine { display: none; }
  .cart-button__icon { background: transparent; box-shadow: none; width: 26px; height: 26px; flex-basis: 26px; }
  .cart-button__icon svg { width: 22px; height: 22px; }
  /* count badge floats on the TOP layer at the corner, not clipped by the button */
  .cart-button > strong,
  .cart-button strong {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 5;
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: #ffffff;
    color: #1f160c;
    font-size: var(--text-xs);
    font-weight: 900;
    line-height: 1;
    margin-left: 0;
    box-shadow: 0 0 0 2px #ffc400, 0 3px 8px rgba(80, 54, 16, .28);
  }
  .cart-button[data-count="0"] strong { margin-left: 0; transform: scale(.4) translate(6px, -6px); }
  /* ── Mobile slide-down menu — modern card rows with icon chips ───────── */
  .mobile-menu {
    display: none;
    gap: 6px;
    padding: 12px 12px calc(14px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(255, 253, 248, .99) 0%, rgba(255, 248, 224, .98) 100%);
    border-top: 1px solid rgba(234, 223, 205, .55);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 22px 40px rgba(80, 54, 16, .14);
    -webkit-backdrop-filter: saturate(150%) blur(16px);
    backdrop-filter: saturate(150%) blur(16px);
  }
  .mobile-menu.is-open {
    display: grid;
    animation: bnnMobileMenuIn 280ms cubic-bezier(.2, 0, 0, 1) both;
  }
  .mobile-menu a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-bottom: 1px solid transparent;
    border-radius: 16px;
    font-size: var(--text-base);
    font-weight: 700;
    color: #2c1b0f;
    background: rgba(255, 255, 255, .55);
    transition:
      background var(--motion-fast) var(--ease-standard),
      border-color var(--motion-fast) var(--ease-standard),
      transform var(--motion-fast) var(--ease-standard);
  }
  /* leading icon chip */
  .mobile-menu a::before {
    content: "🍌";
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 19px;
    background: linear-gradient(135deg, #fff4bf 0%, #ffe07a 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 196, 0, .28);
  }
  .mobile-menu a[data-scroll="home"]::before { content: "🏠"; }
  .mobile-menu a[data-scroll="services"]::before { content: "🍌"; }
  .mobile-menu a[data-scroll="about"]::before { content: "🏡"; }
  .mobile-menu a[data-scroll="blog"]::before { content: "📝"; }
  .mobile-menu a[data-scroll="contact"]::before { content: "📞"; }
  /* trailing chevron */
  .mobile-menu a::after {
    content: "›";
    display: block;
    margin-left: auto;
    padding-right: 4px;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    color: #c9a24a;
    opacity: .7;
    transition: transform var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard), opacity var(--motion-fast);
  }
  .mobile-menu a:hover,
  .mobile-menu a:focus-visible,
  .mobile-menu a.active {
    background: linear-gradient(95deg, #fff4bf 0%, #ffe999 100%);
    border-color: rgba(255, 196, 0, .38);
    transform: translateX(3px);
  }
  .mobile-menu a:hover::after,
  .mobile-menu a:focus-visible::after,
  .mobile-menu a.active::after {
    transform: translateX(4px);
    color: #9a7300;
    opacity: 1;
  }
  .mobile-menu a.active::before {
    box-shadow: inset 0 0 0 1px rgba(255, 196, 0, .5), 0 4px 10px rgba(255, 196, 0, .3);
  }
  /* subtle staggered reveal of rows */
  .mobile-menu.is-open a { animation: bnnMobileRowIn 320ms cubic-bezier(.2, 0, 0, 1) both; }
  .mobile-menu.is-open a:nth-child(1) { animation-delay: 40ms; }
  .mobile-menu.is-open a:nth-child(2) { animation-delay: 80ms; }
  .mobile-menu.is-open a:nth-child(3) { animation-delay: 120ms; }
  .mobile-menu.is-open a:nth-child(4) { animation-delay: 160ms; }
  .mobile-menu.is-open a:nth-child(5) { animation-delay: 200ms; }
  .hero {
    margin-top: calc(-1 * var(--site-header-height));
    min-height: 100svh;
    padding-top: calc(var(--space-5) + var(--site-header-height));
    padding-bottom: var(--space-5);
  }
  .hero__grid { gap: var(--space-4); }
  .hero__copy {
    background: linear-gradient(135deg, var(--hero-cream) 0%, var(--hero-cream-warm) 62%, var(--hero-cream-edge) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    position: relative;
    overflow: hidden;
    min-height: 485px;
  }
  .hero__copy::after {
    display: none;
  }
  .hero__copy-panel {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding: 0;
  }
  h1 {
    font-size: clamp(30px, 7.8vw, 42px);
    max-width: 100%;
    position: relative;
    z-index: 2;
    line-break: anywhere;
  }
  h1 span { display: block; }
  .hero__title-line { display: block; }
  .hero__title-line > span { display: inline; }
  .hero__title-accent { display: inline-block; }
  .hero__title-accent::after {
    right: auto;
    width: 100%;
  }
  .hero__copy p { max-width: 72%; font-size: var(--text-base); color: var(--color-text); position: relative; z-index: 2; }
  .brand-pill { background: var(--surface); position: relative; z-index: 2; }
  .feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    position: relative;
    z-index: 2;
  }
  .feature-chip { flex-direction: column; text-align: center; font-size: var(--text-xs); }
  .service-icon { width: 40px; height: 40px; flex-basis: 40px; background: var(--surface); }
  .hero__actions { position: relative; z-index: 2; max-width: 100%; }
  .hero__actions .btn-secondary, .hero__actions .btn-line { display: none; }
  /* hide decorative visual entirely on mobile — not needed on small screens */
  .hero__visual { display: none !important; }
  .banana-doodle, .drink-cup { display: none; }
  /* custom hero photo: vertical veil for full-width mobile text legibility */
  .hero.has-custom-hero-bg::before {
    background: linear-gradient(180deg, rgba(255, 248, 224, .88) 0%, rgba(255, 248, 224, .60) 50%, rgba(255, 248, 224, .34) 100%);
  }
  .hero.has-custom-hero-bg .hero__grid {
    min-height: calc(100svh - var(--site-header-height) - (var(--space-5) * 2));
    transform: none;
  }
  /* hide ambient glow over real hero photo — distracting on mobile */
  .js-polish .hero.has-custom-hero-bg::after { display: none !important; }
  /* kill ambient glow on mobile entirely — it renders as a large yellow
     half-circle at the hero top-right and covers UI on phones.
     display:none !important beats the later unconditional rule (line ~9206)
     and its keyframe animation regardless of source order/specificity. */
  .js-polish .hero::after { display: none !important; }
  .quick-strip {
    margin-top: var(--space-5);
    padding: var(--space-3);
  }
  .quick-strip > div {
    grid-template-columns: repeat(5, minmax(94px, 1fr));
    overflow-x: auto;
  }
  .quick-item {
    display: flex;
    min-height: 104px;
    border-right: 1px solid var(--color-border);
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: var(--space-3);
  }
  .quick-item:nth-child(5) { display: flex; }
  .quick-item small { font-size: var(--text-xs); }
  .product-rail { grid-auto-columns: minmax(210px, 75vw); }
  .location-review__grid { grid-template-columns: 1fr; }
  .stats-bar { padding-block: var(--space-4); }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: var(--space-3);
  }
  .stat-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3);
    border-right: 0;
    border-bottom: 1px solid color-mix(in oklab, var(--color-border), transparent 22%);
  }
  .stat-item:nth-child(odd) { border-right: 1px solid color-mix(in oklab, var(--color-border), transparent 22%); }
  .stat-item:nth-last-child(-n + 2) { border-bottom: 0; }
  .stat-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .stat-item strong { font-size: 22px; }
  .stat-item small { font-size: var(--text-xs); }
  .location-card__map { height: 180px; flex: 0 0 180px; }
  .about-card, .about-points, .article-grid { grid-template-columns: 1fr; }
  .about-card {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    padding: var(--space-4);
  }
  .about-visual { min-height: 240px; }
  .about-content { order: -1; padding: 0; }
  .about-content h2 {
    max-width: calc(100vw - 64px);
    font-size: var(--text-xl);
    word-break: break-word;
  }
  .about-content > p { max-width: calc(100vw - 64px); }
  .about-content > p { font-size: var(--text-base); }
  .about-points article { min-height: auto; }
  .about-points strong { margin-top: 0; }
  .review-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    text-align: left;
    column-gap: var(--space-3);
  }
  .review-summary small { grid-column: 1 / -1; text-align: left; }
  .stat-item { padding-bottom: var(--space-3); }
  .footer-contact-list { grid-template-columns: 1fr; }
  .footer-contact-list span:last-child { grid-column: auto; }
  .admin-shell { width: 100%; grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed; z-index: 80;
    top: 0; left: 0; height: 100dvh;
    width: min(280px, 88vw);
    transform: translateX(-105%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    border-radius: 0 14px 14px 0;
  }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-brand span:not(.brand__mark),
  .admin-nav button span.label,
  .admin-user span:not(.avatar),
  .admin-nav-group__title,
  .menu-badge { display: block; }
  .admin-brand { justify-content: flex-start; padding: 18px; }
  .admin-nav button { justify-content: flex-start; padding: 0 10px; }
  .admin-user { justify-content: flex-start; padding: 12px 16px; }
  .admin-topbar { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 10px; }
  .admin-topbar__actions { flex-wrap: wrap; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-actions-bar { grid-template-columns: repeat(2, 1fr); }
  .bottom-nav {
    position: fixed;
    z-index: 45;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: 74px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -12px 30px color-mix(in oklab, var(--fg), transparent 90%);
    padding-bottom: env(safe-area-inset-bottom);
    box-sizing: border-box;
  }
  .bottom-nav button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: clamp(10px, 3vw, var(--text-xs));
    min-height: 64px;
    min-width: 0;
    padding: 6px 2px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .bottom-nav button.active { color: var(--color-primary-dark); font-weight: 800; }

  /* ── Center POS button (public CTA) ─────────────────────────── */
  .bottom-nav--with-pos {
    grid-template-columns: 1fr 1fr 84px 1fr 1fr;
    align-items: end;
    padding-top: 0;
  }
  .bottom-nav__pos {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    text-decoration: none;
    color: #5c3600;
    font-weight: 800;
    font-size: 11px;
    padding-bottom: 8px;
    min-height: 64px;
  }
  .bottom-nav__pos-orb {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffd84d 0%, #ffb300 100%);
    color: #4a2c00;
    display: grid;
    place-items: center;
    box-shadow:
      0 10px 24px rgba(255,176,0,.45),
      0 0 0 6px #fff,
      inset 0 1px 0 rgba(255,255,255,.6);
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .bottom-nav__pos:active .bottom-nav__pos-orb {
    transform: translateX(-50%) scale(.94);
  }
  .bottom-nav__pos-orb::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,.45);
    animation: posOrbSpin 14s linear infinite;
    pointer-events: none;
  }
  @keyframes posOrbSpin { to { transform: rotate(360deg); } }
  .bottom-nav__pos-label {
    margin-top: 38px;
    letter-spacing: .06em;
    color: var(--color-primary-dark, #5c3600);
  }
  body { padding-bottom: 78px; }
  .chat-widget { right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); }
}

@media (max-width: 430px) {
  .container { width: min(100% - (var(--container-gutter-phone) * 2), var(--container-max)); }
  .section { padding-block: var(--section-y-phone); }
  /* (Removed phantom .mobile-status bar + its 34px header offset, and the rule
     that hid the login button — the topbar now pins flush to the top with the
     hamburger, logo, cart and login all visible.) */
  .brand strong { font-size: clamp(14px, 4.6vw, 18px); }
  .hero__copy { min-height: 0; padding: var(--space-4); }
  h1 { max-width: 100%; font-size: clamp(27px, 8.2vw, 38px); }
  .hero__copy p { max-width: 100%; }
  .feature-row { max-width: 100%; gap: var(--space-2); }
  .hero__visual { display: none !important; }
  .kpi-grid, .quick-actions-bar { grid-template-columns: 1fr; }
  .admin-topbar h2 { font-size: var(--text-xl); }
  .review-card { padding: var(--space-4); }
  .admin-panel { padding: var(--space-4); }
  .location-card__map {
    height: 180px;
    flex: 0 0 180px;
  }
  .location-map__pin {
    width: 74px;
    height: 74px;
  }
  .location-card__icon {
    width: 50px;
    height: 50px;
  }
  .location-detail-list p {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
  .location-card__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .review-card__top { align-items: flex-start; }
  .review-star { width: 48px; height: 48px; }
  .review-content { padding: var(--space-4); }
  .review-card blockquote { font-size: var(--text-base); }
  .review-person { align-items: flex-start; }
  .review-person__stars { margin-left: 0; }
  .footer-cta { padding: var(--space-4); }
  .footer-cta__actions { grid-template-columns: 1fr; }
  .footer-cta__actions .btn-line { grid-column: auto; }
  .modal { padding: var(--space-3); }
  .toast-region { left: var(--space-3); right: var(--space-3); bottom: 86px; }
  .toast { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .quick-actions-bar {
    grid-template-columns: 1fr;
  }
  .content-automation-card > .panel-head,
  .content-automation-card > .admin-storage-columns,
  .content-automation-card > .admin-storage-grid,
  .content-automation-card > article .admin-storage-row .admin-storage-grid {
    grid-template-columns: 1fr;
  }
  .seo-cms-layout {
    grid-template-columns: 1fr;
  }
  .admin-function-head {
    display: grid;
  }
  .admin-function-groups,
  .admin-function-list {
    grid-template-columns: 1fr;
  }
}


.article-card__link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.article-card__link:hover h3,
.article-card__link:focus-visible h3 {
  color: var(--color-primary, #b86b00);
  text-decoration: underline;
}

.article-detail-page {
  background: #fffaf0;
  color: #3f2a16;
}

.article-detail {
  margin: 0 auto;
  max-width: 860px;
  padding: 48px 20px 72px;
}

.article-detail h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin: 16px 0;
}

.article-detail__excerpt {
  color: #6b5a45;
  font-size: 1.15rem;
  line-height: 1.8;
}

.article-detail__meta {
  color: #8a6d47;
  font-size: 0.95rem;
}

.article-detail__hero {
  background-color: #ffe6a7;
  border-radius: 28px;
  min-height: 260px;
  margin: 28px 0;
}

.article-detail__content p,
.article-detail__faq p,
.article-detail__links li {
  font-size: 1.05rem;
  line-height: 1.9;
}

/* Rich content — markdown-rendered articles */
.article-detail__content--rich {
  max-width: 720px;
}

.article-detail__content--rich p {
  font-size: 1.07rem;
  line-height: 2;
  color: #3b2200;
  margin-bottom: 1.25rem;
}

.article-detail__content--rich .article-h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #7a3f00;
  margin: 2.2rem 0 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 2.5px solid #ffc400;
  line-height: 1.4;
}

.article-detail__content--rich .article-h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #5c2e00;
  margin: 1.5rem 0 0.5rem;
}

.article-detail__content--rich .article-list {
  margin: 0.5rem 0 1.25rem 1.1rem;
  padding: 0;
  list-style: none;
}

.article-detail__content--rich .article-list li {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #3b2200;
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.35rem;
}

.article-detail__content--rich .article-list li::before {
  content: "🍌";
  position: absolute;
  left: 0;
  font-size: 0.85rem;
  top: 0.1rem;
}

.article-detail__content--rich .article-link {
  color: #9a5b00;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(154, 91, 0, 0.35);
}

.article-detail__content--rich .article-link:hover {
  text-decoration-color: #9a5b00;
}

.article-detail__content--rich strong {
  font-weight: 700;
  color: #5c2e00;
}

.article-detail__content--rich em {
  font-style: italic;
  color: #7a4800;
}

.article-detail__faq,
.article-detail__links {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(122, 76, 22, 0.12);
  border-radius: 22px;
  margin-top: 28px;
  padding: 22px;
}

.article-detail__faq details {
  border-top: 1px solid rgba(122, 76, 22, 0.14);
  padding: 14px 0;
}

.article-detail__faq details:first-of-type {
  border-top: 0;
}

.article-detail__links a {
  color: #9a5b00;
  font-weight: 700;
}

.article-detail--seo {
  max-width: 1040px;
}

.article-detail__topline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.article-detail__source {
  background: #fff;
  border: 1px solid rgba(122, 76, 22, 0.14);
  border-radius: 999px;
  color: #7a5b2c;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 12px;
}

.article-detail__hero {
  align-items: flex-end;
  background-position: center;
  background-size: cover;
  display: flex;
  overflow: hidden;
}

.article-detail__hero-caption {
  color: #fff;
  display: grid;
  gap: 6px;
  max-width: 720px;
  padding: 28px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.24);
}

.article-detail__hero-caption span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.article-detail__hero-caption strong {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.2;
}

.article-detail__seo-panel {
  background: #ffffff;
  border: 1px solid rgba(122, 76, 22, 0.14);
  border-radius: 18px;
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 22px;
}

.article-detail__seo-panel div {
  border-bottom: 1px solid rgba(122, 76, 22, 0.1);
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
}

.article-detail__seo-panel div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.article-detail__seo-panel span {
  color: #8a6d47;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.article-detail__seo-panel p {
  margin: 0;
}

.article-detail__seo-panel a {
  color: #9a5b00;
  overflow-wrap: anywhere;
}

.article-detail__seo-panel code {
  background: #fff7df;
  border-radius: 8px;
  color: #5a3711;
  padding: 4px 8px;
  width: fit-content;
}

.article-detail__keywords p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-detail__keywords b {
  background: #fff4cf;
  border: 1px solid rgba(154, 91, 0, 0.18);
  border-radius: 999px;
  color: #7a4b00;
  font-size: 0.86rem;
  padding: 6px 10px;
}

.article-detail__products {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(122, 76, 22, 0.12);
  border-radius: 22px;
  margin-top: 28px;
  padding: 22px;
}

.article-detail__products > div {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.article-detail__products a {
  background: #fff;
  border: 1px solid rgba(122, 76, 22, 0.1);
  border-radius: 14px;
  color: inherit;
  display: grid;
  gap: 8px;
  padding: 16px;
  text-decoration: none;
}

.article-detail__products span {
  color: #6b5a45;
  line-height: 1.55;
}

.article-detail__products em {
  color: #9a5b00;
  font-style: normal;
  font-weight: 800;
}

.article-detail__cta {
  align-items: center;
  background: #3f2a16;
  border-radius: 20px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 32px;
  padding: 20px;
}

.article-detail__cta span {
  font-size: 1.1rem;
  font-weight: 800;
}

.article-detail__cta a {
  background: #ffc400;
  border-radius: 999px;
  color: #2c1b0f;
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
}

.blog-section__all-link {
  display: flex;
  justify-content: flex-end;
  margin: -12px 0 22px;
}

.blog-index {
  margin: 0 auto;
  max-width: 1120px;
  padding: 48px 20px 76px;
}

.blog-index__hero {
  background: linear-gradient(135deg, #fff7df, #ffffff);
  border: 1px solid rgba(122, 76, 22, 0.12);
  border-radius: 24px;
  margin-bottom: 28px;
  padding: clamp(24px, 4vw, 42px);
}

.blog-index__hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 12px 0;
}

.blog-index__hero p {
  color: #6b5a45;
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 720px;
}

.blog-index__hero span {
  color: #8a6d47;
  font-weight: 800;
}

.blog-index__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.blog-index-card a {
  background: #fff;
  border: 1px solid rgba(122, 76, 22, 0.12);
  border-radius: 20px;
  color: #3f2a16;
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 22px;
  text-decoration: none;
}

.blog-index-card h2 {
  font-size: 1.22rem;
  line-height: 1.35;
  margin: 0;
}

.blog-index-card p {
  color: #6b5a45;
  line-height: 1.65;
  margin: 0;
}

.blog-index-card__cat,
.blog-index-card small {
  color: #8a6d47;
  font-size: 0.84rem;
  font-weight: 800;
}

.blog-index-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-index-card b {
  background: #fff4cf;
  border: 1px solid rgba(154, 91, 0, 0.18);
  border-radius: 999px;
  color: #7a4b00;
  font-size: 0.8rem;
  padding: 5px 9px;
}

.blog-index__empty {
  background: #fff;
  border: 1px dashed rgba(122, 76, 22, 0.2);
  border-radius: 16px;
  color: #6b5a45;
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
}

.blog-index__pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.blog-index__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.blog-index__page,
.blog-index__pager {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(122, 76, 22, 0.16);
  border-radius: 999px;
  color: #5c3c13;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  min-width: 42px;
  padding: 10px 15px;
  text-decoration: none;
}

.blog-index__page--active {
  background: #ffc400;
  border-color: #ffc400;
  color: #2e1b00;
}

.blog-index__pager--disabled {
  color: #a99a86;
  cursor: not-allowed;
  opacity: .62;
}

@media (max-width: 640px) {
  .article-detail__hero-caption {
    padding: 20px;
  }

  .article-detail__seo-panel,
  .article-detail__products,
  .article-detail__cta {
    border-radius: 16px;
    padding: 16px;
  }
}


/* UX/UI polish pass: brand fit, readability, overflow safety, admin usability */
.hero__copy {
  align-self: center;
}
/* Entrance animation is progressive enhancement only — the hero copy (LCP H1 +
   primary CTA) must NEVER start invisible. Gating behind no-preference means
   reduced-motion users (and any browser where the animation can't run) always
   see the content immediately; motion-enabled users get the fade-up. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy {
    animation: heroCopyEnter 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  @keyframes heroCopyEnter {
    from { opacity: 0; transform: translateY(20px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
}
.hero__copy-panel {
  position: relative;
  max-width: 680px;
  padding: clamp(28px, 3.4vw, 40px) clamp(28px, 3.4vw, 42px);
  border: none;
  border-radius: 28px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
}
.hero__copy-panel::before,
.hero__copy-panel::after {
  display: none;
}
.hero__copy-panel > * { position: relative; z-index: 1; }

/* Brand pill */
.hero__copy-panel .brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff4c2 0%, #ffd75a 100%);
  color: #2c1b0f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    0 6px 16px rgba(255, 196, 0, .35);
}
.brand-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2c1b0f;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .55);
  animation: badgeDotBlink 2.4s ease-in-out infinite;
}

/* H1 dramatic */
.hero__copy-panel h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #1f160c;
  max-width: 620px;
  text-shadow: 0 2px 20px rgba(255, 248, 200, .8), 0 1px 4px rgba(255, 255, 255, .7);
}
.hero__title-line { display: block; }
.hero__title-accent {
  position: relative;
  background: linear-gradient(105deg,
    #f5af00 0%,
    #f5af00 28%,
    #ffc400 40%,
    #ffffff 50%,
    #ffc400 60%,
    #f5af00 72%,
    #f5af00 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation-name: heroAccentSweep !important;
  animation-duration: 3.5s !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important;
  animation-play-state: running !important;
}
.hero__title-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 6px;
  background: linear-gradient(90deg, rgba(255, 196, 0, .35) 0%, rgba(255, 196, 0, .55) 50%, rgba(255, 196, 0, .15) 100%);
  border-radius: var(--radius-pill);
  z-index: -1;
}
@keyframes heroAccentSweep {
  0%   { background-position: 250% 0; }
  100% { background-position: -50% 0; }
}

/* Description — wraps naturally; nowrap only on truly wide desktop viewports */
.hero__copy-panel p {
  margin: 0;
  max-width: 720px;
  color: #3a2a14;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.65;
  text-shadow: 0 1px 12px rgba(255, 248, 200, .9), 0 2px 6px rgba(255, 255, 255, .6);
  white-space: normal;
}
/* Tablet (901–1180px) — already covered by max-width above, just keep wrap */
@media (max-width: 1180px) {
  .hero__copy-panel p { max-width: 100%; }
}
/* Only on wide desktop where the column has true room: single-line treatment */
@media (min-width: 1400px) {
  .hero__copy-panel p {
    white-space: nowrap;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
/* Page-level: prevent any future content from causing horizontal scroll */
html, body { overflow-x: clip; }

/* Trust bar */
.hero__trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0 4px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__trust-stars {
  color: #f5af00;
  font-size: 14px;
  letter-spacing: .1em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}
.hero__trust-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}
.hero__trust-meta strong {
  color: #1f160c;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}
.hero__trust-meta strong em {
  font-style: normal;
  color: #8a4d10;
  font-size: 0.85em;
  vertical-align: super;
  margin-left: 1px;
}
.hero__trust-meta small {
  color: #806e57;
  font-size: 11.5px;
  font-weight: 700;
}
.hero__trust-divider {
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, transparent, rgba(255, 196, 0, .45), transparent);
}

/* Primary button shine ready */
.hero__copy-panel .btn-primary {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -2px 0 rgba(138, 77, 16, .15),
    0 12px 28px rgba(255, 196, 0, .42);
}
.hero__actions .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero__actions .btn > * { position: relative; z-index: 1; }
.hero__actions .btn .btn-shine {
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: -60%;
  width: 60%;
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(255, 255, 255, .45) 30%,
    rgba(255, 255, 255, .95) 50%,
    rgba(255, 255, 255, .45) 70%,
    transparent 100%);
  transform: skewX(-22deg);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}
.product-rail-wrap {
  position: relative;
  overflow: hidden;
  margin-inline: calc(var(--space-1) * -1);
  padding-inline: var(--space-1);
}
.product-rail-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 20px;
  width: 64px;
  background: linear-gradient(90deg, transparent, var(--color-bg) 80%);
  pointer-events: none;
}
.product-rail { grid-auto-columns: minmax(240px, min(78vw, 320px)); }
.product-card { min-width: 0; }
.food-img--banana-classic {
  background:
    radial-gradient(ellipse at 35% 42%, #ffd166 0 12%, transparent 13%),
    radial-gradient(ellipse at 52% 50%, #f59f00 0 14%, transparent 15%),
    radial-gradient(ellipse at 66% 58%, #d97706 0 11%, transparent 12%),
    linear-gradient(135deg, #fff7cc, #f7b731);
}
.food-img--banana-black {
  background:
    radial-gradient(ellipse at 45% 46%, #f6c453 0 15%, transparent 16%),
    radial-gradient(circle at 34% 35%, #251605 0 3%, transparent 4%),
    radial-gradient(circle at 55% 55%, #251605 0 3%, transparent 4%),
    linear-gradient(135deg, #fff3bf, #9a5b18);
}
.food-img--banana-honey {
  background:
    radial-gradient(ellipse at 44% 42%, #ffd43b 0 13%, transparent 14%),
    radial-gradient(ellipse at 62% 58%, #f08c00 0 13%, transparent 14%),
    linear-gradient(135deg, #fff9db, #fab005 55%, #e67700);
}
.food-img--banana-coconut {
  background:
    radial-gradient(ellipse at 42% 48%, #ffd166 0 14%, transparent 15%),
    radial-gradient(circle at 64% 34%, #fff 0 11%, transparent 12%),
    radial-gradient(circle at 56% 58%, #f8f0df 0 10%, transparent 11%),
    linear-gradient(135deg, #fff7e6, #f59f00);
}
.food-img--banana-stick {
  background:
    repeating-linear-gradient(105deg, #f59f00 0 18px, #ffd166 18px 34px, #e67700 34px 44px),
    linear-gradient(135deg, #fff9db, #f7b731);
}
.food-img--iced-coffee {
  background:
    linear-gradient(180deg, rgba(255,255,255,.74), transparent 32%),
    radial-gradient(ellipse at 50% 34%, #fff3bf 0 16%, transparent 17%),
    linear-gradient(180deg, #d0ebff 0 18%, #b08968 19% 72%, #6f4e37 73% 100%);
}
.admin-brand {
  min-width: 0;
  white-space: normal;
  align-items: flex-start;
}
.admin-brand > span:not(.brand__mark),
.admin-user > span:not(.avatar) {
  min-width: 0;
}
/* override old duplicates in this section */
.admin-brand strong, .admin-brand small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Chart summary (below chart) */
.chart-summary {
  display: flex; justify-content: space-between; gap: 12px;
  color: #64748b; font-size: 12.5px; padding-top: 10px;
}
.chart-summary strong { color: #0f172a; font-weight: 800; }
.chart svg { min-height: 220px; }
.chart-tooltip { opacity: .9; font-weight: 800; }

.sales-report-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.sales-report-kpis span,
.sales-report-row {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  background: #fff;
}
.sales-report-kpis span {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}
.sales-report-kpis strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.1;
}
.sales-report-kpis small,
.sales-report-row small {
  color: #64748b;
  font-size: 12px;
}
.sales-report-table {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}
.sales-report-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(90px, .8fr) minmax(90px, .8fr) minmax(70px, .6fr);
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  font-size: 13px;
}

/* Order list table */
.phase-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.phase-ops-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.phase-ops-card--manual-order {
  grid-column: 1 / -1;
}
.manual-order-form {
  display: grid;
  gap: 12px;
}
.manual-order-lines {
  display: grid;
  gap: 8px;
}
.manual-order-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: end;
}
.manual-order-qty {
  min-width: 0;
}
.phase-ops-card__head,
.phase-stock-row,
.phase-order-row,
.phase-movement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.phase-ops-card__head h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}
.phase-ops-card__head p,
.phase-stock-row small,
.phase-order-row small,
.phase-movement-row small {
  display: block;
  margin: 2px 0 0;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.35;
}
.phase-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.phase-kpi {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.phase-kpi span {
  display: block;
  color: #64748b;
  font-size: 11px;
}
.phase-kpi strong {
  display: block;
  margin-top: 2px;
  color: #0f172a;
  font-size: 18px;
}
.phase-kpi--warn {
  border-color: #fed7aa;
  background: #fff7ed;
}
.phase-kpi--warn strong { color: #c2410c; }
.phase-low-stock-list,
.phase-order-list,
.phase-movement-list {
  display: grid;
  gap: 8px;
}
.phase-stock-row,
.phase-order-row,
.phase-movement-row {
  padding: 9px 10px;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  background: #f8fafc;
}
.phase-stock-row > div,
.phase-order-row > div,
.phase-movement-row > div {
  min-width: 0;
}
.phase-stock-row strong,
.phase-order-row strong,
.phase-movement-row strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phase-movement-row code {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #334155;
  font-size: 11px;
}
.phase-empty {
  padding: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  font-size: 12px;
  background: #f8fafc;
}
.order-list {
  display: grid; gap: 0; overflow: hidden;
}
.order-list__head,
.order-row {
  display: grid;
  grid-template-columns: minmax(84px, .7fr) minmax(140px, 1.25fr) minmax(70px, .5fr) minmax(100px, .7fr) minmax(68px, .48fr) minmax(110px, .75fr);
  align-items: center;
  gap: 8px;
}
.order-list__head {
  padding: 0 12px 10px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  border-bottom: 1px solid #f1f5f9;
}
.order-row {
  min-width: 0;
  border: 0;
  border-top: 1px solid #f1f5f9;
  border-radius: 0;
  background: transparent;
  padding: 9px 12px;
  transition: background .1s;
}
.order-row:hover { background: #f8fafc; border-radius: 8px; }
.order-row:first-of-type { border-top: 0; }
.order-id,
.order-customer span,
.order-customer small,
.order-total,
.order-time {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12.5px;
}
.order-id { font-weight: 700; color: #0f172a; }
.order-customer span { font-weight: 600; color: #0f172a; }
.order-customer small, .order-time { color: #94a3b8; font-size: 11.5px; }
.order-total { font-weight: 700; color: #0f172a; }
.order-actions {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end;
}
.state-card {
  display: grid;
  gap: var(--space-2);
  place-items: center;
  min-height: 150px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--surface), var(--color-bg) 34%);
  padding: var(--space-5);
  text-align: center;
}
.state-card p { margin: 0; color: var(--muted); }
.state-card--error { border-color: color-mix(in oklab, var(--danger), transparent 48%); }
.skeleton {
  width: 64px;
  height: 12px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--border), color-mix(in oklab, var(--border), white 35%), var(--border));
  animation: skeleton-pulse 1.2s ease-in-out infinite;
}
@keyframes skeleton-pulse { 50% { opacity: .45; } }
@media (max-width: 1320px) {
  .phase-ops-grid { grid-template-columns: 1fr; }
  .phase-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-content-grid { grid-template-columns: 1fr; }
  .order-list__head { display: none; }
  .order-row { grid-template-columns: minmax(0, 1fr) auto; }
  .order-row .order-customer,
  .order-row > .status-badge,
  .order-row .order-actions { grid-column: 1 / -1; }
  .order-actions { justify-content: flex-start; }
}
@media (max-width: 1180px) {
  .admin-product-layout,
  .admin-module-layout,
  .sales-report-kpis,
  .admin-wallet-columns {
    grid-template-columns: 1fr;
  }
  .admin-wallet-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-automation-row { grid-template-columns: auto minmax(0, 1fr); }
  .admin-automation-row .admin-row-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 767px) {
  .hero__copy-panel { padding: var(--space-5); }
  .hero__copy p { max-width: 100%; }
  .feature-row {
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 124px;
  }
  .product-rail-wrap::after { content: ""; width: 48px; }
  .admin-product-row,
  .admin-module-row { grid-template-columns: auto minmax(0, 1fr); }
  .sales-report-row { grid-template-columns: 1fr; }
  .admin-product-thumb { grid-row: span 2; }
  .admin-product-info,
  .admin-module-info,
  .admin-row-actions { grid-column: 1 / -1; }
  .admin-wallet-summary { grid-template-columns: 1fr; }
  .manual-order-line { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   BOOKING MODAL — .bk-*
   Full redesign: address fields, GPS pin, date+time picker
   ═══════════════════════════════════════════════════════════════════ */
.bk-modal .modal__overlay { align-items: flex-start; padding: 12px; }

.bk-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px -24px rgba(15,23,42,.55), 0 0 0 1px rgba(255,255,255,.04);
  scrollbar-width: thin;
  scrollbar-color: #fbbf24 #f1f5f9;
}
.bk-card::-webkit-scrollbar { width: 5px; }
.bk-card::-webkit-scrollbar-track { background: #f1f5f9; }
.bk-card::-webkit-scrollbar-thumb { background: #fbbf24; border-radius: 3px; }

/* Header */
.bk-header {
  position: relative;
  overflow: hidden;
  padding: 24px 22px 22px;
  background: linear-gradient(135deg, #243042 0%, #161f2e 55%, #0d1420 100%);
  border-bottom: 1px solid rgba(255,196,0,.16);
  flex-shrink: 0;
}
.bk-header__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
  width: 130px; height: 130px;
  top: -50px; right: 30px;
  background: radial-gradient(circle, rgba(255,196,0,.25), rgba(255,196,0,0) 70%);
}
.bk-header__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 44px;
}
.bk-header__logo {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffd84d 0%, #ffb300 100%);
  box-shadow: 0 6px 18px rgba(255,176,0,.40), inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 4px rgba(255,196,0,.12);
  color: #5c3600;
}
.bk-header__logo svg { width: 24px; height: 24px; }
.bk-header__text { min-width: 0; }
.bk-header__title { margin: 0; font-size: 20px; font-weight: 900; color: #fff; letter-spacing: -.01em; line-height: 1.2; }
.bk-header__sub { margin: 4px 0 0; font-size: 12.5px; color: rgba(255,255,255,.58); line-height: 1.4; }

.bk-close-btn {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 20;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  cursor: pointer;
  transition: background .16s, transform .16s, border-color .16s;
}
.bk-close-btn svg { width: 17px; height: 17px; }
.bk-close-btn:hover { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.3); transform: rotate(90deg); }
.bk-close-btn:focus-visible { outline: 2px solid #ffc400; outline-offset: 2px; }

.bk-section {
  padding: 18px 22px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bk-section-title {
  font-size: .82rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: .4px;
  padding: 6px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #fbbf24;
  text-transform: uppercase;
}

.bk-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bk-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bk-field label {
  font-size: .8rem;
  font-weight: 600;
  color: #374151;
}
.bk-field input,
.bk-field textarea {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: .88rem;
  color: #1e293b;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
  width: 100%;
  font-family: inherit;
  box-sizing: border-box;
}
.bk-field input:focus,
.bk-field textarea:focus {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251,191,36,.18);
}
.bk-field input[type="date"],
.bk-field input[type="time"] { cursor: pointer; }
.bk-req { color: #ef4444; margin-left: 2px; }

/* GPS Pin button */
.bk-pin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1.5px solid #bfdbfe;
  border-radius: 10px;
  color: #1d4ed8;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  width: 100%;
}
.bk-pin-btn:hover  { background: #dbeafe; border-color: #93c5fd; }
.bk-pin-btn.loading { opacity: .7; cursor: wait; pointer-events: none; }
.bk-pin-btn.success {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-color: #86efac;
  color: #16a34a;
}

/* Map preview bar */
.bk-map-preview {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: .8rem;
  color: #166534;
  flex-wrap: wrap;
}
.bk-map-preview.visible { display: flex; }
.bk-map-dot {
  width: 10px; height: 10px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(34,197,94,.25);
  animation: bk-pulse 2s ease-in-out infinite;
}
@keyframes bk-pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
  50%      { box-shadow: 0 0 0 6px rgba(34,197,94,.1); }
}
.bk-map-link {
  margin-left: auto;
  color: #15803d;
  font-weight: 700;
  font-size: .78rem;
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 10px;
  background: #dcfce7;
  border-radius: 20px;
  border: 1px solid #86efac;
  transition: background .15s;
}
.bk-map-link:hover { background: #bbf7d0; }

.bk-hint { font-size: .78rem; color: #64748b; margin: 0; }

/* Submit button */
.bk-submit {
  margin: 16px 22px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 44px);
  padding: 14px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(251,191,36,.4);
  letter-spacing: .3px;
}
.bk-submit:hover  { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(251,191,36,.45); }
.bk-submit:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(251,191,36,.3); }

/* ── Print / PDF styles ───────────────────────────── */
@media print {
  .bk-pdf-print * { font-family: 'Sarabun', sans-serif !important; }
  .bk-pdf-print { padding: 20mm; max-width: 210mm; }
}

@media (max-width: 520px) {
  .bk-grid-2 { grid-template-columns: 1fr; }
  .bk-admin-card-body { grid-template-columns: 1fr; }
  .bk-admin-info-col { border-right: none; border-bottom: 1px solid #f1f5f9; }
  .bk-admin-kpi-strip { gap: 8px; }
  .bk-admin-kpi { min-width: 80px; padding: 10px 12px; }
}

/* ════════════════════════════════════════════════════════════════
   OPUS POLISH LAYER — non-destructive landing-page elevation
   All effects are gated behind .js-polish (added to <html> by JS).
   Zero HTML structure changes; elements auto-tagged at runtime.
   ════════════════════════════════════════════════════════════════ */

/* ── 1. Scroll progress bar (top of page) ─────────────────────── */
.js-polish .opx-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #ffc400 0%, #ffb300 45%, #d89a00 100%);
  box-shadow: 0 1px 8px rgba(216, 154, 0, .45);
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
}

/* ── 2. Scroll reveal system ──────────────────────────────────── */
.js-polish [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .7s cubic-bezier(.22, .61, .36, 1),
    transform .7s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
.js-polish [data-reveal="left"]  { transform: translateX(-30px); }
.js-polish [data-reveal="right"] { transform: translateX(30px); }
.js-polish [data-reveal="zoom"]  { transform: scale(.94); }
.js-polish [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ── 3. Hero ambient motion + depth ───────────────────────────── */
.js-polish .hero {
  position: relative;
  overflow: hidden;
}
.js-polish .hero::after {
  content: "";
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  top: -22%; right: -14%;
  background: radial-gradient(circle, rgba(255, 196, 0, .28) 0%, rgba(255, 196, 0, 0) 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: opxFloatGlow 13s ease-in-out infinite;
}
.js-polish .hero > * { position: relative; z-index: 1; }

@keyframes opxFloatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .9; }
  50%      { transform: translate(-26px, 30px) scale(1.08); opacity: 1; }
}

/* gentle parallax target — JS sets --opx-py */
.js-polish .hero__media,
.js-polish .hero__image,
.js-polish .hero img {
  transform: translate3d(0, var(--opx-py, 0px), 0);
  transition: transform .15s linear;
  will-change: transform;
}

/* ── 4. Accent text shimmer sweep ─────────────────────────────── */
.js-polish .hero__title-accent {
  position: relative;
  /* Single bright highlight sweeping continuously across text */
  background: linear-gradient(105deg,
    #f5af00 0%,
    #f5af00 30%,
    #ffc400 42%,
    #ffffff 50%,
    #ffc400 58%,
    #f5af00 70%,
    #f5af00 100%) !important;
  background-size: 250% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  animation: heroAccentSweep 3.5s linear infinite !important;
  animation-duration: 3.5s !important;
  animation-name: heroAccentSweep !important;
  animation-iteration-count: infinite !important;
  animation-timing-function: linear !important;
}
.js-polish .hero__title-accent::before { content: none; }
@keyframes heroAccentSweep {
  0%   { background-position: 250% 0; }
  100% { background-position: -50% 0; }
}
@keyframes opxShimmer {
  0%   { background-position: 180% 0; }
  55%  { background-position: -80% 0; }
  100% { background-position: -80% 0; }
}

/* ── 5. Product card 3D tilt + glossy sheen ───────────────────── */
.js-polish .food-card,
.js-polish .product-card,
.js-polish .menu-card {
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease;
  will-change: transform;
}
.js-polish .food-card.opx-tilt,
.js-polish .product-card.opx-tilt,
.js-polish .menu-card.opx-tilt {
  transform:
    perspective(900px)
    rotateX(var(--opx-rx, 0deg))
    rotateY(var(--opx-ry, 0deg))
    translateZ(0);
}
.js-polish .food-card::after,
.js-polish .product-card::after,
.js-polish .menu-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    520px circle at var(--opx-mx, 50%) var(--opx-my, 0%),
    rgba(255, 255, 255, .35) 0%,
    rgba(255, 255, 255, 0) 45%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 2;
}
.js-polish .food-card:hover::after,
.js-polish .product-card:hover::after,
.js-polish .menu-card:hover::after {
  opacity: 1;
}

/* ── 6. Section kicker / heading underline grow-in ────────────── */
.js-polish .section-kicker,
.js-polish .eyebrow,
.js-polish .section-title {
  position: relative;
}
.js-polish [data-reveal] .section-title::after,
.js-polish .section-title[data-reveal]::after {
  content: "";
  display: block;
  height: 3px;
  width: 0;
  margin-top: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ffc400, #d89a00);
  transition: width .9s cubic-bezier(.22, .61, .36, 1) .25s;
}
.js-polish [data-reveal].is-revealed .section-title::after,
.js-polish .section-title[data-reveal].is-revealed::after {
  width: 56px;
}

/* ── 7. Card / chip micro-hover refinements ───────────────────── */
.js-polish .about-card,
.js-polish .location-card,
.js-polish .review-card,
.js-polish .info-card,
.js-polish .blog-card {
  transition:
    transform .35s cubic-bezier(.22, .61, .36, 1),
    box-shadow .35s ease;
}
.js-polish .about-card:hover,
.js-polish .location-card:hover,
.js-polish .review-card:hover,
.js-polish .info-card:hover,
.js-polish .blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -18px rgba(216, 154, 0, .35);
}

/* ── 8. Footer link slide ─────────────────────────────────────── */
.js-polish footer a,
.js-polish .footer a {
  transition: color .25s ease, padding-left .25s ease;
}
.js-polish footer a:hover,
.js-polish .footer a:hover {
  padding-left: 5px;
}

/* ── 9. Primary button luminous lift ──────────────────────────── */
.js-polish .btn-primary,
.js-polish .hero__actions .btn-primary {
  transition:
    transform .25s cubic-bezier(.22, .61, .36, 1),
    box-shadow .25s ease,
    filter .25s ease;
}
.js-polish .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(216, 154, 0, .7);
  filter: saturate(1.08);
}
.js-polish .btn-primary:active {
  transform: translateY(0);
}

/* ── 10. Reduced-motion guard (honor user OS preference) ──────── */
@media (prefers-reduced-motion: reduce) {
  .js-polish [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .js-polish .hero::after,
  .js-polish .hero__title-accent::before {
    animation: none !important;
  }
  .js-polish .opx-progress { display: none; }
  .js-polish .hero__media,
  .js-polish .hero__image,
  .js-polish .hero img { transform: none !important; }
  .js-polish .food-card.opx-tilt,
  .js-polish .product-card.opx-tilt,
  .js-polish .menu-card.opx-tilt { transform: none !important; }
}

/* ════════════════════════════════════════════════════════════════
   CART POPUP — compact floating popup replacing full-height drawer
   ════════════════════════════════════════════════════════════════ */

/* ── Override drawer base to make popup ──────────────────────── */
#cartDrawer.cart-popup.drawer {
  top: 50%;
  left: 50%;
  right: auto;
  /* sit above the chat widget (z-index 120) so the cart is always top-most */
  z-index: 200;
  width: min(420px, calc(100vw - 48px));
  height: auto;
  max-height: calc(100dvh - 80px);
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .05),
    0 8px 24px -4px rgba(0, 0, 0, .14),
    0 40px 80px -20px rgba(0, 0, 0, .22);
  /* center + scale-in animation */
  transform: translate(-50%, -50%) scale(.9);
  opacity: 0;
  pointer-events: none;
  transition:
    transform .3s cubic-bezier(.22, .61, .36, 1),
    opacity .25s ease;
}

#cartDrawer.cart-popup.drawer.is-open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* ── Header ──────────────────────────────────────────────────── */
.cp-head {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 20px;
  background: linear-gradient(135deg, #243042 0%, #161f2e 55%, #0d1420 100%);
  border-bottom: 1px solid rgba(255,196,0,.16);
  flex-shrink: 0;
}
.cp-head__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
  width: 130px; height: 130px;
  top: -50px; right: 10px;
  background: radial-gradient(circle, rgba(255,196,0,.28), rgba(255,196,0,0) 70%);
}
.cp-head__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding-right: 44px;
}
.cp-head__logo {
  flex-shrink: 0;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, #ffd84d 0%, #ffb300 100%);
  box-shadow: 0 6px 16px rgba(255,176,0,.40), inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 4px rgba(255,196,0,.12);
  color: #5c3600;
}
.cp-head__logo svg { width: 22px; height: 22px; }
.cp-head__text { min-width: 0; }
.cp-head__title {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.cp-head__sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  line-height: 1.3;
}
.cp-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  cursor: pointer; z-index: 2; flex-shrink: 0;
  transition: background .16s, transform .16s, border-color .16s;
}
.cp-close svg { width: 17px; height: 17px; }
.cp-close:hover { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.3); transform: rotate(90deg); }
.cp-close:focus-visible { outline: 2px solid #ffc400; outline-offset: 2px; }

/* ── Scrollable body ─────────────────────────────────────────── */
.cp-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #fde68a transparent;
  max-height: 340px;
}
.cp-body::-webkit-scrollbar { width: 4px; }
.cp-body::-webkit-scrollbar-thumb { background: #fde68a; border-radius: 4px; }

/* ── Cart item row ───────────────────────────────────────────── */
.cp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  transition: background .18s;
}
.cp-item:last-child { border-bottom: none; }
.cp-item:hover { background: #fffbeb; }

.cp-thumb {
  width: 50px; height: 50px;
  border-radius: 12px;
  background-color: #fde68a;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.cp-info { flex: 1; min-width: 0; }
.cp-name {
  font-size: .85rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-unit-price {
  font-size: .73rem;
  color: #94a3b8;
  margin: 0;
}

.cp-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.cp-line-total {
  font-size: .88rem;
  font-weight: 800;
  color: #b45309;
  margin: 0;
}
.cp-qty {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  border-radius: 20px;
  padding: 3px 5px;
  border: 1px solid #e2e8f0;
}
.cp-qty__btn {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
  font-size: .9rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: background .15s, color .15s;
  padding: 0;
}
.cp-qty__btn:hover { background: #ffc400; color: #1a1a1a; }
.cp-qty__val {
  font-size: .82rem;
  font-weight: 700;
  color: #1a1a1a;
  min-width: 18px;
  text-align: center;
}
.cp-remove {
  border: none;
  background: none;
  color: #cbd5e1;
  font-size: .78rem;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  border-radius: 4px;
  transition: color .15s, background .15s;
  margin-top: 1px;
}
.cp-remove:hover { color: #ef4444; background: #fef2f2; }

/* ── Empty state ─────────────────────────────────────────────── */
.cp-empty {
  text-align: center;
  padding: 36px 20px 40px;
}
.cp-empty__icon { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.cp-empty__title {
  font-size: .9rem;
  font-weight: 700;
  color: #475569;
  margin: 0 0 4px;
}
.cp-empty__sub {
  font-size: .78rem;
  color: #94a3b8;
  margin: 0;
}

/* ── Footer ──────────────────────────────────────────────────── */
.cp-footer {
  padding: 14px 18px 18px;
  background: #fff;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.cp-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cp-summary__label {
  font-size: .82rem;
  color: #64748b;
  font-weight: 500;
}
.cp-summary__total {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a1a1a;
}
.cp-summary--discount,
.cp-summary--net {
  margin-bottom: 8px;
}
.cp-summary__discount {
  font-size: .95rem;
  font-weight: 800;
  color: #15803d;
}
.cp-coupon {
  display: grid;
  gap: 7px;
  margin: 0 0 12px;
}
.cp-coupon__label {
  font-size: .76rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cp-coupon__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}
.cp-coupon__input {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 11px;
  font-size: .86rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #ffffff;
  color: #1f2937;
}
.cp-coupon__btn,
.cp-coupon__clear {
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}
.cp-coupon__btn {
  background: #1f2937;
  color: #ffffff;
}
.cp-coupon__clear {
  background: #fee2e2;
  color: #991b1b;
}
.cp-coupon__message {
  margin: 0;
  font-size: .76rem;
  font-weight: 700;
}
.cp-coupon__message.is-ok { color: #15803d; }
.cp-coupon__message.is-error { color: #b91c1c; }

.checkout-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  animation: cartStepFade 0.22s ease;
}

.checkout-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 2px;
}

.checkout-stepper__item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.checkout-stepper__item span {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 12px;
}

.checkout-stepper__item.is-active,
.checkout-stepper__item.is-done {
  color: #0f172a;
}

.checkout-stepper__item.is-active span,
.checkout-stepper__item.is-done span {
  background: #ffc400;
  border-color: #f5b400;
  color: #1a1a1a;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkout-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.checkout-field span {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.checkout-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
}

.checkout-error {
  min-height: 14px;
  margin: -5px 0 0;
  color: #dc2626;
  font-size: 12px;
}

.checkout-summary,
.checkout-card,
.checkout-delivery {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.checkout-summary {
  padding: 12px 14px;
}

.checkout-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #475569;
  font-size: 13px;
  margin-bottom: 8px;
}

.checkout-summary > div:last-child { margin-bottom: 0; }
.checkout-summary .is-discount { color: #15803d; }

.checkout-summary__total {
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  color: #0f172a !important;
}

.checkout-summary__total strong {
  font-size: 20px;
  color: #0f172a;
}

.checkout-card,
.checkout-delivery {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px;
}

.checkout-card > div,
.checkout-delivery > div {
  flex: 1;
  min-width: 0;
}

.checkout-card small,
.checkout-delivery small {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 3px;
}

.checkout-card strong,
.checkout-delivery strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
}

.checkout-card p,
.checkout-delivery p {
  margin: 4px 0 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

.checkout-card button {
  flex-shrink: 0;
  border: 1px solid #f5b400;
  background: #fffbeb;
  color: #7a4f00;
  border-radius: 8px;
  padding: 7px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.checkout-delivery {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.checkout-delivery__icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  flex-shrink: 0;
}

.checkout-delivery b {
  color: #0f172a;
  font-size: 13px;
}

.checkout-primary-btn,
.checkout-secondary-btn {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.checkout-primary-btn {
  border: 0;
  background: linear-gradient(135deg, #ffc400, #f5b400);
  color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(245, 180, 0, 0.24);
}

.checkout-primary-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.checkout-secondary-btn {
  margin-top: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
}
.cp-checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, #ffc400 0%, #d89a00 100%);
  color: #1a1a1a;
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .22s ease, box-shadow .22s ease;
  letter-spacing: .01em;
}
.cp-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -6px rgba(216, 154, 0, .55);
}
.cp-checkout-btn:active { transform: translateY(0); }
.cp-checkout-btn__arrow { font-size: 1rem; }

.cp-menu-btn {
  width: 100%;
  border: 2px solid #ffc400;
  background: transparent;
  color: #b45309;
  border-radius: 12px;
  padding: 11px 20px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s;
}
.cp-menu-btn:hover { background: #fffbeb; }

/* ── Item count badge on cart button ─────────────────────────── */
#cartDrawer.cart-popup .cp-item-count {
  font-size: .72rem;
  color: #64748b;
  text-align: center;
  padding: 6px 18px 2px;
  border-bottom: 1px solid #f1f5f9;
  background: #fafafa;
}

/* ── Mobile: bottom sheet ────────────────────────────────────── */
@media (max-width: 500px) {
  #cartDrawer.cart-popup.drawer {
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    right: 12px;
    left: 12px;
    width: auto;
    border-radius: 22px;
    max-height: 82dvh;
    transform: translateY(calc(100% + 24px));
    opacity: 1;
  }
  #cartDrawer.cart-popup.drawer.is-open {
    transform: translateY(0);
    opacity: 1;
  }
  .cp-body { max-height: 52dvh; }
  /* larger touch targets on phones */
  .cp-qty { gap: 6px; padding: 4px 6px; }
  .cp-qty__btn { width: 30px; height: 30px; font-size: 1rem; }
  .cp-qty__val { min-width: 22px; font-size: .9rem; }
  .cp-remove { font-size: .9rem; padding: 8px; }
  .cp-checkout-btn, .cp-menu-btn { min-height: 48px; }
  .cp-coupon__row { grid-template-columns: 1fr; }
  .cp-coupon__btn,
  .cp-coupon__clear { min-height: 40px; }
}

/* ════════════════════════════════════════════════════════════════
   SHIPPING DETAILS MODAL  (.sd-*)
   ════════════════════════════════════════════════════════════════ */

/* ── Card wrapper (overrides modal__card padding) ─────────────── */
.sd-card.modal__card {
  width: min(480px, 100%);
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  border: none;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 24px);
  box-shadow: 0 30px 80px -24px rgba(15,23,42,.55), 0 0 0 1px rgba(255,255,255,.04);
}
.sd-header { flex-shrink: 0; }
.sd-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ── Header ───────────────────────────────────────────────────── */
.sd-header {
  position: relative;
  overflow: hidden;
  padding: 24px 22px 22px;
  background: linear-gradient(135deg, #243042 0%, #161f2e 55%, #0d1420 100%);
  border-bottom: 1px solid rgba(255,196,0,.16);
}
.sd-header__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
  width: 130px; height: 130px;
  top: -50px; left: 20px;
  background: radial-gradient(circle, rgba(255,196,0,.25), rgba(255,196,0,0) 70%);
}
.sd-header__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 44px;
}
.sd-header__logo {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffd84d 0%, #ffb300 100%);
  box-shadow: 0 6px 18px rgba(255,176,0,.40), inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 4px rgba(255,196,0,.12);
  color: #5c3600;
}
.sd-header__logo svg { width: 24px; height: 24px; }
.sd-header__text { flex: 1; min-width: 0; }
.sd-header__title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin: 0;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.sd-header__order {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  font-family: monospace, monospace;
  letter-spacing: .03em;
}
.sd-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  cursor: pointer; z-index: 2;
  transition: background .16s, transform .16s, border-color .16s;
}
.sd-close svg { width: 17px; height: 17px; }
.sd-close:hover { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.3); transform: rotate(90deg); }
.sd-close:focus-visible { outline: 2px solid #ffc400; outline-offset: 2px; }

/* ── Notice banner ────────────────────────────────────────────── */
.sd-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 20px;
  background: #f0fdf4;
  border-bottom: 1px solid #dcfce7;
}
.sd-notice p {
  margin: 0;
  font-size: .8rem;
  color: #15803d;
  line-height: 1.5;
}

/* ── Form body ────────────────────────────────────────────────── */
.sd-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 22px;
}

/* ── Field group ──────────────────────────────────────────────── */
.sd-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sd-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .83rem;
  font-weight: 700;
  color: #374151;
}
.sd-label__icon { font-size: .9rem; }

/* ── Input / Textarea ─────────────────────────────────────────── */
.sd-input {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 11px;
  padding: 11px 14px;
  font-size: .88rem;
  color: #1a1a1a;
  background: #fafafa;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  font-family: inherit;
  box-sizing: border-box;
}
.sd-input:focus {
  border-color: #ffc400;
  box-shadow: 0 0 0 3px rgba(255, 196, 0, .15);
  background: #fff;
}
.sd-input::placeholder { color: #b0bec5; font-size: .82rem; }
.sd-textarea {
  resize: vertical;
  min-height: 82px;
  line-height: 1.6;
}

/* ── Phone row with flag prefix ───────────────────────────────── */
.sd-phone-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #e2e8f0;
  border-radius: 11px;
  overflow: hidden;
  background: #fafafa;
  transition: border-color .2s, box-shadow .2s;
}
.sd-phone-wrap:focus-within {
  border-color: #ffc400;
  box-shadow: 0 0 0 3px rgba(255, 196, 0, .15);
  background: #fff;
}
.sd-phone-prefix {
  padding: 11px 10px 11px 12px;
  font-size: .8rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border-right: 1.5px solid #e2e8f0;
  display: flex; align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: .01em;
}
.sd-input--phone {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  flex: 1;
}

/* ── Submit button ────────────────────────────────────────────── */
.sd-submit {
  width: 100%;
  background: linear-gradient(135deg, #ffc400 0%, #d89a00 100%);
  color: #1a1a1a;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  transition: transform .22s ease, box-shadow .22s ease;
  margin-top: 2px;
  font-family: inherit;
}
.sd-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -6px rgba(216, 154, 0, .55);
}
.sd-submit:active { transform: none; }
.sd-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Saved address card ──────────────────────────────────────── */
.sd-saved-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.sd-saved-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffd84d 0%, #ffb300 100%);
  color: #5c3600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255,176,0,.25);
}
.sd-saved-card__body {
  flex: 1;
  min-width: 0;
}
.sd-saved-card__name {
  margin: 0 0 2px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}
.sd-saved-card__phone {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: #64748b;
}
.sd-saved-card__addr {
  margin: 0;
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.55;
}
.sd-edit-addr-btn {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.sd-edit-addr-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}
.sd-edit-addr-btn:active {
  transform: scale(0.97);
  background: #f1f5f9;
}
.sd-edit-addr-btn:focus-visible {
  outline: 2px solid #ffc400;
  outline-offset: 2px;
}
.sd-edit-addr-btn svg,
.sd-edit-addr-btn span { pointer-events: none; }

/* ── Address section title inside sd-body ─────────────────────── */
.sd-section-title {
  font-size: .82rem;
  font-weight: 700;
  color: #374151;
  padding: 6px 10px;
  background: #fffbeb;
  border-left: 3px solid #ffc400;
  border-radius: 0 6px 6px 0;
  margin-bottom: 8px;
}

/* Make bk-grid-2 inside sd-body respect modal width */
.sd-body .bk-grid-2 {
  margin-bottom: 0;
}
.sd-body .bk-field {
  margin-bottom: 0;
}
.sd-body .bk-pin-btn {
  margin-bottom: 0;
}
.sd-body .bk-map-preview {
  margin-bottom: 0;
}

/* ── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 500px) {
  .sd-card.modal__card { border-radius: 16px; }
  .sd-body { padding: 16px 16px 20px; gap: 12px; }
  .sd-header { padding: 16px 16px 14px; }
  .sd-body .bk-grid-2 { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   PRODUCT RAIL — INFINITE MARQUEE (เลื่อนขวา→ซ้าย แบบห้างสรรพสินค้า)
   ════════════════════════════════════════════════════════════════ */

/* Rail in marquee mode — JS drives translateX, CSS only sets layout */
.product-rail.is-marquee {
  display: flex !important;
  flex-wrap: nowrap;
  width: max-content;
  gap: var(--space-5);
  overflow: visible;
  padding-block: var(--space-4);
  will-change: transform;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.product-rail.is-marquee.is-grabbing { cursor: grabbing; }
.product-rail.is-marquee.is-grabbing .product-card { cursor: grabbing; }
.product-rail.is-marquee::-webkit-scrollbar { display: none; }

/* ── Fixed card width ─────────────────────────────────────────── */
.product-rail.is-marquee .product-card {
  flex-shrink: 0;
  width: 270px;
  min-width: 0;
  scroll-snap-align: none;
}

/* ── Clones hidden from a11y ──────────────────────────────────── */
.product-rail.is-marquee .mq-clone { pointer-events: auto; }

/* ── Wrapper: clip + edge fade ────────────────────────────────── */
.product-rail-wrap.is-marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg, transparent 0%, #000 5%, #000 95%, transparent 100%
  );
  mask-image: linear-gradient(
    90deg, transparent 0%, #000 5%, #000 95%, transparent 100%
  );
}
.product-rail-wrap.is-marquee-wrap::after { display: none; }

/* ── Prev/next nav stays visible & usable in marquee mode ─────── */
.is-marquee-active .carousel-controls {
  opacity: 1;
  pointer-events: auto;
  transition: opacity .3s ease;
}

.prod-form__inline-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.prod-form__save-btn--compact {
  min-height: 38px;
  padding: 0 14px;
}

.prod-form__save-status {
  flex: 1 1 auto;
  min-height: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.prod-form__save-status[data-state="saving"] { color: #92400e; }
.prod-form__save-status[data-state="success"] { color: #047857; }
.prod-form__save-status[data-state="error"] { color: #dc2626; }

.food-img.has-product-image {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
/* Legal pages */
.legal-page {
  min-height: 100vh;
  background: #fff8e1;
  color: #2b2118;
}

.legal-page__hero,
.legal-page__content {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.legal-page__hero {
  padding: 56px 0 24px;
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #6b4f1d;
  font-weight: 700;
  text-decoration: none;
}

.legal-page__hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.legal-page__hero p:last-child {
  margin: 0;
  color: #7b6b54;
}

.legal-page__content {
  padding: 10px 0 72px;
}

.legal-page__content h2 {
  margin: 30px 0 10px;
  font-size: 1.22rem;
}

.legal-page__content p {
  margin: 0;
  color: #4d4033;
  line-height: 1.85;
}

/* Glassmorphism topbar: transparent + backdrop blur (no solid cream tint).
   Keeps the nav legible via strong blur+saturate while letting page content
   show through beautifully. Lower opacity when at top, slightly stronger
   when scrolled for legibility over busy content. */
.site-header,
.site-header:not(.is-scrolled) {
  background: rgba(255, 251, 235, 0.18) !important;
  border-bottom-color: rgba(234, 223, 205, 0.32) !important;
  box-shadow: 0 1px 0 rgba(255, 196, 0, 0.08) !important;
  backdrop-filter: blur(1px) saturate(100%) !important;
  -webkit-backdrop-filter: blur(1px) saturate(100%) !important;
}
.site-header.is-scrolled {
  background: rgba(255, 251, 235, 0.32) !important;
  border-bottom-color: rgba(255, 196, 0, 0.18) !important;
  box-shadow: 0 4px 18px rgba(80, 54, 16, 0.06) !important;
  backdrop-filter: blur(1px) saturate(100%) !important;
  -webkit-backdrop-filter: blur(1px) saturate(100%) !important;
}

.site-header .desktop-nav {
  background: rgba(255, 255, 255, .78) !important;
  border-color: rgba(216, 154, 0, .3) !important;
  box-shadow: 0 10px 26px rgba(80, 54, 16, .08) !important;
}

.site-header .desktop-nav a,
.site-header .nav-dropdown__trigger {
  color: #4a3217 !important;
  text-shadow: none !important;
}

.site-header .desktop-nav a:hover,
.site-header .desktop-nav a:focus-visible,
.site-header .nav-dropdown__trigger:hover,
.site-header .nav-dropdown__trigger:focus-visible,
.site-header .nav-dropdown.is-open .nav-dropdown__trigger {
  background: rgba(255, 196, 0, .18) !important;
  color: #1f160c !important;
}

.site-header .brand strong {
  color: #2c1b0f !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .75) !important;
}

.site-header .brand small {
  color: #c58b00 !important;
  text-shadow: none !important;
}

.site-header .icon-button:not(.is-authenticated),
.site-header .circle-btn,
.site-header #loginBtn:not(.is-authenticated) {
  background: rgba(255, 255, 255, .78) !important;
  border-color: rgba(216, 154, 0, .24) !important;
  color: #2c1b0f !important;
  box-shadow: 0 8px 18px rgba(80, 54, 16, .1) !important;
}

.hero__title-accent,
.js-polish .hero__title-accent {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: #e5a100 !important;
  animation: none !important;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .9), 0 10px 24px rgba(255, 196, 0, .28) !important;
}

/* ════════════════════════════════════════════════════════════════
   3D HERO PARALLAX MODULE (p3d) — pointer-driven depth layers
   ─────────────────────────────────────────────────────────────────
   - Layers translate via --p3d-x / --p3d-y (set by JS, rAF + lerp)
     scaled per-layer by --p3d-depth → true multi-plane 3D feel.
   - Idle drift uses the independent `translate` property so it never
     fights the parallax `transform` — both compose on the GPU.
   - Copy panel tilts in 3D (rotateX/rotateY) following the pointer.
   - All motion: transform/translate/opacity only → 60fps, no layout.
   - Fully disabled under prefers-reduced-motion and on coarse pointers
     (mobile keeps the gentle idle float only — no JS work).
   ════════════════════════════════════════════════════════════════ */
.hero { perspective: 1100px; }
/* .hero > .hero-3d (0,2,0) — must outrank `.js-polish .hero > *`
   which forces position:relative on all hero children */
.hero > .hero-3d {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  transform-style: preserve-3d;
}
.hero-3d__layer {
  position: absolute;
  display: block;
  will-change: transform;
  transform: translate3d(
    calc(var(--p3d-x, 0px) * var(--p3d-depth, 1)),
    calc(var(--p3d-y, 0px) * var(--p3d-depth, 1)),
    0
  );
}
/* Soft ambient glow orbs — depth planes behind the floats */
.hero-3d__orb {
  border-radius: 50%;
  filter: blur(42px);
  opacity: .55;
}
.hero-3d__orb--a {
  width: clamp(220px, 26vw, 380px);
  aspect-ratio: 1;
  right: 6%;
  top: 8%;
  background: radial-gradient(circle, rgba(255, 214, 64, .5), rgba(255, 196, 0, .12) 60%, transparent 75%);
}
.hero-3d__orb--b {
  width: clamp(160px, 18vw, 280px);
  aspect-ratio: 1;
  left: 44%;
  bottom: 4%;
  background: radial-gradient(circle, rgba(255, 158, 64, .38), transparent 70%);
}
/* Floating ingredient layers (emoji = zero asset weight) */
.hero-3d__float {
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1;
  /* golden glow integrates the floats with the photo's warm bokeh */
  filter: drop-shadow(0 0 16px rgba(255, 200, 60, .5)) drop-shadow(0 10px 22px rgba(120, 75, 14, .3));
  animation: p3dFloat 7s ease-in-out infinite;
}
.hero-3d__float--banana { right: 12%; top: 22%; font-size: clamp(40px, 4.6vw, 68px); animation-duration: 8s; opacity: .95; }
.hero-3d__float--leaf   { right: 7%;  bottom: 18%; animation-delay: -4s; animation-duration: 9s; filter: blur(1.4px) drop-shadow(0 0 12px rgba(160, 220, 120, .35)); opacity: .8; }
.hero-3d__float--spark  { right: 22%; top: 12%; font-size: clamp(18px, 2vw, 30px); animation-delay: -1.2s; animation-duration: 5.5s; }
.hero-3d__float--spark2 { right: 40%; top: 34%; font-size: clamp(14px, 1.6vw, 24px); color: #ffb300; animation-delay: -3.1s; animation-duration: 6.5s; }
@keyframes p3dFloat {
  0%, 100% { translate: 0 0; rotate: -4deg; }
  50%      { translate: 0 -18px; rotate: 5deg; }
}
/* 3D tilt on the hero copy panel — follows pointer via CSS vars */
.hero__copy-panel {
  transform: rotateX(var(--p3d-tilt-x, 0deg)) rotateY(var(--p3d-tilt-y, 0deg)) translateZ(0);
  transform-style: preserve-3d;
}
.hero.p3d-active .hero__copy-panel { will-change: transform; }
/* Mobile/tablet: keep only the lightweight idle float, fewer layers */
@media (max-width: 767px) {
  .hero-3d__orb--b, .hero-3d__float--spark2, .hero-3d__float--leaf { display: none; }
  .hero-3d__float { font-size: clamp(22px, 7vw, 36px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-3d__float { animation: none; }
  .hero-3d__layer { transform: none; }
  .hero__copy-panel { transform: none; }
}

/* ════════════════════════════════════════════════════════════════
   MINI-CART BAR — sticky bottom bar on mobile/tablet
   Appears only when the cart has items. Opens the cart drawer.
   ════════════════════════════════════════════════════════════════ */
.mini-cart-bar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 48; /* below .overlay/.drawer (50+), above content */
  display: none;
  align-items: center;
  gap: 12px;
  width: min(calc(100vw - 24px), 560px);
  min-height: 58px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(255, 196, 0, .45);
  border-radius: 18px;
  background: rgba(31, 22, 12, .92);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 12px 32px rgba(31, 22, 12, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transform: translate(-50%, calc(100% + 24px));
  opacity: 0;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), opacity 320ms ease;
}
.mini-cart-bar.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}
@media (max-width: 1024px) {
  .mini-cart-bar:not([hidden]) { display: flex; }
}
.mini-cart-bar__icon {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #ffe389 0%, #ffc400 60%, #f5af00 100%);
  color: #2c1b0f;
}
.mini-cart-bar__icon svg { width: 20px; height: 20px; }
.mini-cart-bar__icon em {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e2554d;
  color: #fff;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.mini-cart-bar__label {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.25;
}
.mini-cart-bar__label small {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .65);
}
.mini-cart-bar__total {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 196, 0, .4);
  font-size: 15px;
  font-weight: 900;
  color: #ffd84d;
}
.mini-cart-bar:active { transform: translate(-50%, 0) scale(.985); }
@media (prefers-reduced-motion: reduce) {
  .mini-cart-bar { transition: opacity 200ms ease; transform: translate(-50%, 0); }
}

/* ════════════════════════════════════════════════════════════════
   FLY-TO-CART — small dot arcs from the add button to the cart icon
   transform/opacity only; element removed on animation end.
   ════════════════════════════════════════════════════════════════ */
.fly-cart-dot {
  position: fixed;
  z-index: 120;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe389, #ffc400 60%, #f5af00);
  box-shadow: 0 4px 12px rgba(245, 175, 0, .55);
  pointer-events: none;
  will-change: transform, opacity;
}

/* ════════════════════════════════════════════════════════════════
   PERFORMANCE — skip rendering below-the-fold sections until needed.
   contain-intrinsic-size keeps the scrollbar stable.
   ════════════════════════════════════════════════════════════════ */
.blog-section,
.location-review {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

/* ════════════════════════════════════════════════════════════════
   CHECKOUT REDESIGN (.ck-*) — unified 4-step flow inside #cartDrawer
   Replaces inline-styled cart/checkout markup. 2026-06-12
   ════════════════════════════════════════════════════════════════ */

/* ── Progress stepper with connector lines ───────────────────── */
.ck-steps {
  display: flex;
  align-items: flex-start;
  margin: 0 0 4px;
}
.ck-steps__item {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ck-steps__item::before {
  content: "";
  position: absolute;
  top: 14px;
  right: calc(50% + 20px);
  left: calc(-50% + 20px);
  height: 2px;
  border-radius: 2px;
  background: #e9edf2;
  transition: background .25s ease;
}
.ck-steps__item:first-child::before { display: none; }
.ck-steps__item.is-done::before,
.ck-steps__item.is-active::before { background: #f5b400; }
.ck-steps__dot {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #e2e8f0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.ck-steps__dot svg { width: 13px; height: 13px; }
.ck-steps__item small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}
.ck-steps__item.is-active .ck-steps__dot {
  border-color: #f5b400;
  background: linear-gradient(145deg, #ffd84d, #ffb300);
  color: #2a1d00;
  box-shadow: 0 0 0 4px rgba(255, 196, 0, .16);
}
.ck-steps__item.is-active small { color: #0f172a; }
.ck-steps__item.is-done .ck-steps__dot {
  border-color: #f5b400;
  background: #fff7df;
  color: #b45309;
}
.ck-steps__item.is-done small { color: #b45309; }

/* ── Section title ───────────────────────────────────────────── */
.ck-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 -4px;
  font-size: .86rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.01em;
}
.ck-title svg {
  width: 16px;
  height: 16px;
  color: #b45309;
  flex-shrink: 0;
}

/* ── Step 1: cart panel + item rows ──────────────────────────── */
.ck-cart { padding-bottom: 8px; gap: 12px; }
.ck-cart__count {
  margin: 2px 0 0;
  font-size: .8rem;
  font-weight: 600;
  color: #64748b;
}
.ck-item {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  transition: border-color .15s, box-shadow .15s;
}
.ck-item:hover {
  border-color: #fde68a;
  box-shadow: 0 3px 10px rgba(245, 180, 0, .1);
}
.ck-item__img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background-color: #f1f5f9;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05);
}
.ck-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.ck-item__name {
  margin: 0 0 2px;
  font-size: .9rem;
  font-weight: 650;
  color: #0f172a;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ck-item__unit {
  margin: 0;
  font-size: .76rem;
  color: #94a3b8;
}
.ck-qty {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px;
}
.ck-qty button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: #475569;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ck-qty button:hover { background: #ffc400; color: #1a1a1a; }
.ck-qty span {
  min-width: 26px;
  text-align: center;
  font-size: .85rem;
  font-weight: 700;
  color: #0f172a;
}
.ck-item__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}
.ck-item__remove {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #cbd5e1;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.ck-item__remove svg { width: 13px; height: 13px; }
.ck-item__remove:hover { color: #ef4444; background: #fef2f2; }
.ck-item__total {
  font-size: .95rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.01em;
  line-height: 1;
}

/* ── Coupon ──────────────────────────────────────────────────── */
.ck-coupon { margin: 0 0 12px; }
.ck-coupon > label {
  display: block;
  margin-bottom: 6px;
  font-size: .74rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: .04em;
}
.ck-coupon__box {
  position: relative;
  display: flex;
  align-items: center;
}
.ck-coupon__tag {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: #b45309;
  pointer-events: none;
}
.ck-coupon__box input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 86px 11px 36px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ck-coupon__box input::placeholder { text-transform: none; font-weight: 400; color: #b6c0cd; }
.ck-coupon__box input:focus {
  border-color: #f5b400;
  box-shadow: 0 0 0 3px rgba(255, 196, 0, .15);
}
.ck-coupon__box button {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  padding: 8px 14px;
  background: #0f172a;
  border: none;
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.ck-coupon__box button:hover { background: #283548; }
.ck-coupon__clear {
  margin-top: 6px;
  padding: 2px 0;
  background: transparent;
  border: none;
  color: #64748b;
  font: inherit;
  font-size: .76rem;
  cursor: pointer;
}
.ck-coupon__clear:hover { color: #ef4444; }
.ck-coupon__msg { margin: 6px 0 0; font-size: .76rem; font-weight: 600; }
.ck-coupon__msg.is-ok { color: #15803d; }
.ck-coupon__msg.is-error { color: #dc2626; }

/* ── Receipt-style summary ───────────────────────────────────── */
.ck-summary {
  padding: 14px 16px;
  background: #fbfaf6;
  border: 1px solid #efe9da;
  border-radius: 14px;
  margin-bottom: 12px;
}
.checkout-panel .ck-summary { margin-bottom: 0; }
.ck-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  font-size: .84rem;
  color: #5b6472;
}
.ck-summary__row strong { font-weight: 650; color: #334155; }
.ck-summary__row.is-discount,
.ck-summary__row.is-discount strong { color: #15803d; }
.ck-free {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  background: #ecfdf3;
  border: 1px solid #bbe7c8;
  border-radius: 999px;
  color: #15803d !important;
  font-size: .74rem;
  font-weight: 800;
  font-style: normal;
}
.ck-summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px dashed #ddd3bd;
}
.ck-summary__total span {
  font-size: .88rem;
  font-weight: 700;
  color: #0f172a;
}
.ck-summary__total strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.02em;
}

/* ── Address / info card ─────────────────────────────────────── */
.ck-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.ck-card__body { flex: 1; min-width: 0; }
.ck-card__label {
  display: block;
  margin-bottom: 4px;
  font-size: .68rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.ck-card__body strong {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: #0f172a;
}
.ck-card__body p {
  margin: 4px 0 0;
  font-size: .78rem;
  color: #5b6472;
  line-height: 1.5;
}
.ck-edit-btn {
  flex-shrink: 0;
  padding: 7px 13px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  color: #92580a;
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.ck-edit-btn:hover { background: #fef3c7; border-color: #f5b400; }

/* ── Shipping option card ────────────────────────────────────── */
.ck-ship {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
}
.ck-ship.is-selected {
  border-color: #f5b400;
  background: linear-gradient(160deg, #fffdf4, #fff8e1);
  box-shadow: 0 3px 12px rgba(245, 180, 0, .12);
}
.ck-ship__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffd84d, #ffb300);
  color: #5c3600;
  box-shadow: 0 3px 8px rgba(255, 176, 0, .3);
}
.ck-ship__icon svg { width: 20px; height: 20px; }
.ck-ship__icon--flash {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  border-radius: 12px;
}
.ck-ship__icon--flash img,
.ck-ship__icon--flash svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ck-ship__body { flex: 1; min-width: 0; }
.ck-ship__body strong {
  display: block;
  font-size: .88rem;
  font-weight: 750;
  color: #0f172a;
}
.ck-ship__body p {
  margin: 2px 0 0;
  font-size: .78rem;
  color: #5b6472;
}
.ck-ship__body small {
  display: block;
  margin-top: 3px;
  font-size: .7rem;
  color: #94a3b8;
}
.ck-ship__fee {
  flex-shrink: 0;
  font-size: .88rem;
  font-weight: 800;
  color: #0f172a;
}

/* ── Payment radio cards ─────────────────────────────────────── */
.ck-pay {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ck-pay__option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.ck-pay__option:hover { border-color: #fcd34d; }
.ck-pay__option.is-checked {
  border-color: #f5b400;
  background: linear-gradient(160deg, #fffdf4, #fff8e1);
  box-shadow: 0 3px 12px rgba(245, 180, 0, .12);
}
.ck-pay__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ck-pay__option:focus-within {
  outline: 2px solid #f5b400;
  outline-offset: 2px;
}
.ck-pay__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 11px;
  background: #f1f5f9;
  color: #475569;
  transition: background .15s, color .15s;
}
.ck-pay__icon svg { width: 19px; height: 19px; }
.ck-pay__option.is-checked .ck-pay__icon {
  background: linear-gradient(145deg, #ffd84d, #ffb300);
  color: #5c3600;
}
.ck-pay__text { flex: 1; min-width: 0; }
.ck-pay__text strong {
  display: block;
  font-size: .88rem;
  font-weight: 750;
  color: #0f172a;
}
.ck-pay__text small {
  display: block;
  margin-top: 2px;
  font-size: .76rem;
  color: #64748b;
  line-height: 1.4;
}
.ck-pay__radio {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #fff;
  display: grid;
  place-items: center;
  transition: border-color .15s, background .15s;
}
.ck-pay__option.is-checked .ck-pay__radio {
  border-color: #f5b400;
  background: #ffc400;
}
.ck-pay__option.is-checked .ck-pay__radio::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2a1d00;
}

/* ── Form fields ─────────────────────────────────────────────── */
.ck-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ck-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ck-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ck-field span {
  font-size: .74rem;
  font-weight: 700;
  color: #475569;
}
.ck-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ck-field input::placeholder { color: #b6c0cd; }
.ck-field input:focus {
  border-color: #f5b400;
  box-shadow: 0 0 0 3px rgba(255, 196, 0, .15);
}

/* ── Primary CTA with embedded total ─────────────────────────── */
.ck-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}
.ck-cta:hover { filter: brightness(1.03); box-shadow: 0 6px 18px rgba(245, 180, 0, .35); }
.ck-cta:active { transform: scale(.985); }
.ck-cta b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.checkout-primary-btn { transition: transform .12s ease, box-shadow .2s ease, filter .2s ease; }
.checkout-primary-btn:hover:not(:disabled) { filter: brightness(1.03); box-shadow: 0 6px 18px rgba(245, 180, 0, .35); }
.checkout-primary-btn:active:not(:disabled) { transform: scale(.985); }

/* ── Mobile refinements ──────────────────────────────────────── */
@media (max-width: 500px) {
  .ck-qty button { width: 32px; height: 32px; font-size: 1.15rem; }
  .ck-qty span { min-width: 28px; font-size: .9rem; }
  .ck-item__img { width: 56px; height: 56px; }
  .ck-item__remove { width: 32px; height: 32px; }
  .ck-pay__option, .ck-ship { padding: 14px 13px; }
  .ck-cta { min-height: 52px; }
  .ck-steps__item small { font-size: 10px; }
}

/* ════════════════════════════════════════════
   SALES DASHBOARD PANEL (.sd-kpi-*, .sd-chart-*, etc.)
   Used in backend-admin.html via script.js renderSalesDashboardPanel()
   ════════════════════════════════════════════ */
.sd-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.sd-kpi {
  background: #fff;
  border: 1px solid #e8eaec;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sd-kpi__label { font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.sd-kpi__val { font-size: 22px; font-weight: 800; color: #1a1a1a; line-height: 1.1; }
.sd-delta { font-size: 11px; font-weight: 700; border-radius: 4px; padding: 1px 5px; }
.sd-delta--up { background: #dcfce7; color: #16a34a; }
.sd-delta--dn { background: #fee2e2; color: #dc2626; }
.sd-delta--flat { background: #f1f5f9; color: #64748b; }
.sd-empty { text-align: center; padding: 40px 0; color: #94a3b8; font-size: 14px; }
.sd-range-label { margin: 2px 0 0; color: #64748b; font-size: 13px; }
.sd-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sd-select {
  border: 1px solid #e2e8f0; border-radius: 7px; padding: 5px 10px;
  font-size: 13px; background: #fff; cursor: pointer; color: #1a1a1a;
}
.sd-date-input { border: 1px solid #e2e8f0; border-radius: 7px; padding: 4px 8px; font-size: 13px; color: #1a1a1a; }
.sd-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 860px) { .sd-charts-grid { grid-template-columns: 1fr; } }
.sd-chart-card {
  background: #fff;
  border: 1px solid #e8eaec;
  border-radius: 10px;
  padding: 14px 16px;
}
.sd-chart-title { font-size: 13px; font-weight: 700; color: #334155; margin: 0 0 10px; }
.sd-chart-wrap { position: relative; height: 180px; }
.sd-lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 16px;
}
@media (max-width: 860px) { .sd-lower-grid { grid-template-columns: 1fr; } }
.sd-panel {
  background: #fff;
  border: 1px solid #e8eaec;
  border-radius: 10px;
  padding: 14px 16px;
}
.sd-panel--wide { grid-column: span 1; }
.sd-panel-title { font-size: 13px; font-weight: 700; color: #334155; margin: 0 0 10px; }
.sd-chan-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.sd-chan-row:last-child { border-bottom: none; }
.sd-chan-label { flex: 1; color: #334155; }
.sd-chan-rev { font-weight: 700; color: #1a1a1a; }
.sd-chan-pct { font-size: 11px; color: #94a3b8; min-width: 36px; text-align: right; }
.sd-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sd-table th { text-align: left; font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; padding: 0 6px 8px; border-bottom: 1px solid #f1f5f9; }
.sd-table td { padding: 7px 6px; border-bottom: 1px solid #f8fafc; color: #334155; }
.sd-table tr:last-child td { border-bottom: none; }
.sd-r { text-align: right; }
.sd-muted { color: #94a3b8; }
.sd-pct-bar {
  display: inline-block;
  font-size: 11px;
  background: linear-gradient(90deg, rgba(255,196,0,.35) var(--pct, 0%), transparent var(--pct, 0%));
  padding: 2px 5px;
  border-radius: 3px;
  min-width: 40px;
  text-align: right;
}

/* ════ Product Analytics ABC Panel ═══════════════════════ */
.pa-badge { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:5px; font-size:11px; font-weight:900; flex-shrink:0; }
.pa-badge--a { background:#fef9c3; color:#854d0e; border:1px solid #fde047; }
.pa-badge--b { background:#e0e7ff; color:#3730a3; border:1px solid #a5b4fc; }
.pa-badge--c { background:#fee2e2; color:#991b1b; border:1px solid #fca5a5; }
.pa-legend { display:flex; align-items:center; gap:6px; font-size:12px; color:#64748b; margin-bottom:12px; flex-wrap:wrap; }
.pa-pareto-wrap { margin-bottom:16px; }
.pa-pareto-label { font-size:11px; color:#94a3b8; margin:0 0 6px; }
.pa-pareto-svg { width:100%; height:100px; display:block; overflow:visible; }
.pa-table-wrap { overflow-x:auto; }
.pa-table { width:100%; }
.pa-th-btn { background:none; border:none; cursor:pointer; font-size:11px; font-weight:700; color:#94a3b8; text-transform:uppercase; padding:0; white-space:nowrap; }
.pa-th-btn:hover, .pa-th-btn.active { color:#334155; }
.pa-dead-panel { margin-top:20px; background:#fff; border:1px solid #e8eaec; border-radius:10px; padding:14px 16px; }
.pa-dead-list { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.pa-dead-chip { font-size:12px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:5px; padding:3px 10px; color:#64748b; }
/* POS stock dead-stock hint */
.pos-stock-abc-hint { font-size:11px; color:#dc2626; font-weight:600; margin-top:2px; }
