/* =========================================================
   YONNY The Mall Lifestore Bangkae — main stylesheet
   ========================================================= */

:root {
  --orange: #f2531c;
  --orange-dark: #c73f11;
  --orange-light: #ff8a4c;
  --cream: #fff6ee;
  --cream-2: #fdece0;
  --ink: #241c18;
  --ink-soft: #5a4d46;
  --white: #ffffff;
  --line: #f0ddce;
  --shadow: 0 10px 30px rgba(36, 28, 24, 0.08);
  --shadow-lg: 0 20px 50px rgba(36, 28, 24, 0.16);
  --radius: 18px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Noto Sans Thai", "Prompt", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* กันเนื้อหาล้นขอบจอแล้วเกิด scroll แนวนอนบนมือถือ */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
section { padding: 84px 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 800; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); display: inline-block; }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(242, 83, 28, .35); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { border-color: var(--orange); color: var(--orange-dark); background: #fff; }
.btn-outline:hover { background: var(--cream-2); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 246, 238, .88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand img { height: 42px; width: 42px; border-radius: 50%; object-fit: cover; }
.brand small { display: block; font-weight: 500; font-size: 11.5px; color: var(--ink-soft); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--cream-2); color: var(--orange-dark); }
.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: 640px;
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #2a130a 0%, #4a1c0c 55%, var(--orange-dark) 100%);
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 78% 30%, rgba(255,138,76,.35), transparent 70%);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); margin-bottom: 16px; }
.hero h1 span { color: var(--orange-light); }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,.86); max-width: 480px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 26px; color: var(--orange-light); }
.hero-stats div span { font-size: 13.5px; color: rgba(255,255,255,.75); }

.hero-media { position: relative; }
.hero-media .frame {
  position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255,255,255,.14);
}
.hero-media .frame img { width: 100%; height: 460px; object-fit: cover; }
.hero-media .queue-chip {
  position: absolute; left: -18px; bottom: -18px; background: #fff; color: var(--ink);
  padding: 14px 18px; border-radius: 16px; box-shadow: var(--shadow-lg); max-width: 240px;
  font-size: 13.5px; font-weight: 600; display: flex; gap: 10px; align-items: center;
}
.hero-media .queue-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: #2fbf5f; flex: none; box-shadow: 0 0 0 4px rgba(47,191,95,.2); }

/* ---------- Marquee strip ---------- */
.strip { background: var(--ink); color: #fff; padding: 12px 0; overflow: hidden; }
.strip-track { display: flex; gap: 46px; white-space: nowrap; animation: scroll-strip 26s linear infinite; width: max-content; }
.strip-track span { font-weight: 700; font-size: 14px; letter-spacing: .03em; opacity: .9; }
.strip-track span::after { content: "•"; margin-left: 46px; color: var(--orange-light); }
@keyframes scroll-strip { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Promotion ---------- */
.promo { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%); color: #fff; }
.promo-card {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  background: rgba(0,0,0,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 28px; padding: 40px; overflow: hidden; position: relative;
}
.promo-card h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.promo-card p { color: rgba(255,255,255,.9); max-width: 520px; margin-bottom: 18px; }
.promo-prizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.promo-prizes li {
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
}
.countdown { display: flex; gap: 10px; }
.countdown div {
  background: #fff; color: var(--orange-dark); border-radius: 14px; padding: 12px 6px; width: 74px;
  text-align: center; box-shadow: var(--shadow);
}
.countdown div strong { display: block; font-size: 26px; font-variant-numeric: tabular-nums; }
.countdown div span { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); }
.promo-side { text-align: center; }
.promo-side img { width: 220px; border-radius: 20px; box-shadow: var(--shadow-lg); }

/* ---------- Menu ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.menu-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease; position: relative;
}
.menu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.menu-card .tag {
  position: absolute; top: 14px; left: 14px; background: var(--orange); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; z-index: 2;
}
.menu-card .thumb { height: 190px; overflow: hidden; }
.menu-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.menu-card:hover .thumb img { transform: scale(1.06); }
.menu-card .body { padding: 18px 20px 22px; }
.menu-card h3 { font-size: 17px; margin-bottom: 6px; }
.menu-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.set-banner {
  margin-top: 30px; display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px 30px;
}
.set-banner .price del { color: rgba(255,255,255,.5); font-size: 15px; margin-right: 10px; }
.set-banner .price strong { font-size: 30px; color: var(--orange-light); }
.set-banner h3 { margin-bottom: 6px; font-size: 19px; }
.set-banner p { margin: 0; color: rgba(255,255,255,.75); font-size: 14px; }

/* ---------- About / features ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-media img { height: 460px; object-fit: cover; width: 100%; }
.feature-list { display: grid; gap: 18px; margin-top: 26px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-item .ico {
  width: 46px; height: 46px; border-radius: 14px; background: var(--cream-2); color: var(--orange-dark);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none;
}
.feature-item h4 { margin: 0 0 4px; font-size: 16px; }
.feature-item p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- Mascot ---------- */
.mascot { background: var(--cream-2); }
.mascot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.mascot-grid img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.mascot-list { display: grid; gap: 14px; }
.mascot-list li { display: flex; gap: 12px; align-items: flex-start; background: #fff; padding: 14px 16px; border-radius: 14px; box-shadow: var(--shadow); }
.mascot-list li b { color: var(--orange-dark); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 14px; }
.gallery-grid a { grid-column: span 1; grid-row: span 1; border-radius: 14px; overflow: hidden; position: relative; }
.gallery-grid a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid a:nth-child(6) { grid-column: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid a:hover img { transform: scale(1.08); }

.lightbox { position: fixed; inset: 0; background: rgba(20,12,8,.92); display: none; align-items: center; justify-content: center; z-index: 999; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; }
.lightbox-close { position: absolute; top: 24px; right: 28px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); font-size: 20px; cursor: pointer; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.stars { color: var(--orange); font-size: 15px; margin-bottom: 10px; letter-spacing: 2px; }
.review-card p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 16px; }
.review-who { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; }
.review-who .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--cream-2); color: var(--orange-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; }

.google-rating-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; box-shadow: var(--shadow); margin-top: 14px; font-size: 14px; color: var(--ink-soft);
}
.google-rating-badge strong { color: var(--ink); font-size: 16px; }
.google-rating-badge .stars { font-size: 13px; letter-spacing: 1px; }

/* ---------- Location ---------- */
.location-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.location-info { background: var(--ink); color: #fff; padding: 44px; }
.location-info h2 { color: #fff; }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.info-row:last-of-type { border-bottom: none; }
.info-row .ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; flex: none; }
.info-row h4 { margin: 0 0 4px; font-size: 15px; color: var(--orange-light); }
.info-row p, .info-row a { margin: 0; font-size: 14.5px; color: rgba(255,255,255,.85); }
.location-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.location-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); }
.cta-band p { color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer.site-footer { background: #1b1310; color: rgba(255,255,255,.7); padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-grid a { display: block; padding: 5px 0; font-size: 14px; color: rgba(255,255,255,.65); }
.footer-grid a:hover { color: var(--orange-light); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.footer-brand img { height: 38px; width: 38px; border-radius: 50%; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Sticky mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav, .header-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media .frame img { height: 320px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media img { height: 320px; }
  .mascot-grid { grid-template-columns: 1fr; }
  .location-wrap { grid-template-columns: 1fr; }
  .promo-card { grid-template-columns: 1fr; text-align: center; padding: 30px; }
  .promo-side { order: -1; }
  .promo-prizes, .countdown, .cta-actions, .hero-actions { justify-content: center; }
  .countdown { flex-wrap: wrap; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 120px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .set-banner { grid-template-columns: 1fr; text-align: center; }
  .mobile-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: #fff; border-top: 1px solid var(--line); padding: 10px 14px;
    gap: 10px; box-shadow: 0 -8px 24px rgba(0,0,0,.08);
  }
  .mobile-bar .btn { flex: 1; }
  body { padding-bottom: 74px; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid a:nth-child(1) { grid-column: span 2; grid-row: span 1; }

  /* ป้องกัน header ล้นกรอบบนจอมือถือขนาดเล็ก: ตัด tagline ออก เหลือแค่ชื่อร้านบรรทัดเดียว */
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .site-header .container { gap: 8px; }
  .brand { gap: 8px; font-size: 15px; min-width: 0; }
  .brand img { height: 34px; width: 34px; }
  .brand small { display: none; }
  .brand span {
    display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 40vw;
  }
  .header-cta .btn-primary { padding: 9px 14px; font-size: 13px; }
  .nav-toggle { width: 38px; height: 38px; flex: none; }

  /* ป้องกันโปรโมชั่น/นับถอยหลังล้นขอบจอบนมือถือจอแคบ */
  .promo-card { padding: 24px 16px; border-radius: 20px; }
  .promo-card p { max-width: 100%; }
  .countdown { flex-wrap: nowrap; gap: 6px; width: 100%; }
  .countdown div { width: auto; flex: 1 1 0; min-width: 0; padding: 10px 2px; border-radius: 12px; }
  .countdown div strong { font-size: 19px; }
  .countdown div span { font-size: 10px; }
  .promo-prizes { gap: 6px; }
  .promo-prizes li { font-size: 12px; padding: 6px 11px; }
  .promo-side img { width: 170px; }
}

/* Mobile nav drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 99; background: rgba(20,12,8,.55);
  display: none;
}
.mobile-drawer.open { display: block; }
.mobile-drawer .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 82%; max-width: 340px;
  background: #fff; padding: 26px 22px; box-shadow: var(--shadow-lg);
}
.mobile-drawer nav a { display: block; padding: 14px 6px; font-weight: 700; font-size: 17px; border-bottom: 1px solid var(--line); }
.mobile-drawer .close-drawer { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; margin-bottom: 20px; cursor: pointer; }
