/* ==========================================================
   Restaurant site - white, premium, warm-orange accent
   ========================================================== */
:root {
  --bg: #ffffff;
  --bg-soft: #fff8f3;
  --text: #222222;
  --muted: #6b7280;
  --line: #eceae7;
  --brand: #e8590c;
  --brand-dark: #c2410c;
  --brand-soft: #fff1e8;
  --red: #c92a2a;
  --green: #16a34a;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(34, 34, 34, .06), 0 1px 2px rgba(34, 34, 34, .04);
  --shadow: 0 8px 28px rgba(34, 34, 34, .08);
  --bs-primary: #e8590c;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-color: #222222;
  --bs-body-bg: #ffffff;
  --bs-link-color: #c2410c;
  --bs-link-hover-color: #9a3412;
}
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .brand-name, .btn { font-family: 'Poppins', 'Inter', sans-serif; }
h1, h2, h3, h4, h5 { color: var(--text); letter-spacing: -.01em; }
a { text-decoration: none; }
.text-muted { color: var(--muted) !important; }
.skip-link { position: absolute; left: 8px; top: 8px; z-index: 2000; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid rgba(232, 89, 12, .45); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Buttons & forms */
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; border-radius: 12px; padding: .6rem 1.25rem; transition: background .15s, transform .15s, box-shadow .15s; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; box-shadow: 0 6px 16px rgba(232, 89, 12, .25); }
.btn-brand:active { transform: translateY(1px); }
.btn-brand:disabled, .btn-brand.disabled { background: #f3a97c; border-color: #f3a97c; color: #fff; }
.btn-brand.btn-sm { padding: .4rem .9rem; border-radius: 10px; }
.btn-outline-brand { color: var(--brand-dark); border-color: #f1c7ad; background: #fff; font-weight: 500; }
.btn-outline-brand:hover { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand); }
.btn-check:checked + .btn-outline-brand { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.btn-check:disabled + .btn-outline-brand { opacity: .45; }
.btn-ghost { background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--text); }
.btn-ghost:hover { background: var(--bg-soft); border-color: #f1c7ad; }
.form-control, .form-select { border-radius: 12px; border-color: #e5e1dc; padding: .65rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(232, 89, 12, .15); }
.form-label { font-weight: 500; font-size: .9rem; margin-bottom: .35rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-range::-webkit-slider-thumb { background: var(--brand); }
.form-range::-moz-range-thumb { background: var(--brand); }
.is-loading { position: relative; pointer-events: none; opacity: .8; }
.spinner-inline { display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; margin-right: .4rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Nav */
.site-nav { background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: .6rem 0; }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 1.2rem; }
.brand-name { font-weight: 700; color: var(--text); font-size: 1.15rem; }
.site-nav .nav-link { color: var(--text); font-weight: 500; padding: .5rem 1rem; border-radius: 10px; }
.site-nav .nav-link:hover { color: var(--brand); }
.site-nav .nav-link.active { color: var(--brand-dark); background: var(--brand-soft); }
.btn-cart { border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 1.15rem; padding: .45rem .7rem; }
.cart-count { position: absolute; top: -6px; right: -6px; background: var(--red); color: #fff; font-size: .7rem; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; font-weight: 600; }
.table-ribbon { background: var(--brand-soft); color: var(--brand-dark); text-align: center; font-size: .9rem; padding: .45rem 1rem; border-bottom: 1px solid #fbd9c4; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #ffe9d9 0, transparent 60%), linear-gradient(180deg, #fffaf6, #fff); padding: 4.5rem 0 3.5rem; overflow: hidden; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 700; line-height: 1.12; }
.hero h1 span { color: var(--brand); }
.hero p.lead { color: var(--muted); max-width: 34rem; }
.hero-img { border-radius: 28px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 5/4; object-fit: cover; background: linear-gradient(135deg, #ffd9bf, #ffb98a); }
.hero-art { aspect-ratio: 5/4; border-radius: 28px; background: linear-gradient(135deg, #fff1e8, #ffd2b3); display: grid; place-items: center; font-size: 6rem; color: var(--brand); box-shadow: var(--shadow); }
.promo-strip { background: var(--text); color: #fff; font-size: .92rem; }
.promo-strip a { color: #ffd2b3; font-weight: 600; }
.pill { display: inline-flex; gap: .4rem; align-items: center; background: var(--brand-soft); color: var(--brand-dark); padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }

/* Sections */
.section { padding: 4rem 0; }
.section-soft { background: var(--bg-soft); }
.section-title { font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-kicker { color: var(--brand); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.page-head { padding: 3rem 0 1.5rem; background: linear-gradient(180deg, #fffaf6, #fff); border-bottom: 1px solid var(--line); }
.page-head h1 { font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .25rem; }
.card-soft { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.highlight { text-align: center; padding: 1.5rem 1rem; height: 100%; }
.highlight i { font-size: 1.8rem; color: var(--brand); background: var(--brand-soft); width: 60px; height: 60px; border-radius: 18px; display: inline-grid; place-items: center; margin-bottom: .75rem; }
.cat-tile { display: block; text-align: center; padding: 1.1rem .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); font-weight: 600; transition: all .15s; }
.cat-tile:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); transform: translateY(-2px); }
.review { padding: 1.5rem; height: 100%; }
.stars { color: #f59f00; letter-spacing: 2px; }

/* Menu */
.menu-tools { padding: 1rem 0 .5rem; }
.search-box .input-group-text { background: #fff; border-radius: 12px 0 0 12px; border-color: #e5e1dc; color: var(--muted); }
.search-box .form-control { border-radius: 0 12px 12px 0; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .4rem .9rem; font-size: .88rem; font-weight: 500; color: var(--text); display: inline-flex; gap: .4rem; align-items: center; transition: all .15s; }
.chip:hover { border-color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.veg { background: var(--green); } .dot.nonveg { background: var(--red); }
.cat-scroller { display: flex; gap: .5rem; overflow-x: auto; padding: .75rem 0; position: sticky; top: 64px; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); z-index: 20; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.cat-scroller::-webkit-scrollbar { display: none; }
.cat-link { white-space: nowrap; padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-size: .88rem; font-weight: 500; background: #fff; }
.cat-link:hover, .cat-link.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
.menu-cat { margin-bottom: 2rem; }
.menu-cat-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 1rem; }
.food-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.food-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.food-card.is-out .food-img img { filter: grayscale(1); opacity: .6; }
.food-img { position: relative; aspect-ratio: 16/10; background: #f6f1ec; }
.food-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.veg-badge { position: absolute; top: 10px; left: 10px; width: 22px; height: 22px; background: #fff; border: 2px solid; border-radius: 5px; display: grid; place-items: center; }
.veg-badge span { width: 10px; height: 10px; border-radius: 50%; }
.veg-badge.veg { border-color: var(--green); } .veg-badge.veg span { background: var(--green); }
.veg-badge.nonveg { border-color: var(--red); } .veg-badge.nonveg span { background: var(--red); }
.tag-special { position: absolute; top: 10px; right: 10px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; }
.tag-out { position: absolute; inset: auto 10px 10px auto; background: #222; color: #fff; font-size: .75rem; padding: .25rem .6rem; border-radius: 8px; }
.food-body { padding: 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.food-name { font-size: 1.02rem; font-weight: 600; margin: 0; }
.food-desc { color: var(--muted); font-size: .88rem; margin: 0; flex: 1; }
.low-stock { color: var(--red); font-size: .8rem; font-weight: 600; margin: 0; }
.food-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.price { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.05rem; }
.portion-toggle .btn { font-size: .78rem; padding: .3rem .55rem; }
.add-btn.added { background: var(--green); border-color: var(--green); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2.5rem; color: #d6cfc8; display: block; margin-bottom: .5rem; }

/* Cart */
.cart-drawer { width: min(440px, 100vw); }
.cart-line { display: flex; gap: .75rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.cart-line .name { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.stepper button { border: 0; background: #fff; width: 32px; height: 32px; font-size: 1rem; color: var(--brand-dark); }
.stepper button:hover { background: var(--brand-soft); }
.stepper span { min-width: 30px; text-align: center; font-weight: 600; font-size: .9rem; }
.totals-row { display: flex; justify-content: space-between; padding: .25rem 0; font-size: .95rem; }
.totals-row.grand { border-top: 1px dashed #d9d3cc; margin-top: .4rem; padding-top: .7rem; font-weight: 700; font-size: 1.1rem; font-family: 'Poppins', sans-serif; }
.totals-row.discount { color: var(--green); }
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); z-index: 1030; box-shadow: 0 -8px 24px rgba(0,0,0,.06); }
.cart-bar .btn { max-width: 720px; margin: 0 auto; }
body.has-cart-bar main { padding-bottom: 84px; }
.alert-stock { font-size: .88rem; }

/* Checkout */
.pay-option { border: 1.5px solid var(--line); border-radius: 14px; padding: .9rem 1rem; cursor: pointer; display: flex; gap: .75rem; align-items: center; transition: all .15s; background: #fff; }
.btn-check:checked + .pay-option { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.pay-option i { font-size: 1.4rem; color: var(--brand); }
.summary-card { position: sticky; top: 90px; }
.status-steps { display: flex; justify-content: space-between; position: relative; margin: 1.5rem 0; }
.status-steps::before { content: ''; position: absolute; top: 15px; left: 8%; right: 8%; height: 3px; background: var(--line); z-index: 0; }
.status-step { text-align: center; flex: 1; font-size: .78rem; color: var(--muted); position: relative; z-index: 1; }
.status-step .bubble { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; margin: 0 auto .35rem; font-size: .85rem; }
.status-step.done .bubble { background: var(--brand); border-color: var(--brand); color: #fff; }
.status-step.done { color: var(--text); font-weight: 600; }
.success-mark { width: 84px; height: 84px; border-radius: 50%; background: #e8f7ee; color: var(--green); display: grid; place-items: center; font-size: 2.6rem; margin: 0 auto 1rem; }
.warn-mark { background: #fff4e5; color: #d9730d; }

/* Spin wheel */
.wheel-wrap { position: relative; width: min(380px, 86vw); aspect-ratio: 1; margin: 0 auto; }
.wheel-wrap canvas { width: 100%; height: 100%; transition: transform 5s cubic-bezier(.12, .8, .12, 1); filter: drop-shadow(0 10px 24px rgba(0,0,0,.15)); }
.wheel-pointer { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 28px solid var(--text); z-index: 2; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.wheel-hub { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); background: #fff; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.2); display: grid; place-items: center; font-weight: 700; color: var(--brand); z-index: 2; font-family: 'Poppins'; }
.reward-code { font-family: 'Poppins', monospace; font-size: 1.6rem; font-weight: 700; letter-spacing: .14em; background: var(--brand-soft); border: 2px dashed var(--brand); border-radius: 14px; padding: .6rem 1rem; display: inline-block; }

/* Footer */
.site-footer { background: #fbf8f5; border-top: 1px solid var(--line); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-brand { font-weight: 700; }
.footer-links a, .site-footer a { color: var(--text); }
.footer-links a:hover, .site-footer a:hover { color: var(--brand); }
.footer-links li { margin-bottom: .35rem; }
.map-frame { border: 0; width: 100%; height: 340px; border-radius: var(--radius); }

/* Bill */
.bill { max-width: 420px; margin: 1.5rem auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; font-size: .92rem; }
.bill hr { border-style: dashed; }
@media print { .no-print, .site-nav, .site-footer, .cart-bar, .table-ribbon { display: none !important; } .bill { border: 0; box-shadow: none; margin: 0 auto; } }

@media (max-width: 575.98px) {
  .section { padding: 2.75rem 0; }
  .hero { padding: 2.5rem 0 2rem; }
  .cat-scroller { top: 60px; }
}
