/* TERASU — Minimalist Radiance & Clean Science
   ขาวเป็นหลัก แดงแบรนด์จากโลโก้ ทองชมพูจากฝาขวดเป็นสีเน้น */
:root {
  --paper: #ffffff;
  --mist: #faf6f4;
  --blush: #f4e9e5;
  --line: #ebe1dd;
  --line-strong: #d9cbc6;
  --ink: #1d1717;
  --ink-2: #554b4a;
  --muted: #6b605f;
  --red: #d6141c;
  --red-ink: #ad0f17;
  --red-soft: #fdeceb;
  --rose: #9a6857;
  --rose-light: #e8cfc5;
  --ok: #1d7047;
  --ok-soft: #e8f4ee;
  --warn: #8a4f00;
  --warn-soft: #fff1dc;
  --line-green: #06c755;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(40, 20, 18, 0.04), 0 4px 16px rgba(40, 20, 18, 0.05);
  --shadow-2: 0 2px 4px rgba(40, 20, 18, 0.05), 0 12px 32px rgba(40, 20, 18, 0.09);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: 16px;
  --font: 'IBM Plex Sans Thai', 'Noto Sans Thai', sans-serif;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--paper); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 0.5em; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* ---------- ไอคอน ---------- */
.ic, .ic-brand { width: 20px; height: 20px; flex: none; }

/* ---------- ตัวอักษร ---------- */
.h1 { font-size: clamp(30px, 2.6vw + 20px, 52px); font-weight: 700; }
.h2 { font-size: clamp(26px, 1.8vw + 18px, 40px); font-weight: 600; }
.h4 { font-size: 19px; font-weight: 600; }
.lead { font-size: clamp(17px, 0.4vw + 15px, 19px); color: var(--ink-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; color: var(--rose); margin-bottom: 8px; }
.eyebrow::before { content: ''; width: 20px; height: 1px; background: currentColor; }
.prose p { color: var(--ink-2); }

/* ---------- ปุ่ม ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease); }
.btn .ic { width: 20px; height: 20px; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-ink); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line .ic-brand { width: 22px; height: 22px; }
.btn-disabled, .btn[disabled] { background: #e7e2e1; color: #6f6766; border-color: transparent; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 15px; }
.btn-sm .ic { width: 16px; height: 16px; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-row.center { justify-content: center; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; color: var(--ink); position: relative; }
.icon-btn:hover { background: var(--mist); }

/* ---------- ส่วนหัว ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 8px; height: 68px; }
.logo { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.logo img { height: 54px; width: auto; }
.site-nav { display: none; }
.site-nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 16px; color: var(--ink-2); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); background: var(--mist); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 14px; font-weight: 700; line-height: 20px; text-align: center; }
@media (max-width: 899px) {
  .site-nav.is-open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; box-shadow: var(--shadow-2); }
  .site-nav.is-open a { padding: 14px 8px; font-size: 18px; border-radius: 8px; }
}
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .site-nav { display: flex; gap: 4px; margin-right: 12px; }
  .header-in { height: 88px; }
  .logo img { height: 70px; }
}

/* ---------- แบนเนอร์ ----------
   มือถือ: รูปด้านบน (ไม่เกิน 48svh) ข้อความอยู่ใต้รูป ไม่ทับสินค้า
   จอใหญ่: ข้อความลอยทางซ้ายบนพื้นที่ว่างของรูป */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero-track { display: grid; }
.hero-slide { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity 900ms var(--ease), visibility 0s linear 900ms; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 900ms var(--ease); }
.hero-media { position: relative; height: min(48svh, 440px); min-height: 260px; overflow: hidden; background: #ececec; }
.hero-img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; will-change: transform; scale: var(--mz, 1); transform-origin: var(--fx, 50%) var(--fy, 50%); }
.hero-copy { padding-top: 20px; padding-bottom: 72px; }
.hero-copy-in { max-width: 560px; }
.hero-title { font-size: clamp(28px, 3.2vw + 16px, 58px); font-weight: 700; line-height: 1.4; margin-bottom: 10px; color: var(--ink); }
.hero-sub { font-size: clamp(16px, 0.5vw + 14px, 20px); color: var(--ink-2); margin-bottom: 18px; max-width: 34em; }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; align-items: center; gap: 4px; z-index: 2; }
.hero-controls .icon-btn { background: rgba(255, 255, 255, 0.85); width: 40px; height: 40px; border: 1px solid var(--line); }
.hero-controls .ic { width: 18px; height: 18px; }
.hero-dots { display: flex; gap: 4px; }
.hero-dot { width: 28px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 0; position: relative; }
.hero-dot::after { content: ''; position: absolute; left: 4px; right: 4px; top: 19px; height: 2px; background: rgba(29, 23, 23, 0.25); border-radius: 2px; }
.hero-dot.is-active::after { background: var(--red); }
@media (min-width: 768px) {
  .hero { height: clamp(520px, 74vh, 760px); }
  .hero-track { position: absolute; inset: 0; display: block; }
  .hero-slide { position: absolute; inset: 0; }
  .hero-media { position: absolute; inset: 0; height: auto; min-height: 0; }
  .hero-img { scale: 1; }
  .hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.7) 32%, rgba(255, 255, 255, 0) 58%); pointer-events: none; }
  .hero-copy { position: absolute; inset: 0; display: flex; align-items: center; padding-top: 0; padding-bottom: 0; z-index: 1; }
  .hero-controls { bottom: 28px; }
}

/* ---------- ส่วนต่างๆ ---------- */
.section { padding: clamp(56px, 7vw, 112px) 0; }
.section-tight { padding: clamp(24px, 3vw, 48px) 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.page-head { padding: clamp(28px, 4vw, 56px) 0 8px; }
.page-head-tight { padding: 16px 0 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .ic { width: 14px; height: 14px; }

.perks { border-bottom: 1px solid var(--line); }
.perk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.perk { display: flex; gap: 12px; align-items: flex-start; padding: 18px 8px; }
.perk .ic { width: 26px; height: 26px; color: var(--rose); margin-top: 2px; }
.perk strong { display: block; font-size: 16px; }
.perk span { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (min-width: 900px) { .perk-grid { grid-template-columns: repeat(4, 1fr); } .perk { padding: 26px 12px; } }

.featured-grid { display: grid; gap: 32px; align-items: center; }
.featured-media img { width: 100%; border-radius: var(--radius); }
@media (min-width: 900px) { .featured-grid { grid-template-columns: 1fr 1fr; gap: 72px; } .featured-media { max-width: 520px; } }

.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.check-list .ic { color: var(--red); margin-top: 4px; width: 18px; height: 18px; }

.promo-img { width: 100%; border-radius: var(--radius); }
.promo-link { display: block; }

/* ราคา */
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 6px 0; }
.price-now { font-weight: 700; color: var(--red); font-size: 20px; font-variant-numeric: tabular-nums; }
.price-cur { font-size: 0.7em; font-weight: 600; }
.price-was { color: var(--muted); font-size: 15px; }
.price-off { font-size: 14px; font-weight: 700; color: var(--red-ink); background: var(--red-soft); padding: 2px 8px; border-radius: 999px; }
.price-lg .price-now { font-size: clamp(30px, 2vw + 20px, 40px); }
.price-lg .price-was { font-size: 17px; }

/* ไอคอนจุดเด่น */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feature { padding: 22px 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.feature-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--red-soft); color: var(--red); margin-bottom: 14px; }
.feature-ic .ic { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 6px; }
.feature p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.6; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } .feature { padding: 28px 24px; } }

/* สองคอลัมน์ รูป+ข้อความ */
.split { display: grid; gap: 32px; align-items: center; }
.split-media img { width: 100%; border-radius: var(--radius); }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 6fr; gap: 72px; }
  .split-rev .split-media { order: 2; }
  .split-media { max-width: 480px; }
  .split-rev .split-media { justify-self: end; }
}
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0; }
.stats div { padding: 16px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); }
.stats dt { font-size: clamp(22px, 1vw + 18px, 30px); font-weight: 700; color: var(--red); line-height: 1.4; font-variant-numeric: tabular-nums; }
.stats dd { margin: 4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.ratio-h { margin-top: 8px; }
.ratio-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.ratio-list li { display: flex; gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ratio-amt { min-width: 52px; font-weight: 700; color: var(--rose); font-variant-numeric: tabular-nums; }

.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: clamp(40px, 5vw, 72px); }
.value { padding: 22px 18px; border-top: 1px solid var(--rose-light); }
.value-letter { display: block; font-size: 40px; font-weight: 700; line-height: 1.2; color: var(--rose); margin-bottom: 12px; }
.value p { font-size: 15px; color: var(--muted); margin: 0; }
.value .value-en { font-size: 14px; font-weight: 600; color: var(--rose); letter-spacing: 0.02em; margin-bottom: 2px; }
.values-head { margin-top: clamp(40px, 5vw, 72px); }
.values-head + .value-grid { margin-top: 20px; }
@media (min-width: 768px) { .value-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

/* แกลเลอรี: ไม่ครอป ความสูงตามรูปจริง */
.masonry { columns: 2; column-gap: 10px; }
.masonry figure { margin: 0 0 10px; break-inside: avoid; }
.masonry img { width: 100%; border-radius: 10px; }
@media (min-width: 480px) { .masonry { columns: 3; } }
@media (min-width: 1024px) { .masonry { columns: 4; column-gap: 16px; } .masonry figure { margin-bottom: 16px; } }

/* วิดีโอ */
.video-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 62%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: thin; }
.video-card { margin: 0; scroll-snap-align: start; }
.video-facade { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.video-facade img { width: 100%; opacity: 0.9; transition: opacity 200ms; }
.video-facade:hover img { opacity: 1; }
.video-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); display: grid; place-items: center; color: var(--red); box-shadow: var(--shadow-2); }
.video-play .ic { width: 28px; height: 28px; margin-left: 3px; }
.video-card iframe { width: 100%; aspect-ratio: 9 / 16; border: 0; border-radius: var(--radius); background: #000; display: block; }
.video-card figcaption { font-size: 15px; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.video-ext { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); min-height: 44px; }
.video-ext .ic { width: 14px; height: 14px; }
@media (min-width: 768px) { .video-row { grid-auto-columns: 220px; gap: 20px; margin: 0; padding-left: 0; padding-right: 0; } }
@media (min-width: 1024px) { .video-row { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); overflow: visible; align-items: start; } }

/* รีวิว */
.review-grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .review-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.review { margin: 0; padding: 24px; border-radius: var(--radius); background: var(--mist); display: flex; flex-direction: column; gap: 12px; }
.review p { margin: 0; color: var(--ink-2); }
.review footer { font-size: 15px; color: var(--muted); }
.stars { display: flex; gap: 2px; color: var(--line-strong); }
.stars .ic { width: 18px; height: 18px; }
.stars .on { color: var(--rose); }
.stars .on .ic { fill: currentColor; }
.sample-tag { display: inline-block; align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--warn); background: var(--warn-soft); padding: 2px 10px; border-radius: 999px; }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq, .acc { border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); }
.faq summary, .acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 600; min-height: 56px; }
.faq summary::-webkit-details-marker, .acc summary::-webkit-details-marker { display: none; }
.faq summary .ic, .acc summary .ic { transition: transform 200ms var(--ease); color: var(--muted); }
.faq[open] summary .ic, .acc[open] summary .ic { transform: rotate(180deg); }
.faq-a, .acc-body { padding: 0 20px 18px; color: var(--ink-2); }
.faq-a p:last-child, .acc-body p:last-child { margin-bottom: 0; }

.contact-cta { background: linear-gradient(180deg, var(--paper), var(--blush)); }

/* ---------- การ์ดสินค้า ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; font-size: 15px; }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.sort select { min-height: 40px; border-radius: 999px; border: 1px solid var(--line-strong); padding: 0 32px 0 14px; background: #fff; font-size: 16px; }
.count { font-size: 15px; margin-bottom: 16px; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card { background: var(--paper); border-radius: var(--radius); transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); } }
.product-card-link { display: block; text-decoration: none; }
.product-card-media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.product-card-media img { width: 100%; }
.badge { position: absolute; left: 10px; top: 10px; background: var(--red); color: #fff; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge-muted { background: #5d5554; }
.product-card-body { padding: 12px 4px 8px; }
.product-card-body .eyebrow { font-size: 14px; margin-bottom: 2px; }
.product-card-body .eyebrow::before { display: none; }
.product-card-title { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* ---------- หน้าสินค้า ---------- */
.pdp { display: grid; gap: 28px; }
.pdp > *, .checkout > *, .cart-layout > *, .split > *, .featured-grid > * { min-width: 0; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; } .pdp-gallery { position: sticky; top: 96px; } }
.pdp-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--mist); max-height: 78svh; margin: 0 auto; width: 100%; }
.pdp-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 300ms var(--ease); }
.pdp-slide.is-active { opacity: 1; }
.pdp-slide img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.pdp-thumb { flex: none; width: 64px; height: 64px; padding: 0; border-radius: 10px; border: 2px solid transparent; background: var(--mist); cursor: pointer; overflow: hidden; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumb.is-active { border-color: var(--ink); }
.pdp-title { font-size: clamp(28px, 1.6vw + 20px, 40px); }
.buy { margin: 18px 0 8px; display: grid; gap: 12px; }
.variants { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.variants legend { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.variant input { position: absolute; opacity: 0; }
.variant span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; }
.variant input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.variant input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.variant.is-out span { color: var(--muted); text-decoration: line-through; cursor: not-allowed; }
.stock { font-size: 15px; color: var(--ok); margin: 0; font-weight: 600; }
.stock.is-low { color: var(--warn); }
.stock.is-out { color: var(--muted); }
.buy-row { display: flex; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; height: 50px; }
.qty input { width: 44px; border: 0; text-align: center; font-size: 17px; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty-btn { width: 44px; height: 48px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; border-radius: 999px; }
.qty-btn .ic { width: 18px; height: 18px; }
.pdp-perks { list-style: none; padding: 16px 0; margin: 8px 0 20px; display: grid; gap: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.pdp-perks li { display: flex; gap: 10px; align-items: center; }
.pdp-perks .ic { color: var(--rose); }
.accs { display: grid; gap: 8px; margin-bottom: 16px; }
.acc { scroll-margin-top: 96px; }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.spec thead th { font-size: 14px; color: var(--muted); font-weight: 600; }
.spec tbody th { font-weight: 600; }
.spec .spec-amt { white-space: nowrap; text-align: right; }
.spec td.spec-amt { font-weight: 700; color: var(--rose); font-variant-numeric: tabular-nums; }
.spec .spec-inci { color: var(--ink-2); font-size: 14px; }
@media (max-width: 599px) {
  .spec thead { display: none; }
  .spec tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .spec th, .spec td { border: 0; padding: 0; }
  .spec .spec-amt { grid-column: 2; grid-row: 1; }
  .spec .spec-inci, .spec .spec-role { grid-column: 1 / -1; color: var(--muted); }
}
.inci { font-size: 14px; color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; }

/* ---------- ฟอร์ม ---------- */
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 16px; background: var(--paper); min-width: 0; }
@media (min-width: 768px) { .panel { padding: 28px; } }
fieldset.panel legend { padding: 0 6px; margin-left: -6px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea, .input-btn input { width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; font-size: 16px; }
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(214, 20, 28, 0.12); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--red); }
.field-row { display: grid; gap: 0 12px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hint { font-size: 14px; color: var(--muted); margin: 0; }
.hint.ok { color: var(--ok); font-weight: 600; }
.field-err { font-size: 14px; color: var(--red-ink); margin: 0; min-height: 0; }
.field-err:empty { display: none; }
.form-msg { margin: 0; font-size: 15px; }
.form-msg:empty { display: none; }
.form-msg.err { color: var(--red-ink); font-weight: 600; }
.form-msg.ok { color: var(--ok); font-weight: 600; }
.input-btn { display: flex; gap: 8px; }
.input-btn input { text-transform: uppercase; }

.pay-options { display: grid; gap: 10px; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt-body { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; }
.pay-opt-body .ic { width: 24px; height: 24px; color: var(--rose); margin-top: 2px; }
.pay-opt-body strong { display: block; }
.pay-opt-body small { display: block; color: var(--muted); font-size: 14px; }
.pay-opt input:checked + .pay-opt-body { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-opt input:focus-visible + .pay-opt-body { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- ตะกร้า / สรุปยอด ---------- */
.cart-layout, .checkout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .cart-layout, .checkout { grid-template-columns: 1fr 380px; gap: 40px; } .summary { position: sticky; top: 96px; } }
.cart-line { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 80px; height: 80px; object-fit: contain; background: var(--mist); border-radius: 10px; }
.cart-line h3 { font-size: 17px; margin: 0 0 2px; }
.cart-line-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.cart-line .qty { height: 42px; }
.cart-line .qty-btn { height: 40px; width: 40px; }
.cart-line-err { color: var(--red-ink); font-size: 14px; font-weight: 600; margin: 4px 0 0; }
.link-btn { border: 0; background: none; padding: 8px 4px; min-height: 44px; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }
.summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--mist); display: grid; gap: 12px; }
.totals { margin: 0; display: grid; gap: 8px; font-size: 16px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.totals-sum { padding-top: 10px; border-top: 1px solid var(--line-strong); font-size: 19px; font-weight: 700; }
.totals-sum dt { color: var(--ink); }
.ship-gap { margin: 0; font-size: 15px; color: var(--ok); font-weight: 600; }
.mini-lines { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.mini-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 15px; }
.mini-line img { width: 56px; height: 56px; object-fit: contain; background: var(--mist); border-radius: 8px; }
.mini-line small { display: block; color: var(--muted); }
.mini-line > span { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- หน้าออเดอร์ ---------- */
.order-stack { display: grid; gap: 0; }
.pay-amount-label { margin: 0; color: var(--muted); font-size: 15px; }
.pay-amount { font-size: clamp(40px, 4vw + 24px, 56px); font-weight: 700; color: var(--red); margin: 0 0 8px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pay-amount span { font-size: 0.45em; }
.qr-box { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 20px; margin: 16px 0; border-radius: var(--radius); background: var(--mist); }
.qr { width: 240px; height: 240px; background: #fff; padding: 12px; border-radius: 12px; }
.qr img, .qr svg { width: 100%; height: 100%; image-rendering: pixelated; }
.qr-box p { margin: 0; }
.banks { display: grid; gap: 10px; margin-top: 12px; }
.bank { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.bank p { margin: 0; }
.bank-ic { width: 40px; height: 40px; border-radius: 999px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.bank-no { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
@media (max-width: 420px) { .bank { grid-template-columns: auto 1fr; } .bank .btn { grid-column: 1 / -1; } }
.drop { display: grid; place-items: center; min-height: 160px; border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 16px; cursor: pointer; text-align: center; background: var(--mist); }
.drop:hover { border-color: var(--ink); }
.drop-empty { display: grid; gap: 4px; justify-items: center; }
.drop-empty .ic { width: 32px; height: 32px; color: var(--rose); }
.drop-empty small { color: var(--muted); }
.drop-preview { max-height: 360px; width: auto; border-radius: 8px; }
.slip-form { display: grid; gap: 12px; }
.status-pill { display: inline-block; font-weight: 700; padding: 6px 16px; border-radius: 999px; background: var(--mist); }
.tone-paid, .tone-shipping { background: #e9f0fb; color: #1f4f8f; }
.tone-shipped, .tone-completed { background: var(--ok-soft); color: var(--ok); }
.tone-cancelled, .tone-refunded { background: #eeeaea; color: #5d5554; }
.tone-pending_payment, .tone-pending_review { background: var(--warn-soft); color: var(--warn); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 20px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.tl-item:not(:last-child)::before { content: ''; position: absolute; left: 6px; top: 16px; bottom: 0; width: 1px; background: var(--line-strong); }
.tl-dot { width: 13px; height: 13px; border-radius: 999px; background: var(--rose-light); margin-top: 7px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--rose); }
.tl-item:last-child .tl-dot { background: var(--red); box-shadow: 0 0 0 1px var(--red); }
.tl-item strong { display: block; }
.tl-item time { font-size: 14px; color: var(--muted); }
.tl-item p { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.track-result { margin-top: 16px; }

/* ---------- ส่วนท้าย ---------- */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding: 56px 0 24px; margin-top: 0; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1.4fr 1fr; } }
.footer-logo { height: 84px; width: auto; margin-bottom: 12px; }
.footer-brand p { color: var(--ink-2); }
.footer-h { font-size: 16px; margin-bottom: 12px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-size: 15px; color: var(--ink-2); }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list .ic, .footer-list .ic-brand { width: 18px; height: 18px; margin-top: 4px; color: var(--rose); }
.footer-list a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-list li { align-items: center; }
.footer-list a:hover { text-decoration: underline; }
.footer-list.plain li { display: block; }
.social { display: flex; gap: 10px; }
.social-btn { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; color: #fff; }
.social-btn .ic-brand { width: 22px; height: 22px; }
.social-btn.line { background: var(--line-green); }
.social-btn.fb { background: #0866ff; }
.social-btn.tt { background: #000; }
.footer-legal { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-legal p { margin: 0; }

/* ---------- ปุ่มลอยมือถือ: ไลน์ + โทร ---------- */
.float-bar { display: none; }
@media (max-width: 767px) {
  .float-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
  .float-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 16px; }
  .float-btn.line { background: var(--line-green); color: #fff; }
  .float-btn.call { background: var(--ink); color: #fff; }
  .float-btn .ic, .float-btn .ic-brand { width: 20px; height: 20px; }
  body.has-float { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* ---------- อนิเมชัน: ปรากฏตอนเลื่อนถึง ครั้งเดียว ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-img { transform: none !important; }
}

.toast { position: fixed; left: 50%; bottom: 84px; translate: -50% 0; z-index: 60; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 15px; box-shadow: var(--shadow-2); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); }
.toast a { color: #fff; font-weight: 700; }
@media (min-width: 768px) { .toast { bottom: 32px; } }
