:root {
  --takeaway-bg: #ececec;
  --takeaway-white: #fff;
  --takeaway-border: #dddddd;
  --takeaway-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
  --takeaway-text: #1f1f1f;
  --takeaway-muted: #6c6c6c;
  --takeaway-radius: 18px;
}

#top-nav-section {
  background-color: #fff;
  border-bottom: 1px solid #bbbbbb;
}

body {
  margin: 0;
  background: #f7f7f7;
}

.takeaway-page {
  background: #f7f7f7;
  padding-bottom: 100px;
  color: var(--takeaway-text);
}

.hero {
  padding: 10px 0 6px;
}

.hero__card {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  background: #f7f7f7;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.hero__content {
  padding: 0;
}

.hero__kicker {
  display: inline-block;
  font-size: 0.68rem;
  color: var(--takeaway-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.hero h1 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
  line-height: 1.3;
}

.hero p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--takeaway-muted);
  line-height: 1.45;
  max-width: 70ch;
}

.hero__chips,
.hero__aside {
  display: none;
}

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  align-items: start;
}

.main-column {
  min-width: 0;
}

.contact-card {
  background: var(--takeaway-white);
  border: 1px solid var(--takeaway-border);
  border-radius: var(--takeaway-radius);
  box-shadow: var(--takeaway-shadow);
  padding: 20px;
  margin-bottom: 18px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.15rem;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--takeaway-muted);
  font-size: 0.92rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 600;
  font-size: 0.94rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #cccccc;
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  color: #222;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.search-box input:focus {
  outline: none;
  border-color: var(--main-fore-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.field__hint,
.form-error,
.results-count,
.empty-state__text,
.disclaimer {
  color: var(--takeaway-muted);
}

.form-error {
  min-height: 1em;
  font-size: 0.82rem;
}

.menu-toolbar {
  background: var(--takeaway-white);
  border: 1px solid var(--takeaway-border);
  border-radius: var(--takeaway-radius);
  box-shadow: var(--takeaway-shadow);
  padding: 16px;
  margin-bottom: 18px;
}

.menu-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.search-box {
  flex: 1 1 280px;
}

.search-box input {
  width: 100%;
  border: 1px solid #d2d2d2;
  border-radius: 999px;
  padding: 13px 16px;
  background: #fff;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border: 1px solid #d6d6d6;
  background: #fff;
  color: #333;
  padding: 9px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
}

.pill:hover,
.pill:focus-visible {
  border-color: var(--main-fore-color);
}

.pill.is-active {
  background: var(--main-fore-color);
  color: #fff;
  border-color: var(--main-fore-color);
}

.results-count {
  margin-top: 10px;
  font-size: 0.9rem;
}

/* ============================================================
   VERTICAL SCROLLABLE GALLERY
   ============================================================ */

.gallery-stage {
  display: block;
  margin: 0 0 18px;
}

.gallery-stage__frame {
  width: 100%;
  background: var(--takeaway-bg);
  border-radius: 0;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.gallery-stage__header {
  margin-bottom: 12px;
  padding: 0 4px;
}

.gallery-stage__header h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
}

.gallery-stage__header p {
  margin: 4px 0 0;
  color: var(--takeaway-muted);
  font-size: 0.9rem;
}

.gallery-scroll-shell {
  background: var(--takeaway-white);
  border: 1px solid #c8c8c8;
  border-radius: var(--takeaway-radius);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.10),
    0 16px 40px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  position: relative;
}

/* Fade hint ở đáy để gợi ý còn nội dung bên dưới */
.gallery-scroll-shell::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.92));
  pointer-events: none;
  border-radius: 0 0 var(--takeaway-radius) var(--takeaway-radius);
}

.gallery-scroll {
  max-height: 680px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  scroll-behavior: smooth;
}

/* Scrollbar rõ hơn, vẫn gọn và chuyên nghiệp */
.gallery-scroll::-webkit-scrollbar {
  width: 8px;
}
.gallery-scroll::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 999px;
  margin: 6px 0;
}
.gallery-scroll::-webkit-scrollbar-thumb {
  background: #b0b0b0;
  border-radius: 999px;
  border: 2px solid #f0f0f0;
}
.gallery-scroll::-webkit-scrollbar-thumb:hover {
  background: #888;
}

.gallery-help {
  display: none;
}

.menu-section {
  margin-bottom: 28px;
}

.menu-section:last-child {
  margin-bottom: 0;
}

.menu-section__header {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--takeaway-border);
}

.menu-section__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.menu-section__count {
  color: var(--takeaway-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.menu-grid,
#menu-sections .menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.menu-item,
.item-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  padding: 12px 14px;
  border: 1.5px solid #efefef;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.menu-item:hover,
.item-card:hover {
  border-color: var(--main-fore-color);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

.menu-title,
.item-card__name {
  font-size: 0.93rem;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.35;
}

.menu-desc,
.item-card__desc {
  font-size: 0.8rem;
  color: #777;
  margin: 0 0 10px;
  line-height: 1.4;
  flex: 1;
}

.menu-bottom,
.item-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.menu-price,
.item-card__price {
  font-size: 0.95rem;
  color: #da801b;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f1f1f1;
  color: #555;
  font-size: 0.78rem;
  font-weight: 600;
}

.btn,
.add-btn {
  border-radius: 7px;
  border: 1px solid var(--main-fore-color);
  padding: 7px 11px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.btn--primary,
.add-btn,
.cart-button,
.btn-place-order {
  background-color: var(--main-fore-color);
  color: #fff;
  border: solid var(--main-fore-color);
  border-width: 1px;
}

.btn--primary:hover,
.add-btn:hover,
.cart-button:hover,
.btn-place-order:hover {
  opacity: 0.88;
}

.btn--secondary {
  background: #f1f1f1;
  color: #333;
  border: 1px solid #dddddd;
}

.btn--full {
  width: 100%;
}

/* Cart */
.cart-column {
  position: sticky;
  top: 60px;
}

.cart-panel,
#wrapper-bill-slider {
  width: 350px;
  max-width: 100%;
  padding: 16px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: var(--takeaway-shadow);
  border-radius: var(--takeaway-radius);
  border: 1px solid var(--takeaway-border);
}

.cart-panel__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.cart-count {
  margin: 4px 0 0;
  color: var(--takeaway-muted);
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 50vh;
  overflow-y: auto;
  margin: 12px 0;
}

.cart-item {
  display: grid;
  gap: 8px;
  background: #fafafa;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #ededed;
}

.cart-item__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cart-item__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.cart-item__price {
  font-weight: 700;
}

.cart-item__note {
  font-size: 0.83rem;
  color: #666;
  margin: 0;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dddddd;
  border-radius: 999px;
  padding: 6px;
  width: fit-content;
}

.qty-control button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: #d5e5f3;
  color: #333;
  cursor: pointer;
}

.qty-control span {
  min-width: 18px;
  text-align: center;
  font-weight: 600;
}

.cart-summary {
  margin-top: 10px;
  border-top: 1px solid #e3e3e3;
  padding-top: 12px;
  display: grid;
  gap: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.summary-row strong {
  font-size: 1.03rem;
}

.empty-state {
  padding: 12px 0;
}

.empty-state__title {
  margin: 0 0 6px;
  font-size: 1rem;
}

.mobile-cart-bar {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  border-radius: 16px;
  background: var(--main-fore-color);
  color: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.mobile-cart-bar button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 31, 31, 0.48);
  z-index: 70;
}

.drawer-backdrop.is-open {
  display: block;
}

.mobile-cart-drawer {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 80;
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(102%);
  transition: transform 0.25s ease;
  max-height: 85vh;
  overflow: hidden;
}

.mobile-cart-drawer.is-open {
  transform: translateY(0);
}

.mobile-cart-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 10px;
}

.mobile-cart-drawer__body {
  padding: 0 18px 18px;
  overflow: auto;
  max-height: calc(85vh - 70px);
}

.close-btn {
  border: 0;
  background: #d5e5f3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  color: #333;
}

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  border-radius: 14px;
  padding: 14px 16px;
  background: #1f1f1f;
  color: #fff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.toast--error {
  background: #b42318;
}

.toast--success {
  background: #1f7a4f;
}

.gallery-footer {
  margin-top: 40px;
  padding: 24px 16px 36px;
  text-align: center;
  color: #6c6c6c;
  font-size: 0.92rem;
}

/* Menu mode tabs */
.menu-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.menu-mode-tab {
  appearance: none;
  position: relative;
  border: 2px solid #d6d6d6;
  background: #fff;
  color: #333;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.menu-mode-tab:hover,
.menu-mode-tab:focus-visible {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--main-fore-color);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.13),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

.menu-mode-tab.is-active {
  background: var(--main-fore-color);
  color: #fff;
  border-color: var(--main-fore-color);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

#tab-lunch {
  overflow: visible;
  border-color: #ffb36b;
  background: linear-gradient(180deg, #fffaf3 0%, #fff4e6 100%);
  color: #d86d00;
  text-shadow:
    0 0 2px rgba(255, 160, 64, 0.45),
    0 0 6px rgba(255, 140, 0, 0.35),
    0 0 12px rgba(255, 140, 0, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 179, 107, 0.2),
    0 0 12px rgba(255, 153, 51, 0.14),
    0 6px 16px rgba(0, 0, 0, 0.08);
  animation: lunchNeonPulse 1.6s ease-in-out infinite;
}

#tab-lunch:hover,
#tab-lunch:focus-visible {
  border-color: #ff9a33;
  box-shadow:
    0 0 0 1px rgba(255, 154, 51, 0.24),
    0 0 18px rgba(255, 140, 0, 0.2),
    0 10px 22px rgba(0, 0, 0, 0.12);
}

#tab-lunch.is-active {
  background: linear-gradient(180deg, #ffecd6 0%, #ffe1bd 100%);
  color: #c95f00;
  border-color: #ff9a33;
  text-shadow:
    0 0 3px rgba(255, 153, 51, 0.55),
    0 0 8px rgba(255, 140, 0, 0.4),
    0 0 14px rgba(255, 140, 0, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 154, 51, 0.26),
    0 0 20px rgba(255, 140, 0, 0.22),
    0 10px 22px rgba(0, 0, 0, 0.12);
}

#tab-lunch::after {
  content: "NEW MENU";
  position: absolute;
  top: -10px;
  right: -8px;
  background: #ff7a00;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 8px;
  border-radius: 999px;
  line-height: 1;
  box-shadow:
    0 0 6px rgba(255, 122, 0, 0.45),
    0 0 14px rgba(255, 140, 0, 0.28);
  animation: newMenuBlink 1.2s ease-in-out infinite;
}

#tab-dinner.is-active {
  background: var(--main-fore-color);
  color: #fff;
  border-color: var(--main-fore-color);
}

@keyframes lunchNeonPulse {
  0%, 100% {
    text-shadow:
      0 0 2px rgba(255, 160, 64, 0.45),
      0 0 6px rgba(255, 140, 0, 0.35),
      0 0 12px rgba(255, 140, 0, 0.18);
    box-shadow:
      0 0 0 1px rgba(255, 179, 107, 0.2),
      0 0 12px rgba(255, 153, 51, 0.14),
      0 6px 16px rgba(0, 0, 0, 0.08);
  }
  50% {
    text-shadow:
      0 0 3px rgba(255, 160, 64, 0.6),
      0 0 10px rgba(255, 140, 0, 0.48),
      0 0 18px rgba(255, 140, 0, 0.26);
    box-shadow:
      0 0 0 1px rgba(255, 154, 51, 0.24),
      0 0 18px rgba(255, 140, 0, 0.2),
      0 8px 18px rgba(0, 0, 0, 0.1);
  }
}

@keyframes newMenuBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow:
      0 0 6px rgba(255, 122, 0, 0.45),
      0 0 14px rgba(255, 140, 0, 0.28);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.06);
    box-shadow:
      0 0 10px rgba(255, 122, 0, 0.7),
      0 0 22px rgba(255, 140, 0, 0.38);
  }
}

@media screen and (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .cart-column {
    display: none;
  }

  .mobile-cart-bar {
    display: block;
  }
}

@media screen and (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .page-shell,
  .hero__card {
    width: min(100%, calc(100% - 24px));
  }
}

@media screen and (max-width: 560px) {
  .menu-grid,
  #menu-sections .menu-grid {
    grid-template-columns: 1fr;
  }

  .gallery-scroll {
    max-height: 520px;
    padding: 14px;
  }
}

@media screen and (max-width: 500px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 0.9rem;
  }

  .hero p {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 640px) {
  .menu-mode-tabs {
    gap: 10px;
  }

  .menu-mode-tab {
    font-size: 0.9rem;
    padding: 11px 14px;
  }

  #tab-lunch::after {
    font-size: 0.56rem;
    top: -8px;
    right: -4px;
    padding: 4px 7px;
  }
}