:root {
  /* --- Dark Theme Palette --- */
  --paper: #121012;              /* Deep canvas background */
  --paper-2: #1E181B;            /* Slightly lighter canvas for inputs/blocks */
  --card: #262024;               /* Elevated surface cards */
  
  --maroon: #E05A6D;             /* Primary action color (vibrant soft red/rose for readability on dark) */
  --maroon-dark: #F5EAEB;        /* High-contrast text color replacing dark maroon */
  --gold: #E5A93C;               /* Bright accent gold */
  --gold-light: #FCE6AA;         /* Light highlight gold */
  
  --green: #4EA375;              /* Vibrant mint green for veg indicators & success states */
  --charcoal: #ECE8E5;           /* Primary text color (high contrast light gray) */
  --charcoal-soft: #A89F98;      /* Secondary text color (muted) */
  --steel: #42383F;              /* Borders & subtle dividers */
  --chili: #E05238;              /* Non-veg indicators & alerts */
  
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
  --radius-lg: 22px; 
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
  margin: 0; 
  background: var(--paper); 
  color: var(--charcoal); 
  font-family: 'Work Sans', sans-serif; 
  -webkit-font-smoothing: antialiased; 
  padding-bottom: 76px; 
}

h1, h2, h3, .display { 
  font-family: 'Fraunces', serif; 
  letter-spacing: -0.01em; 
  color: var(--maroon-dark); 
  margin: 0; 
}
.mono { font-family: 'JetBrains Mono', monospace; }
a { color: inherit; } 
img, svg { display: block; max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
button { font-family: inherit; cursor: pointer; }

/* --- Header --- */
header { 
  position: sticky; 
  top: 0; 
  z-index: 40; 
  background: rgba(18, 16, 18, 0.88); 
  backdrop-filter: blur(12px); 
  border-bottom: 1px solid var(--steel); 
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-size: 1.25rem; font-weight: 700; line-height: 1; color: var(--maroon-dark); }
.brand-tag { font-size: 0.68rem; color: var(--charcoal-soft); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }
.cart-pill { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  background: var(--maroon); 
  color: #121012; 
  border: none; 
  border-radius: 999px; 
  padding: 9px 16px 9px 14px; 
  font-weight: 700; 
  font-size: 0.9rem; 
  box-shadow: var(--shadow); 
}
.cart-count { 
  background: var(--gold); 
  color: #121012; 
  border-radius: 999px; 
  min-width: 20px; 
  height: 20px; 
  font-size: 0.72rem; 
  font-weight: 700; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 0 5px; 
  font-family: 'JetBrains Mono', monospace; 
}
.cat-scroll-wrap{ position:relative; max-width:1120px; margin:0 auto; }
.cat-chip-row{
  display:flex; gap:8px; overflow-x:auto; padding:0 20px 0 20px; scroll-behavior:smooth;
  scrollbar-width:none; -webkit-mask-image:linear-gradient(to right, #000 94%, transparent 100%); mask-image:linear-gradient(to right, #000 94%, transparent 100%);
}
.cat-chip-row::-webkit-scrollbar{ display:none; }
.cat-chip{
  flex:none; display:flex; align-items:center; gap:7px; background:var(--card); border:1.5px solid var(--steel); color:var(--charcoal-soft);
  font-size:.82rem; font-weight:600; padding:6px 16px 6px 6px; border-radius:999px; white-space:nowrap;
  cursor:pointer; transition:all .15s ease;
}
.cat-chip.active{ background:var(--maroon); border-color:var(--maroon); color:#fff; }
.cat-chip-icon{ width:26px; height:26px; border-radius:50%; overflow:hidden; flex:none; display:flex; align-items:center; justify-content:center; background:var(--paper-2); }
.cat-chip-icon img{ width:100%; height:100%; object-fit:cover; display:block; }
.cat-chip-emoji{ font-size:1rem; }
.cat-chip[data-cat="all"] .cat-chip-icon{ background:transparent; }
.cat-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:30px; height:30px; border-radius:50%; border:1px solid rgba(110,31,43,0.15);
  background:var(--card); color:var(--maroon); font-size:1.1rem; line-height:1; font-weight:700;
  display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow);
  opacity:0; pointer-events:none; transition:opacity .15s ease;
}
.cat-arrow.show{ opacity:1; pointer-events:auto; }
.cat-arrow-left{ left:2px; }
.cat-arrow-right{ right:2px; }
.cat-scroll-wrap.has-overflow .cat-chip-row{ padding-right:36px; }

/* --- Hero --- */
.hero { padding: 56px 0 40px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); font-weight: 600; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 16px; height: 2px; background: var(--green); display: inline-block; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; font-weight: 700; }
.hero h1 em { font-style: italic; color: var(--chili); font-weight: 600; }
.hero p.lede { margin: 18px 0 26px; font-size: 1.05rem; color: var(--charcoal-soft); max-width: 46ch; line-height: 1.55; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { border-radius: 999px; padding: 13px 24px; font-weight: 600; font-size: 0.95rem; border: 2px solid transparent; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background: var(--maroon); color: #121012; font-weight: 700; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; border-color: var(--maroon); color: var(--maroon); }
.hero-art { display: flex; justify-content: center; }
.steam path { animation: rise 3.6s ease-in-out infinite; transform-origin: center; }
.steam path:nth-child(2) { animation-delay: .6s; } 
.steam path:nth-child(3) { animation-delay: 1.2s; }

@keyframes rise { 
  0% { opacity: 0; transform: translateY(6px) scaleY(.9); } 
  35% { opacity: .8; } 
  100% { opacity: 0; transform: translateY(-16px) scaleY(1.05); } 
}
@media (prefers-reduced-motion: reduce) { 
  .steam path { animation: none; opacity: .5; } 
  html { scroll-behavior: auto; } 
}

/* --- Sections & Menu Cards --- */
.section { padding: 52px 0 8px; }
.section-head { margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
.menu-category { margin-bottom: 44px; }
.cat-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--steel); padding-bottom: 10px; }
.cat-title h3 { font-size: 1.35rem; font-weight: 600; }
.cat-title .cat-count { font-size: .78rem; color: var(--charcoal-soft); font-family: 'JetBrains Mono', monospace; }
.menu-grid {display: grid;grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));gap: 16px;margin: .5rem;}

.item-card { 
  background: var(--card); 
  border-radius: var(--radius-md); 
  border: 1px solid var(--steel); 
  padding: 0; 
  overflow: hidden; 
  display: flex; 
  flex-direction: column; 
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.item-card:hover { 
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); 
  border-color: rgba(224, 90, 109, 0.3);
}
.item-img { width: 100%; aspect-ratio: 16/10; background: var(--paper-2); overflow: hidden; flex: none; }
.item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.item-top { display: flex; justify-content: space-between; gap: 10px; }

.veg-dot { width: 15px; height: 15px; border: 1.5px solid var(--green); border-radius: 3px; display: flex; align-items: center; justify-content: center; flex: none; margin-top: 3px; }
.veg-dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.veg-dot.nonveg { border-color: var(--chili); }
.veg-dot.nonveg::after { background: var(--chili); border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); width: 8px; height: 8px; }

.item-name { font-weight: 600; font-size: 1rem; line-height: 1.25; color: var(--maroon-dark); }
.bogo-badge { display: inline-block; background: var(--green); color: #121012; font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-top: -4px; align-self: flex-start; }
.item-desc { font-size: .83rem; color: var(--charcoal-soft); line-height: 1.4; flex: 1; }
.item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.item-price { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--gold-light); }
.item-mrp { font-family: 'JetBrains Mono', monospace; font-weight: 500; color: var(--charcoal-soft); opacity: .6; text-decoration: line-through; font-size: .82em; margin-left: 6px; }

.qty-stepper { display: flex; align-items: center; border: 1.5px solid var(--maroon); border-radius: 999px; overflow: hidden; background: var(--paper-2); }
.qty-stepper button { background: none; border: none; width: 28px; height: 28px; color: var(--maroon); font-size: 1rem; font-weight: 700; }
.qty-stepper .qty-val { min-width: 20px; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: .85rem; font-weight: 600; color: var(--maroon-dark); }
.add-btn { background: var(--maroon); color: #121012; border: none; border-radius: 999px; padding: 7px 16px; font-size: .82rem; font-weight: 700; }

/* --- Footer --- */
footer { background: var(--paper-2); color: var(--charcoal); margin-top: 60px; padding: 44px 0 28px; border-top: 1px solid var(--steel); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
footer h5 { font-family: 'Fraunces', serif; font-size: 1rem; color: var(--gold); margin: 0 0 10px; }
footer p, footer a { font-size: .86rem; color: var(--charcoal-soft); line-height: 1.7; text-decoration: none; }

/* --- Mobile Sticky Bar --- */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--card); border-top: 1px solid var(--steel); color: var(--charcoal); display: none; align-items: center; justify-content: space-between; padding: 13px 18px; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6); }
.sticky-bar.show { display: flex; }
.sticky-bar .sb-left strong { font-family: 'JetBrains Mono', monospace; color: var(--gold-light); }
.sticky-bar button { background: var(--gold); color: #121012; border: none; border-radius: 999px; padding: 10px 20px; font-weight: 700; font-size: .88rem; }

/* --- Cart Drawer & Overlay --- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100%); background: var(--card); border-left: 1px solid var(--steel); z-index: 51; box-shadow: -16px 0 40px rgba(0, 0, 0, 0.8); transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 18px 20px; border-bottom: 1px solid var(--steel); display: flex; align-items: center; justify-content: space-between; }
.close-btn { background: none; border: none; font-size: 1.4rem; color: var(--maroon); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.empty-cart { text-align: center; color: var(--charcoal-soft); padding: 50px 10px; font-size: .92rem; }

/* --- Forms & Controls --- */
.order-type-toggle { display: flex; gap: 8px; background: var(--paper-2); padding: 5px; border-radius: 999px; margin-bottom: 18px; border: 1px solid var(--steel); }
.order-type-toggle button { flex: 1; border: none; background: none; border-radius: 999px; padding: 10px 8px; font-weight: 600; font-size: .86rem; color: var(--charcoal-soft); }
.order-type-toggle button.active { background: var(--maroon); color: #121012; font-weight: 700; box-shadow: var(--shadow); }

.cart-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--steel); }
.cart-line .cl-info { flex: 1; }
.cart-line .cl-name { font-weight: 600; font-size: .92rem; color: var(--maroon-dark); }
.cart-line .cl-price { font-size: .78rem; color: var(--gold-light); font-family: 'JetBrains Mono', monospace; margin-top: 2px; }
.cart-line .cl-bogo { font-size: .72rem; color: var(--green); font-weight: 600; margin-top: 3px; }
.cart-line .cl-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cl-remove { background: none; border: none; font-size: .74rem; color: var(--chili); text-decoration: underline; padding: 0; }

.field-group { margin-top: 18px; }
.field-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--charcoal-soft); margin-bottom: 6px; }
.field-group input, .field-group textarea, .field-group select { width: 100%; border: 1.5px solid var(--steel); background: var(--paper-2); border-radius: 10px; padding: 11px 12px; font-family: inherit; font-size: .9rem; color: var(--charcoal); }
.phone-input { display: flex; align-items: center; border: 1.5px solid var(--steel); background: var(--paper-2); border-radius: 10px; overflow: hidden; }
.phone-input .phone-prefix { padding: 11px 10px 11px 12px; color: var(--charcoal-soft); font-weight: 600; font-family: 'JetBrains Mono', monospace; font-size: .88rem; border-right: 1.5px solid var(--steel); }
.phone-input input { border: none !important; border-radius: 0 !important; flex: 1; }
.phone-input:focus-within { border-color: var(--maroon); }
.field-group input:focus, .field-group textarea:focus, .field-group select:focus { outline: none; border-color: var(--maroon); }

.loc-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--paper-2); border: 1.5px dashed var(--green); color: var(--green); border-radius: 10px; padding: 11px 12px; font-weight: 600; font-size: .86rem; margin-top: 8px; }
.loc-btn.located { border-style: solid; background: rgba(78, 163, 117, 0.15); }
.loc-btn:disabled { opacity: .65; }
.loc-status { font-size: .78rem; margin-top: 8px; line-height: 1.5; }
.loc-status.ok { color: var(--green); } 
.loc-status.err { color: var(--chili); }
.loc-status a { text-decoration: underline; font-weight: 600; }
.loc-clear { background: none; border: none; font-size: .74rem; color: var(--charcoal-soft); text-decoration: underline; padding: 0; margin-left: 8px; }

.totals { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--steel); }
.totals-row { display: flex; justify-content: space-between; font-size: .88rem; padding: 4px 0; color: var(--charcoal-soft); }
.totals-row.grand { font-weight: 700; font-size: 1.05rem; color: var(--maroon-dark); padding-top: 8px; }
.totals-row .val { font-family: 'JetBrains Mono', monospace; color: var(--gold-light); }

.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--steel); }
.wa-order-btn { width: 100%; background: #25D366; color: #052110; border: none; border-radius: 14px; padding: 15px; font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.fine-print { font-size: .72rem; color: var(--charcoal-soft); text-align: center; margin-top: 10px; line-height: 1.5; }
.form-error { color: var(--chili); font-size: .78rem; margin-top: 6px; display: none; }
.form-error.show { display: block; }
.pay-note { font-size: .8rem; color: var(--charcoal-soft); margin-top: 16px; background: var(--paper-2); border: 1px solid var(--steel); padding: 10px 12px; border-radius: 10px; }

/* --- Promotional Strip & Filter Bar --- */
.promo-strip { background: var(--green); padding: 8px 0; overflow-x: auto; }
.promo-strip-inner { display: flex; gap: 10px; flex-wrap: nowrap; }
.promo-pill { flex: none; background: rgba(0, 0, 0, 0.25); color: #fff; font-size: .78rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }

.category-filter-bar {
  position: sticky; top: 66px; z-index: 35;
  background: rgba(18, 16, 18, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel);
  padding: 10px 0;
}
.cat-chip-row {
  display: flex; gap: 8px; overflow-x: auto; padding: 0 20px; max-width: 1120px; margin: 0 auto;
  scrollbar-width: none;
}
.cat-chip-row::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none; background: var(--card); border: 1.5px solid var(--steel); color: var(--charcoal-soft);
  font-size: .82rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  cursor: pointer; transition: all .15s ease;
}
.cat-chip.active { background: var(--maroon); border-color: var(--maroon); color: #121012; font-weight: 700; }

@media (max-width: 640px) {
  .category-filter-bar {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0;
    padding: 8px 0; box-shadow: 0 -6px 18px -8px rgba(0, 0, 0, 0.7);
    z-index: 44; background: var(--card);
  }
  .cat-chip-row { padding: 0 14px; }
  body.has-cat-filter { padding-bottom: 130px; }
  body.has-cat-filter .sticky-bar { bottom: 54px; }
}

.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; text-transform: uppercase; }
.coupon-row .btn { white-space: nowrap; padding: 11px 16px; }
.coupon-msg { font-size: .78rem; margin-top: 6px; }
.coupon-msg.ok { color: var(--green); }
.coupon-msg.err { color: var(--chili); }

.free-items-block { background: rgba(78, 163, 117, 0.12); border: 1px solid rgba(78, 163, 117, 0.3); border-radius: 10px; padding: 10px 14px; margin-top: 14px; font-size: .82rem; color: var(--green); }
.free-items-block .fi-line { display: flex; justify-content: space-between; }
.teaser-block { background: rgba(229, 169, 60, 0.1); border: 1px dashed var(--gold); border-radius: 10px; padding: 10px 14px; margin-top: 14px; font-size: .8rem; color: var(--gold-light); }
.teaser-block .teaser-line { margin-bottom: 4px; }
.teaser-block .teaser-line:last-child { margin-bottom: 0; }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; }

/* --- Responsive Adjustments --- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 34px; text-align: center; }
  .hero-ctas { justify-content: center; } 
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .item-card { flex-direction: column; align-items: stretch; }
  .item-img { width: 100%; aspect-ratio: auto; flex: none; }
  .item-body { flex: 1; min-width: 0; padding: 12px; gap: 6px; }
  .item-desc { font-size: .78rem; }
}

/* --- order.php Bill View --- */
.bill-wrap { max-width: 520px; margin: 30px auto; padding: 0 16px; }
.bill-card { background: var(--card); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--steel); }
.bill-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; color: #121012; font-weight: 700; font-size: .82rem; }
.bill-steps { display: flex; justify-content: space-between; margin: 22px 0; position: relative; }
.bill-steps::before { content: ""; position: absolute; top: 9px; left: 5%; right: 5%; height: 2px; background: var(--steel); }
.bill-step { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .68rem; color: var(--charcoal-soft); flex: 1; position: relative; z-index: 1; text-align: center; }
.bill-step .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--steel); border: 3px solid var(--card); }
.bill-step.done .dot { background: var(--green); }
.bill-step.current .dot { background: var(--chili); }
.bill-line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--steel); font-size: .9rem; }
.bill-total-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: .88rem; color: var(--charcoal-soft); }
.bill-total-row.grand { font-weight: 700; font-size: 1.1rem; color: var(--maroon-dark); border-top: 1px solid var(--steel); margin-top: 6px; padding-top: 10px; }
.bill-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.qr-box { text-align: center; margin: 18px 0; padding: 16px; background: #ffffff; color: #121012; border-radius: var(--radius-md); }
.reward-banner { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #121012; border-radius: var(--radius-md); padding: 14px 16px; margin: 16px 0; font-size: .88rem; font-weight: 600; text-align: center; }

@media print {
  header, footer, .sticky-bar, .bill-actions, .overlay, .drawer { display: none !important; }
  body { padding-bottom: 0; background: #fff; color: #000; }
  .bill-card { box-shadow: none; border: 1px solid #999; background: #fff; color: #000; }
}