/* Crave — warm red/orange + cream theme, mobile-first. Original design. */
:root {
  --bg: #FFF7EF;
  --card: #FFFFFF;
  --primary: #D2451F;
  --primary-dark: #A93212;
  --accent: #F2994A;
  --accent-soft: #FDE9D3;
  --ink: #3B2318;
  --muted: #8A6F5F;
  --line: #F0E2D4;
  --green: #2E7D4F;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.topbar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 12px 16px;
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 2px 10px rgba(169,50,18,.25);
}
.brand { font-size: 1.5rem; font-weight: 800; letter-spacing: .5px; }
.brand .flame { color: var(--accent); }
.topbar .city { font-size: .8rem; opacity: .9; margin-left: auto; display: flex; align-items: center; gap: 8px; }
.town-input {
  background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.55);
  color: #fff; border-radius: 999px; padding: 7px 12px; font-size: .82rem;
  max-width: 148px; font-family: inherit; font-weight: 600;
}
.town-input:focus { background: #fff; color: var(--ink); outline: none; border-color: #fff; }
.cart-btn {
  background: #fff; color: var(--primary-dark); border: 0; border-radius: 999px;
  padding: 8px 14px; font-weight: 700; cursor: pointer; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.cart-count {
  background: var(--primary-dark); color: #fff; border-radius: 999px;
  min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  font-size: .78rem; padding: 0 6px;
}

.demo-strip {
  background: #FFF3CD; color: #7A5A00; border-bottom: 1px solid #EAD98B;
  font-size: .8rem; padding: 8px 16px; text-align: center;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.hero { padding: 28px 0 18px; text-align: center; }
.hero h1 { font-size: 1.9rem; line-height: 1.25; }
.hero h1 .hl { color: var(--primary); }
.hero p { color: var(--muted); margin-top: 8px; }

.searchbar { display: flex; gap: 8px; margin: 18px auto 0; max-width: 560px; }
.searchbar input {
  flex: 1; padding: 13px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 1rem; background: #fff; outline: none;
}
.searchbar input:focus { border-color: var(--primary); }
.searchbar button {
  border: 0; background: var(--primary); color: #fff; border-radius: 999px;
  padding: 0 22px; font-weight: 700; font-size: 1rem; cursor: pointer;
}

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 4px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 16px; font-size: .9rem; cursor: pointer; font-weight: 600;
}
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.section-title { font-size: 1.25rem; margin: 22px 0 12px; }

.grid { display: grid; grid-template-columns: 1fr; gap: 14px; padding-bottom: 40px; }
@media (min-width: 620px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: block; position: relative;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:active { transform: scale(.98); }
.card-hero {
  height: 130px; display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; font-weight: 800; color: #fff; position: relative;
}
.card-hero.c0 { background: linear-gradient(135deg, #D2451F, #F2994A); }
.card-hero.c1 { background: linear-gradient(135deg, #B5441B, #E0713A); }
.card-hero.c2 { background: linear-gradient(135deg, #C25E2A, #F2B04A); }
.card-hero.c3 { background: linear-gradient(135deg, #A93212, #D97B2B); }
.sample-badge {
  position: absolute; top: 10px; left: 10px; background: #3B2318; color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .6px;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.card-body { padding: 12px 14px 14px; }
.card-body h3 { font-size: 1.05rem; }
.card-body .tagline { color: var(--muted); font-size: .85rem; margin: 2px 0 8px; }
.meta { display: flex; gap: 12px; font-size: .83rem; color: var(--muted); flex-wrap: wrap; }
.meta .rate { color: var(--ink); font-weight: 700; }
.meta .star { color: #E8A100; }

/* restaurant page */
.back { display: inline-block; margin: 14px 0; color: var(--primary-dark); font-weight: 700; }
.rest-head {
  border-radius: var(--radius); padding: 26px 20px; color: #fff; position: relative; overflow: hidden;
}
.rest-head h1 { font-size: 1.7rem; }
.rest-head .tagline { opacity: .92; margin: 4px 0 10px; }
.rest-head .addr { font-size: .85rem; opacity: .85; }
.menu-cat { font-size: 1.15rem; margin: 24px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.menu-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px; display: flex; gap: 12px; align-items: center;
}
.menu-item .info { flex: 1; }
.menu-item .info h4 { font-size: .98rem; }
.menu-item .info p { font-size: .82rem; color: var(--muted); }
.menu-item .price { font-weight: 800; color: var(--primary-dark); margin-top: 4px; }
.add-btn {
  border: 0; background: var(--primary); color: #fff; font-weight: 800; font-size: 1.1rem;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; flex: 0 0 auto;
}
.cart-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  background: var(--primary-dark); color: #fff; border-radius: 999px;
  padding: 14px 20px; display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; box-shadow: 0 6px 24px rgba(169,50,18,.4);
}
.cart-bar .view { background: #fff; color: var(--primary-dark); border-radius: 999px; padding: 6px 16px; font-weight: 800; }

/* cart page */
.cart-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px; display: flex; gap: 10px; align-items: center;
}
.cart-item .info { flex: 1; }
.cart-item .info h4 { font-size: .95rem; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button {
  width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line);
  background: #fff; font-size: 1.1rem; font-weight: 800; cursor: pointer; color: var(--primary-dark);
}
.qty .n { font-weight: 800; min-width: 20px; text-align: center; }
.totals { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.totals .row { display: flex; justify-content: space-between; padding: 4px 0; font-size: .95rem; }
.totals .grand { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.btn {
  display: block; width: 100%; border: 0; border-radius: 999px; padding: 15px;
  background: var(--primary); color: #fff; font-size: 1.05rem; font-weight: 800;
  cursor: pointer; text-align: center; margin-bottom: 40px;
}
.btn.secondary { background: #fff; color: var(--primary-dark); border: 1.5px solid var(--primary); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* checkout */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.form label { display: block; font-weight: 700; margin: 14px 0 6px; font-size: .92rem; }
.form label:first-child { margin-top: 0; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px; border-radius: 10px; border: 1.5px solid var(--line); font-size: 1rem; font-family: inherit;
}
.form input:focus, .form textarea:focus { border-color: var(--primary); outline: none; }
.pay-opt {
  display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line);
  border-radius: 10px; padding: 12px; margin-bottom: 10px; cursor: pointer;
}
.pay-opt input { width: auto; }
.pay-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* tracking */
.order-head { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 18px 0; }
.timeline { list-style: none; margin: 8px 0 30px; }
.timeline li { display: flex; gap: 14px; padding: 14px 0; position: relative; }
.timeline .dot {
  width: 34px; height: 34px; border-radius: 50%; background: var(--line); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex: 0 0 auto; z-index: 1;
}
.timeline li.done .dot { background: var(--green); }
.timeline li.now .dot { background: var(--primary); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.timeline li:not(:last-child)::before {
  content: ""; position: absolute; left: 17px; top: 48px; bottom: -6px; width: 2px; background: var(--line);
}
.timeline li.done:not(:last-child)::before { background: var(--green); }
.timeline .t h4 { font-size: .98rem; }
.timeline .t p { font-size: .83rem; color: var(--muted); }
.progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 12px 0 4px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--primary)); transition: width .6s ease; }

/* partner */
.two-col { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
.perk { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.perk h3 { font-size: 1rem; margin-bottom: 4px; }
.perk p { font-size: .88rem; color: var(--muted); }

footer {
  background: #2E1A10; color: #EAD9C8; padding: 30px 16px; font-size: .82rem; margin-top: 20px;
}
footer .wrap { display: flex; flex-direction: column; gap: 10px; }
footer a { color: var(--accent); }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.hidden { display: none !important; }
