/* ---------- Base ---------- */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --ink: #21262d;
  --ink-soft: #4b5563;
  --muted: #626b78;
  --border: #e8e2d8;
  --line-green: #04863b;
  --line-green-dark: #03712f;
  --line-green-soft: #e8f9ef;
  --terracotta: #a9532f;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(33, 38, 45, .06);
  --shadow-md: 0 12px 30px -12px rgba(33, 38, 45, .18);
  --shadow-lg: 0 30px 60px -30px rgba(33, 38, 45, .35);
  --header-h: 72px;
  --font: "Segoe UI", "Leelawadee UI", "Noto Sans Thai", "Sarabun", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; }
p { margin: 0 0 1em; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.section { padding: 84px 0; }
.section-alt { background: #f5efe6; }

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
  outline: 3px solid rgba(6, 199, 85, .35);
  outline-offset: 2px;
}

.btn-line {
  background: var(--line-green);
  color: #fff;
  box-shadow: 0 10px 20px -10px rgba(6, 199, 85, .9);
}
.btn-line:hover { background: var(--line-green-dark); }

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: #000; }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn-ghost:hover { background: #fff; border-color: #d6cdbf; }

.btn-outline {
  background: #fff;
  border-color: var(--border);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--terracotta); color: var(--terracotta); }

.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 243, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 6px 20px -18px rgba(33, 38, 45, .5);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  margin-right: auto;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ink);
  color: #f6d8b8;
}
.logo-mark svg { width: 22px; height: 22px; }

.site-nav {
  display: flex;
  gap: 28px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.site-nav a {
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-color: var(--terracotta); }
.site-nav a[aria-current="page"] { color: var(--ink); border-color: var(--terracotta); }

.nav-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover { border-color: #d6cdbf; }
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; overflow: hidden; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
}

.hero-copy .lead {
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: .87rem;
  color: var(--muted);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-green);
  box-shadow: 0 0 0 4px rgba(6, 199, 85, .15);
}

.hero-art {
  position: relative;
  min-height: 380px;
}

.hero-card {
  position: absolute;
  width: 240px;
  padding: 14px;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.hero-card-a { top: 12px; left: 8%; transform: rotate(-5deg); z-index: 2; }
.hero-card-b { bottom: 8px; right: 4%; transform: rotate(4deg); }

.hero-card-img {
  height: 170px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .55), transparent 45%),
    linear-gradient(140deg, #e7c9a9, #c98d63 60%, #9c6242);
}
.hero-card-img.alt {
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, .5), transparent 45%),
    linear-gradient(140deg, #cfd8c9, #8ba585 60%, #5d7559);
}
.hero-card-line {
  height: 9px;
  margin-top: 12px;
  border-radius: 99px;
  background: #efe9df;
}
.hero-card-line.short { width: 55%; }

.hero-badge {
  position: absolute;
  z-index: 3;
  bottom: 44px;
  left: 0;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-md);
  transform: rotate(-8deg);
}
.hero-badge strong { display: block; font-size: 1.55rem; line-height: 1; }
.hero-badge span { font-size: .7rem; letter-spacing: .04em; opacity: .8; }

/* ---------- Section head ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.section-head.center {
  display: block;
  text-align: center;
  margin-bottom: 42px;
}
.section-sub { margin: 0; color: var(--muted); font-size: .95rem; }
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: card-in .35s ease both;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 12px 12px 0;
  border-radius: 13px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #faf6f0, #f1e9de);
  cursor: pointer;
  outline-offset: 3px;
}
.card-media:focus-visible { outline: 3px solid rgba(6, 199, 85, .4); }

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  border: 2px dashed #d9cdbb;
  border-radius: 13px;
  color: #6f6353;
  text-align: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.media-empty svg {
  width: 30px;
  height: 30px;
  margin-bottom: 2px;
}
.media-empty strong {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.media-empty small { font-size: .76rem; }

.card-media:hover .media-empty,
.card-media.dragover .media-empty {
  background: var(--line-green-soft);
  border-color: var(--line-green);
  color: var(--line-green-dark);
}

.card-media.has-image .media-empty { display: none; }

.media-change {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: none;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 24, 28, .72);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.card-media.has-image .media-change { display: inline-flex; }
.card-media.has-image:hover .media-change { background: rgba(20, 24, 28, .88); }

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 4px 10px -4px rgba(201, 111, 74, .8);
}

.card-del {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--ink-soft);
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease, background .2s ease, color .2s ease;
}
.card:hover .card-del,
.card-del:focus-visible { opacity: 1; }
.card-del:hover { background: #fff; color: #c0392b; }
.card-del svg { width: 15px; height: 15px; }

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}
.card-body h3 {
  margin: 0 0 4px;
  font-size: 1.03rem;
  font-weight: 700;
}
.card-desc {
  margin: 0 0 16px;
  font-size: .86rem;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.66em;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.price {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.price small { font-size: .78rem; font-weight: 600; color: var(--muted); }

.empty-state {
  grid-column: 1 / -1;
  padding: 56px 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}
.empty-state strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid #e7ddcd;
  border-radius: var(--radius);
}
.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* ---------- CTA panel ---------- */
.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 48px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 85% 15%, rgba(6, 199, 85, .16), transparent 45%),
    var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-copy h2 { margin-bottom: 8px; }
.cta-copy p { margin: 0; color: rgba(255, 255, 255, .68); font-size: .95rem; }
.cta-action { text-align: center; flex: none; }
.cta-id { margin: 10px 0 0; font-size: .82rem; color: rgba(255, 255, 255, .6); }
.cta-id strong { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  font-size: .85rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-inner p { margin: 0; }
.footer-link { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.footer-link:hover { color: var(--line-green-dark); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: .85rem;
}
.footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}
.footer-nav a:hover { color: var(--line-green-dark); }

/* ---------- Page hero (หน้าภายใน) ---------- */
.page-hero {
  padding: 56px 0 44px;
  background:
    radial-gradient(circle at 82% 0%, rgba(169, 83, 47, .1), transparent 42%),
    linear-gradient(#fbf8f3, #f7f1e7);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  margin: 0 0 16px;
  font-size: .82rem;
  color: var(--muted);
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 12px;
}
.page-hero p.page-sub {
  max-width: 62ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ---------- Promotions ---------- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.promo-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--terracotta), #dfa273);
}
.promo-card.featured {
  border-color: #e3c4ae;
  box-shadow: var(--shadow-md);
}
.promo-kicker {
  margin: 0 0 8px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.promo-card h2 {
  margin: 0 0 8px;
  font-size: 1.65rem;
}
.promo-card .promo-desc {
  margin: 0;
  font-size: .92rem;
  color: var(--ink-soft);
}
.promo-code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.promo-code-label { font-size: .78rem; color: var(--muted); }
.promo-code {
  padding: 7px 13px;
  border: 2px dashed #dcc7b0;
  border-radius: 10px;
  background: #fdf8f1;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.promo-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  font-size: .79rem;
  color: var(--muted);
}
.promo-meta svg { width: 15px; height: 15px; flex: none; }
.promo-card .btn { margin-top: 14px; align-self: flex-start; }

.note-panel {
  margin-top: 34px;
  padding: 22px 26px;
  background: #f5efe6;
  border: 1px solid #e7ddcd;
  border-radius: var(--radius);
  font-size: .88rem;
  color: var(--ink-soft);
}
.note-panel strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: .95rem; }
.note-panel ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

/* ---------- Reels / คลิปรีล ---------- */
.reel-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.reel-link-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.reel-link-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
}
.reel-link-icon svg { width: 23px; height: 23px; }
.reel-kicker {
  margin: 0 0 6px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.reel-link-card h2 { margin: 0 0 6px; font-size: 1.35rem; }
.reel-link-card p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.reel-link-card .btn { margin-top: auto; align-self: flex-start; }

.reel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}
.reel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.reel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.reel-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}
.reel-card-media {
  position: relative;
  aspect-ratio: 9 / 16;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .16), transparent 45%),
    linear-gradient(145deg, #2b3138, #12161a);
  overflow: hidden;
}
.reel-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.reel-card:hover .reel-card-media img { transform: scale(1.04); }
.reel-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  pointer-events: none;
}
.reel-play span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding-left: 3px;
  border-radius: 50%;
  background: rgba(20, 24, 28, .62);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .6);
  transition: background .2s ease, transform .2s ease;
}
.reel-card:hover .reel-play span { background: rgba(20, 24, 28, .82); transform: scale(1.06); }
.reel-play svg { width: 24px; height: 24px; }
.reel-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(251, 248, 243, .94);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 700;
}
.reel-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
}
.reel-card-body h3 { margin: 0; font-size: 1rem; }
.reel-card-body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .85rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.reel-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--line-green-dark);
  font-size: .82rem;
  font-weight: 700;
}
.reel-more svg { width: 14px; height: 14px; }

.reel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  border: 2px dashed #d9cdbb;
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}
.reel-empty-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--line-green-soft);
  color: var(--line-green-dark);
}
.reel-empty-icon svg { width: 28px; height: 28px; }
.reel-empty h3 { margin: 0; font-size: 1.2rem; }
.reel-empty p {
  max-width: 52ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: .92rem;
}
.reel-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 52px;
}
.about-copy p { color: var(--ink-soft); }
.about-copy h2 { margin-bottom: 14px; }
.about-art {
  position: relative;
  min-height: 360px;
}
.about-photo {
  position: absolute;
  inset: 0 0 26px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, .5), transparent 42%),
    linear-gradient(145deg, #e9cfb4, #c9936b 55%, #96603f);
  box-shadow: var(--shadow-lg);
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 18px;
}
.about-badge {
  position: absolute;
  right: 18px;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-badge strong { display: block; font-size: 1.7rem; line-height: 1; }
.about-badge span { font-size: .68rem; opacity: .85; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.value-card,
.contact-card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.value-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--line-green-soft);
  color: var(--line-green-dark);
}
.value-icon svg { width: 22px; height: 22px; }
.value-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.value-card p { margin: 0; font-size: .89rem; color: var(--muted); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.stat {
  padding: 22px 16px;
  background: #f5efe6;
  border: 1px solid #e7ddcd;
  border-radius: 16px;
  text-align: center;
}
.stat strong { display: block; font-size: 1.75rem; line-height: 1.2; letter-spacing: -.02em; }
.stat span { font-size: .82rem; color: var(--ink-soft); }

.stats-band {
  margin-top: 46px;
}
.stats-band .stat {
  padding: 28px 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.stats-band .stat strong {
  font-size: 2.1rem;
  color: var(--ink);
}

/* ---------- Contact cards ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.contact-card {
  display: flex;
  flex-direction: column;
}
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p { margin: 0 0 18px; font-size: .89rem; color: var(--muted); }
.contact-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.contact-card .value-icon { color: var(--line-green-dark); }

/* ---------- Quote panel ---------- */
.quote-panel {
  padding: 48px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 15% 0%, rgba(6, 199, 85, .2), transparent 45%),
    var(--ink);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.quote-panel .eyebrow { color: #e8b48f; margin-bottom: 12px; }
.quote-panel h2 {
  max-width: 24ch;
  margin-inline: auto;
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}
.quote-panel p {
  max-width: 62ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, .78);
  font-size: .95rem;
}
.quote-panel .signature {
  margin: 20px 0 0;
  color: #f0c9a8;
  font-weight: 700;
  letter-spacing: .02em;
}

/* ---------- Mobile sticky bar ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 248, 243, .92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}

/* ---------- Dialog ---------- */
.dialog {
  width: min(480px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  color: var(--ink);
}
.dialog::backdrop {
  background: rgba(22, 26, 30, .5);
  backdrop-filter: blur(3px);
}
.dialog[open] { animation: dialog-in .22s ease both; }

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dialog-form { padding: 24px; }
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.dialog-head h2 { margin: 0; font-size: 1.25rem; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f4efe7;
  color: var(--ink-soft);
  cursor: pointer;
}
.icon-btn:hover { background: #ebe3d6; }
.icon-btn svg { width: 17px; height: 17px; }

.field { display: block; margin-bottom: 14px; }
.field > span {
  display: block;
  margin-bottom: 6px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fdfcf9;
  font-size: .93rem;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--line-green);
  box-shadow: 0 0 0 3px rgba(6, 199, 85, .16);
  background: #fff;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.file-slot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px dashed #d9cdbb;
  border-radius: 12px;
  background: #fbf7f0;
  color: #6f6353;
  cursor: pointer;
}
.file-slot:focus-visible {
  outline: 3px solid rgba(6, 199, 85, .35);
  outline-offset: 2px;
}
.file-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.file-slot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: .84rem;
  font-weight: 600;
}
.file-slot-empty svg { width: 26px; height: 26px; }
.file-slot.dragover { border-color: var(--line-green); background: var(--line-green-soft); }

.dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(33, 38, 45, .94);
  color: #fff;
  font-size: .87rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Admin / Supabase ---------- */
.admin-btn .icon { width: 15px; height: 15px; }

.form-error {
  margin: 0 0 4px;
  padding: 10px 13px;
  border-radius: 12px;
  background: #fdecea;
  color: #8a1f11;
  font-size: .85rem;
  line-height: 1.5;
}

.card-media.is-static { cursor: default; }
.card-media.is-static:hover .media-empty {
  background: linear-gradient(135deg, #faf6f0, #f1e9de);
  border-color: #d9cdbb;
  color: #6f6353;
}

/* ปุ่มแก้ไขแสดงเฉพาะผู้ดูแล (โหมด Supabase) */
body:not(.is-admin) .admin-only { display: none !important; }

/* ---------- Responsive ---------- */
@media (min-width: 721px) and (max-width: 900px) {
  .nav-optional { display: none; }
}

@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { min-height: 320px; max-width: 460px; margin-inline: auto; width: 100%; }
  .hero-card { width: 210px; }
  .hero-card-img { height: 150px; }
  .hero-badge { width: 88px; height: 88px; bottom: 24px; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .cta-panel { flex-direction: column; align-items: flex-start; padding: 34px 28px; }
  .cta-action { width: 100%; text-align: left; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-art { width: 100%; max-width: 460px; margin-inline: auto; }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 6px 20px 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px -24px rgba(33, 38, 45, .55);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 13px 2px;
    border-bottom: 1px solid #eee6da;
  }
  .site-nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .admin-btn { padding-inline: 10px; }
  .admin-btn .admin-label { display: none; }
  .mobile-bar { display: block; }
  body { padding-bottom: 76px; }
  .toast { bottom: 92px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
  .section-head.center { text-align: left; }
  .page-hero { padding: 40px 0 34px; }
  .quote-panel { padding: 34px 22px; }
}

@media (max-width: 480px) {
  .wrap { width: calc(100% - 28px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .dialog-form { padding: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (hover: none) {
  .card-del { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
