#sbhome-root * { box-sizing: border-box; }
#sbhome-root {
  font-family: 'Segoe UI', 'Sarabun', sans-serif;
  background: #1a1410;
  color: #f4ede1;
  line-height: 1.6;
  overflow-x: hidden;
}
#sbhome-root a { color: inherit; text-decoration: none; }
#sbhome-root .sbhome-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== Top bar ===== */
#sbhome-root .sbhome-topbar { border-bottom: 1px solid #2a221a; }
#sbhome-root .sbhome-topbar-inner {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 20px;
}
#sbhome-root .sbhome-logo { width: 40px; height: 40px; border-radius: 50%; display: block; }
#sbhome-root .sbhome-nav { display: flex; align-items: center; gap: 20px; }
#sbhome-root .sbhome-nav a { font-size: 13px; color: #d8cdbe; font-weight: 600; }
#sbhome-root .sbhome-nav a:hover { color: #f5821f; }
#sbhome-root .sbhome-nav a.active { color: #f5821f; }
#sbhome-root .sbhome-nav a.sbhome-nav-cta {
  background: #f5821f; color: #0d0a08; padding: 7px 16px; border-radius: 999px;
}
#sbhome-root .sbhome-nav a.sbhome-nav-cta:hover { color: #0d0a08; opacity: 0.9; }

#sbhome-root .sbhome-eyebrow {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: #f5821f; font-weight: 700; margin-bottom: 10px; display: block;
}

/* ===== Hero ===== */
#sbhome-root .sbhome-hero {
  padding: 64px 0 56px;
  background: radial-gradient(circle at 80% 20%, #2a1f16 0%, #1a1410 60%);
  border-bottom: 3px solid #f5821f;
}
#sbhome-root .sbhome-hero-inner {
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
#sbhome-root .sbhome-hero-text { flex: 1 1 380px; min-width: 280px; }
#sbhome-root .sbhome-hero-text h1 {
  font-size: 40px; line-height: 1.2; margin: 0 0 14px; color: #f4ede1;
}
#sbhome-root .sbhome-hero-text h1 span { color: #f5821f; }
#sbhome-root .sbhome-hero-text p {
  font-size: 15px; color: #d8cdbe; max-width: 460px; margin-bottom: 26px;
}
#sbhome-root .sbhome-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
#sbhome-root .sbhome-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-size: 14px; font-weight: 700;
  cursor: pointer; border: 1px solid transparent;
}
#sbhome-root .sbhome-btn-primary { background: #f5821f; color: #0d0a08; }
#sbhome-root .sbhome-btn-outline { background: transparent; color: #f4ede1; border-color: #3a2e24; }
#sbhome-root .sbhome-btn-outline:hover { border-color: #f5821f; color: #f5821f; }
#sbhome-root .sbhome-hero-art { flex: 0 0 300px; display: flex; justify-content: center; }
#sbhome-root .sbhome-hero-art svg { width: 100%; max-width: 300px; height: auto; }
#sbhome-root .sbhome-hero-logo { width: 100%; max-width: 280px; height: auto; border-radius: 50%; }

/* ===== Sections ===== */
#sbhome-root section { padding: 56px 0; }
#sbhome-root .sbhome-section-title {
  font-size: 26px; margin: 0 0 8px; color: #f4ede1;
}
#sbhome-root .sbhome-section-sub {
  font-size: 14px; color: #b8aea0; margin-bottom: 32px; max-width: 560px;
}

/* ===== Story ===== */
#sbhome-root .sbhome-story { background: #17110d; }
#sbhome-root .sbhome-story-inner {
  display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start;
}
#sbhome-root .sbhome-story-text { flex: 1 1 380px; min-width: 280px; }
#sbhome-root .sbhome-story-text p { color: #d8cdbe; font-size: 15px; margin-bottom: 14px; }
#sbhome-root .sbhome-story-note {
  font-size: 12px; color: #8a7c6b; border-left: 2px solid #3a2e24; padding-left: 10px; margin-top: 18px;
}
#sbhome-root .sbhome-highlights {
  flex: 1 1 320px; min-width: 260px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
#sbhome-root .sbhome-highlight-card {
  background: #221a14; border: 1px solid #3a2e24; border-radius: 12px; padding: 18px 16px;
}
#sbhome-root .sbhome-highlight-card svg { width: 30px; height: 30px; margin-bottom: 10px; }
#sbhome-root .sbhome-highlight-card h3 { font-size: 14px; margin: 0 0 4px; color: #f4ede1; }
#sbhome-root .sbhome-highlight-card p { font-size: 12px; color: #b8aea0; margin: 0; }

/* ===== Menu ===== */
#sbhome-root .sbhome-menu-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px;
}
#sbhome-root .sbhome-menu-card {
  background: #221a14; border: 1px solid #3a2e24; border-radius: 14px; padding: 22px;
}
#sbhome-root .sbhome-menu-card .icon-wrap {
  width: 48px; height: 48px; border-radius: 50%; background: #1a1410;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
#sbhome-root .sbhome-menu-card svg { width: 26px; height: 26px; }
#sbhome-root .sbhome-menu-card h3 { font-size: 16px; margin: 0 0 10px; color: #f5821f; }
#sbhome-root .sbhome-menu-card ul { list-style: none; margin: 0; padding: 0; }
#sbhome-root .sbhome-menu-card li {
  font-size: 13px; color: #d8cdbe; padding: 5px 0; border-bottom: 1px solid #2a221a;
}
#sbhome-root .sbhome-menu-card li:last-child { border-bottom: none; }
#sbhome-root .sbhome-menu-more { font-size: 12px; color: #8a7c6b; margin-top: 30px; text-align: center; }

/* ===== Gallery (placeholder illustrations) ===== */
#sbhome-root .sbhome-gallery { background: #17110d; }
#sbhome-root .sbhome-gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
#sbhome-root .sbhome-gallery-tile {
  aspect-ratio: 4 / 3; border-radius: 14px; border: 1px dashed #4a3c2e;
  background: #221a14; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; color: #8a7c6b; font-size: 12px; text-align: center; padding: 12px;
}
#sbhome-root .sbhome-gallery-tile svg { width: 40px; height: 40px; opacity: 0.85; }

/* ===== Info (hours / location / order) ===== */
#sbhome-root .sbhome-info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px;
}
#sbhome-root .sbhome-info-card {
  background: #221a14; border: 1px solid #3a2e24; border-radius: 14px; padding: 22px;
}
#sbhome-root .sbhome-info-card svg { width: 26px; height: 26px; margin-bottom: 12px; }
#sbhome-root .sbhome-info-card h3 { font-size: 15px; margin: 0 0 8px; color: #f4ede1; }
#sbhome-root .sbhome-info-card p { font-size: 13px; color: #b8aea0; margin: 0; }
#sbhome-root .sbhome-map-link { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; color: #f5821f; }
#sbhome-root .sbhome-map-link:hover { text-decoration: underline; }
#sbhome-root .sbhome-placeholder { color: #f5821f; background: rgba(245,130,31,0.12); padding: 1px 6px; border-radius: 4px; }

/* ===== Order channels ===== */
#sbhome-root .sbhome-order { text-align: center; }
#sbhome-root .sbhome-order-row {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px;
}
#sbhome-root .sbhome-order-card {
  background: #221a14; border: 1px solid #3a2e24; border-radius: 14px;
  padding: 20px 26px; min-width: 160px; text-align: center; cursor: pointer;
}
#sbhome-root .sbhome-order-card:hover { border-color: #f5821f; }
#sbhome-root .sbhome-order-card .icon-badge {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 10px;
}
#sbhome-root .sbhome-order-card .icon-badge svg { width: 22px; height: 22px; }
#sbhome-root .badge-linemanan { background: #06c755; }
#sbhome-root .badge-grab { background: #00b14f; }
#sbhome-root .badge-lineoa { background: #06c755; }
#sbhome-root .badge-phone { background: #f5821f; }
#sbhome-root .sbhome-order-card div.title { font-size: 14px; font-weight: 700; color: #f4ede1; }
#sbhome-root .sbhome-order-card div.sub { font-size: 11px; color: #8a7c6b; margin-top: 3px; }

/* ===== Footer ===== */
#sbhome-root .sbhome-footer {
  border-top: 1px solid #3a2e24; padding: 30px 0; text-align: center;
  font-size: 12px; color: #6b6056;
}

@media (max-width: 640px) {
  #sbhome-root .sbhome-hero { padding: 48px 0 40px; }
  #sbhome-root .sbhome-hero-text h1 { font-size: 30px; }
  #sbhome-root .sbhome-hero-art { order: -1; flex-basis: 220px; }
  #sbhome-root section { padding: 40px 0; }
}

/* ===== ซ่อนหน้าไว้ก่อนจนกว่า JS จะซ่อน header/footer/หัวข้อของธีมเสร็จ (กัน flash) ===== */
body.sbhome-fullscreen-page:not(.sbhome-ready) {
  visibility: hidden !important;
  background: #1a1410 !important;
}
body.sbhome-fullscreen-page.sbhome-ready {
  background: #1a1410 !important;
  margin: 0 !important;
}
