/* Romato · Navalagund — customer ordering app (mobile first: a 520 px column, centred on desktop). */

body.customer { background: #FFF8F1; }
.c-shell { max-width: 520px; margin: 0 auto; min-height: 100vh; background: var(--bg-c, #FFF8F1); position: relative;
  padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 560px) { .c-shell { box-shadow: 0 0 0 1px var(--border), 0 10px 40px rgba(15, 23, 42, .06); background: #FFFDFA; } }

/* header */
.c-head { position: sticky; top: 0; z-index: 30; background: rgba(255, 253, 250, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.c-head .logo { width: 38px; height: 38px; border-radius: 10px; }
.c-head .name { font-family: var(--font-brand); font-weight: 800; font-size: 20px; line-height: 1; color: var(--tomato); }
.c-head .branch { font-size: 12px; color: var(--muted); font-weight: 600; }
.c-head .status { font-size: 12px; font-weight: 650; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.c-head .status .dot { width: 7px; height: 7px; }
.c-head .status.open { color: var(--success-ink); }
.c-head .status.closed { color: var(--danger-ink); }
.c-head .head-btn { margin-left: auto; }

/* bottom nav */
.c-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(520px, 100%); z-index: 40;
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom); }
.c-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; color: var(--muted);
  font-size: 11.5px; font-weight: 650; text-decoration: none !important; position: relative; }
.c-nav a svg { width: 22px; height: 22px; }
.c-nav a.on { color: var(--tomato); }
.c-nav .nav-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--tomato); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

.c-page { padding: 14px 16px 24px; }

/* hero */
.c-hero { border-radius: 18px; padding: 18px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #F29F05 0%, #E2582C 42%, #C42F24 100%); box-shadow: 0 10px 24px rgba(215, 55, 43, .25); }
.c-hero h1 { color: #fff; font-family: var(--font-brand); font-size: 28px; font-weight: 800; letter-spacing: 0; }
.c-hero .kn { font-size: 15px; opacity: .92; }
.c-hero .tagline { margin-top: 4px; font-size: 13px; opacity: .95; }
.c-hero .hero-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.c-hero .hero-chips span { background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
  padding: 4px 10px; font-size: 12px; font-weight: 650; display: inline-flex; gap: 5px; align-items: center; }
.c-hero .hero-chips svg { width: 14px; height: 14px; }
.c-hero .cup { position: absolute; right: -12px; bottom: -14px; width: 110px; opacity: .2; }
.c-closed { margin-top: 12px; }

/* search + filters */
.c-tools { display: flex; gap: 8px; align-items: center; margin: 14px 0 10px; }
.c-tools .input-group { flex: 1; }
.c-veg { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 13px; white-space: nowrap; }
.c-cats { position: sticky; top: 59px; z-index: 20; background: inherit; padding: 8px 0; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
  background: rgba(255, 253, 250, .97); }
.c-cats .chip { min-height: 34px; }
.c-cat-title { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 8px; scroll-margin-top: 112px; }
.c-cat-title h2 { font-size: 18px; font-weight: 800; }
.c-cat-title .kn { color: var(--muted); font-weight: 600; font-size: 14px; }
.c-cat-title .win { margin-left: auto; font-size: 11.5px; color: var(--warn-ink); font-weight: 650; }

/* item card */
.c-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--border-strong); }
.c-item:last-child { border-bottom: 0; }
.c-item .info { flex: 1; min-width: 0; }
.c-item .marks { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.c-item .nm { font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.c-item .kn { font-size: 13px; color: var(--text-2); }
.c-item .price { font-weight: 750; margin-top: 4px; font-variant-numeric: tabular-nums; }
.c-item .desc { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.c-item .side { width: 112px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.c-item .photo { width: 112px; height: 96px; border-radius: 14px; object-fit: cover; background: var(--surface-3); }
.c-item .photo.ph { display: grid; place-items: center; font-size: 40px; background: linear-gradient(135deg, #FFF1E2, #FDE3D6); }
.c-item .side .qty { margin-top: -18px; background: #fff; box-shadow: var(--shadow); }
.c-item .side .qty.filled { background: var(--primary); }
.c-item .side .variant-note { font-size: 11px; color: var(--muted); margin-top: 4px; }
.c-item.off .nm, .c-item.off .price, .c-item.off .photo { opacity: .45; filter: grayscale(.6); }
.egg-tag { height: 16px; font-size: 9.5px; padding: 0 5px; letter-spacing: .04em; }

/* cart bar */
.c-cartbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 35;
  width: min(496px, calc(100% - 24px)); display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: var(--success); color: #fff; box-shadow: 0 10px 24px rgba(46, 125, 50, .35); text-decoration: none !important; }
.c-cartbar .cb-count { font-size: 12px; font-weight: 700; opacity: .9; text-transform: uppercase; letter-spacing: .04em; }
.c-cartbar .cb-total { font-size: 16px; font-weight: 800; }
.c-cartbar .cb-go { margin-left: auto; font-weight: 750; display: flex; align-items: center; gap: 4px; }
.c-cartbar .cb-go svg { width: 18px; height: 18px; }

/* cards in checkout / account */
.c-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; margin-top: 12px; }
.c-card h3 { font-size: 14.5px; font-weight: 750; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.c-card h3 svg { width: 18px; height: 18px; color: var(--tomato); }
.c-line { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--border); }
.c-line:first-of-type { border-top: 0; }
.c-line .nm { font-weight: 650; }
.c-line .sub { font-size: 12px; color: var(--muted); }
.c-line .amt { margin-left: auto; font-weight: 700; text-align: right; min-width: 64px; font-variant-numeric: tabular-nums; }
.c-line.bad .nm { color: var(--danger-ink); }
.c-note-btn { font-size: 12px; padding: 0; border: 0; background: none; color: var(--primary-ink); font-weight: 650; }

.addr-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1.5px solid var(--border); border-radius: 12px;
  margin-top: 8px; cursor: pointer; background: #fff; }
.addr-opt input { margin-top: 3px; accent-color: var(--primary); }
.addr-opt.on { border-color: var(--primary); background: var(--primary-soft); }
.addr-opt.no { opacity: .6; }
.addr-opt .al { font-weight: 700; }
.addr-opt .ad { font-size: 12.5px; color: var(--text-2); }
.addr-opt .ax { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.pay-opt { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--border); border-radius: 12px;
  margin-top: 8px; cursor: pointer; font-weight: 650; background: #fff; }
.pay-opt.on { border-color: var(--primary); background: var(--primary-soft); }
.pay-opt input { accent-color: var(--primary); }
.pay-opt svg { width: 20px; height: 20px; color: var(--text-2); }

.c-place { position: sticky; bottom: calc(68px + env(safe-area-inset-bottom)); margin-top: 16px; z-index: 10; }
.c-place .btn { width: 100%; height: 56px; font-size: 16px; border-radius: 14px; justify-content: space-between; padding: 0 18px; }
.c-place .btn > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* orders */
.c-order { display: block; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; margin-top: 12px;
  color: inherit; text-decoration: none !important; }
.c-order .top { display: flex; align-items: center; gap: 8px; }
.c-order .tok { font-weight: 800; font-size: 15px; }
.c-order .when { font-size: 12px; color: var(--muted); }
.c-order .items { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.c-order .bottom { display: flex; align-items: center; gap: 8px; margin-top: 10px; }

/* track */
.c-track-hero { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px; }
.c-track-hero .st { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.c-track-hero .eta { font-size: 14px; color: var(--success-ink); font-weight: 700; margin-top: 2px; }
.c-track-hero .tokn { margin-left: auto; text-align: right; }
.c-track-hero .tokn b { display: block; font-size: 26px; font-weight: 800; color: var(--tomato); line-height: 1; }
.c-track-hero .tokn span { font-size: 11px; color: var(--muted); text-transform: uppercase; font-weight: 700; letter-spacing: .06em; }
.c-track-map { --map-h: 260px; margin-top: 12px; }
.c-rider { display: flex; align-items: center; gap: 10px; }
.c-rider .avatar { --av: 42px; background: var(--accent-soft); color: var(--accent-ink); }
.stars { display: flex; gap: 6px; }
.stars button { border: 0; background: none; padding: 2px; color: var(--border-strong); }
.stars button svg { width: 32px; height: 32px; }
.stars button.on { color: #F2A900; }
.stars button.on svg { fill: currentColor; }
.qr-box { display: grid; place-items: center; padding: 10px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.qr-box svg, .qr-box img { width: 200px; height: 200px; }

/* login */
.c-login { padding: 24px 18px; }
.c-login .brand-big { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 10px 0 18px; }
.c-login .brand-big img { width: 72px; height: 72px; border-radius: 18px; }
.c-login .brand-big .nm { font-family: var(--font-brand); font-size: 30px; font-weight: 800; color: var(--tomato); line-height: 1; }
.c-login .demo { margin-top: 18px; }
.c-login .demo button { width: 100%; text-align: left; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px dashed var(--border-strong); border-radius: 12px; background: #fff; margin-top: 8px; }
.c-foot { padding: 18px 16px 8px; font-size: 11.5px; color: var(--muted); text-align: center; }
.c-foot a { color: var(--muted); text-decoration: underline; }

/* bottom sheet item chooser */
.variant-row { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--border); border-radius: 12px;
  margin-top: 8px; cursor: pointer; }
.variant-row.on { border-color: var(--primary); background: var(--primary-soft); }
.variant-row input { accent-color: var(--primary); }
.variant-row .vp { margin-left: auto; font-weight: 750; }
