:root {
  --bg-color: #080808;
  --surface-color: #121212;
  --primary: #e60000;
  --primary-hover: #ff3333;
  --text-main: #ffffff;
  --text-muted: #999999;
  --border: #2a2a2a;
  --radius: 16px;
  --font-family: 'Kanit', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  background-image: radial-gradient(circle at 50% 0%, rgba(230,0,0,0.08) 0%, transparent 80%);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Topbar (แก้ไขไม่ให้ดึงหน้าจอค้าง) --- */
.topbar { 
  background: rgba(8,8,8,0.85); 
  backdrop-filter: blur(12px); 
  position: sticky; top: 0; z-index: 100; /* ให้เฉพาะแถบเมนูเล็กๆ ติดขอบบน */
  border-bottom: 1px solid var(--border);
}
.topbar__inner { 
  display: flex; justify-content: space-between; align-items: center; 
  padding: 15px 20px; 
  max-width: 1200px; margin: 0 auto; 
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo img { width: 50px; height: 50px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.brand__name { font-weight: 800; font-size: 1.2rem; }
.brand__tag { font-size: 0.8rem; color: var(--text-muted); }
.badge { background: rgba(230,0,0,0.1); color: var(--primary-hover); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; border: 1px solid rgba(230,0,0,0.3); font-weight: bold; }

/* --- Hero Content (ปลดล็อค sticky ให้เลื่อนได้ปกติ) --- */
.hero { max-width: 1200px; margin: 0 auto; padding: 40px 20px 20px 20px; }
.hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero__copy h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 15px; font-weight: 900; }
.hero__copy .sub { color: var(--text-muted); font-size: 1rem; margin-bottom: 25px; }
.muted { color: var(--text-muted); }

/* --- ไฮไลท์ข้อความเด่น --- */
.highlight-box {
  background: var(--primary); color: white; padding: 4px 10px; border-radius: 8px; font-weight: 800; display: inline-block; box-shadow: 0 2px 8px rgba(230,0,0,0.4);
}

/* --- Buttons --- */
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { padding: 12px 20px; border-radius: 12px; font-weight: 600; font-family: var(--font-family); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border: none; transition: all 0.2s; }
.btn--red { background: linear-gradient(135deg, var(--primary) 0%, #b30000 100%); color: white; box-shadow: 0 4px 15px rgba(230,0,0,0.3); }
.btn--red:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,0,0,0.5); }
.btn--dark { background-color: var(--surface-color); color: white; border: 1px solid var(--border); }
.btn--light { background-color: white; color: black; font-weight: 800; }
.btn--ghost { background-color: transparent; color: white; border: 1px solid var(--border); }

/* --- Promo Card --- */
.promoCard { background: linear-gradient(145deg, #240808 0%, #0a0a0a 100%); border: 1px solid #4a1111; border-radius: var(--radius); padding: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.6); text-align: center; }
.promoCard__title { font-weight: 800; color: #ffcccc; margin-bottom: 5px; font-size: 1.1rem; }
.price-huge {
  font-size: 5.5rem; font-weight: 900; color: #fff;
  background: linear-gradient(180deg, #ff6666 0%, #cc0000 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; text-shadow: 0 10px 30px rgba(230,0,0,0.5); margin: 10px 0;
}
.promoCard__sub { margin-bottom: 10px; }
.promoCard__note { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.promoCard__actions { display: flex; gap: 10px; flex-direction: column; }
.promoCard__actions .btn { width: 100%; }

/* --- Main Layout --- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.sectionHead { margin-bottom: 25px; }
.sectionHead h2 { font-size: 1.6rem; font-weight: 800; }
.pill { background: rgba(255,255,255,0.2); padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; display: inline-block; font-weight: 600; color: white; }

/* --- Grid 3x2 --- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 50px; }
.card { 
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  border: 1px solid #333; border-radius: 16px; padding: 18px 10px; 
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  transition: all 0.3s; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.card:active { transform: scale(0.95); }
.card__icon { 
  font-size: 1.8rem; background: rgba(255,255,255,0.05); 
  width: 50px; height: 50px; border-radius: 50%; 
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px; 
}
.card__title { font-weight: 700; font-size: 0.9rem; line-height: 1.2; }

/* --- เมนูอาหารจัดหมวดพรีเมียม --- */
.panel { margin-bottom: 50px; }
.premium-bar {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(135deg, #cc0000 0%, #660000 100%);
  padding: 16px 20px; border-radius: 16px; color: white; border: 1px solid #ff4d4d;
  box-shadow: 0 6px 20px rgba(204,0,0,0.3); margin-bottom: 20px;
}
.premium-bar h2 { font-size: 1.4rem; font-weight: 800; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; }
.box { 
  background: linear-gradient(180deg, #1f0b0b 0%, #0d0404 100%);
  border: 1px solid #3a1515; border-top: 3px solid var(--primary); 
  border-radius: 16px; padding: 20px; 
}
.box-highlight { border-top-color: #ffcc00; }
.box h3 { color: var(--primary-hover); margin-bottom: 15px; font-size: 1.1rem; border-bottom: 1px dashed #3a1515; padding-bottom: 10px; font-weight: 800; }
.box ul li { font-size: 0.95rem; margin-bottom: 8px; color: #ddd; display: flex; align-items: center; }
.box ul li::before { content: "•"; color: var(--primary); margin-right: 8px; font-weight: bold; }

/* --- Footer --- */
.footer { border-top: 1px solid var(--border); padding-top: 30px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 80px; }
.footer__title { font-size: 1.2rem; font-weight: bold; margin-bottom: 10px; }
.footer__line { font-size: 0.9rem; margin-bottom: 5px; }
.small { font-size: 0.8rem; color: var(--text-muted); text-align: right; }

/* --- Floating Button --- */
.fab { position: fixed; bottom: 30px; right: 30px; width: 55px; height: 55px; background: linear-gradient(135deg, var(--primary), #b30000); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; border: none; cursor: pointer; box-shadow: 0 5px 20px rgba(230,0,0,0.5); z-index: 999; }

/* --- Mobile Responsive Rules --- */
@media (max-width: 768px) {
  .topbar__inner { padding: 10px 20px; }
  .brand__logo img { width: 35px; height: 35px; border-radius: 8px; }
  .brand__name { font-size: 1.05rem; }
  .brand__tag { display: none; }
  .badge { display: none; }
  
  .hero { padding-top: 25px; }
  .hero__grid { grid-template-columns: 1fr; gap: 25px; }
  .hero__copy h1 { font-size: 2rem; }
  .price-huge { font-size: 4.8rem; }
  
  .grid { gap: 8px; }
  .card { padding: 15px 5px; border-radius: 12px; }
  .card__icon { width: 40px; height: 40px; font-size: 1.4rem; }
  .card__title { font-size: 0.8rem; }
  
  .premium-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  
  .footer { flex-direction: column; text-align: center; }
  .small { text-align: center; }
}