* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #fff7f1;
  color: #222;
}

header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 8%;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 26px;
  font-weight: bold;
  color: #ff5722;
  flex: 0 0 auto;
  text-decoration: none;
}

nav {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 6px;
}

nav a {
  border-radius: 8px;
  display: inline-flex;
  font-size: 16px;
  line-height: 1;
  padding: 10px 12px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  white-space: nowrap;
}

nav a:hover {
  background: #fff1eb;
  color: #ff5722;
}

.cart-btn {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
  background: #ff5722;
  color: white;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: bold;
  white-space: nowrap;
}

#cart-count {
  background: white;
  color: #ff5722;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 50%;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 70px 8%;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.badge {
  display: inline-block;
  background: #ffe2d5;
  color: #ff5722;
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
  font-weight: bold;
}

.hero-text h1 {
  font-size: 54px;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 28px;
}

.btn,
.food-card button,
.qty-btn,
.remove-btn {
  background: #ff5722;
  color: white;
  border: none;
  padding: 11px 22px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}

.btn:hover,
.food-card button:hover {
  background: #e64a19;
}

.hero-img {
  flex: 1;
}

.hero-img img {
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.page-title {
  padding: 54px 8% 22px;
  text-align: center;
}

.page-title h1 {
  font-size: 44px;
  margin-bottom: 12px;
}

.page-title p {
  color: #555;
  font-size: 18px;
  line-height: 1.6;
}

.menu-page {
  padding: 34px 8% 58px;
}

.menu-hero {
  background:
    linear-gradient(90deg, rgba(34, 28, 23, 0.78), rgba(34, 28, 23, 0.15)),
    url("https://images.unsplash.com/photo-1543352634-a1c51d9f1fa7") center/cover;
  border-radius: 8px;
  color: white;
  min-height: 260px;
  padding: 42px;
  display: flex;
  align-items: end;
  margin-bottom: 28px;
}

.menu-hero .badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.menu-hero h1 {
  font-size: 44px;
  line-height: 1.12;
  margin-bottom: 12px;
  max-width: 650px;
}

.menu-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.6;
  max-width: 620px;
}

.menu-panel {
  background: white;
  border: 1px solid #f0e5dc;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(78, 45, 25, 0.08);
  padding: 26px;
}

.menu-toolbar {
  align-items: end;
  border-bottom: 1px solid #f0e5dc;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  text-align: left;
}

.menu-toolbar h2 {
  font-size: 30px;
  margin-bottom: 8px;
}

.menu-toolbar p {
  color: #666;
}

.categories,
.menu,
.cart-section,
.order-section,
.track-section,
.about,
.contact {
  padding: 50px 8%;
  text-align: center;
}

h2 {
  font-size: 34px;
  margin-bottom: 30px;
}

.filter-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.filter-box input,
.filter-box select,
.order-section input,
.order-section textarea {
  background: #fff;
  padding: 13px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  font-size: 16px;
}

.filter-box input {
  width: 320px;
}

.food-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.food-card {
  background: white;
  border: 1px solid #f0e5dc;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(78, 45, 25, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: 0.2s;
}

.food-card:hover {
  box-shadow: 0 16px 34px rgba(78, 45, 25, 0.13);
  transform: translateY(-3px);
}

.food-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.food-card h3 {
  font-size: 21px;
  margin: 0 0 8px;
  padding: 18px 18px 0;
}

.food-card p {
  color: #666;
  flex: 1;
  line-height: 1.5;
  min-height: 48px;
  padding: 0 18px;
}

.food-card span {
  display: block;
  margin: 16px 18px;
  color: #ff5722;
  font-size: 20px;
  font-weight: bold;
}

.food-card button {
  border-radius: 0;
  margin-top: auto;
  padding: 14px 18px;
  width: 100%;
}

.cart-section {
  background: white;
}

.checkout-page,
.track-page,
.contact-page {
  padding: 34px 8% 58px;
}

.checkout-hero,
.track-hero,
.contact-hero {
  background:
    linear-gradient(90deg, rgba(34, 28, 23, 0.82), rgba(34, 28, 23, 0.18)),
    url("https://images.unsplash.com/photo-1498837167922-ddd27525d352") center/cover;
  border-radius: 8px;
  color: white;
  margin-bottom: 28px;
  min-height: 230px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.track-hero {
  background:
    linear-gradient(90deg, rgba(34, 28, 23, 0.8), rgba(34, 28, 23, 0.18)),
    url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d") center/cover;
}

.contact-hero {
  background:
    linear-gradient(90deg, rgba(34, 28, 23, 0.82), rgba(34, 28, 23, 0.12)),
    url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d") center/cover;
}

.checkout-hero .badge,
.track-hero .badge,
.contact-hero .badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  width: fit-content;
}

.checkout-hero h1,
.track-hero h1,
.contact-hero h1 {
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.checkout-hero p,
.track-hero p,
.contact-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.6;
  max-width: 680px;
}

.checkout-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: start;
}

.checkout-card,
.track-card-shell {
  background: #fff;
  border: 1px solid #f0e5dc;
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(78, 45, 25, 0.08);
  padding: 24px;
}

.section-heading {
  align-items: start;
  border-bottom: 1px solid #f0e5dc;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  text-align: left;
}

.section-heading h2 {
  font-size: 26px;
  margin-bottom: 6px;
}

.section-heading p {
  color: #666;
}

.text-link {
  color: #ff5722;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 15px;
  background: #fff8f0;
  border: 1px solid #f0e5dc;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 12px;
  text-align: left;
}

.cart-item h4 {
  margin-bottom: 5px;
}

.qty-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  padding: 6px 12px;
  border-radius: 8px;
}

.remove-btn {
  background: #333;
  padding: 8px 14px;
  border-radius: 8px;
}

.cart-total {
  background: #fff1eb;
  border-radius: 8px;
  font-size: 24px;
  font-weight: bold;
  margin-top: 20px;
  padding: 16px;
  text-align: right;
  color: #ff5722;
}

.order-form {
  display: grid;
  gap: 15px;
  text-align: left;
}

.order-form label {
  color: #444;
  display: grid;
  font-weight: 700;
  gap: 8px;
}

.order-section textarea,
.order-form textarea {
  height: 120px;
  resize: none;
}

.track-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 0 auto 24px;
  max-width: 720px;
}

.history-filter {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) 180px auto auto;
  margin-bottom: 22px;
}

.track-form input,
.history-filter input {
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 16px;
  min-width: 0;
  outline: none;
  padding: 13px 16px;
}

.muted-btn {
  background: #333;
}

.track-result {
  margin: 0 auto;
  max-width: 820px;
  text-align: left;
}

.track-card {
  background: #fff8f0;
  border: 1px solid #f0e5dc;
  border-radius: 8px;
  padding: 22px;
}

.track-card h3 {
  margin-bottom: 12px;
}

.order-history-top {
  align-items: start;
  border-bottom: 1px solid #f0e5dc;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.order-history-top p,
.history-info p {
  color: #555;
  line-height: 1.5;
}

.status-pill {
  background: #fff1eb;
  border-radius: 999px;
  color: #ff5722;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 900;
  padding: 8px 12px;
}

.history-info {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.history-items {
  border-top: 1px solid #f0e5dc;
  padding-top: 4px;
}

.track-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.empty-history {
  background: #fff8f0;
  border: 1px solid #f0e5dc;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.empty-history h3 {
  margin-bottom: 8px;
}

.empty-history p {
  color: #666;
  margin-bottom: 16px;
}

.contact-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-card {
  background: #fff;
  border: 1px solid #f0e5dc;
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(78, 45, 25, 0.08);
  padding: 26px;
  text-align: left;
}

.contact-icon {
  align-items: center;
  background: #fff1eb;
  border-radius: 8px;
  color: #ff5722;
  display: inline-flex;
  font-size: 24px;
  font-weight: 800;
  height: 48px;
  justify-content: center;
  margin-bottom: 18px;
  width: 48px;
}

.contact-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.contact-card small {
  color: #666;
  line-height: 1.5;
}

.about {
  background: #fff8f0;
}

.about-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.about-list div {
  background: white;
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.about-list h3 {
  margin-bottom: 12px;
}

.contact {
  background: white;
}

.contact p {
  margin: 8px 0;
  font-size: 18px;
}

footer {
  text-align: center;
  padding: 25px;
  background: #222;
  color: white;
}

.site-toast {
  background: #222;
  border-radius: 8px;
  bottom: 24px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  color: #fff;
  font-weight: 800;
  left: 50%;
  max-width: min(420px, calc(100vw - 32px));
  opacity: 0;
  padding: 14px 16px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 14px);
  transition: 0.22s;
  z-index: 200;
}

.site-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-toast.success {
  background: #15803d;
}

.support-widget {
  bottom: 22px;
  position: fixed;
  right: 22px;
  z-index: 180;
}

.support-toggle {
  align-items: center;
  background: #ff5722;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(255, 87, 34, 0.32);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px 0 10px;
}

.support-toggle span {
  align-items: center;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: inline-flex;
  font-size: 18px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.support-panel {
  background: #fff;
  border: 1px solid #f0e5dc;
  border-radius: 8px;
  bottom: 66px;
  box-shadow: 0 18px 48px rgba(39, 24, 15, 0.18);
  display: grid;
  gap: 8px;
  min-width: 210px;
  opacity: 0;
  padding: 10px;
  pointer-events: none;
  position: absolute;
  right: 0;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.support-widget.open .support-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.support-link {
  align-items: center;
  border-radius: 8px;
  color: #222;
  display: flex;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  text-decoration: none;
}

.support-link:hover {
  background: #fff7f1;
}

.support-link span {
  align-items: center;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.support-link.zalo span {
  background: #0068ff;
}

.support-link.messenger span {
  background: #1877f2;
  font-family: Georgia, serif;
}

.support-link.phone span {
  background: #16a34a;
}

.support-link.email span {
  background: #dc2626;
}

.empty-cart {
  color: #777;
  font-size: 18px;
}

.mobile-menu-toggle,
.mobile-menu-overlay {
  display: none;
}

@media (max-width: 900px) {
  header {
    flex-direction: column;
    gap: 15px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex: none;
  }

  #user-area {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cart-btn,
  .header-action,
  .logout-btn {
    min-height: 40px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 38px;
  }

  .food-list,
  .about-list,
  .checkout-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .checkout-page,
  .track-page,
  .contact-page {
    padding: 22px 5% 44px;
  }

  .checkout-hero,
  .track-hero,
  .contact-hero {
    min-height: 220px;
    padding: 28px;
  }

  .checkout-hero h1,
  .track-hero h1,
  .contact-hero h1 {
    font-size: 34px;
  }

  .section-heading {
    flex-direction: column;
  }

  .menu-page {
    padding: 22px 5% 44px;
  }

  .menu-hero {
    min-height: 220px;
    padding: 28px;
  }

  .menu-hero h1 {
    font-size: 34px;
  }

  .menu-panel {
    padding: 18px;
  }

  .menu-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-box {
    flex-direction: column;
    align-items: stretch;
  }

  .track-form {
    flex-direction: column;
  }

  .history-filter {
    grid-template-columns: 1fr;
  }

  .filter-box input {
    width: 100%;
  }

  .cart-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .support-widget {
    bottom: 16px;
    right: 16px;
  }

  .support-panel {
    max-width: calc(100vw - 32px);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  header {
    align-items: center;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 10px;
    padding: 12px 14px;
    position: sticky;
    top: 0;
  }

  .logo {
    font-size: 24px;
    line-height: 1;
    text-align: center;
  }

  .mobile-menu-toggle {
    align-items: center;
    background: #fff7f1;
    border: 1px solid #f4e5dc;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    height: 42px;
    justify-content: center;
    width: 42px;
    z-index: 135;
  }

  .mobile-menu-toggle span {
    background: #222;
    border-radius: 999px;
    display: block;
    height: 2px;
    width: 19px;
  }

  .mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.38);
    bottom: 0;
    display: block;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transition: 0.2s ease;
    z-index: 118;
  }

  nav {
    align-items: stretch;
    background: #fff;
    box-shadow: 18px 0 40px rgba(35, 20, 12, 0.18);
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100vh;
    justify-content: flex-start;
    left: 0;
    max-width: 310px;
    padding: 88px 18px 18px;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: 0.24s ease;
    width: min(82vw, 310px);
    z-index: 130;
  }

  nav a {
    align-items: center;
    background: #fff7f1;
    border: 1px solid #f4e5dc;
    font-size: 16px;
    justify-content: flex-start;
    min-height: 46px;
    padding: 0 14px;
    width: 100%;
  }

  header.mobile-menu-open nav {
    transform: translateX(0);
  }

  header.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  #user-area {
    align-items: stretch;
    background: #fff;
    border-top: 1px solid #f0e5dc;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    left: 0;
    max-width: 310px;
    padding: 14px 18px 18px;
    position: fixed;
    transform: translateX(-105%);
    transition: 0.24s ease;
    width: min(82vw, 310px);
    z-index: 132;
  }

  header.mobile-menu-open #user-area {
    transform: translateX(0);
  }

  .user-name {
    background: #fff7f1;
    border-radius: 999px;
    max-width: 100%;
    padding: 10px 12px;
    text-align: center;
  }

  .header-action,
  .logout-btn {
    font-size: 14px;
    min-height: 42px;
    padding: 0 14px;
  }

  .header-action,
  .logout-btn {
    width: 100%;
  }

  .cart-btn {
    font-size: 0;
    gap: 0;
    height: 42px;
    justify-self: end;
    margin-top: 0;
    min-height: 42px;
    padding: 0;
    position: relative;
    width: 42px;
  }

  .cart-btn::before {
    content: "🛒";
    font-size: 20px;
  }

  #cart-count {
    font-size: 12px;
    height: 22px;
    min-width: 22px;
    position: absolute;
    right: -7px;
    top: -7px;
  }

  body.menu-lock {
    overflow: hidden;
  }

  .hero,
  .menu-page,
  .checkout-page,
  .track-page,
  .contact-page {
    padding: 18px 16px 34px;
  }

  .hero {
    gap: 22px;
  }

  .hero-text h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .hero-text p,
  .menu-hero p,
  .checkout-hero p,
  .track-hero p,
  .contact-hero p {
    font-size: 16px;
    line-height: 1.5;
  }

  .menu-hero,
  .checkout-hero,
  .track-hero,
  .contact-hero {
    border-radius: 8px;
    margin-bottom: 18px;
    min-height: 0;
    padding: 22px;
  }

  .menu-hero h1,
  .checkout-hero h1,
  .track-hero h1,
  .contact-hero h1 {
    font-size: 31px;
    line-height: 1.12;
  }

  .badge {
    font-size: 14px;
    margin-bottom: 14px;
    padding: 7px 12px;
  }

  .menu-panel,
  .checkout-card,
  .track-card-shell,
  .contact-card {
    padding: 18px;
  }

  .section-heading {
    gap: 10px;
    margin-bottom: 16px;
  }

  .section-heading h2,
  .menu-toolbar h2 {
    font-size: 26px;
  }

  .history-filter {
    gap: 10px;
  }

  .history-filter input,
  .track-form input,
  .filter-box input,
  .filter-box select,
  .order-form input,
  .order-form textarea {
    font-size: 15px;
    padding: 12px 13px;
    width: 100%;
  }

  .history-filter .btn,
  .order-form .btn,
  .track-form .btn {
    text-align: center;
    width: 100%;
  }

  .track-result {
    max-width: 100%;
  }

  .track-card {
    padding: 16px;
  }

  .order-history-top {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .status-pill {
    width: fit-content;
  }

  .track-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .food-card img {
    height: 190px;
  }

  .support-widget {
    bottom: 18px;
    right: 14px;
  }

  .support-toggle {
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(255, 87, 34, 0.32);
    font-size: 0;
    height: 54px;
    justify-content: center;
    min-height: 54px;
    padding: 0;
    width: 54px;
  }

  .support-toggle span {
    background: transparent;
    font-size: 24px;
    height: auto;
    width: auto;
  }

  .support-panel {
    bottom: 64px;
    right: 0;
  }

  .site-toast {
    bottom: 84px;
  }
}
#user-area {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.user-name {
  color: #333;
  font-weight: 700;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-action,
.logout-btn {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-height: 44px;
  padding: 0 16px;
  text-decoration: none;
  transition: 0.2s;
  white-space: nowrap;
}

.header-action.primary,
.logout-btn {
  background: #ff5722;
  color: white;
}

.header-action.secondary {
  background: #fff1eb;
  color: #ff5722;
}

.header-action:hover,
.logout-btn:hover {
  transform: translateY(-1px);
}
