:root {
  color-scheme: light;
  --ink: #0B0D10;
  --navy: #101A2B;
  --navy-2: #1A2740;
  --honey: #D8A34A;
  --honey-soft: #F0D9A8;
  --honey-deep: #7D5310;
  --cream: #F6F0E5;
  --cream-2: #ECE3D2;
  --paper: #FFFBF3;
  --muted-on-dark: #C4BDAE;
  --muted-on-light: #5A5344;
  --line-on-dark: rgba(246, 240, 229, .24);
  --line-on-light: rgba(16, 26, 43, .14);
  --line-green: #06C755;
  --line-green-text: #04532A;
  --open-green: #7FE3A9;
  --font-body: "IBM Plex Sans Thai", "Sukhumvit Set", "Thonburi", "Noto Sans Thai", sans-serif;
  --font-display: "Noto Serif Thai", "Thonburi", "Noto Serif", serif;
  --gutter: 16px;
  --header-h: 56px;
  --tabs-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.sheet-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font: 400 1rem/1.65 var(--font-body);
  overflow-wrap: anywhere;
}
body.has-cart { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
h1, h2, h3, p, ul, dl, dd, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul { list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
.cat { scroll-margin-top: calc(var(--header-h) + var(--tabs-h) + 4px); }
:focus-visible { outline: 3px solid var(--honey-deep); outline-offset: 2px; }
.hero :focus-visible, .story :focus-visible, .delivery :focus-visible, .contact :focus-visible, .site-header :focus-visible { outline-color: var(--honey); }
h2[tabindex="-1"]:focus { outline: none; }
h2 { font: 700 clamp(1.5rem, 6.5vw, 2rem)/1.3 var(--font-display); }
[hidden] { display: none !important; }
.js-only { display: none; }
.js .js-only { display: inline; }

/* ใช้เฉพาะหน้าตัวอย่าง หน้าเผยแพร่จะไม่มี */
.preview-ribbon {
  padding: 2px var(--gutter);
  background: var(--honey);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 500;
  text-align: center;
}
.pending-tag {
  display: inline-block;
  padding: 2px 10px;
  border: 1px dashed currentColor;
  border-radius: 999px;
  font-size: .8125rem;
  line-height: 1.6;
  white-space: nowrap;
}

/* หัวเว็บ ติดบนจอ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: rgba(16, 26, 43, .97);
  color: var(--cream);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 0;
  gap: 10px;
  color: var(--honey);
  font: 700 .9375rem/1.25 var(--font-display);
  text-decoration: none;
}
.brand-logo { flex: none; width: 36px; height: 36px; border-radius: 50%; }
.brand-name span { white-space: nowrap; }
.status {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.status.is-open { background: rgba(6, 199, 85, .18); color: var(--open-green); }
.status.is-open::before { content: "● "; }
.status.is-closed { background: rgba(246, 240, 229, .12); color: var(--muted-on-dark); }

/* ปุ่ม */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, transform .1s ease;
}
.button:active { transform: scale(.98); }
.button-primary { background: var(--honey); color: var(--ink); }
.button-primary:hover { background: #E4B360; }
.button-ghost { border: 1.5px solid var(--line-on-dark); color: var(--cream); }
.button-ghost:hover { background: rgba(246, 240, 229, .08); }
.button-line { width: 100%; background: var(--line-green); color: #fff; font-size: 1.0625rem; }
.button-line:hover { background: #05B34C; }
.button-navy { width: 100%; background: var(--navy); color: var(--cream); }
.button-soft { width: 100%; min-height: 48px; border: 1.5px solid var(--line-on-light); background: var(--paper); color: var(--navy); }
.link-btn { min-height: 44px; border: 0; background: none; color: var(--navy); text-decoration: underline; cursor: pointer; }

/* รูป */
.hero-photo, .best-photo, .item-photo { position: relative; overflow: hidden; }
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-fallback { position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy-2), var(--ink)); }
.photo-tag {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(11, 13, 16, .62);
  color: var(--cream);
  font-size: .6875rem;
  line-height: 1.6;
}

/* Hero */
/* ภาพเต็มจอ ข้อความวางบนภาพ ไล่เงาน้ำเงินด้านบนและล่างให้ตัวหนังสืออ่านง่าย */
.hero {
  position: relative;
  display: flex;
  min-height: min(calc(100svh - var(--header-h)), 760px);
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
  isolation: isolate;
}
.hero-photo { position: absolute; inset: 0; z-index: -1; }
.hero-photo .photo { object-position: 64% center; }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 26, 43, .82) 0%, rgba(16, 26, 43, .7) 36%, rgba(16, 26, 43, .15) 56%, rgba(16, 26, 43, 0) 68%, rgba(11, 13, 16, .65) 100%);
  pointer-events: none;
}
.hero-photo .photo-tag { z-index: 1; top: 8px; bottom: auto; right: 8px; }
.hero-copy { display: flex; flex-direction: column; width: 100%; padding: 28px var(--gutter) 24px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--honey-soft);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
}
.eyebrow::before, .eyebrow::after { content: ""; flex: 0 0 24px; height: 1px; background: var(--honey); }
h1 { margin-top: 12px; font-family: var(--font-display); font-weight: 700; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.h1-a { display: block; font-size: clamp(1.75rem, 8.2vw, 2.75rem); line-height: 1.3; color: var(--cream); }
.h1-b { display: block; font-size: clamp(2.5rem, 12.5vw, 4.25rem); line-height: 1.2; color: var(--honey); }
.swash { display: block; width: min(62%, 260px); height: 14px; margin-top: 2px; }
.swash path { fill: none; stroke: var(--honey); stroke-width: 3; stroke-linecap: round; }
.hero-lead {
  margin-top: 14px;
  padding-left: 12px;
  border-left: 2px solid var(--honey);
  color: var(--cream);
  font-size: 1rem;
  line-height: 1.65;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.hero-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: auto; padding-top: 28px; max-width: 26rem; }
.hero-actions .button { border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
/* ปุ่มหลักเต็มความกว้าง ตัวใหญ่ มีลูกศรชวนกด ปุ่มรองเล็กกว่าเล็กน้อย */
.hero-cta { gap: 10px; min-height: 64px; font-size: 1.25rem; font-weight: 700; box-shadow: 0 8px 22px -6px rgba(216, 163, 74, .65), 0 6px 18px rgba(0, 0, 0, .3); }
.cta-arrow { font-size: 1.375rem; line-height: 1; transition: transform .15s ease; }
.hero-cta:hover .cta-arrow { transform: translateX(3px); }
.hero-cta-2 { min-height: 54px; font-size: 1.0625rem; }
.hero-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-sub .button { padding-left: 10px; padding-right: 10px; font-size: 1rem; white-space: nowrap; }
.hero-history { gap: 8px; }
.history-thumb { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.button-cream { background: var(--cream); color: var(--navy); }
.button-cream:hover { background: #fff; }

/* จุดเด่น 3 ช่อง */
.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-on-light);
  background: var(--paper);
}
.points li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 4px;
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
}
.points li + li { border-left: 1px solid var(--line-on-light); }
.point-mark { width: 9px; height: 9px; background: var(--honey); transform: rotate(45deg); }

/* หัวข้อส่วน */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-hint { color: var(--muted-on-light); font-size: .8125rem; white-space: nowrap; }
.sec-lead { margin: -4px 0 14px; color: var(--muted-on-dark); font-size: .9375rem; }

/* ราคา */
.price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; line-height: 1.3; }
.price-value { font-size: 1.1875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-app { color: var(--muted-on-light); font-size: .8125rem; }
.price-pending { color: var(--honey-deep); font-size: .8125rem; }
.item-unit {
  display: inline-block;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--cream-2);
  color: var(--muted-on-light);
  font-size: .8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.rank {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--honey-soft);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.best-photo .rank { position: absolute; top: 10px; left: 10px; }
/* ป้าย BEST SELLER ต้องเด่นกว่าป้ายทั่วไป: พื้นน้ำผึ้ง ตัวกรมท่าหนา */
.rank-best { padding: 4px 12px; background: var(--honey); color: var(--navy); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; box-shadow: 0 4px 10px -4px rgba(16, 26, 43, .5); }
.rank-inline { margin-bottom: 2px; }

/* ปุ่มจำนวน */
.qty-slot { flex: none; }
.add-btn {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  color: var(--cream);
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.add-btn:active { transform: scale(.97); }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 2px; border-radius: 12px; background: var(--cream-2); }
.stepper button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--navy);
  color: var(--cream);
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
}
.stepper-n { min-width: 26px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }

/* เมนูขายดี: เห็นครบ 4 จานในตาราง 2 x 2 ไม่ต้องปัด (ทีสั่ง 10 พ.ย. 2026) */
.best { padding: 32px 0 8px; }
.best .sec-head { padding: 0 var(--gutter); }
.best-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 4px var(--gutter) 16px;
}
.best-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 10px 24px -16px rgba(16, 26, 43, .6);
}
.best-card.is-top { box-shadow: 0 0 0 3px var(--honey), 0 12px 26px -14px rgba(16, 26, 43, .7); }
.best-photo { aspect-ratio: 1 / 1; background: var(--cream-2); }
.best-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 10px 12px 12px; }
.best-body h3 { font: 600 1rem/1.35 var(--font-display); }
.best .buy-row { flex-direction: column; align-items: stretch; gap: 8px; }
.best .add-btn { width: 100%; }
.best .stepper { display: flex; justify-content: space-between; }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }

/* เรื่องร้าน */
.story { margin-top: 24px; padding: 40px var(--gutter); background: var(--navy); color: var(--muted-on-dark); text-align: center; }
.story h2 { margin-bottom: 20px; color: var(--honey); }
/* ฉากหลังเป็นรูปบ้านคุณตา (ทะเบียนรถเบลอแล้ว) เคลือบกรมท่าให้ตัวหนังสืออ่านง่าย แล้วจางลงเป็นพื้นกรมท่าด้านล่าง */
.story-scene { position: relative; isolation: isolate; margin: -40px calc(-1 * var(--gutter)) 0; padding: 40px var(--gutter) 8px; }
.story-scene.has-bg { padding-top: 56px; }
.story-scene.has-bg::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: min(100%, 760px);
  background:
    linear-gradient(180deg, rgba(16, 26, 43, .32) 0%, rgba(16, 26, 43, .45) 50%, var(--navy) 100%),
    var(--story-bg) center 35% / cover no-repeat;
}
.story-scene.has-bg .story-eyebrow, .story-scene.has-bg h2 { text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.story-eyebrow { margin-bottom: 2px; color: var(--cream); font: 600 1.125rem/1.4 var(--font-display); }
/* โพลารอยด์รูปคุณตา: กรอบกระดาษขาว เอียงเล็กน้อย มีเทปแปะด้านบน */
.polaroid {
  position: relative;
  width: min(78%, 300px);
  margin: 0 auto;
  padding: 10px 10px 0;
  border-radius: 4px;
  background: #FFFDF8;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .6);
  transform: rotate(-2.5deg);
}
.polaroid::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 96px;
  height: 26px;
  background: rgba(240, 217, 168, .85);
  transform: translateX(-50%) rotate(3deg);
}
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid figcaption { padding: 10px 4px 12px; color: var(--navy); font: 600 1.0625rem/1.3 var(--font-display); }
.polaroid-heart { color: var(--honey-deep); }
/* 5 ข้อเรื่องราว บนการ์ดกระดาษครีม ไอคอนเส้นสีกรมท่า คำสำคัญไฮไลต์สีน้ำผึ้ง */
.story-points {
  max-width: 34rem;
  margin: 28px auto 0;
  padding: 6px 18px;
  border-radius: 18px;
  background: var(--cream);
  color: var(--ink);
  list-style: none;
  text-align: left;
}
.story-points li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; }
.story-points li + li { border-top: 1px dashed rgba(16, 26, 43, .18); }
.story-icon {
  flex: none;
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.story-icon-gold { display: grid; place-items: center; border-radius: 50%; background: var(--honey-soft); color: var(--honey-deep); font: 700 1.375rem/1 serif; }
.story-points p { margin: 0; color: var(--muted-on-light); font-size: .9375rem; line-height: 1.6; }
.story-points b { display: block; margin-bottom: 2px; color: var(--navy); font-size: 1.0625rem; font-weight: 700; line-height: 1.45; }
.story-points mark { padding: 0 2px; background: linear-gradient(transparent 55%, var(--honey-soft) 55%); color: inherit; white-space: nowrap; }
.story-ribbon {
  max-width: 34rem;
  margin: 20px auto 0;
  padding: 12px 16px;
  border: 1.5px solid var(--honey);
  border-radius: 16px;
  color: var(--honey-soft);
  font: 600 1.0625rem/1.45 var(--font-display);
}
.story-ribbon span { display: inline-block; }

/* รีวิวจริงจากลูกค้า ไหลวนสองแถวสวนกัน การ์ดกระดาษครีม ดาวสีน้ำผึ้ง */
.reviews { padding: 28px 0 8px; }
.reviews .sec-head { padding: 0 var(--gutter); }
.review-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 0;
  padding: 4px var(--gutter) 12px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}
.review-row::-webkit-scrollbar { display: none; }
.review-card {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 6px;
  width: min(76vw, 300px);
  padding: 14px 16px;
  border: 1px solid var(--line-on-light);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 6px 16px -10px rgba(16, 26, 43, .35);
}
.review-stars { color: var(--honey); font-size: 1rem; letter-spacing: 2px; line-height: 1; }
.review-text { flex: 1; margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.review-name { margin: 0; color: var(--navy); font-size: .875rem; font-weight: 600; }
.review-source { color: var(--muted-on-light); font-weight: 400; }

/* ไม่มีรูปงานที่ผ่านมา ก็ไม่ต้องโชว์แถบกรมท่าเปล่า */
section.story:not(:has(.story-gallery)) { display: none; }

/* หน้าประวัติของร้าน (story.html) พื้นกรมท่าทั้งหน้า ฉากหลังรูปบ้านอยู่ช่วงบน */
.story-page { background: var(--navy); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.story-standalone { margin-top: 0; padding-bottom: 48px; }
.story-standalone .story-scene.has-bg::before { height: min(100%, 560px); }
.story-title { margin: 0 0 20px; color: var(--honey); font: 700 clamp(1.5rem, 6.5vw, 2rem)/1.3 var(--font-display); text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.story-cta { max-width: 420px; margin: 40px auto 0; }
.story-cta .hero-cta { width: 100%; }

/* อัลบั้มคุณตา: รูปครอบครัวกรอบขาวแบบรูปอัด เรียงสองคอลัมน์ตามสัดส่วนจริง ไม่ตัดหน้าใคร */
.album { margin-top: 40px; }
.album h2 { margin-bottom: 4px; color: var(--honey); }
.album-note { margin: 0 0 20px; color: var(--muted-on-dark); }
.album-grid { columns: 2; column-gap: 14px; list-style: none; text-align: left; }
.album-photo {
  break-inside: avoid;
  margin: 0 0 14px;
  padding: 6px 6px 18px;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  transform: rotate(-1.2deg);
}
.album-photo:nth-child(even) { transform: rotate(1.2deg); }
.album-photo img { display: block; width: 100%; height: auto; }

/* รูปงานที่ผ่านมา ปัดซ้ายขวาดู */
.story-gallery {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0 12px;
  max-width: 960px;
  margin: 32px auto 0;
  text-align: left;
}
.story-gallery h3 { color: var(--cream); font: 700 1.25rem/1.35 var(--font-display); }
.story-gallery .sec-hint { color: var(--muted-on-dark); }
.gallery-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  margin: 12px calc(var(--gutter) * -1) 0;
  padding: 4px var(--gutter) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.gallery-row::-webkit-scrollbar { display: none; }
.gallery-card { flex: 0 0 66%; max-width: 260px; scroll-snap-align: start; }
.gallery-row.is-marquee { scroll-snap-type: none; }
.gallery-row.is-marquee .gallery-card { scroll-snap-align: none; }
.gallery-photo { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 14px; background: var(--navy-2); }
.story .gallery-cap { max-width: none; margin: 8px 2px 0; font-size: .875rem; line-height: 1.45; }
.gallery-cap b { display: block; color: var(--cream); font-weight: 600; }
.gallery-cap span { color: var(--honey-soft); font-size: .8125rem; }
.story .gallery-note { grid-column: 1 / -1; max-width: none; margin: 8px 0 0; font-size: .875rem; }
.gallery-note a { color: var(--honey); font-weight: 600; white-space: nowrap; }

/* เมนูทั้งหมด */
.menu { padding: 32px var(--gutter) 24px; }
.tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  display: flex;
  gap: 8px;
  height: var(--tabs-h);
  align-items: center;
  margin: 0 calc(-1 * var(--gutter)) 8px;
  padding: 0 var(--gutter);
  overflow-x: auto;
  background: var(--cream);
  border-bottom: 1px solid var(--line-on-light);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.tab.is-active { background: var(--navy); color: var(--cream); }
.cat { padding-top: 16px; }
.cat h3 { font: 700 1.25rem/1.35 var(--font-display); }
/* มี JS แท็บบอกชื่อหมวดอยู่แล้ว ซ่อนหัวข้อซ้ำจากตา แต่โปรแกรมอ่านจอยังอ่านได้ */
.js .cat { padding-top: 4px; }
.js .cat h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cat-note { color: var(--muted-on-light); font-size: .875rem; }
.item-list { margin-top: 8px; }
.item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-on-light);
}
.item-photo { flex: none; width: 64px; height: 64px; border-radius: 10px; background: var(--cream-2); }
.item-photo .photo-tag { display: none; }
.item-info { flex: 1; min-width: 0; }
.item-name { font-weight: 600; line-height: 1.4; }
/* เครื่องดื่มหลายขนาด: กดเลือกขนาดแล้วรายการขนาดเปิดเต็มความกว้างใต้แถว */
.item-sizes { flex-wrap: wrap; }
.size-btn { display: inline-flex; align-items: center; gap: 6px; }
.size-count { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--honey); color: var(--navy); font-size: .8125rem; font-weight: 700; line-height: 22px; text-align: center; }
.size-arrow { font-size: .75rem; }
.size-pick { flex: 1 1 100%; margin: 2px 0 4px; padding: 4px 12px; border-radius: 12px; background: var(--cream-2); }
.size-opt { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.size-opt + .size-opt { border-top: 1px solid var(--line-on-light); }
.size-name { flex: 1; font-weight: 600; }
.size-price { font-size: 1.125rem; font-variant-numeric: tabular-nums; }

/* ที่ตั้ง */
.visit { padding: 32px var(--gutter); }
.visit h2 { margin-bottom: 14px; }
.map-card { overflow: hidden; border: 1px solid var(--line-on-light); border-radius: 14px; background: var(--paper); }
.map-frame { display: block; width: 100%; height: 200px; border: 0; background: var(--cream-2); }
.map-info { display: grid; gap: 12px; padding: 14px; }
.map-info p { color: var(--muted-on-light); font-size: .9375rem; line-height: 1.6; }
.map-info .button { width: 100%; }

/* ส่งถึงบ้าน และติดต่อ */
.delivery, .contact { padding: 32px var(--gutter); background: var(--navy); color: var(--cream); }
.delivery h2, .contact h2 { margin-bottom: 14px; }
.delivery .sec-lead { margin-top: -6px; }
.contact { padding-top: 8px; border-top: 0; }
.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.channel-grid > li { display: flex; min-width: 0; }
.channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 64px;
  padding: 8px 4px;
  border-radius: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
a.channel:hover { filter: brightness(1.06); }
.channel-name { white-space: nowrap; }
.channel-icon { width: 22px; height: 22px; }
.channel.is-pending .pending-tag { padding: 0 6px; border: 0; font-size: .6875rem; }
.brand-grab, .brand-lineman, .brand-shopee { background: var(--paper); color: var(--ink); }
.brand-lineman { font-size: .8125rem; }
.brand-shopee { color: #C2330F; font-size: .875rem; }
.logo-grab { width: 72px; height: auto; }
.logo-lineman { width: 30px; height: 30px; border-radius: 8px; }
.brand-phone, .brand-social, .brand-line { border: 1px solid var(--line-on-dark); color: var(--cream); font-size: .9375rem; }
/* ติดต่อร้าน: ตาราง 6 ช่อง โทรและ LINE กินครึ่งแถว โซเชียลกินสามช่องเท่ากัน TikTok จึงไม่ตกแถวเดี่ยว */
.contact-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.contact-grid > .tile-phone, .contact-grid > .tile-line, .contact-grid > .brand-phone, .contact-grid > .brand-line { grid-column: span 3; }
.contact-grid > .tile-social, .contact-grid > .brand-social { grid-column: span 2; }
/* จอแคบมาก (ต่ำกว่า 360 px) ให้โทรกับ LINE ได้แถวละปุ่ม ตัวหนังสือไม่ล้น */
@media (max-width: 359px) {
  .contact-grid > .tile-phone, .contact-grid > .tile-line, .contact-grid > .brand-phone, .contact-grid > .brand-line { grid-column: span 6; }
}
.contact .brand-phone, .contact .brand-line {
  flex-direction: row;
  justify-content: flex-start;
  gap: 8px;
  min-height: 72px;
  padding: 10px;
  text-align: left;
}
.channel-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.channel-sub { font-size: clamp(.6875rem, 3.1vw, .8125rem); font-weight: 500; color: var(--cream); opacity: .78; white-space: nowrap; }
.contact .brand-phone .channel-name, .contact .brand-line .channel-name { font-size: clamp(.875rem, 4vw, 1.0625rem); font-weight: 700; color: #fff; }
.phone-badge { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--honey); color: var(--navy); }
.phone-badge .channel-icon { width: 22px; height: 22px; }
.contact .brand-social { gap: 6px; min-height: 72px; font-size: .875rem; color: #fff; }
.brand-social .channel-icon { width: 24px; height: 24px; }
/* กติกาของ LINE: ใช้ไฟล์ตามเดิม ไม่มีกรอบหรือพื้นหลัง และไม่เล็กกว่า 40 px บนมือถือ */
.logo-line { flex: none; width: 40px; height: 40px; }
.brand-line { flex-direction: row; gap: 10px; }

/* ท้ายเว็บ */
.site-footer { padding: 24px var(--gutter) 32px; background: var(--ink); color: var(--muted-on-dark); font-size: .875rem; text-align: center; }
.site-footer .brand { min-height: 0; font-size: .9375rem; }

/* ปุ่มกล่องข้าวมุมขวาล่าง (แทนแถบตะกร้า) อยู่บนจอตลอด */
.rice-fab {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 30;
}
.rice-fab-btn {
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rice-fab-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 3px var(--cream), 0 12px 26px -8px rgba(11, 13, 16, .6);
}
.rice-fab-icon svg { width: 46px; height: 46px; margin-top: -2px; }
.rice-fab-total {
  margin-right: -18px;
  padding: 9px 28px 9px 16px;
  border-radius: 999px 0 0 999px;
  background: var(--honey);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 10px 22px -10px rgba(11, 13, 16, .55);
}
.rice-fab .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  font-size: .8125rem;
  line-height: 24px;
  box-shadow: 0 0 0 2px var(--cream);
}
.rice-fab-btn:focus-visible { outline: 3px solid var(--honey-deep); outline-offset: 3px; border-radius: 999px; }
.rice-fab.is-bump .rice-fab-icon { animation: rice-bump .35s ease-out; }
@keyframes rice-bump { 40% { transform: scale(1.14) rotate(-6deg); } }
.badge {
  min-width: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--honey);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 700;
  text-align: center;
}

/* แผ่นสรุปออเดอร์ */
.sheet {
  width: 100%;
  max-width: 100%;
  max-height: 92dvh;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-radius: 20px 20px 0 0;
  background: var(--cream);
  color: var(--navy);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sheet[open] { animation: sheet-up .22s ease-out; }
.sheet::backdrop { background: rgba(11, 13, 16, .6); }
@keyframes sheet-up { from { transform: translateY(32px); opacity: .6; } }
.sheet-body { padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
.sheet-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 8px var(--gutter);
  background: var(--cream);
}
.sheet-head h2 { font-size: 1.3125rem; }
.sheet-close {
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.sheet-close:hover { background: var(--cream-2); }
.sheet-sub { color: var(--muted-on-light); font-size: .875rem; }
.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name name" "step sum";
  align-items: center;
  gap: 6px 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-on-light);
}
.cart-line-name { grid-area: name; color: var(--ink); font-size: 1.1875rem; font-weight: 700; line-height: 1.4; }
.cart-line-name .item-unit { font-size: .9375rem; }
.cart-line-name small { display: block; margin-top: 2px; color: var(--navy); font-size: 1.125rem; font-weight: 700; }
.cart-line .stepper { grid-area: step; justify-self: start; }
.cart-line-sum { grid-area: sum; color: var(--ink); font-size: 1.3125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-line .stepper-n { font-size: 1.125rem; }
.cart-line-add { display: block; margin-top: 2px; color: var(--honey-deep); font-size: .9375rem; font-weight: 600; }

/* ของเพิ่มในตะกร้า: ปุ่มสีน้ำผึ้งทึบ กดแล้วกางเป็น 2 หมวด ของเพิ่มกดเลือกหรือกดเอาออก ไม่มีจำนวน */
.addon-toggle {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 44px;
  padding: 6px 16px;
  border: 1.5px solid var(--honey-deep);
  border-radius: 999px;
  background: var(--honey);
  color: var(--ink);
  font: inherit;
  font-size: .9375rem;
  font-weight: 700;
  cursor: pointer;
}
.addon-toggle:hover { background: var(--honey-soft); }
.cart-line.is-open .addon-toggle { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.addon-panel { grid-column: 1 / -1; padding: 4px 0 2px; }
.addon-title { margin: 10px 0 6px; color: var(--navy); font-size: .9375rem; font-weight: 700; }
.addon-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.addon-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
}
.addon-chip:hover { background: var(--cream); }
.addon-chip span { color: var(--honey-deep); font-weight: 700; }
.addon-chip i { font-style: normal; font-weight: 700; }
.addon-chip.is-on { background: var(--navy); color: #fff; }
.addon-chip.is-on span { color: var(--honey-soft); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; color: var(--ink); font-size: 1.375rem; font-weight: 700; }
.cart-total b { font-size: 1.625rem; }

#order-form fieldset { margin-top: 20px; }
.step-next { width: 100%; min-height: 60px; margin-top: 16px; font-size: 1.1875rem; font-weight: 700; box-shadow: 0 3px 0 var(--honey-deep); }
.step-back { margin: 0 0 4px; }
.form-sum { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--cream); font-weight: 600; }
.form-sum b { font-size: 1.125rem; }
legend { margin-bottom: 8px; font-weight: 700; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip { position: relative; display: flex; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 6px 10px;
  border: 1.5px solid var(--line-on-light);
  border-radius: 12px;
  background: var(--paper);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}
.chip input:checked + span { border-color: var(--navy); background: var(--navy); color: var(--cream); }
.chip input:checked + span::before { content: "✓ "; white-space: pre; }
.chip input:focus-visible + span { outline: 3px solid var(--honey-deep); outline-offset: 2px; }
.chip.is-disabled span { opacity: .4; cursor: not-allowed; }
.slot-select { margin-top: 8px; }
/* ตะกร้าว่าง และออเดอร์ที่เคยสั่ง */
.cart-empty { display: grid; gap: 12px; padding: 20px 0 8px; text-align: center; color: var(--muted-on-light); }
.cart-empty[hidden], .past[hidden], .past-note[hidden] { display: none; }
.past-note { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--honey-soft); color: var(--ink); font-size: .9375rem; font-weight: 600; }
.past { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-on-light); }
.past h3 { font-size: 1.0625rem; }
.past-list { display: grid; gap: 12px; margin-top: 12px; }
.past-order { padding: 14px; border: 1px solid var(--line-on-light); border-radius: 14px; background: var(--paper); }
.past-head { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.past-head small { color: var(--muted-on-light); font-weight: 400; font-variant-numeric: tabular-nums; }
.past-items { margin: 6px 0 10px; font-size: .9375rem; }
.past-items small { color: var(--muted-on-light); }
.past-again { min-height: 44px; }
.hint { margin-top: 6px; color: var(--muted-on-light); font-size: .875rem; line-height: 1.5; }
.hint-center { text-align: center; }
.field { display: grid; gap: 4px; margin-top: 10px; }
.field span { font-size: .9375rem; font-weight: 500; }
input, select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-on-light);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.4 var(--font-body);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--honey-deep); box-shadow: 0 0 0 3px rgba(216, 163, 74, .3); }
.form-error {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FCE8E6;
  color: #9B1C12;
  font-weight: 600;
}
#send-line { margin-top: 16px; }
.msg-box { margin-top: 14px; }
.msg-box summary { min-height: 44px; padding: 10px 0; font-weight: 500; text-decoration: underline; cursor: pointer; }
.msg-box pre {
  margin: 0 0 10px;
  padding: 12px;
  border: 1px dashed var(--honey-deep);
  border-radius: 12px;
  background: var(--paper);
  font: 400 .875rem/1.6 var(--font-body);
  white-space: pre-wrap;
}
.done-step { display: grid; gap: 10px; padding: 8px 0; text-align: center; }
.done-mark {
  width: 64px;
  height: 64px;
  margin: 8px auto 0;
  border-radius: 50%;
  background: var(--line-green);
  color: #fff;
  font-size: 2rem;
  line-height: 64px;
}
.done-step h3 { font: 700 1.375rem/1.3 var(--font-display); }
.done-step p { color: var(--muted-on-light); }
.done-step p b { color: var(--navy); }
.done-summary { display: grid; gap: 6px; margin-top: 6px; padding: 14px 16px; border-radius: 14px; background: #fff; text-align: left; }
.done-summary h4 { color: var(--navy); font-size: 1.0625rem; }
.done-lines { display: grid; gap: 8px; padding: 0; list-style: none; }
.done-lines li { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); font-size: 1.0625rem; font-weight: 600; }
.done-lines small { display: block; color: var(--honey-deep); font-size: .875rem; }
.done-lines b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.done-summary .cart-total { padding-top: 8px; border-top: 1px dashed var(--line-on-light); }
.done-step p.done-meta { color: var(--ink); font-size: .9375rem; }
.pay-qr { display: grid; gap: 10px; justify-items: center; margin-top: 6px; padding: 14px 16px; border-radius: 14px; background: #fff; }
.pay-qr[hidden] { display: none; }
.done-step p.pay-qr-amount { color: var(--ink); font-size: 1.0625rem; font-weight: 600; }
.pay-qr-amount b { font-size: 1.375rem; }
.pay-qr img { width: 100%; max-width: 300px; height: auto; border-radius: 12px; }

/* จอใหญ่ขึ้น */
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  /* จอกว้าง: ข้อความอยู่ซ้าย ภาพอาหารอยู่ขวา ไล่เงาจากซ้าย */
  .hero { min-height: min(78vh, 620px); align-items: center; }
  .hero-photo { left: 38%; }
  .hero-photo .photo { object-position: center; }
  .hero-photo::after { background: linear-gradient(90deg, var(--navy) 0%, rgba(16, 26, 43, .6) 18%, rgba(16, 26, 43, 0) 40%); }
  .hero-copy { max-width: 620px; padding: 56px var(--gutter); }
  .hero-actions { margin-top: 0; }
  .best .sec-head, .best-row, .menu > *, .visit > *, .delivery > *, .contact > * { max-width: 960px; margin-left: auto; margin-right: auto; }
  .best-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* จอกว้าง: รูปคุณตาซ้าย เรื่องราวขวา */
  .story-layout { display: grid; grid-template-columns: 280px minmax(0, 34rem); justify-content: center; align-items: center; gap: 48px; }
  .story-layout .polaroid { width: 100%; }
  .story-layout .story-points { margin: 0; }
  .gallery-row { flex-wrap: wrap; overflow: visible; margin: 12px 0 0; padding: 4px 0 12px; }
  .gallery-card { flex: 1 0 160px; max-width: 240px; }
  .story-gallery .sec-hint { display: none; }
  /* ไหลวนบนจอคอมด้วย: กลับเป็นแถวเดียว */
  .gallery-row.is-marquee { flex-wrap: nowrap; overflow-x: auto; }
  .gallery-row.is-marquee .gallery-card { flex: 0 0 220px; }
  .menu-sections, .item-list { columns: 2; column-gap: 32px; }
  .item { break-inside: avoid; }
  .tabs { margin-left: auto; margin-right: auto; padding: 0; }
  .map-frame { height: 320px; }
  .sheet { width: 480px; margin: auto; border-radius: 20px; max-height: 88dvh; }
  .album { max-width: 960px; margin-left: auto; margin-right: auto; }
  .album-grid { columns: 3; column-gap: 20px; }
  .album-photo { margin-bottom: 20px; }
}
@media (min-width: 1200px) {
  .hero-copy { max-width: calc((100vw - 960px) / 2 + 560px); padding-left: calc((100vw - 960px) / 2); }
}

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