:root {
  --ink: #1a1523;
  --muted: #6b6577;
  --line: #ece8f1;
  --bg: #ffffff;
  --surface: #faf8fd;
  --purple: #6b21a8;
  --purple-bright: #7c3aed;
  --purple-soft: #f3e8ff;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --radius: 14px;
  --max: 1080px;
  --font: "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--purple); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.th { color: var(--muted); font-weight: 400; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.wordmark { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--purple); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; text-decoration: none;
  padding: 10px 18px; background: var(--purple); color: #fff;
  transition: background 0.15s;
}
.btn:hover { background: var(--purple-bright); }
.btn:disabled { background: #cfc8d8; cursor: not-allowed; }
.btn-ghost { background: var(--purple-soft); color: var(--purple); }
.btn-ghost:hover { background: #e9d5ff; }
.btn-sm { padding: 7px 14px; font-size: 14px; }

/* Hero */
.hero { padding-block: 40px 24px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--purple); background: var(--purple-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(30px, 6vw, 50px); line-height: 1.12; margin: 0 0 6px; letter-spacing: -0.02em; }
.hero h1 .off { color: var(--purple); }
.hero .h1-th { font-size: clamp(20px, 3.6vw, 28px); font-weight: 600; color: var(--muted); margin: 0 0 18px; }
.hero p.lede { max-width: 620px; color: var(--muted); margin: 0 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }

/* Feature (Seki) */
.feature {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  margin: 12px 0 8px;
}
.feature .photo { aspect-ratio: 16 / 10; }
.feature .body { padding: 22px; }
.feature .tag { font-size: 13px; font-weight: 600; color: var(--purple); text-transform: uppercase; letter-spacing: 0.06em; }
.feature h2 { font-size: 26px; margin: 4px 0 2px; }
.feature .sub { color: var(--muted); margin: 0 0 16px; }
.feature .big-off {
  display: inline-block; background: var(--purple); color: #fff;
  font-size: 34px; font-weight: 700; line-height: 1; padding: 10px 14px; border-radius: 12px;
}
.feature .prices { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 6px; }
.feature .now { font-size: 34px; font-weight: 700; }
.feature .was { font-size: 18px; }
@media (min-width: 760px) {
  .feature { grid-template-columns: 1.1fr 1fr; }
  .feature .photo { aspect-ratio: auto; min-height: 320px; }
  .feature .body { padding: 32px; align-self: center; }
}

/* Brand nav */
.brand-nav {
  position: sticky; top: 60px; z-index: 10; background: var(--bg);
  border-bottom: 1px solid var(--line);
  margin-top: 32px;
}
.brand-nav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.brand-nav a {
  flex: none; font-size: 14px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.brand-nav a:hover { border-color: var(--purple); color: var(--purple); }

/* Product grid */
.brand-section { padding: 28px 0 8px; scroll-margin-top: 120px; }
.brand-section h2 { font-size: 22px; margin: 0 0 14px; display: flex; align-items: baseline; gap: 10px; }
.brand-section h2 small { font-size: 14px; color: var(--muted); font-weight: 400; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg);
}
.card .photo { aspect-ratio: 1 / 1; position: relative; }
.photo {
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: #c4b5d9; font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-align: center;
  position: relative;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.off-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--purple); color: #fff;
  font-weight: 700; font-size: 18px; line-height: 1;
  padding: 7px 9px; border-radius: 9px;
}
.event-badge {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(255, 255, 255, 0.95); color: var(--purple);
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
  border: 1px solid #e9d5ff;
}
.card .body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: 15px; line-height: 1.3; margin: 0; font-weight: 600; }
.card .variant { font-size: 13px; color: var(--muted); }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; }
.now { font-weight: 700; font-size: 18px; color: var(--ink); }
.was { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.soon { font-size: 14px; font-weight: 600; color: var(--purple); }
.retail-note { font-size: 13px; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.pill { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.pill.exp { color: var(--ink); }
.pill.exp-tbc { background: var(--amber-soft); color: var(--amber); border-color: #fde68a; }
.card .btn { margin-top: auto; width: 100%; }
.card.sold-out { opacity: 0.55; }
.card.sold-out .off-badge { background: var(--muted); }

/* Steps */
.steps-section { padding-block: 48px 8px; }
.section-title { font-size: 26px; margin: 0 0 4px; letter-spacing: -0.01em; }
.section-sub { color: var(--muted); margin: 0 0 20px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: inline-flex; width: 28px; height: 28px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: var(--purple-soft); color: var(--purple); font-weight: 700; margin-bottom: 8px;
}
.steps strong { display: block; }
.steps span { font-size: 14px; color: var(--muted); }

/* Order form */
.order-section { padding-block: 48px; scroll-margin-top: 70px; }
.order-box { border: 1px solid var(--line); border-radius: 20px; padding: 20px; background: var(--surface); }
@media (min-width: 760px) { .order-box { padding: 32px; } }
.order-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .order-grid { grid-template-columns: 1.15fr 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend, .label { font-weight: 600; font-size: 15px; margin-bottom: 8px; display: block; padding: 0; }
input[type="text"], textarea {
  width: 100%; font: inherit; color: var(--ink);
  border: 1px solid #ddd6e7; border-radius: 10px; padding: 11px 12px; background: #fff;
}
input[type="text"]:focus, textarea:focus { outline: 2px solid var(--purple-bright); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 80px; resize: vertical; }
.field { margin-bottom: 14px; }
.choice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: block; border: 1px solid #ddd6e7; border-radius: 10px; padding: 9px 14px;
  background: #fff; cursor: pointer; font-size: 15px;
}
.choice input:checked + span { border-color: var(--purple); background: var(--purple-soft); color: var(--purple); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--purple-bright); outline-offset: 1px; }

.picker details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 8px; }
.picker summary { cursor: pointer; padding: 11px 14px; font-weight: 600; list-style-position: inside; }
.picker summary .count { color: var(--purple); font-weight: 600; margin-left: 6px; }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); }
.pick-row .info { flex: 1; min-width: 0; }
.pick-row .info b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.pick-row .info small { color: var(--muted); font-size: 12px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #ddd6e7; border-radius: 999px; overflow: hidden; flex: none; }
.stepper button { border: 0; background: #fff; width: 32px; height: 32px; font-size: 18px; cursor: pointer; color: var(--purple); }
.stepper button:disabled { color: #cfc8d8; cursor: default; }
.stepper output { min-width: 24px; text-align: center; font-weight: 600; font-size: 14px; }

.summary { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 14px; margin-bottom: 18px; }
.summary ul { list-style: none; padding: 0; margin: 0 0 8px; font-size: 14px; }
.summary li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.summary .empty { color: var(--muted); font-size: 14px; }
.summary .total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; }
.fine { font-size: 13px; color: var(--muted); }
.hidden-field { display: none; }
.thanks { text-align: center; padding: 32px 8px; }
.thanks h3 { font-size: 24px; margin: 0 0 8px; }

/* Sticky order bar (mobile) */
.order-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 10px 10px 16px;
  box-shadow: 0 8px 30px rgba(26, 21, 35, 0.25);
}
.order-bar.on { display: flex; }
.order-bar span { font-size: 14px; }
@media (min-width: 900px) { .order-bar { left: auto; width: 360px; right: 24px; bottom: 24px; } }

/* Good to know + footer */
.faq { padding-block: 8px 40px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p, .faq ul { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 100px; font-size: 14px; color: var(--muted); }
.site-foot .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }

/* Listing photos are white-background packshots: show the whole product */
.card .photo:has(img) { background: #fff; }
.card .photo img { object-fit: contain; padding: 6px; }

/* Clickable photos + count badge */
button.photo { border: 0; padding: 0; margin: 0; width: 100%; font: inherit; cursor: zoom-in; }
button.photo:focus-visible { outline: 3px solid var(--purple-bright); outline-offset: -3px; }
.photo-count {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(26, 21, 35, 0.75); color: #fff;
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
}
.feature button.photo img { object-fit: cover; }

/* Photo viewer */
.viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(15, 12, 20, 0.97); color: #fff;
}
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: rgba(0, 0, 0, 0.6); }
.viewer-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.viewer-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-count { font-size: 14px; opacity: 0.75; }
.viewer-close { border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.viewer-track {
  flex: 1; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain;
}
.viewer-track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: center; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 16px 24px; min-width: 0;
}
.slide img { max-width: 100%; max-height: calc(100dvh - 130px); object-fit: contain; border-radius: 10px; background: #fff; }
.slide figcaption { margin-top: 10px; font-size: 13px; opacity: 0.8; }
.viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.15); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
  display: none;
}
.viewer-nav:disabled { opacity: 0.25; cursor: default; }
.viewer-nav.prev { left: 16px; }
.viewer-nav.next { right: 16px; }
@media (min-width: 760px) { .viewer:not(.single) .viewer-nav { display: block; } }
