/* ===== Design tokens (từ Figma) ===== */
:root {
  --red: #d83c28;
  --yellow: #f7cf78;
  --cream: #fff8ed;
  --sand: #f4e9d9;
  --line: #eadfd1;
  --ink: #30221d;
  --muted: #7b6a60;
  --cocoa: #382820;
  --white: #ffffff;

  --font: "Be Vietnam Pro", system-ui, sans-serif;
  --font-symbol: "Inter", system-ui, sans-serif;

  --gutter: 80px;
  --max: 1440px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

/* Mỗi section căn giữa tối đa 1440px */
.navbar, .hero, .promises, .menu, .combo, .steps, .story, .faq, .cta, .footer {
  padding-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}

/* ===== Nút ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  padding: 0 24px;
  border-radius: 100px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(48, 34, 29, .12); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--ghost { background: var(--cream); border-color: var(--line); color: var(--ink); }
.btn--light { background: var(--cream); border-color: var(--cream); color: var(--ink); }

/* ===== Chữ dùng chung ===== */
.eyebrow {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--red);
}
.eyebrow--dot { display: flex; align-items: center; gap: 8px; }
.eyebrow--yellow { color: var(--yellow); }

.section-title {
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -1.4px;
  color: var(--ink);
}

.pill-label {
  position: absolute;
  background: var(--cream);
  color: var(--red);
  font-weight: 800;
  border-radius: 100px;
  white-space: nowrap;
}

/* ===== Điều hướng ===== */
.announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 32px;
  background: var(--red);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}
.announce__text { font-weight: 600; color: var(--white); }
.announce__code { font-weight: 800; color: var(--yellow); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { height: 48px; width: auto; flex-shrink: 0; }
.brand__name {
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -1px;
  white-space: nowrap;
  color: var(--red);
  line-height: normal;
}
.brand--light .brand__name { color: var(--cream); }

.nav-links { display: flex; align-items: flex-start; gap: 32px; }
.nav-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}
.nav-link--center { align-items: center; }
.nav-link:hover { color: var(--red); }
.nav-link.is-active { font-weight: 800; color: var(--red); }
.nav-link.is-active::after {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--red);
}

.nav-actions { display: flex; align-items: center; gap: 20px; }
.location {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.cart-bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.08); } }

/* ===== Mở đầu ===== */
.hero {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero__content {
  display: flex;
  flex-direction: column;
  gap: 26px;
  flex: 0 1 568px;
  min-width: 0;
}
.hero__title {
  display: flex;
  flex-direction: column;
  gap: 26px;
  font-weight: 900;
  font-size: 70px;
  line-height: 1.14;
  letter-spacing: -3px;
  color: var(--ink);
}
.hero__title--accent { color: var(--red); }
.hero__lead {
  max-width: 490px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__media {
  position: relative;
  flex: 0 1 680px;
  aspect-ratio: 680 / 568;
  border-radius: 32px;
  overflow: hidden;
  background: var(--red);
}
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge { left: 28px; top: 28px; padding: 9px 16px; font-size: 12px; }

/* --- Banner tự chuyển --- */
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.hero__slide.is-active { z-index: 1; opacity: 1; visibility: visible; transition: opacity .9s ease; }
.hero__slide.is-active .hero__img { animation: hero-zoom 6.5s ease-out both; }
.hero__slide.is-active .hero__badge { animation: hero-badge .6s .25s cubic-bezier(.2, .8, .2, 1) both; }
.hero__slide.is-active .stamp { animation: hero-stamp .7s .35s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes hero-badge { from { opacity: 0; transform: translateY(-10px); } }
@keyframes hero-stamp { from { opacity: 0; transform: rotate(-20deg) scale(.4); } to { opacity: 1; transform: rotate(9deg) scale(1); } }

.hero__dots {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.hero__dot {
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 100px;
  background: rgba(255, 248, 237, .55);
  transition: width .35s ease, background-color .2s ease;
}
.hero__dot:hover { background: rgba(255, 248, 237, .85); }
.hero__dot:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.hero__dot.is-active { width: 40px; background: rgba(255, 248, 237, .45); }
.hero__dot-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: left;
}
.hero__dot.is-active .hero__dot-fill { animation: hero-progress linear forwards; }
.hero__media.is-paused .hero__dot-fill { animation-play-state: paused; }
@keyframes hero-progress { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  /* không tự chuyển, không zoom — người dùng tự bấm chấm */
  .hero__slide.is-active .hero__img,
  .hero__slide.is-active .hero__badge,
  .hero__slide.is-active .stamp,
  .hero__dot.is-active .hero__dot-fill { animation: none; }
  .hero__dot.is-active .hero__dot-fill { transform: scaleX(1); }
}

.stamp {
  position: absolute;
  right: 44px;
  bottom: 60px;
  width: 144px;
  height: 144px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transform: rotate(9deg);
  white-space: nowrap;
}
.stamp--top-right { top: 72px; bottom: auto; }
.stamp--top-left { left: 40px; right: auto; top: 84px; bottom: auto; }
.stamp__top { font-weight: 700; font-size: 12px; color: var(--ink); }
.stamp__price { font-weight: 900; font-size: 30px; letter-spacing: -1px; color: var(--red); }
.stamp__bottom { font-weight: 600; font-size: 12px; color: var(--ink); }

/* ===== Cam kết ===== */
.promises {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
  background: var(--sand);
}
.promise { display: flex; align-items: center; gap: 14px; }
.promise__title { font-weight: 800; font-size: 14px; }
.promise__text { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* ===== Khám phá thực đơn ===== */
.menu {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.menu__block { display: flex; flex-direction: column; gap: 28px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-head__text { display: flex; flex-direction: column; gap: 12px; }
.section-head__note { font-size: 14px; color: var(--muted); }

.categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.category {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 112px;
  padding: 12px;
  border: 2px solid transparent;
  border-radius: 20px;
  background: var(--sand);
  text-align: left;
  color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.category:hover { transform: translateY(-2px); }
.category.is-active { border-color: var(--red); }
.category__img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 100px;
  object-fit: cover;
}
.category__name { display: block; font-weight: 800; font-size: 16px; }
.category__count { display: block; margin-top: 7px; font-size: 11px; color: var(--muted); }

.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.product {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  transition: box-shadow .2s ease, transform .2s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(48, 34, 29, .08); }
.product__media { position: relative; display: block; height: 230px; }
.product__name a:hover { color: var(--red); }
.product__img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.product__tag { left: 12px; top: 12px; padding: 6px 10px; font-size: 11px; }
.product__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 20px 10px 10px;
}
.product__name { font-weight: 800; font-size: 20px; }
.product__desc { min-height: 42px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.product__price { font-weight: 800; font-size: 20px; color: var(--red); }
.add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 100px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-symbol);
  font-size: 25px;
  line-height: 1;
  transition: transform .15s ease;
}
.add-btn:hover { transform: scale(1.08); }
.products__empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--muted); }

/* ===== Combo ưu đãi ===== */
.combo {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-top: 56px;
  padding-bottom: 56px;
  background: var(--red);
}
.combo__img {
  flex: 0 1 600px;
  min-width: 0;
  aspect-ratio: 600 / 390;
  object-fit: cover;
  border-radius: 24px;
}
.combo__content { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; flex: 1; min-width: 0; }
.combo__title { font-weight: 900; font-size: 44px; line-height: 1.2; letter-spacing: -1.5px; color: var(--cream); }
.combo__text { font-size: 16px; line-height: 1.7; color: var(--cream); }
.combo__price { display: flex; align-items: center; gap: 16px; }
.combo__price-now { font-weight: 900; font-size: 36px; letter-spacing: -1px; color: var(--yellow); }
.combo__price-old { font-size: 18px; color: var(--cream); text-decoration: line-through; }

/* ===== Cách đặt hàng ===== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.steps__title { font-weight: 800; font-size: 36px; letter-spacing: -1.2px; text-align: center; }
.steps__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step__num { font-weight: 900; font-size: 42px; letter-spacing: -2px; color: var(--red); }
.step__title { font-weight: 800; font-size: 20px; }
.step__text { font-size: 14px; line-height: 1.7; color: var(--muted); }

/* ===== Chuyện bếp Crispy&Juicy ===== */
.story {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-top: 8px;
  padding-bottom: 72px;
}
.story__img {
  flex: 0 1 600px;
  min-width: 0;
  aspect-ratio: 600 / 416;
  object-fit: cover;
  border-radius: 24px;
}
.story__content { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; flex: 1; min-width: 0; }
.story__title { font-weight: 800; font-size: 40px; line-height: 1.25; letter-spacing: -1.5px; }
.story__text { font-size: 16px; line-height: 1.8; color: var(--muted); }
.values { display: flex; gap: 24px; flex-wrap: wrap; }
.value { display: flex; align-items: flex-start; gap: 8px; font-weight: 700; font-size: 13px; }

/* ===== Câu hỏi thường gặp ===== */
.faq {
  display: flex;
  align-items: flex-start;
  gap: 100px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.faq__intro { display: flex; flex-direction: column; gap: 22px; flex: 0 0 420px; }
.faq__title { font-weight: 800; font-size: 36px; line-height: 1.25; letter-spacing: -1.2px; }
.faq__text { font-size: 15px; line-height: 1.7; color: var(--muted); }
.faq__list { flex: 1; min-width: 0; }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}
.faq-item__icon { font-family: var(--font-symbol); font-size: 20px; line-height: 1; color: var(--red); }
.faq-item__a { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.faq-item__a[hidden] { display: none; }

/* ===== Lời mời đặt món ===== */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 48px;
  padding-bottom: 48px;
  background: var(--yellow);
}
.cta__title { font-weight: 900; font-size: 36px; letter-spacing: -1.3px; }
.cta__text { margin-top: 10px; font-size: 16px; }

/* ===== Chân trang ===== */
.footer {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 24px;
  background: var(--cocoa);
  color: var(--cream);
}
.footer__top { display: flex; justify-content: space-between; gap: 32px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; width: 370px; }
.footer__tagline { font-size: 16px; line-height: 1.6; }
.footer__social { display: flex; gap: 16px; font-weight: 600; font-size: 13px; color: var(--yellow); }
.footer__col { display: flex; flex-direction: column; gap: 14px; font-size: 14px; white-space: nowrap; }
.footer__col a:hover, .footer__social a:hover { text-decoration: underline; }
.footer__heading { font-weight: 800; font-size: 15px; }
.footer__phone { font-weight: 800; font-size: 27px; color: var(--yellow); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--muted);
  font-size: 12px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  padding: 12px 20px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 10;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  :root { --gutter: 40px; }
  .hero__title { font-size: 56px; }
  .categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promises { flex-wrap: wrap; }
  .promise { flex: 1 1 40%; }
  .faq { gap: 48px; }
  .faq__intro { flex-basis: 340px; }
}

@media (max-width: 900px) {
  .nav-links, .location { display: none; }
  .hero, .combo, .story, .faq { flex-direction: column; align-items: stretch; }
  .hero__content, .hero__media, .combo__img, .story__img, .faq__intro { flex: none; width: 100%; }
  .steps__list { grid-template-columns: 1fr; gap: 28px; }
  .footer__top { flex-wrap: wrap; }
  .footer__brand { width: 100%; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .announce { font-size: 11px; }
  .announce__code { display: none; }
  .brand__name { font-size: 22px; }
  .brand__mark { height: 34px; }
  .hero__title { font-size: 44px; gap: 8px; letter-spacing: -2px; }
  .hero__lead { font-size: 16px; }
  .stamp { width: 112px; height: 112px; right: 16px; bottom: 16px; }
  .stamp--top-right { top: 64px; bottom: auto; }
  .stamp--top-left { left: 16px; right: auto; top: 64px; bottom: auto; }
  .hero__dots { left: 16px; bottom: 16px; }
  .stamp__price { font-size: 22px; }
  .stamp__top, .stamp__bottom { font-size: 10px; }
  .section-title, .steps__title, .faq__title, .cta__title { font-size: 28px; }
  .combo__title, .story__title { font-size: 32px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .category { height: auto; flex-direction: column; text-align: center; }
  .products { grid-template-columns: 1fr; }
  .promise { flex-basis: 100%; }
  .cta { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; }
}
