/* CRAVE STREET — reusable restaurant UI pieces */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 800; padding: 4px 8px; border-radius: 999px;
}
.badge-pop { background: var(--red); color: #fff; }
.badge-new { background: var(--gold); color: var(--charcoal); }
.badge-chef { background: var(--charcoal); color: var(--gold); }
.badge-fav { background: #fff; color: var(--red); }
.badge-combo { background: #2d6a4f; color: #fff; }
.badge-veg { background: #2d6a4f; color: #fff; }
.veg-dot { width: 10px; height: 10px; border: 2px solid #2d6a4f; display: inline-block; position: relative; }
.veg-dot::after { content: ""; width: 5px; height: 5px; background: #2d6a4f; border-radius: 50%; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); }

.meter { display: flex; gap: 4px; align-items: center; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.meter i { color: #d9cbbd; }
.meter i.on { color: var(--red); }
.meter.cheese i.on { color: var(--gold-deep); }

.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.qty button { width: 34px; height: 34px; border: 0; background: var(--cream); cursor: pointer; font-size: 16px; }
.qty input { width: 40px; border: 0; text-align: center; background: #fff; }

.size-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.size-pills button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.size-pills button.active { background: var(--charcoal); color: #fff; }

.heart {
  border: 0; background: #fff; width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; color: #c4b5a8; font-size: 16px; box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}
.heart.on { color: var(--red); animation: heartPop 0.35s ease; }
@keyframes heartPop { 50% { transform: scale(1.25); } }

.cart-toast {
  position: fixed; bottom: 20px; right: 20px; background: var(--charcoal); color: #fff;
  padding: 12px 16px; border-radius: 12px; z-index: 120; display: none;
}
.cart-toast.show { display: block; animation: rise 0.3s ease; }

/* irregular food cards — never identical */
.food-tile { position: relative; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.food-tile img { width: 100%; height: 220px; object-fit: cover; transition: 0.45s transform; }
.food-tile:hover img { transform: scale(1.06); }
.food-tile .body { padding: 14px 16px 16px; }
.food-tile h3 { font-size: 18px; margin-bottom: 4px; }
.price { font-weight: 800; color: var(--red); }
.tile-actions { display: flex; gap: 8px; margin-top: 10px; align-items: center; }

.tile-wide { display: grid; grid-template-columns: 160px 1fr; min-height: 140px; }
.tile-wide img { height: 100%; min-height: 140px; }
.tile-round { text-align: center; box-shadow: none; background: transparent; }
.tile-round img { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto; border: 6px solid #fff; box-shadow: var(--shadow); }
.tile-feature { grid-column: span 2; }
.tile-feature img { height: 420px; }
.tile-feature .body { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(26,20,18,0.85), transparent); color: #fff; }
.tile-feature .price { color: var(--gold); }

.masonry {
  columns: 4; column-gap: 12px;
}
.masonry figure { break-inside: avoid; margin-bottom: 12px; position: relative; overflow: hidden; border-radius: 16px; }
.masonry img { width: 100%; height: auto; display: block; transition: 0.4s transform; }
.masonry figure:hover img { transform: scale(1.05); }
.masonry figcaption {
  position: absolute; left: 10px; bottom: 10px; color: #fff; font-weight: 700;
  text-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px;
}
.filter-bar select, .filter-bar button, .chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.chip.active { background: var(--red); color: #fff; border-color: var(--red); }

.menu-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}

.cart-line {
  display: grid; grid-template-columns: 92px 1fr auto auto; gap: 14px; align-items: center;
  background: #fff; padding: 12px; border-radius: 16px; margin-bottom: 10px;
}
.cart-line img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; }
.remove { border: 0; background: none; color: var(--red); cursor: pointer; }

.totals {
  background: var(--charcoal); color: #fff; border-radius: 22px; padding: 22px;
}
.totals div { display: flex; justify-content: space-between; margin: 8px 0; }
.totals .grand { font-size: 22px; color: var(--gold); font-family: var(--font-display); letter-spacing: 0.06em; }

.faq-item { background: #fff; border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq-item button {
  width: 100%; text-align: left; padding: 16px 18px; border: 0; background: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between;
}
.faq-item .a { display: none; padding: 0 18px 16px; color: var(--muted); }
.faq-item.open .a { display: block; }

.form { display: grid; gap: 12px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }

.builder {
  display: grid; grid-template-columns: 1.3fr 0.8fr; gap: 24px;
}
.step { background: #fff; border-radius: 20px; padding: 20px; margin-bottom: 14px; }
.step h3 { font-family: var(--font-display); font-size: 28px; margin-bottom: 12px; }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.option {
  border: 2px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; background: #fff;
}
.option.on { border-color: var(--red); background: #fff4f0; }
.summary {
  background: var(--charcoal); color: #fff; border-radius: 22px; padding: 22px; position: sticky; top: 110px;
}
.pizza-preview {
  width: 260px; height: 260px; margin: 10px auto 18px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f3c98a, #c47a32 62%, #8a4b1c);
  position: relative; box-shadow: inset 0 0 0 14px #d9a15a, 0 16px 30px rgba(0,0,0,0.25);
  overflow: hidden;
}
.topping {
  position: absolute; width: 18px; height: 18px; border-radius: 50%;
}
.topping.chicken { background: #c47b4a; }
.topping.beef { background: #6b2b1a; }
.topping.pepperoni { background: #b83a2b; }
.topping.mushroom { background: #d8c3a5; }
.topping.olives { background: #1f2a1f; }
.topping.jalapeno { background: #3f7d2e; }
.topping.onion { background: #d9b4d0; }
.topping.capsicum { background: #4aa84a; }
.topping.extra { background: #f4e1a8; width: 28px; height: 10px; border-radius: 8px; }

.story-block { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; margin: 36px 0; }
.story-block.reverse { direction: rtl; }
.story-block.reverse > * { direction: ltr; }
.story-block img { width: 100%; height: 360px; object-fit: cover; border-radius: 28px; }
.story-block h2 { font-size: 56px; margin-bottom: 10px; }

.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.placeholder-card {
  background: var(--white); border-radius: 20px; padding: 22px; border: 1px dashed #cbb9a6;
}
.placeholder-card code { background: var(--cream-deep); padding: 2px 6px; border-radius: 6px; }

.deals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.deal {
  min-height: 340px; border-radius: 26px; padding: 28px; color: #fff; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: #1a1412;
}
.deal img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: 0.45s transform;
}
.deal:hover img { transform: scale(1.06); }
.deal::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,20,18,0.92) 0%, rgba(26,20,18,0.35) 55%, rgba(26,20,18,0.12) 100%);
}
.deal h3, .deal p, .deal .btn, .deal .save, .deal-copy { position: relative; z-index: 1; }
.deal h3 { font-family: var(--font-display); font-size: 48px; }
.deal p { max-width: 36ch; margin: 6px 0 14px; color: #f3e6d4; }
.deal.d1 { background: #6d1b2a; }
.deal.d2 { background: #8a4b12; }
.deal.d3 { background: #1a1412; }
.deal.d4 { background: #1b4332; }
.deal .save { position: absolute; top: 18px; right: 18px; background: #fff; color: var(--red); font-weight: 800; border-radius: 999px; padding: 6px 10px; }

.hshelf { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.hshelf::-webkit-scrollbar { height: 8px; }
.hshelf::-webkit-scrollbar-thumb { background: #d7c4b0; border-radius: 99px; }
.hshelf .food-tile { min-width: 240px; scroll-snap-align: start; flex: 0 0 auto; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

.mobile-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); background: var(--cream);
  z-index: 90; transform: translateX(100%); transition: 0.3s transform; padding: 80px 22px 22px;
  box-shadow: var(--shadow);
}
.mobile-drawer.open { transform: none; }
.mobile-drawer a { display: block; padding: 10px 0; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 85; display: none; }
.backdrop.open { display: block; }
