#hbhome-root * { box-sizing: border-box; }
#hbhome-root {
  font-family: 'Segoe UI', 'Sarabun', sans-serif;
  background: #1c1310;
  color: #f4ece0;
  line-height: 1.6;
  overflow-x: hidden;
}
#hbhome-root a { color: inherit; text-decoration: none; }
#hbhome-root .hb-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
#hbhome-root .hb-eyebrow {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: #d8542f; font-weight: 700; margin-bottom: 10px; display: block;
}

/* ===== Top bar ===== */
#hbhome-root .hb-topbar { border-bottom: 1px solid #3a2a1f; }
#hbhome-root .hb-topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
#hbhome-root .hb-logo-mark {
  display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 15px; letter-spacing: 1px; color: #f4ece0;
}
#hbhome-root .hb-logo-badge {
  width: 38px; height: 38px; border-radius: 50%; background: #d8452c;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; color: #1c1310;
}
#hbhome-root .hb-nav { display: flex; align-items: center; gap: 20px; }
#hbhome-root .hb-nav a { font-size: 13px; color: #cdbba9; font-weight: 600; }
#hbhome-root .hb-nav a:hover { color: #d8542f; }
#hbhome-root .hb-nav a.active { color: #d8452c; }
#hbhome-root .hb-nav a.hb-nav-cta { background: #d8452c; color: #fff3ea; padding: 7px 16px; border-radius: 999px; }
#hbhome-root .hb-nav a.hb-nav-cta:hover { opacity: 0.9; color: #fff3ea; }

/* ===== Hero ===== */
#hbhome-root .hb-hero {
  padding: 64px 0 56px;
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.15) 0 2px, transparent 2px 26px),
    radial-gradient(circle at 85% 15%, #2c1c14 0%, #1c1310 60%);
  border-bottom: 3px solid #d8452c;
}
#hbhome-root .hb-hero-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
#hbhome-root .hb-hero-text { flex: 1 1 380px; min-width: 280px; }
#hbhome-root .hb-hero-text h1 { font-size: 40px; line-height: 1.2; margin: 0 0 14px; color: #f4ece0; }
#hbhome-root .hb-hero-text h1 span { color: #d8452c; }
#hbhome-root .hb-hero-text p { font-size: 15px; color: #cdbba9; max-width: 460px; margin-bottom: 26px; }
#hbhome-root .hb-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
#hbhome-root .hb-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 700; cursor: pointer; border: 1px solid transparent;
}
#hbhome-root .hb-btn-primary { background: #d8452c; color: #fff3ea; }
#hbhome-root .hb-btn-outline { background: transparent; color: #f4ece0; border-color: #4a3a2c; }
#hbhome-root .hb-btn-outline:hover { border-color: #d8452c; color: #d8542f; }
#hbhome-root .hb-hero-art { flex: 0 0 280px; display: flex; justify-content: center; }
#hbhome-root .hb-hero-art svg { width: 100%; max-width: 260px; height: auto; }

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

/* ===== Story ===== */
#hbhome-root .hb-story { background: #17100d; }
#hbhome-root .hb-story-inner { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
#hbhome-root .hb-story-text { flex: 1 1 380px; min-width: 280px; }
#hbhome-root .hb-story-text p { color: #cdbba9; font-size: 15px; margin-bottom: 14px; }
#hbhome-root .hb-story-note { font-size: 12px; color: #8a7364; border-left: 2px solid #4a3a2c; padding-left: 10px; margin-top: 18px; }
#hbhome-root .hb-highlights { flex: 1 1 320px; min-width: 260px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#hbhome-root .hb-highlight-card { background: #241a14; border: 1px solid #3a2a1f; border-radius: 10px; padding: 18px 16px; }
#hbhome-root .hb-highlight-card svg { width: 28px; height: 28px; margin-bottom: 10px; }
#hbhome-root .hb-highlight-card h3 { font-size: 14px; margin: 0 0 4px; color: #f4ece0; }
#hbhome-root .hb-highlight-card p { font-size: 12px; color: #a8998a; margin: 0; }

/* ===== Products ===== */
#hbhome-root .hb-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
#hbhome-root .hb-product-card { background: #241a14; border: 1px solid #3a2a1f; border-radius: 10px; padding: 22px; }
#hbhome-root .hb-product-card .icon-wrap {
  width: 48px; height: 48px; border-radius: 50%; background: #1c1310;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
#hbhome-root .hb-product-card svg { width: 26px; height: 26px; }
#hbhome-root .hb-product-card h3 { font-size: 16px; margin: 0 0 8px; color: #d8542f; }
#hbhome-root .hb-product-card p { font-size: 13px; color: #cdbba9; margin: 0; }

/* ===== Sales channels ===== */
#hbhome-root .hb-channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
#hbhome-root .hb-channel-card {
  background: #241a14; border: 1px solid #3a2a1f; border-radius: 10px; padding: 24px; text-align: left;
}
#hbhome-root .hb-channel-card .icon-badge {
  width: 46px; height: 46px; border-radius: 10px; background: #d8452c;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
#hbhome-root .hb-channel-card .icon-badge svg { width: 24px; height: 24px; }
#hbhome-root .hb-channel-card h3 { font-size: 16px; margin: 0 0 6px; color: #f4ece0; }
#hbhome-root .hb-channel-card p { font-size: 13px; color: #a8998a; margin: 0 0 16px; }
#hbhome-root .hb-channel-card a.hb-channel-link {
  display: inline-block; font-size: 13px; font-weight: 700; color: #d8542f;
  border: 1px solid #4a3a2c; border-radius: 8px; padding: 8px 14px;
}
#hbhome-root .hb-channel-card a.hb-channel-link:hover { border-color: #d8452c; }

/* ===== Booth schedule ===== */
#hbhome-root .hb-schedule { background: #17100d; }
#hbhome-root .hb-schedule-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
#hbhome-root .hb-schedule-table th {
  text-align: left; font-size: 12px; color: #8a7364; text-transform: uppercase; letter-spacing: 1px;
  padding: 10px 14px; border-bottom: 1px solid #3a2a1f;
}
#hbhome-root .hb-schedule-table td {
  font-size: 14px; color: #f4ece0; padding: 14px; border-bottom: 1px solid #2a1f18; vertical-align: top;
}
#hbhome-root .hb-schedule-table td.hb-date { color: #d8542f; font-weight: 700; white-space: nowrap; }
#hbhome-root .hb-schedule-note { font-size: 12px; color: #8a7364; margin-top: 16px; }

/* ===== Contact / social ===== */
#hbhome-root .hb-contact { text-align: center; }
#hbhome-root .hb-contact-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
#hbhome-root .hb-contact-card {
  background: #241a14; border: 1px solid #3a2a1f; border-radius: 10px;
  padding: 20px 26px; min-width: 160px; text-align: center; cursor: pointer;
}
#hbhome-root .hb-contact-card:hover { border-color: #d8452c; }
#hbhome-root .hb-contact-card .icon-badge {
  width: 44px; height: 44px; border-radius: 50%; background: #d8452c;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
}
#hbhome-root .hb-contact-card .icon-badge svg { width: 22px; height: 22px; }
#hbhome-root .hb-contact-card div.title { font-size: 14px; font-weight: 700; color: #f4ece0; }
#hbhome-root .hb-contact-card div.sub { font-size: 11px; color: #8a7364; margin-top: 3px; }

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

@media (max-width: 640px) {
  #hbhome-root .hb-hero { padding: 48px 0 40px; }
  #hbhome-root .hb-hero-text h1 { font-size: 30px; }
  #hbhome-root .hb-hero-art { order: -1; flex-basis: 200px; }
  #hbhome-root section { padding: 40px 0; }
  #hbhome-root .hb-schedule-table { display: block; overflow-x: auto; }
}

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