:root {
  --bg: #fff8ef;
  --surface: #ffffff;
  --surface-2: #fff1d8;
  --text: #2d1f10;
  --muted: #75624e;
  --primary: #ff8c00;
  --primary-dark: #d96c00;
  --accent: #ff4d4d;
  --border: #f1d9b0;
  --success: #2e8b57;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--bg), #ffe9c5);
  color: var(--text);
  line-height: 1.5;
}

img {
  max-width: 100%;
}

button,
a {
  font: inherit;
}

.hero {
  padding: 24px 24px 40px;
  background: linear-gradient(135deg, #2d1f10, #5d3512 40%, #9c4f10);
  color: white;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 28px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
}

.brand h1 {
  font-size: 1.08rem;
}

.brand p {
  font-size: 0.9rem;
  color: #f7dfbb;
}

.nav-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  position: relative;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: linear-gradient(135deg, #ff8c00, #ff4d4d);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 999px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.nav-links a:hover::after {
  width: calc(100% - 32px);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.highlight {
  display: inline-block;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-text p {
  font-size: 1rem;
  color: #fbe7bf;
  max-width: 620px;
}

.btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
  padding: 12px 18px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.full-width {
  width: 100%;
}

.hero-card {
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  margin-bottom: 10px;
}

.time {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-card ul {
  padding-left: 18px;
  color: #fbe7bf;
}

.main-layout {
  max-width: 1200px;
  margin: -20px auto 0;
  padding: 0 24px 32px;
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 24px;
}

.menu-section,
.cart-card,
.info-card {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.menu-section {
  padding: 24px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: 1.5rem;
}

.category-block {
  margin-bottom: 22px;
}

.category-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.menu-card {
  border: 1px solid var(--border);
  background: #fffdf8;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 155px;
}

.menu-card h4 {
  font-size: 0.96rem;
  margin-bottom: 4px;
}

.menu-card p {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.price {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.add-btn {
  border: none;
  background: var(--primary);
  color: white;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.84rem;
}

.cart-section {
  position: sticky;
  top: 16px;
  align-self: start;
}

.cart-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cart-badge {
  background: var(--surface-2);
  border-radius: 999px;
  color: var(--primary-dark);
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.delivery-info {
  display: none;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fffaf2;
}

.delivery-info.show {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.delivery-info strong {
  color: var(--primary-dark);
  font-size: 0.92rem;
}

.delivery-info span {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.delivery-btn {
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  border-radius: 999px;
  padding: 10px;
  font-weight: 700;
  cursor: pointer;
}

.delivery-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  min-height: 140px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
  flex: 1;
}

.empty-cart {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  background: #fffaf2;
  border: 1px dashed var(--border);
  border-radius: 14px;
}

.cart-item {
  background: #fffaf2;
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 14px;
  flex-shrink: 0;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.cart-item-name {
  font-weight: 700;
}

.cart-item-price {
  color: var(--primary-dark);
  font-weight: 700;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.cart-summary {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
}

.summary-row.total {
  font-size: 1.05rem;
  margin-top: 4px;
}

.info-section {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 24px;
}

.info-card {
  padding: 24px;
}

.info-card h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.footer {
  text-align: center;
  padding: 0 24px 24px;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #1f1f1f;
  color: white;
  padding: 12px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.mobile-cart-btn {
  display: none;
}

.mobile-cart-count {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero-content,
  .main-layout {
    grid-template-columns: 1fr;
  }

  .cart-section {
    position: static;
  }

  .cart-card {
    max-height: none;
  }

  .mobile-cart-btn {
    position: fixed;
    right: 16px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 96;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  }

  body {
    padding-bottom: 74px;
  }

  .toast {
    bottom: 70px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 18px 16px 28px;
  }

  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .main-layout,
  .info-section {
    padding: 0 16px 24px;
  }

  .menu-section,
  .cart-card,
  .info-card {
    border-radius: 18px;
  }
}
