:root {
  --bg: #fffaf7;
  --text: #191919;
  --muted: #666;
  --brand: #ff5a2c;
  --brand-dark: #c63e19;
  --accent: #1e8f6a;
  --line: #eedfd6;
  --soft: #fff2eb;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; background: var(--bg); color: var(--text); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: min(1150px, 92%); margin-inline: auto; }

.outlet-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,250,247,.96);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}
.back-link { color: #333; font-weight: 600; }

.hero {
  margin: 20px 0 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.hero img {
  border-radius: 16px;
  min-height: 280px;
  object-fit: cover;
}
.hero-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 20px;
}
.hero-card h1 { margin-bottom: 8px; }
.hero-card p { color: var(--muted); margin-bottom: 12px; }
.contact-list { list-style: none; display: grid; gap: 7px; margin: 12px 0 18px; }
.pill-links { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: #fff;
}
.pill.primary { background: var(--brand); color: #fff; border-color: transparent; }

.content-grid {
  display: grid;
  grid-template-columns: 1.5fr .9fr;
  gap: 20px;
  margin-bottom: 30px;
}
.menu-card,
.cart-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 20px;
}
.menu-card h2,
.cart-card h2 { margin-bottom: 14px; }

.menu-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.menu-category {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}
.menu-category + .menu-category {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.category-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}
.category-head h3 {
  font-size: 1.05rem;
}
.category-head span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.menu-item {
  border: 1px solid #f2e5de;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.menu-item:hover {
  transform: translateY(-2px);
  border-color: #ffd1bf;
  box-shadow: 0 12px 28px rgba(42, 20, 9, .08);
}
.popular-item {
  border-color: #ffc8b2;
}
.menu-image-wrap {
  position: relative;
}
.menu-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.popular-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  padding: 6px 9px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .14);
}
.menu-meta { padding: 10px 12px 12px; }
.menu-meta h3 { font-size: .95rem; line-height: 1.3; margin-bottom: 4px; }
.menu-meta p { color: var(--muted); font-size: .82rem; margin-bottom: 8px; }
.menu-bottom { display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 700; }
.item-actions { display: flex; gap: 6px; align-items: center; }
.qty {
  min-width: 22px;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
}
.item-step,
.add-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.item-step {
  color: var(--brand-dark);
  background: var(--soft);
}
.item-step:disabled {
  color: #b9aaa2;
  background: #f7eee9;
  cursor: not-allowed;
}

.cart-items { display: grid; gap: 10px; margin-bottom: 14px; }
.cart-summary-card {
  align-self: start;
  position: sticky;
  top: 78px;
}
.cart-summary-text {
  color: var(--muted);
  margin-bottom: 4px;
}
.cart-summary-text span {
  color: var(--text);
  font-weight: 800;
}
.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  padding: 10px;
  border: 1px solid #f2e5de;
  border-radius: 12px;
  background: #fffdfb;
}
.cart-row-info {
  display: grid;
  gap: 2px;
}
.cart-row-info strong {
  font-size: .9rem;
}
.cart-row-info span {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
}
.cart-controls {
  display: grid;
  grid-template-columns: 28px 28px 28px;
  align-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.cart-controls button {
  width: 28px;
  height: 28px;
  border: 0;
  background: var(--soft);
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 800;
}
.cart-controls span {
  font-size: .86rem;
  font-weight: 700;
}
.total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin: 16px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.action-btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.action-btn:disabled {
  background: #d8cac2;
  cursor: not-allowed;
}
.empty { color: var(--muted); }

.cart-page {
  min-height: 72vh;
}
.cart-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 28px 0 18px;
}
.eyebrow {
  color: var(--brand-dark);
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cart-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
  margin-bottom: 8px;
}
.cart-hero p:last-child {
  color: var(--muted);
}
.cart-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  margin-bottom: 34px;
}
.cart-detail-card,
.cart-total-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 20px;
}
.cart-detail-card h2,
.cart-total-card h2 {
  margin-bottom: 14px;
}
.cart-detail-list {
  display: grid;
  gap: 12px;
}
.cart-detail-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #f2e5de;
  border-radius: 14px;
  background: #fffdfb;
}
.cart-detail-row img {
  width: 96px;
  height: 82px;
  object-fit: cover;
  border-radius: 10px;
}
.cart-detail-info h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.cart-detail-info p {
  color: var(--muted);
  font-size: .84rem;
  margin-bottom: 8px;
}
.cart-detail-info strong {
  font-size: .98rem;
}
.bill-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 0;
}
.bill-row.total-row {
  color: var(--text);
  margin: 6px 0 16px;
}

.footer { border-top: 1px solid var(--line); padding: 18px 0 24px; color: #444; }

@media (max-width: 900px) {
  .hero, .content-grid, .cart-detail-grid { grid-template-columns: 1fr; }
  .cart-total-card {
    position: sticky;
    bottom: 0;
    z-index: 10;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -14px 30px rgba(42, 20, 9, .08);
  }
  .cart-summary-card {
    position: sticky;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    margin-inline: -4%;
    padding: 10px 4%;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -10px 24px rgba(42, 20, 9, .12);
    top: auto;
  }
  .cart-summary-card h2 {
    display: none;
  }
  .cart-summary-card .cart-summary-text {
    margin: 0;
    font-size: .82rem;
    line-height: 1.2;
  }
  .cart-summary-card .cart-summary-text span {
    display: block;
    font-size: .95rem;
  }
  .cart-summary-card .total-row {
    grid-column: 1;
    margin: 2px 0 0;
    padding: 0;
    border: 0;
    justify-content: flex-start;
    gap: 8px;
    font-size: .9rem;
  }
  .cart-summary-card .total-row span:first-child {
    color: var(--muted);
    font-weight: 600;
  }
  .cart-summary-card .action-btn {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: auto;
    min-width: 118px;
    padding: 11px 16px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: .92rem;
  }
  .cart-hero {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .menu-card,
  .hero-card {
    padding: 16px;
  }
  .cart-summary-card {
    padding: 9px 4%;
  }
  .cart-summary-card .action-btn {
    min-width: 108px;
    padding-inline: 14px;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .menu-item {
    display: grid;
    grid-template-columns: 92px 1fr;
  }
  .menu-item img {
    height: 100%;
    min-height: 118px;
  }
  .popular-badge {
    top: 8px;
    left: 8px;
    font-size: .68rem;
  }
  .cart-detail-row {
    grid-template-columns: 76px 1fr;
  }
  .cart-detail-row img {
    width: 76px;
    height: 78px;
  }
  .cart-detail-row .cart-controls {
    grid-column: 2;
    width: max-content;
  }
}
