/* ==========================================================================
   Chen Foods — styles
   S0 nền móng · S1 header · S2 hero + ask bar · S3 cam kết
   Mọi màu lấy từ tokens.css. Không hardcode hex ở file này.
   ========================================================================== */

/* --------------------------------------------------------------------------
   S0.1 — Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--red-700);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--pad-x); top: -100px; z-index: 100;
  background: var(--surface); color: var(--text);
  padding: 12px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow-raised);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   S0.2 — Bố cục
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container--wide { max-width: 1440px; }

.section { padding-block: var(--section-y); }
.section--lg { padding-block: var(--section-y-lg); }
.section--alt { background: var(--surface-alt); }
.section--dark { background: var(--ink-900); color: var(--text-invert); }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

/* Tiêu đề section: serif + gạch vàng ngắn bên dưới */
.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  padding-bottom: 12px;
  position: relative;
}
.section__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 44px; height: 2px;
  background: var(--gold-400);
}
.section__title--center { text-align: center; }
.section__title--center::after { left: 50%; transform: translateX(-50%); }

.section__link {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color var(--dur) var(--ease);
}
.section__link:hover { color: var(--red-700); }

/* --------------------------------------------------------------------------
   S0.3 — Nút
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn--primary { background: var(--red-700); color: var(--text-invert); }
.btn--primary:hover { background: var(--red-600); }

.btn--outline {
  background: transparent;
  color: var(--red-700);
  border-color: var(--red-700);
}
.btn--outline:hover { background: var(--red-700); color: var(--text-invert); }

/* Trên nền ảnh tối */
.btn--on-dark { background: var(--red-800); color: var(--text-invert); }
.btn--on-dark:hover { background: var(--red-600); }
.btn--ghost-light {
  background: transparent;
  color: var(--text-invert);
  border-color: rgba(253, 248, 245, 0.55);
}
.btn--ghost-light:hover { background: rgba(253, 248, 245, 0.12); }

.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   S1 — Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink-900);
  color: var(--text-invert);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}

.header__logo {
  flex: 0 0 auto;
  width: 104px;
  display: block;
}
.header__logo img { width: 100%; height: auto; }

/* Placeholder logo — thay bằng file vector khi có */
.logo-placeholder {
  width: 104px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--red-900);
  border: 2px solid var(--red-600);
  display: grid; place-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--text-invert);
  line-height: 1;
}
.logo-placeholder small {
  display: block;
  color: var(--gold-500);
  font-size: 9px;
  letter-spacing: 0.14em;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-inline: auto;
}
.nav__link {
  font-size: var(--fs-base);
  color: var(--text-invert);
  padding-block: 6px;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header__utils {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.points-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-dark);
  font-size: var(--fs-sm);
  color: var(--text-invert);
}
.points-chip::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
}

.header__phone { font-size: var(--fs-sm); white-space: nowrap; }
.header__login { font-size: var(--fs-sm); color: var(--text-invert-muted); }
.header__login:hover { color: var(--text-invert); }

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-700);
  color: var(--text-invert);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  transition: background-color var(--dur) var(--ease);
}
.cart-btn:hover { background: var(--red-600); }

.header__burger { display: none; color: var(--text-invert); padding: 8px; }

/* --------------------------------------------------------------------------
   S2 — Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--text-invert);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(20, 17, 16, 0.94) 0%,
      rgba(20, 17, 16, 0.82) 34%,
      rgba(20, 17, 16, 0.35) 62%,
      rgba(20, 17, 16, 0.20) 100%),
    var(--hero-image, var(--hero-fallback));
  background-size: cover;
  background-position: center right;
}

.hero__inner {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding-block: 88px 140px;
}

.hero__content { max-width: 620px; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  color: var(--gold-500);
  padding-top: 16px;
  position: relative;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 56px; height: 2px;
  background: var(--gold-400);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.hero__sub {
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  color: var(--text-invert-muted);
  max-width: 460px;
  margin-bottom: 32px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Thanh hỏi AI, đè lên mép dưới hero --- */
.ask-bar-wrap {
  position: relative;
  z-index: 2;
  margin-top: -68px;
}

.ask-bar {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-raised);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.ask-bar__label {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  white-space: nowrap;
  flex: 0 0 auto;
}

.ask-bar__field { flex: 1 1 auto; }
.ask-bar__input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  padding: 10px 2px;
  font-size: var(--fs-base);
  color: var(--text);
  transition: border-color var(--dur) var(--ease);
}
.ask-bar__input::placeholder { color: var(--text-faint); }
.ask-bar__input:focus {
  outline: none;
  border-bottom-color: var(--red-700);
}

/* --------------------------------------------------------------------------
   S3 — Ba cam kết
   -------------------------------------------------------------------------- */
.promise {
  padding-block: var(--section-y-lg);
}

.promise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.promise__item {
  text-align: center;
  padding-inline: 40px;
  position: relative;
}
.promise__item + .promise__item::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}

.promise__icon {
  width: 68px; height: 68px;
  margin: 0 auto 22px;
  color: var(--red-700);
}
.promise__icon svg { width: 100%; height: 100%; }

.promise__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  margin-bottom: 12px;
}

.promise__text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-snug);
  max-width: 220px;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Placeholder ảnh — xoá khi đã có ảnh thật
   -------------------------------------------------------------------------- */
.img-slot {
  background: var(--surface-deep);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--text-faint);
  font-size: var(--fs-xs);
  padding: 16px;
}

/* --------------------------------------------------------------------------
   Responsive — bản đầy đủ làm ở S13
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav { gap: 22px; }
  .header__inner { gap: 20px; }
  .header__phone { display: none; }
}

@media (max-width: 900px) {
  .nav, .header__utils .points-chip, .header__login { display: none; }
  .header__burger { display: inline-flex; margin-left: auto; }
  .header__utils { gap: 12px; }

  .hero__inner { min-height: 480px; padding-block: 64px 120px; }
  .hero__media { background-position: center; }

  .ask-bar { flex-wrap: wrap; gap: 16px; }
  .ask-bar__label { flex-basis: 100%; }
  .ask-bar .btn { width: 100%; }

  .promise__grid { grid-template-columns: 1fr; gap: 40px; }
  .promise__item { padding-inline: 0; }
  .promise__item + .promise__item::before {
    left: 50%; top: -20px; bottom: auto;
    width: 120px; height: 1px;
    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  .header__inner { height: 64px; }
  .header__logo, .logo-placeholder { width: 84px; }
  .logo-placeholder { height: 42px; font-size: 13px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .ask-bar-wrap { margin-top: -48px; }
  .ask-bar { padding: 18px; }
}

/* --------------------------------------------------------------------------
   S4 — Chọn theo món
   -------------------------------------------------------------------------- */
.cat-section { background: var(--surface); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: calc(var(--gutter) * 2 / 3);
}

.reveal {
  transition: opacity 500ms cubic-bezier(.22, .61, .36, 1),
              transform 500ms cubic-bezier(.22, .61, .36, 1);
}

:where(html.js-ready) .reveal {
  opacity: 0;
  transform: translateY(calc(var(--gutter) * 2 / 3));
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.cat-card:nth-child(1) { transition-delay: 70ms; }
.cat-card:nth-child(2) { transition-delay: 140ms; }
.cat-card:nth-child(3) { transition-delay: 210ms; }
.cat-card:nth-child(4) { transition-delay: 280ms; }
.cat-card:nth-child(5) { transition-delay: 350ms; }

.cat-item {
  display: block;
  position: relative;
  border-radius: var(--radius-sm);
  transition: transform 200ms var(--ease);
}

.cat-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-raised);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease);
}

.cat-item:hover { transform: translateY(calc(var(--gutter) / -6)); }
.cat-item:hover::before { opacity: 1; }

.cat-item__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.cat-item__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--surface);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.cat-item:hover .cat-item__media::after,
.cat-item:focus-visible .cat-item__media::after { opacity: .05; }

.cat-item__name {
  display: block;
  margin-top: calc(var(--gutter) / 2);
  color: var(--text);
  font-size: var(--fs-sm);
  text-align: center;
}

/* --------------------------------------------------------------------------
   S5 — Nhà nào cũng mua
   -------------------------------------------------------------------------- */
.product-section {
  border: var(--border);
  border-radius: var(--radius);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}

.product-item { min-width: 0; }

.product-item:nth-child(1) { transition-delay: 70ms; }
.product-item:nth-child(2) { transition-delay: 140ms; }
.product-item:nth-child(3) { transition-delay: 210ms; }
.product-item:nth-child(4) { transition-delay: 280ms; }
.product-item:nth-child(5) { transition-delay: 350ms; }
.product-item:nth-child(6) { transition-delay: 350ms; }

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--surface-deep);
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: transform 200ms var(--ease);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-raised);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease);
}

.product-card:hover,
.product-card:focus-within { transform: translateY(calc(var(--gutter) / -6)); }

.product-card:hover::before,
.product-card:focus-within::before { opacity: 1; }

.product-card__media {
  width: 100%;
  aspect-ratio: 6 / 5;
  border: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.product-card__name {
  min-height: calc(var(--fs-base) * var(--lh-snug) * 2);
  margin: calc(var(--gutter) / 2) calc(var(--gutter) * 2 / 3) 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--text);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-snug);
}

.product-card__price {
  margin: calc(var(--gutter) / 3) calc(var(--gutter) * 2 / 3) 0;
  color: var(--text);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: var(--lh-snug);
}

.product-card__button {
  width: auto;
  margin: auto calc(var(--gutter) * 2 / 3) calc(var(--gutter) * 2 / 3);
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   S6 — Combo bữa ăn
   -------------------------------------------------------------------------- */
.combo-section {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.combo-head {
  margin-bottom: var(--gutter);
  text-align: center;
}

.combo-head__rule {
  display: block;
  width: calc(var(--gutter) * 2.5);
  height: calc(var(--gutter) / 12);
  margin: 0 auto calc(var(--gutter) / 2);
  background: var(--gold-400);
}

.combo-head__title {
  color: var(--text-invert);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

.combo-head__subtitle {
  margin-top: calc(var(--gutter) / 3);
  color: var(--text-invert-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.combo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}

.combo-item {
  min-width: 0;
}

.combo-item:nth-child(1) { transition-delay: 70ms; }
.combo-item:nth-child(2) { transition-delay: 140ms; }
.combo-item:nth-child(3) { transition-delay: 210ms; }

.combo-card {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  border: 1px solid var(--gold-600);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: transform 200ms var(--ease);
}

.combo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-raised);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease);
}

.combo-card:hover,
.combo-card:focus-within {
  transform: translateY(calc(var(--gutter) / -6));
}

.combo-card:hover::before,
.combo-card:focus-within::before {
  opacity: 1;
}

.combo-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--line-dark);
  color: var(--text-invert-muted);
}

.combo-card__name {
  margin: calc(var(--gutter) * 2 / 3) calc(var(--gutter) * 2 / 3) 0;
  color: var(--text-invert);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: var(--lh-tight);
}

.combo-card__ingredients {
  min-height: calc(var(--fs-sm) * var(--lh-snug) * 2);
  margin: calc(var(--gutter) / 3) calc(var(--gutter) * 2 / 3) 0;
  color: var(--text-invert-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.combo-card__price {
  margin: calc(var(--gutter) / 3) calc(var(--gutter) * 2 / 3) 0;
  color: var(--gold-600);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: var(--lh-snug);
}

.combo-card__button {
  align-self: flex-start;
  margin: calc(var(--gutter) / 3) calc(var(--gutter) * 2 / 3) calc(var(--gutter) * 2 / 3);
}

@media (max-width: 900px) {
  .combo-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   S7 — Chen Kitchen
   -------------------------------------------------------------------------- */
.recipe-section {
  background: var(--surface);
}

.recipe-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title link"
    "description link";
  column-gap: var(--gutter);
  margin-bottom: calc(var(--gutter) + var(--gutter) / 6);
}

.recipe-head__title {
  grid-area: title;
}

.recipe-head__description {
  grid-area: description;
  margin-top: calc(var(--gutter) / 3);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.recipe-head__link {
  grid-area: link;
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--gutter) / 3);
  padding-top: calc(var(--gutter) / 3);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  transition: color var(--dur) var(--ease);
}

.recipe-head__link:hover {
  color: var(--red-700);
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}

.recipe-item {
  min-width: 0;
}

.recipe-card {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  border: var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-deep);
  box-shadow: var(--shadow-card);
  transition: transform 200ms var(--ease);
}

.recipe-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-raised);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease);
}

.recipe-card:hover,
.recipe-card:focus-within {
  transform: translateY(calc(var(--gutter) / -6));
}

.recipe-card:hover::before,
.recipe-card:focus-within::before {
  opacity: 1;
}

.recipe-card__media {
  width: 100%;
  aspect-ratio: 6 / 5;
  flex: 0 0 auto;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: clip-path 700ms cubic-bezier(.22, .61, .36, 1);
}

:where(html.js-ready .recipe-item:not(.is-in) .recipe-card__media) {
  clip-path: inset(0 100% 0 0);
}

.recipe-item.is-in .recipe-card__media {
  clip-path: inset(0);
}

.recipe-card__name {
  margin: calc(var(--gutter) * 2 / 3) calc(var(--gutter) * 2 / 3) 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-snug);
}

.recipe-card__meta {
  margin: calc(var(--gutter) / 3) calc(var(--gutter) * 2 / 3) calc(var(--gutter) / 2);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.recipe-card__button {
  width: auto;
  margin: auto calc(var(--gutter) * 2 / 3) calc(var(--gutter) * 2 / 3);
}

@media (max-width: 900px) {
  .recipe-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .recipe-head {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "description"
      "link";
  }

  .recipe-head__link {
    margin-top: calc(var(--gutter) / 3);
    padding-top: 0;
  }
}

/* --------------------------------------------------------------------------
   S8 — Chiêu đãi
   -------------------------------------------------------------------------- */
.occasion-section {
  background: var(--surface-card);
  text-align: center;
}

.occasion-head {
  margin-bottom: calc(var(--gutter) * 2 / 3);
}

.occasion-head__title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

.occasion-head__description {
  margin-top: calc(var(--gutter) / 3);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.occasion-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.occasion-options {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(var(--gutter) / 2);
  border: 0;
}

.occasion-option {
  position: relative;
  min-width: calc(var(--gutter) * 4);
  flex: 1 1 0;
}

.occasion-option:nth-of-type(1) { transition-delay: 70ms; }
.occasion-option:nth-of-type(2) { transition-delay: 140ms; }
.occasion-option:nth-of-type(3) { transition-delay: 210ms; }
.occasion-option:nth-of-type(4) { transition-delay: 280ms; }
.occasion-option:nth-of-type(5),
.occasion-option:nth-of-type(6) { transition-delay: 350ms; }

.occasion-option__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.occasion-option__label {
  display: block;
  width: 100%;
  padding: calc(var(--gutter) / 2) calc(var(--gutter) * 2 / 3);
  border: var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.occasion-option__input:checked + .occasion-option__label {
  border-color: var(--red-700);
  background: var(--red-700);
  color: var(--text-invert);
}

.occasion-option__input:focus-visible + .occasion-option__label {
  outline: 2px solid var(--red-700);
  outline-offset: 3px;
}

.occasion-form__submit {
  min-width: calc(var(--gutter) * 8);
  margin-top: calc(var(--gutter) * 2 / 3);
}

/* --------------------------------------------------------------------------
   S9 — Khách nói gì
   -------------------------------------------------------------------------- */
.review-section {
  background: var(--surface);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
}

.review-item {
  min-width: 0;
}

.review-item:nth-child(1) { transition-delay: 70ms; }
.review-item:nth-child(2) { transition-delay: 140ms; }

.review-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: var(--gutter);
  border: var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
}

.review-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(var(--gutter) / 3);
}

.review-gallery__item {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.review-gallery__media {
  width: 100%;
  height: 100%;
  padding: 0;
}

.review-quote {
  max-width: calc(var(--gutter) * 18);
  margin: calc(var(--gutter) * 2 / 3) auto;
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-style: italic;
  line-height: var(--lh-snug);
  text-align: center;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--gutter) / 2);
  margin-top: auto;
}

.review-author__avatar {
  width: calc(var(--gutter) * 5 / 3);
  aspect-ratio: 1;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-pill);
}

.review-author__details {
  display: flex;
  flex-direction: column;
}

.review-author__name {
  color: var(--text);
  font-size: var(--fs-sm);
  font-style: normal;
  line-height: var(--lh-snug);
}

.review-author__location {
  color: var(--text-faint);
  font-size: var(--fs-xs);
  line-height: var(--lh-snug);
}

@media (max-width: 900px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .review-section .section__head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   S10 — Cửa hàng
   -------------------------------------------------------------------------- */
.store-head {
  margin-bottom: calc(var(--gutter) + var(--gutter) / 6);
  text-align: center;
}

.store-head__rule {
  display: block;
  width: calc(var(--gutter) * 11 / 6);
  height: calc(var(--gutter) / 12);
  margin: 0 auto calc(var(--gutter) / 2);
  background: var(--gold-400);
}

.store-head__title {
  color: var(--text-invert);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

.store-head__subtitle {
  margin-top: calc(var(--gutter) / 3);
  color: var(--text-invert-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}

.store-item {
  min-width: 0;
}

.store-card {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: transform 200ms var(--ease);
}

.store-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-raised);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease);
}

.store-card:hover,
.store-card:focus-within {
  transform: translateY(calc(var(--gutter) / -6));
}

.store-card:hover::before,
.store-card:focus-within::before {
  opacity: 1;
}

.store-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--line-dark);
  color: var(--text-invert-muted);
  transition: clip-path 700ms cubic-bezier(.22, .61, .36, 1);
}

:where(html.js-ready .store-item:not(.is-in) .store-card__media) {
  clip-path: inset(0 100% 0 0);
}

.store-item.is-in .store-card__media {
  clip-path: inset(0);
}

.store-card__name {
  margin: calc(var(--gutter) * 2 / 3) calc(var(--gutter) * 2 / 3) 0;
  color: var(--text-invert);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: var(--lh-tight);
}

.store-card__address {
  margin: calc(var(--gutter) / 3) calc(var(--gutter) * 2 / 3) 0;
  color: var(--text-invert-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.store-card__link {
  align-self: flex-start;
  margin: calc(var(--gutter) / 3) calc(var(--gutter) * 2 / 3) calc(var(--gutter) * 2 / 3);
  color: var(--gold-500);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.store-note {
  margin-top: var(--gutter);
  color: var(--gold-500);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  text-align: center;
}

@media (max-width: 900px) {
  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .store-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   S11 — CTA + Footer
   -------------------------------------------------------------------------- */
.cta-band-section {
  --section-y: calc(var(--gutter) * 4 / 3);
  background: var(--red-900);
  color: var(--text-invert);
}

.cta-band-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-band-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

.cta-band-subtitle {
  margin-top: calc(var(--gutter) / 3);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.cta-band-action {
  min-width: calc(var(--gutter) * 10);
  margin-top: calc(var(--gutter) * 2 / 3);
  background: var(--surface);
  color: var(--red-700);
}

.cta-band-action:hover {
  background: var(--surface-alt);
}

.footer-site {
  --section-y: calc(var(--gutter) * 4 / 3);
  border-top: 1px solid var(--gold-500);
  background: var(--ink-850);
  color: var(--text-invert);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}

.footer-brand,
.footer-nav {
  min-width: 0;
}

.footer-brand__logo {
  display: block;
  width: fit-content;
  margin: 0 auto calc(var(--gutter) * 2 / 3);
}

.footer-brand__logo .logo-placeholder {
  width: calc(var(--gutter) * 15 / 2);
  height: calc(var(--gutter) * 15 / 4);
  font-size: var(--fs-h3);
}

.footer-brand__logo small {
  font-size: var(--fs-xs);
}

.footer-brand__address {
  color: var(--text-invert-muted);
  font-size: var(--fs-xs);
  font-style: normal;
  line-height: var(--lh-body);
}

.footer-nav__title {
  margin-bottom: calc(var(--gutter) / 3);
  color: var(--gold-500);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: var(--lh-tight);
}

.footer-nav__list {
  display: grid;
  gap: calc(var(--gutter) / 6);
}

.footer-nav__link {
  color: var(--text-invert-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  transition: color var(--dur) var(--ease);
}

.footer-nav__link:hover {
  color: var(--text-invert);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
  margin-top: var(--gutter);
  padding-top: calc(var(--gutter) / 2);
  border-top: 1px solid var(--line-dark);
}

.footer-copyright {
  color: var(--text-faint);
  font-size: var(--fs-xs);
  line-height: var(--lh-snug);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: calc(var(--gutter) / 3);
}

.footer-social__link {
  display: grid;
  width: calc(var(--gutter) * 3 / 2);
  height: calc(var(--gutter) * 3 / 2);
  place-items: center;
  color: var(--text-invert-muted);
  transition: color var(--dur) var(--ease);
}

.footer-social__link:hover {
  color: var(--text-invert);
}

.footer-social__link svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.footer-social__dot {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   S12 — Trang chi tiết sản phẩm
   -------------------------------------------------------------------------- */
.pdp-breadcrumb {
  margin-block: calc(var(--gutter) * 2 / 3) calc(var(--gutter) / 2);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.pdp-breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.pdp-breadcrumb__item {
  display: inline-flex;
  align-items: center;
}

.pdp-breadcrumb__item + .pdp-breadcrumb__item::before {
  content: "/";
  margin-inline: calc(var(--gutter) / 3);
  color: var(--text-faint);
}

.pdp-breadcrumb__link {
  transition: color var(--dur) var(--ease);
}

.pdp-breadcrumb__link:hover {
  color: var(--red-700);
}

.pdp-breadcrumb__current {
  color: var(--text);
}

.pdp-layout {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: calc(var(--gutter) * 2);
  margin-bottom: var(--section-y);
}

.pdp-gallery {
  min-width: 0;
  border-radius: var(--radius-sm);
}

.pdp-gallery__main {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.pdp-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(var(--gutter) / 2);
  margin-top: calc(var(--gutter) / 2);
}

.pdp-gallery__thumb-item {
  min-width: 0;
}

.pdp-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: transform 200ms var(--ease);
}

.pdp-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-raised);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease);
}

.pdp-thumb:hover,
.pdp-thumb:focus-visible {
  transform: translateY(calc(var(--gutter) / -6));
}

.pdp-thumb:hover::after,
.pdp-thumb:focus-visible::after {
  opacity: 1;
}

.pdp-thumb[aria-pressed="true"] {
  border-color: var(--red-700);
}

.pdp-thumb__media {
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
}

/* S12b — Khối mua hàng */
.header--light {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.header--light .nav__link,
.header--light .header__phone {
  color: var(--text);
}

.header--light .points-chip {
  border-color: var(--line-strong);
  color: var(--text);
}

.header--light .header__login {
  color: var(--text-muted);
}

.header--light .header__login:hover {
  color: var(--text);
}

.header--light .header__burger {
  color: var(--text);
}

.pdp-purchase {
  display: grid;
  align-content: start;
  gap: calc(var(--gutter) / 2);
  min-width: 0;
}

.pdp-purchase__category {
  color: var(--gold-600);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.pdp-purchase__title,
.pdp-purchase__price {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

.pdp-purchase__chinese {
  color: var(--gold-600);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
}

.pdp-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: calc(var(--gutter) / 2);
}

.pdp-badges__item {
  padding: calc(var(--gutter) / 3) calc(var(--gutter) * 7 / 12);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  line-height: 1;
}

.pdp-options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.pdp-options__legend {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.pdp-options__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--gutter) / 2);
  margin-top: calc(var(--gutter) / 3);
}

.pdp-option {
  min-width: 0;
}

.pdp-option__label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: calc(var(--gutter) * 5 / 12);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  line-height: 1;
  cursor: pointer;
}

.pdp-option__input:checked + .pdp-option__label {
  padding: calc(var(--gutter) * 3 / 8);
  border: 2px solid var(--red-700);
  color: var(--red-700);
}

.pdp-option__input:focus-visible + .pdp-option__label {
  outline: 2px solid var(--red-700);
  outline-offset: 3px;
}

.pdp-delivery {
  display: flex;
  align-items: center;
  gap: calc(var(--gutter) / 2);
  padding: calc(var(--gutter) * 7 / 12) calc(var(--gutter) * 2 / 3);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.pdp-delivery__icon {
  flex: 0 0 auto;
}

.pdp-delivery__text {
  min-width: 0;
}

.pdp-delivery__link {
  flex: 0 0 auto;
  margin-left: auto;
  text-decoration: underline;
  text-underline-offset: calc(var(--gutter) / 6);
}

.pdp-purchase__payment {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.pdp-purchase__recipes {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--gutter) / 3);
  width: fit-content;
  color: var(--red-700);
}

/* S12c — Accordion và bán kèm */
.pdp-accordion,
.pdp-related {
  grid-column: 1 / -1;
  margin-top: calc(var(--gutter) * -1);
}

.pdp-accordion {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.pdp-accordion__item[open] {
  background: var(--surface-card);
}

.pdp-accordion__item + .pdp-accordion__item {
  border-top: 1px solid var(--line);
}

.pdp-accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
  padding: calc(var(--gutter) / 3) calc(var(--gutter) * 2 / 3);
  font-weight: 600;
  line-height: var(--lh-snug);
  list-style: none;
  cursor: pointer;
}

.pdp-accordion__summary::-webkit-details-marker {
  display: none;
}

.pdp-accordion__icon {
  flex: 0 0 auto;
  transition: transform var(--dur) var(--ease);
}

.pdp-accordion__item[open] .pdp-accordion__icon {
  transform: rotate(180deg);
}

.pdp-accordion__content {
  display: grid;
  padding: 0 calc(var(--gutter) * 5 / 3) calc(var(--gutter) / 3);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.pdp-related .section__head {
  margin-bottom: calc(var(--gutter) / 2);
}

/* --------------------------------------------------------------------------
   S16 — Câu chuyện Chen
   -------------------------------------------------------------------------- */
.story-section {
  background: var(--surface-alt);
}

.story-head {
  max-width: calc(var(--gutter) * 32);
  margin-inline: auto;
  text-align: center;
}

.story-eyebrow {
  display: block;
  margin-bottom: calc(var(--gutter) / 3);
  color: var(--gold-500);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .08em;
}

.story-title {
  font-size: var(--fs-h1);
}

.story-lead {
  margin-top: calc(var(--gutter) * 2 / 3);
  color: var(--text-muted);
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
}

.story-media {
  width: 100%;
  max-width: calc(var(--gutter) * 40);
  aspect-ratio: 16 / 9;
  margin: calc(var(--gutter) * 2) auto;
  overflow: hidden;
  transition: clip-path 700ms cubic-bezier(.22, .61, .36, 1);
}

:where(html.js-ready) .story-media {
  opacity: 1;
  transform: none;
}

:where(html.js-ready .story-media:not(.is-in)) {
  clip-path: inset(0 100% 0 0);
}

.story-media.is-in {
  clip-path: inset(0);
  opacity: 1;
  transform: none;
}

.story-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}

.story-timeline::before {
  content: "";
  position: absolute;
  top: calc(var(--fs-h2) * var(--lh-tight) / 2);
  right: calc(100% / 6);
  left: calc(100% / 6);
  height: 1px;
  background: var(--line);
}

.story-step {
  position: relative;
  min-width: 0;
  text-align: center;
}

.story-step:nth-child(1) { transition-delay: 70ms; }
.story-step:nth-child(2) { transition-delay: 140ms; }
.story-step:nth-child(3) { transition-delay: 210ms; }

.story-milestone {
  height: 100%;
}

.story-year {
  position: relative;
  display: inline-block;
  padding-inline: calc(var(--gutter) / 2);
  background: var(--surface-alt);
  color: var(--red-700);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-tight);
}

.story-milestone__title {
  margin-top: calc(var(--gutter) * 2 / 3);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: var(--lh-tight);
}

.story-milestone__text {
  max-width: calc(var(--gutter) * 14);
  margin: calc(var(--gutter) / 3) auto 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
}

.story-quote {
  position: relative;
  max-width: calc(var(--gutter) * 34);
  margin: calc(var(--gutter) * 3) auto 0;
  padding-inline: calc(var(--gutter) * 2);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-style: italic;
  line-height: var(--lh-snug);
  text-align: center;
}

.story-quote::before,
.story-quote::after {
  position: absolute;
  color: var(--gold-400);
  font-size: var(--fs-display);
  font-style: normal;
  line-height: 1;
}

.story-quote::before {
  content: "“";
  top: 0;
  left: 0;
}

.story-quote::after {
  content: "”";
  right: 0;
  bottom: calc(var(--gutter) * 2 / 3);
}

.story-quote__source {
  margin-top: calc(var(--gutter) * 2 / 3);
  color: var(--text-faint);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-style: normal;
  line-height: var(--lh-snug);
}

@media (max-width: 640px) {
  .story-media {
    margin-block: calc(var(--gutter) * 4 / 3);
  }

  .story-timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: calc(var(--gutter) * 4 / 3);
  }

  .story-timeline::before {
    content: none;
  }

  .story-quote {
    margin-top: calc(var(--gutter) * 2);
    padding-inline: calc(var(--gutter) * 4 / 3);
  }
}

/* --------------------------------------------------------------------------
   S14 — Giỏ hàng và các trạng thái
   -------------------------------------------------------------------------- */
.cart-btn {
  position: relative;
}

.cart-btn__count {
  position: absolute;
  top: calc(var(--gutter) / -3);
  right: calc(var(--gutter) / -3);
  display: inline-grid;
  min-width: calc(var(--gutter) * 3 / 4);
  height: calc(var(--gutter) * 3 / 4);
  padding-inline: calc(var(--gutter) / 6);
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--red-900);
  color: var(--text-invert);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1;
}

.cart-toast {
  position: fixed;
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: calc(var(--gutter) / 2);
  width: min(calc(100% - var(--gutter) * 2), calc(var(--gutter) * 18));
  padding: calc(var(--gutter) / 2) calc(var(--gutter) * 2 / 3);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--ink-900);
  color: var(--text-invert);
  box-shadow: var(--shadow-raised);
  opacity: 1;
  transform: none;
  transition: opacity 500ms cubic-bezier(.22, .61, .36, 1),
              transform 500ms cubic-bezier(.22, .61, .36, 1);
}

:where(html.js-ready .cart-toast:not(.is-in)) {
  opacity: 0;
  transform: translateY(calc(var(--gutter) * 2 / 3));
}

.cart-toast.is-in {
  opacity: 1;
  transform: none;
}

.cart-toast__message {
  min-width: 0;
  line-height: var(--lh-snug);
}

.cart-toast__title,
.cart-toast__name {
  display: block;
}

.cart-toast__name {
  margin-top: calc(var(--gutter) / 6);
  color: var(--text-invert-muted);
  font-size: var(--fs-sm);
}

.cart-toast__close {
  display: grid;
  width: calc(var(--gutter) * 11 / 6);
  height: calc(var(--gutter) * 11 / 6);
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--text-invert-muted);
}

.cart-toast__close:hover {
  color: var(--text-invert);
}

.ask-state-loading {
  opacity: .55;
  cursor: wait;
}

.error-state {
  display: grid;
  min-height: calc(100svh - var(--gutter) * 19 / 6);
  place-items: center;
  background: var(--surface);
  text-align: center;
}

.error-state__content {
  max-width: calc(var(--gutter) * 24);
  margin-inline: auto;
}

.error-state__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: var(--lh-tight);
}

.error-state__copy {
  margin-top: calc(var(--gutter) * 2 / 3);
  color: var(--text-muted);
  line-height: var(--lh-body);
}

.error-state__action {
  margin-top: var(--gutter);
}

@media (max-width: 640px) {
  .cart-toast {
    right: calc(var(--gutter) * 2 / 3);
    bottom: calc(var(--gutter) * 2 / 3);
    width: calc(100% - var(--gutter) * 4 / 3);
  }

  .error-state {
    min-height: calc(100svh - var(--gutter) * 8 / 3);
  }
}

.cart-btn__count[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   S13 — Rà responsive toàn site
   -------------------------------------------------------------------------- */
html {
  overflow-x: clip;
}

@media (max-width: 900px) {
  body.nav-open {
    overflow: hidden;
  }

  .header::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    background: var(--ink-900);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease);
  }

  .nav-open .header::before {
    opacity: .55;
    pointer-events: auto;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    width: min(100%, calc(var(--gutter) * 14));
    margin: 0;
    padding: calc(var(--gutter) * 4) var(--gutter) var(--gutter);
    align-items: stretch;
    flex-direction: column;
    gap: calc(var(--gutter) / 3);
    overflow-y: auto;
    background: var(--ink-900);
    box-shadow: var(--shadow-raised);
    transform: translateX(100%);
    transition: transform 500ms cubic-bezier(.22, .61, .36, 1);
  }

  .header--light .nav {
    background: var(--surface);
  }

  .nav-open .nav {
    transform: none;
  }

  .nav__link {
    display: flex;
    min-height: calc(var(--gutter) * 11 / 6);
    padding: calc(var(--gutter) / 2) calc(var(--gutter) / 3);
    align-items: center;
    flex: 0 0 auto;
  }

  .header__burger {
    position: relative;
    z-index: 4;
    width: calc(var(--gutter) * 11 / 6);
    height: calc(var(--gutter) * 11 / 6);
    padding: calc(var(--gutter) * 5 / 12);
    align-items: center;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdp-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .section__head {
    align-items: flex-start;
    flex-direction: column;
    gap: calc(var(--gutter) / 2);
  }

  .section__link,
  .recipe-head__link,
  .store-card__link,
  .footer-nav__link,
  .pdp-breadcrumb__link,
  .pdp-delivery__link,
  .pdp-purchase__recipes {
    display: inline-flex;
    min-height: calc(var(--gutter) * 11 / 6);
    align-items: center;
  }

  .btn,
  .cart-btn,
  .header__logo,
  .occasion-option__label,
  .pdp-option__label,
  .pdp-accordion__summary {
    min-height: calc(var(--gutter) * 11 / 6);
  }

  .footer-social__link {
    width: calc(var(--gutter) * 11 / 6);
    height: calc(var(--gutter) * 11 / 6);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-card__name,
  .combo-card__name,
  .combo-card__ingredients,
  .recipe-card__name,
  .store-card__name,
  .store-card__address,
  .footer-brand__address,
  .footer-nav__link,
  .pdp-purchase__payment,
  .pdp-accordion__content {
    overflow-wrap: anywhere;
  }

  .pdp-breadcrumb__item {
    min-height: calc(var(--gutter) * 11 / 6);
  }

  .pdp-delivery {
    flex-wrap: wrap;
  }

  .pdp-delivery__text {
    flex: 1 1 calc(100% - var(--gutter) * 3 / 2);
  }

  .pdp-delivery__link {
    margin-left: calc(var(--gutter) * 3 / 2);
  }

  .pdp-options__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pdp-accordion__content {
    padding-inline: calc(var(--gutter) * 2 / 3);
  }
}
