:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --mute: #6e6e73;
  --line: #d2d2d7;
  --blue: #0066cc;
  --blue-fill: #0071e3;
  --blue-hover: #0077ed;
  --nav-h: 44px;
  --font: Inter, "IBM Plex Sans Thai", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pad: 24px;
  --page: 1024px;
  --radius: 28px;
  --radius-sm: 12px;
  --radius-pill: 980px;
  --shadow: 2px 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lift: 2px 8px 20px rgba(0, 0, 0, 0.12);
  --t: 250ms;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --display: clamp(2.5rem, 6vw, 5rem);
  --section: clamp(1.5rem, 3vw, 2.5rem);
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("/assets/fonts/IBMPlexSansThai-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("/assets/fonts/IBMPlexSansThai-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: 0; text-wrap: balance; }
.nowrap { white-space: nowrap; }
.skip {
  position: absolute; left: 8px; top: 0; z-index: 80;
  transform: translateY(-120%);
  background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px;
}
.skip:focus { transform: none; }
.wrap {
  width: min(100% - 48px, var(--page));
  margin-inline: auto;
}
#styles, #price, #backoffice, #process, #faq, #contact, #categories { scroll-margin-top: 64px; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.header-inner {
  width: min(100% - 32px, 1024px);
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .mark { width: 16px; height: 16px; display: block; }
.desk-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  margin-right: 8px;
}
.desk-nav a {
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  opacity: 0.88;
}
.desk-nav a:hover { opacity: 1; text-decoration: none; }
.header-cta {
  font-size: 12px;
  color: #fff;
  background: var(--blue-fill);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  line-height: 1.3;
  white-space: nowrap;
}
.header-cta:hover { background: var(--blue-hover); text-decoration: none; color: #fff; }
.burger {
  display: none;
  width: 32px; height: 32px;
  border: 0; background: transparent; padding: 0;
  cursor: pointer;
  margin-left: auto;
}
.burger-lines, .burger-lines span { display: block; }
.burger-lines { width: 16px; margin: 0 auto; }
.burger-lines span {
  height: 1px; background: var(--ink); margin: 5px 0;
}

/* mobile menu */
.menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 40;
  background: #fbfbfd;
  padding: 20px 24px 48px;
  overflow: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 280ms var(--ease);
}
.menu.is-open { clip-path: inset(0); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(1.6rem, 7vw, 2rem);
  line-height: 1.35;
  padding: 10px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.menu-foot { margin-top: 24px; color: var(--mute); font-size: 0.95rem; }

/* hero */
.hero {
  padding: 92px 0 20px;
}
.hero h1 {
  margin: 0;
  font-size: var(--display);
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: 0;
  max-width: none;
}
.hero-on { color: var(--ink); display: block; }
.hero-mute { color: var(--mute); }
.hero-lead {
  margin: 22px 0 0;
  max-width: 36rem;
  color: var(--mute);
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 18px;
}
.hero-links a { font-size: 0.95rem; }

/* categories */
.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 28px 0 48px;
  margin-inline: auto;
  width: min(100%, calc(var(--page) + 48px));
  padding-inline: max(24px, calc((100% - var(--page)) / 2));
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 136px;
  scroll-snap-align: start;
  text-align: center;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  padding: 4px 0 8px;
}
.cat:hover { text-decoration: none; color: var(--ink); }
.cat-icon {
  width: 96px; height: 96px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.cat-icon svg {
  display: block;
  width: 38px; height: 38px;
  margin: 0;
  stroke: var(--ink); fill: none; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.cat > span:not(.cat-icon) { display: block; }

/* shelves */
.shelf-block { padding: 20px 0 36px; }
.shelf-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.shelf-head h2 {
  margin: 0;
  font-size: var(--section);
  line-height: 1.3;
  font-weight: 600;
  max-width: 14em;
}
.shelf-head .on { color: var(--ink); }
.shelf-head .mute { color: var(--mute); font-weight: 600; }
.shelf-controls { display: flex; gap: 10px; flex-shrink: 0; }
.shelf-btn {
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: #e8e8ed;
  color: var(--ink);
  cursor: pointer;
  display: grid; place-items: center;
  padding: 0;
}
.shelf-btn:hover { background: #dcdce0; }
.shelf-btn:disabled { opacity: 0.4; cursor: default; }
.shelf-btn svg { width: 10px; height: 10px; }
.shelf {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(24px, calc((100% - var(--page)) / 2));
  padding: 8px max(24px, calc((100vw - var(--page)) / 2)) 36px;
  margin-inline: calc(50% - 50vw);
  width: 100vw;
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }

.product-card, .info-card, .step-card {
  flex: 0 0 400px;
  min-height: 500px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
a.product-card:hover, a.info-card:hover { text-decoration: none; color: inherit; }
@media (hover: hover) and (pointer: fine) {
  .product-card:hover, .info-card:hover, .step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
  }
}
.card-body { padding: 28px 28px 16px; }
.card-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--mute);
}
.card-body h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 600;
}
.card-body p { margin: 8px 0 0; color: var(--mute); }
.card-price {
  margin-top: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.card-visual {
  margin-top: auto;
  padding: 0;
}
.card-visual img {
  width: 100%;
  height: 268px;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  background: #111;
}
.card-go {
  position: absolute;
  right: 18px; bottom: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  border: 0;
}
.card-go svg { width: 12px; height: 12px; }
.card-soon {
  margin-top: auto;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--mute);
  font-weight: 600;
  background: #f5f5f7;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 0 0;
  align-items: center;
}
.card-actions .linkish, .card-actions a { font-size: 0.95rem; }
.card-actions button.linkish, button.linkish {
  border: 0; background: none; padding: 0; color: var(--blue); cursor: pointer;
}
button.linkish:hover { text-decoration: underline; text-underline-offset: 3px; }

.info-card { min-height: 420px; }
.info-card .card-body { flex: 1; }
.info-card .card-visual img { height: 220px; background: #111; }
.price-hero {
  font-size: clamp(2.8rem, 6vw, 4rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  margin: 8px 0 16px;
  color: var(--ink);
}
.includes {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--mute);
}
.includes li { padding: 6px 0 6px 14px; position: relative; }
.includes li::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--mute);
  position: absolute; left: 0; top: 0.85em;
}
.includes strong { color: var(--ink); font-weight: 600; }

.step-card {
  flex: 0 0 300px;
  min-height: 280px;
  padding: 28px;
}
.step-card .num { font-size: 12px; color: var(--mute); }
.step-card h3 { margin: 10px 0 8px; font-size: 1.25rem; line-height: 1.3; }
.step-card p { margin: 0; color: var(--mute); }

/* faq */
.faq { padding: 28px 0 64px; }
.faq h2 { font-size: var(--section); line-height: 1.3; margin: 0 0 8px; }
.faq .lede { color: var(--mute); margin: 0 0 28px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  font-weight: 600;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute; right: 4px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-list p { margin: 0 0 18px; color: var(--mute); max-width: 42rem; }

/* form */
.contact { padding: 12px 0 96px; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact h2 { font-size: var(--section); line-height: 1.3; margin: 0 0 8px; }
.contact .lede, .placeholder { color: var(--mute); }
.placeholder { margin: 10px 0 0; }
.order-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.form-note { margin: 0 0 16px; color: var(--mute); }
.form-status { margin: 0 0 12px; }
.form-status.is-ok { color: #1e7a3a; }
.form-status.is-err { color: #b00020; }
.order-card label { display: block; margin: 14px 0 6px; font-size: 0.95rem; }
.order-card input, .order-card select, .order-card textarea {
  width: 100%;
  border: 0;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 44px;
}
.order-card textarea { min-height: 120px; resize: vertical; }
.order-card input:focus-visible,
.order-card select:focus-visible,
.order-card textarea:focus-visible,
.shelf-btn:focus-visible,
.burger:focus-visible,
.btn:focus-visible,
button.linkish:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue-fill);
  outline-offset: 3px;
}
.turnstile-slot { margin: 18px 0; min-height: 65px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  font-weight: 400;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-solid { background: var(--blue-fill); color: #fff; }
.btn-solid:hover { background: var(--blue-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); padding-inline: 0; min-height: auto; }
.order-card .btn { margin-top: 8px; }

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--mute);
  font-size: 0.85rem;
}
.footer-inner {
  width: min(100% - 48px, var(--page));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-wordmark {
  margin: 0 0 4px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* 404 */
.error-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  padding: 48px 24px;
  text-align: left;
}
.error-page h1 { font-size: var(--display); line-height: 1.28; margin: 0 0 12px; }

@media (max-width: 860px) {
  .desk-nav, .header-cta { display: none; }
  .burger { display: block; }
  .header-inner { width: min(100% - 20px, var(--page)); }
  .hero { padding: 44px 0 12px; }
  .hero h1 { max-width: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-card, .info-card { flex-basis: min(400px, 78vw); }
  .step-card { flex-basis: min(300px, 74vw); }
  .cat { flex-basis: 112px; }
  .cat-icon { width: 80px; height: 80px; }
}
@media (max-width: 520px) {
  .wrap, .footer-inner { width: min(100% - 32px, var(--page)); }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .card-body, .step-card { padding: 22px 20px 14px; }
  .order-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .product-card:hover, .info-card:hover, .step-card:hover {
    transform: none;
  }
  .menu { clip-path: none; }
}

/* inner landing pages */
.for-shops { padding: 28px 0 8px; }
.for-shops h2 { font-size: var(--section); margin: 0 0 8px; }
.for-shops p { margin: 0; color: var(--mute); max-width: 40rem; }
.for-shops-list {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.for-shops-list a {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.for-shops-list a:hover { text-decoration: none; background: #fff; }
.page-hero { padding: 48px 0 8px; }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.28;
  margin: 0 0 16px;
  max-width: 16ch;
}
.page-hero .hero-lead { max-width: 40rem; }
.page-cta { margin: 24px 0 8px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.prose { padding: 8px 0 56px; max-width: 40rem; }
.prose h2 { font-size: var(--section); margin: 2.1rem 0 0.55rem; }
.prose h3 { font-size: 1.15rem; margin: 1.4rem 0 0.4rem; }
.prose p { margin: 0 0 0.9rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0 0 0.4rem; }
.prose .note { color: var(--mute); }
.page-sib { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.page-sib h2 { margin-top: 0; }
.page-sib ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0 0; }
.footer-links a { color: var(--mute); }
