/* ===== สีและค่าหลัก แก้ตรงนี้ที่เดียวเปลี่ยนทั้งเว็บ ===== */
:root {
  --red: #c8321e;
  --red-dark: #9e2414;
  --mustard: #f2b632;
  --cream: #fff8ee;
  --cream-2: #fbeedb;
  --ink: #2b1d16;
  --muted: #7a6558;
  --line: #06c755;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(60, 30, 10, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Sarabun", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
h1, h2, h3, .logo, .btn { font-family: "Prompt", sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 16px; }

/* ===== ปุ่ม ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0;
  font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--line { background: var(--line); color: #fff; }
.btn--line:hover { background: #05a647; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { background: #bbb; pointer-events: none; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 248, 238, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-2);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 24px; font-weight: 700; text-decoration: none; color: var(--red); }
.logo span { color: var(--ink); }
.nav__links { display: flex; gap: 24px; }
.nav__links a { text-decoration: none; font-weight: 600; }
.nav__links a:hover { color: var(--red); }
.nav__toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--cream);
    border-bottom: 1px solid var(--cream-2);
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 14px 16px; border-top: 1px solid var(--cream-2); }
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(circle at 85% 20%, var(--mustard) 0 90px, transparent 91px),
    radial-gradient(circle at 92% 75%, #e9572f 0 140px, transparent 141px),
    var(--red);
  color: #fff;
  padding: 72px 0 80px;
  overflow: hidden;
}
.hero__eyebrow { margin: 0 0 8px; font-weight: 600; color: var(--mustard); }
.hero h1 { font-size: clamp(34px, 7vw, 58px); line-height: 1.15; margin: 0 0 16px; }
.hero__sub { max-width: 460px; margin: 0 0 28px; opacity: .92; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn--primary { background: #fff; color: var(--red); }

/* ===== Section ===== */
.section { padding: 64px 0; }
.section--alt { background: var(--cream-2); }
.section__title { font-size: clamp(26px, 4vw, 34px); margin: 0 0 24px; }

.demo-note {
  background: #fff3cd; border: 1px dashed #d9a300; border-radius: 12px;
  padding: 12px 16px; margin-bottom: 20px; font-size: 15px;
}

/* ===== ตัวกรองหมวดหมู่ ===== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  border: 1.5px solid var(--red); background: transparent; color: var(--red);
  padding: 6px 16px; border-radius: 999px; font: 600 15px "Sarabun", sans-serif; cursor: pointer;
}
.chip.active { background: var(--red); color: #fff; }

/* ===== การ์ดสินค้า ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; cursor: pointer; text-align: left; border: 0; padding: 0;
  font: inherit; color: inherit; display: flex; flex-direction: column;
  transition: transform .2s;
}
.card:hover { transform: translateY(-4px); }
.card__img { position: relative; aspect-ratio: 1; background: var(--cream-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__badge {
  position: absolute; top: 10px; left: 10px; background: var(--mustard);
  font: 700 13px "Prompt", sans-serif; padding: 3px 10px; border-radius: 999px;
}
.card__soldout {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(255,255,255,.65); font: 700 18px "Prompt", sans-serif; color: var(--muted);
}
.card__body { padding: 14px 16px 18px; }
.card__name { font: 600 17px "Prompt", sans-serif; margin: 0 0 4px; }
.card__short { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.price { font: 700 18px "Prompt", sans-serif; color: var(--red); }
.price s { color: var(--muted); font-weight: 500; font-size: .8em; margin-left: 6px; }

/* รูปสำรองตอนยังไม่มีรูป */
.ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--mustard), var(--red));
  color: #fff; font: 700 48px "Prompt", sans-serif;
}

.loading, .empty { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 40px 0; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.about__img {
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--mustard), var(--red));
}
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 24px; } }

/* ===== ขั้นตอน ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); counter-increment: s; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--red); color: #fff; font: 700 18px "Prompt", sans-serif; margin-bottom: 12px;
}
.steps b { display: block; font-family: "Prompt", sans-serif; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }

/* ===== FAQ ===== */
.faq details { background: #fff; border-radius: 12px; padding: 4px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.faq p { margin: 0 0 14px; color: var(--muted); }

.contact { text-align: center; }
.footer { padding: 24px 0 90px; text-align: center; color: var(--muted); font-size: 14px; }

/* ===== ปุ่ม LINE ลอย ===== */
.line-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--line); color: #fff; text-decoration: none;
  font: 700 13px "Prompt", sans-serif; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

/* ===== Modal ===== */
.modal {
  width: min(900px, calc(100% - 24px)); max-height: calc(100% - 24px);
  border: 0; border-radius: 20px; padding: 0; background: #fff; color: var(--ink);
}
.modal::backdrop { background: rgba(30, 15, 5, .55); }
.modal__close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.9); font-size: 18px; cursor: pointer;
}
.modal__body { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .modal__body { grid-template-columns: 1fr; } }

.gallery { background: var(--cream-2); }
.gallery__main { aspect-ratio: 1; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.gallery__thumbs button { flex: 0 0 60px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; }
.gallery__thumbs button.active { border-color: var(--red); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail { padding: 28px 24px; }
.detail__cat { margin: 0; color: var(--muted); font-size: 14px; }
.detail h3 { font-size: 26px; margin: 2px 0 6px; }
.detail__price { margin: 0 0 12px; }
.detail__desc { white-space: pre-line; color: #4a3a30; }

.opt-label { font-weight: 600; margin: 16px 0 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  padding: 8px 16px; border-radius: 10px; border: 1.5px solid #ddd; background: #fff;
  font: 600 15px "Sarabun", sans-serif; cursor: pointer;
}
.opt.active { border-color: var(--red); background: #fdeae6; color: var(--red-dark); }

.qty { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-weight: 600; }
.qty button {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #ddd;
  background: #fff; font-size: 20px; cursor: pointer; line-height: 1;
}
.qty output { min-width: 24px; text-align: center; font-size: 18px; }

/* ===== รูปเมนูรวมใต้ Hero ===== */
.menu-banner {
  padding: 40px 0 8px;
}
.menu-banner__img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== แบนเนอร์และหมวดสินค้า ===== */
.chip {
  text-decoration: none;
  transition: background .15s, color .15s;
}
.chip:hover {
  background: var(--red);
  color: #fff;
}

.cat-section {
  margin-bottom: 56px;
  scroll-margin-top: 84px;
}
.cat-section:last-child {
  margin-bottom: 0;
}

.cat-banner {
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cat-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.cat-title {
  font-size: clamp(19px, 2.8vw, 24px);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
}