/* ══════════════════════════════════════════════════════════════
   Real Cafe — สไตล์ทั้งเว็บอยู่ไฟล์นี้ไฟล์เดียว

   ทำไมแยกออกมาจาก HTML: เดิมสไตล์ฝังใน style="..." ทุกแท็ก (163 จุด)
   หน้าตากับโครงสร้างจึงติดกันเป็นเนื้อเดียว — จะเปลี่ยนสีปุ่มทีก็ต้องแก้ HTML
   ซึ่งเสี่ยงทำ marker <!-- FEATURED --> / คลาส GTM / schema หลุดโดยไม่รู้ตัว

   ตอนนี้: "ทำให้สวยขึ้น" = แก้ไฟล์นี้อย่างเดียว ไม่ต้องแตะ HTML
   ══════════════════════════════════════════════════════════════ */

/* ── design token — เปลี่ยน 5 ค่านี้ = เปลี่ยนทั้งเว็บ ────────── */
:root {
  --ink: #16120F;          /* ตัวอักษร/พื้นเข้ม */
  --paper: #FFFDF8;        /* พื้นหลังหลัก */
  --sand: #F3EDE4;         /* พื้นรอง/ปุ่มจาง */
  --flame: #FF6432;        /* สีแบรนด์ ใช้เน้น */
  --line-green: #06C755;   /* สีของ LINE — ห้ามเปลี่ยน คนจำสีนี้ */

  --font-head: "Prompt", sans-serif;
  --font-body: "Anuphan", sans-serif;

  --radius: 12px;
  --radius-lg: 14px;
  --shell: 390px;          /* ความกว้างหน้าจอจำลอง */

  --ink-90: rgba(22, 18, 15, 0.9);
  --ink-78: rgba(22, 18, 15, 0.78);
  --ink-72: rgba(22, 18, 15, 0.72);
  --ink-70: rgba(22, 18, 15, 0.7);
  --ink-66: rgba(22, 18, 15, 0.66);
  --ink-60: rgba(22, 18, 15, 0.6);
  --ink-55: rgba(22, 18, 15, 0.55);
  --ink-50: rgba(22, 18, 15, 0.5);
  --ink-45: rgba(22, 18, 15, 0.45);
  --ink-40: rgba(22, 18, 15, 0.4);
  --hairline: rgba(22, 18, 15, 0.08);
  --hairline-strong: rgba(22, 18, 15, 0.12);
}

/* ── reset ────────────────────────────────────────────────── */
html, body { margin: 0; padding: 0; background: var(--ink); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
a { color: var(--flame); text-decoration: none; }
a:hover { color: var(--ink); }

/* ── โครงหน้า ─────────────────────────────────────────────── */
.page-frame {
  display: flex;
  justify-content: center;
  background: var(--ink);
  min-height: 100vh;
  font-family: var(--font-body);
}
.page {
  width: var(--shell);
  max-width: 100%;
  background: var(--paper);
  color: var(--ink);
  padding-bottom: 104px;
  overflow: hidden;
}

/* ── หัวเว็บ ───────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 40px; height: 40px; border-radius: 9px; display: block; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.hours {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-green); display: block; }

/* ── hero ─────────────────────────────────────────────────── */
.hero { padding: 0 20px 28px; background: var(--paper); }
.is-hidden { display: none; }
.seasonal-banner {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.seasonal-until { font-size: 12px; color: var(--flame); white-space: nowrap; }
.rating-row { display: flex; align-items: flex-end; gap: 12px; padding-top: 26px; }
.rating-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 92px;
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: var(--flame);
}
.rating-meta { display: flex; flex-direction: column; gap: 4px; padding-bottom: 6px; }
.stars-lg { font-size: 20px; color: var(--flame); letter-spacing: 2px; line-height: 1; }
.star-dim { color: rgba(255, 100, 50, 0.3); }
.rating-note { font-size: 13px; color: var(--ink-60); line-height: 1.3; }
.hero-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 29px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 22px 0 10px;
  text-wrap: pretty;
}
.hero-lead { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-66); text-wrap: pretty; }
.hero-actions { margin-top: 20px; }
.hero-photo { margin-top: 20px; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); }
.hero-photo img { width: 100%; height: 230px; object-fit: cover; display: block; }

/* ── ปุ่ม ─────────────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  gap: 8px;
  text-decoration: none;
}
.btn-line { background: var(--line-green); color: #fff; }
.btn-call { background: var(--flame); color: var(--paper); }
.btn-ghost { background: var(--sand); color: var(--ink); }
.btn-dark {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  gap: 9px;
  text-decoration: none;
}
.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  gap: 8px;
}
.btn-line-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: var(--radius);
  background: var(--line-green);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  gap: 9px;
  margin-top: 20px;
}
.btn-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 11px;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
}
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.icon { display: block; flex: none; }
.icon-line { width: 20px; height: 20px; display: block; flex: none; border-radius: 5px; }
.icon-line-lg { width: 22px; height: 22px; display: block; flex: none; border-radius: 5px; }

/* ── หมวดเมนู ─────────────────────────────────────────────── */
.menu-section { padding: 28px 0 8px; background: var(--paper); }
.section-head { padding: 0 20px; }
.section-head-gap { padding: 30px 20px 0; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flame);
  font-weight: 600;
}
.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22px;
  margin: 8px 0 0;
  scroll-margin-top: 80px;
}
.section-title-flat {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22px;
  margin: 0;
  scroll-margin-top: 80px;
}
.section-sub { margin: 4px 0 0; font-size: 13px; color: var(--ink-55); }

/* การ์ดสินค้า — โครงนี้ scripts/build_menu_fragment.py สร้างให้ ห้ามแก้ HTML มือ */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 16px 20px 0; }
.card { display: flex; flex-direction: column; gap: 8px; }
.card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  background: var(--sand);
}
.card-name { font-family: var(--font-head); font-weight: 500; font-size: 14px; line-height: 1.3; }
.card-price { font-size: 12px; color: var(--ink-55); }

.hscroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 20px 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.card-h { flex: 0 0 132px; display: flex; flex-direction: column; gap: 8px; scroll-snap-align: start; }
.card-img-sq {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  background: var(--sand);
}
.card-name-sm { font-family: var(--font-head); font-weight: 500; font-size: 13px; }

/* ── CTA ท้ายหมวด — ข้อความอยู่ใน scripts/menu_page.py ───────── */
.cta { padding: 22px 20px 0; }
.cta-text { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--ink-72); }

.menu-foot { padding: 26px 20px 0; }
.menu-foot-text { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--ink-70); }

/* ── กล่องดำ "สั่งเค้กปอนด์" ──────────────────────────────── */
.panel-dark {
  margin: 32px 20px 0;
  padding: 22px 20px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
}
.panel-title { font-family: var(--font-head); font-weight: 600; font-size: 20px; margin: 0 0 16px; }
.steps { display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.5; }
.step { display: flex; gap: 10px; }
.step-num { color: var(--flame); font-weight: 600; }
.on-dark-dim { color: rgba(255, 253, 248, 0.82); }

/* ── รีวิว ────────────────────────────────────────────────── */
.section-pad { padding: 36px 20px 0; }
.section-title-lg { font-family: var(--font-head); font-weight: 600; font-size: 22px; margin: 8px 0 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.review-card { padding: 16px; border-radius: var(--radius-lg); border: 1px solid var(--hairline-strong); }
.stars-sm { color: var(--flame); font-size: 13px; letter-spacing: 2px; }
.review-text { margin: 8px 0 12px; font-size: 14px; line-height: 1.55; color: var(--ink-78); }
.review-meta { font-size: 12px; color: var(--ink-45); }

/* ── มาที่ร้าน ────────────────────────────────────────────── */
.visit { padding: 36px 20px 32px; }
.visit-title { font-family: var(--font-head); font-weight: 600; font-size: 22px; margin: 0 0 14px; }
.map-card { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); }
.map-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.visit-info { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; font-size: 14px; line-height: 1.55; }
.visit-line { color: var(--ink-78); }
.visit-note { font-size: 13px; color: var(--ink-50); margin-top: 2px; }
.visit-phone { font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--flame); }

/* ── ท้ายเว็บ + แถบล่าง ───────────────────────────────────── */
.site-footer {
  padding: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--ink-40);
  display: flex;
  justify-content: space-between;
}
.stickybar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.stickybar-inner {
  width: var(--shell);
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(22, 18, 15, 0.1);
  pointer-events: auto;
}
.sb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: 11px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  gap: 7px;
}
.sb-call { background: var(--flame); color: var(--paper); }
.sb-line { background: var(--line-green); color: #fff; }
.sb-map { background: var(--ink); color: var(--paper); }

/* ══════════════════════════════════════════════════════════════
   หน้า /menu — คุมด้วย .page-menu เพื่อไม่ให้ selector แบบ ul/li
   หลุดไปโดนหน้าแรก
   ══════════════════════════════════════════════════════════════ */
.page-menu {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: 88px;
}
.page-menu a { color: inherit; }
.page-menu .bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--sand);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
}
.page-menu .bar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.page-menu .foot b { font-family: var(--font-head); }
.page-menu .bar img { width: 34px; height: auto; display: block; }
.page-menu .bar b { font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.page-menu h1 { font-family: var(--font-head); font-weight: 600; font-size: 24px; padding: 26px 20px 2px; }
.page-menu .lead { padding: 0 20px; font-size: 14px; color: var(--ink-60); }
.page-menu h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  padding: 30px 20px 0;
  scroll-margin-top: 64px;
}
.page-menu ul { list-style: none; padding: 10px 20px 0; }
.page-menu li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--sand);
}
.page-menu li:last-child { border-bottom: none; }
.page-menu .n { font-size: 15px; }
.page-menu .p { font-size: 14px; color: var(--ink-60); white-space: nowrap; font-variant-numeric: tabular-nums; }
.page-menu .pre {
  display: inline-block;
  margin-left: 7px;
  font-size: 11px;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--flame);
  background: rgba(255, 100, 50, 0.1);
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
}
.page-menu .foot { padding: 34px 20px 0; font-size: 13px; color: var(--ink-55); line-height: 1.8; }
.page-menu .cta { padding: 22px 20px 0; }

/* ── หน้า 404 ─────────────────────────────────────────────── */
.page-404 {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  line-height: 1.7;
}
.page-404 .box { max-width: 420px; }
.page-404 img { width: 88px; height: auto; margin-bottom: 28px; }
.page-404 h1 { font-family: var(--font-head); font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.page-404 p { font-size: 15px; color: var(--ink-78); margin-bottom: 28px; }
.page-404 .btns { display: flex; flex-direction: column; gap: 10px; }
.page-404 .btns a {
  display: block;
  padding: 14px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
}
.btn-404-primary { background: var(--flame); color: var(--paper); }
.btn-404-line { background: var(--line-green); color: #fff; }
.btn-404-ghost { background: var(--sand); color: var(--ink); }
