/* ============================================================
   THE KILO FACTORY — Storefront styles (Modern UI Edition)
   Premium food brand · mobile-first · pure CSS · no deps
   ============================================================ */
:root {
  /* Palette */
  --ink: #241a12;
  --ink-soft: #6f5f4f;
  --paper: #f7f4ee;
  --card: #ffffff;
  --line: #ece3d5;
  --line-soft: #f3ece0;
  --brand: #e4572e;
  --brand-dark: #c74521;
  --brand-soft: #fdeee8;
  --gold: #f9a826;
  --gold-soft: #fef3dd;
  --green: #1e8e3e;
  --green-soft: #e7f5ec;
  --red: #cf3a3a;
  --red-soft: #fdebeb;
  --blue: #1d5fbf;
  --blue-soft: #e9f1fd;
  --teal: #00796b;
  --teal-soft: #e0f2f1;
  --amber-soft: #fff6e0;
  --dark: #1c150f;
  --dark-2: #2c2117;

  /* Shape & depth */
  --radius: 18px;
  --radius-sm: 11px;
  --radius-xs: 8px;
  --shadow-xs: 0 1px 2px rgba(36, 26, 18, .06);
  --shadow: 0 4px 14px -2px rgba(36, 26, 18, .08), 0 2px 6px rgba(36, 26, 18, .05);
  --shadow-lg: 0 18px 44px -8px rgba(36, 26, 18, .16), 0 4px 12px rgba(36, 26, 18, .06);
  --shadow-brand: 0 8px 22px -4px rgba(228, 87, 46, .45);

  /* Type */
  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Motion */
  --ease: cubic-bezier(.22, .8, .32, 1);
  --speed: .22s;

  /* Glass header */
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0; background:
    radial-gradient(1100px 500px at 85% -120px, rgba(249, 168, 38, .10), transparent 60%),
    radial-gradient(900px 480px at -10% 120px, rgba(228, 87, 46, .07), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body); font-size: 15.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.14; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { margin: .8rem 0 .4rem; font-size: 1rem; }
p { margin: .4rem 0; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* Slim custom scrollbars */
* { scrollbar-width: thin; scrollbar-color: #d8cbb8 transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: #d8cbb8; border-radius: 99px; border: 2.5px solid var(--paper); }
*::-webkit-scrollbar-thumb:hover { background: var(--brand); }
*::-webkit-scrollbar-track { background: transparent; }

.container { width: min(1200px, 92%); margin: 0 auto; }
.container.narrow { width: min(760px, 92%); }
.muted { color: var(--ink-soft); }
.green { color: var(--green); }
.danger { color: var(--red); }
.center { text-align: center; }
.block { display: block; }
.hidden { display: none !important; }
.mt { margin-top: 1.2rem; }
.mb { margin-bottom: 1.2rem; }
.mt-xl { margin-top: 2rem; }
.right { text-align: right; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  padding: .62rem 1.3rem; font: 700 .95rem/1 var(--font-body); cursor: pointer;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
              background var(--speed), border-color var(--speed), color var(--speed);
  text-align: center; white-space: nowrap; position: relative; overflow: hidden;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #f0692f 55%, var(--brand-dark) 100%);
  color: #fff; box-shadow: var(--shadow-brand);
}
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-22deg); transition: left .55s var(--ease); pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover { transform: translateY(-1.5px); box-shadow: 0 12px 26px -4px rgba(228, 87, 46, .55); }
.btn-dark { background: linear-gradient(150deg, var(--dark-2), var(--dark)); color: #fff; }
.btn-dark:hover { transform: translateY(-1.5px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: var(--ink-soft); background: #fff; transform: translateY(-1px); box-shadow: var(--shadow-xs); }
.btn-ghost-danger { background: transparent; border-color: #f3c8c8; color: var(--red); }
.btn-ghost-danger:hover { background: var(--red-soft); border-color: var(--red); }
.btn-danger { background: linear-gradient(135deg, #d94a4a, var(--red)); color: #fff; box-shadow: 0 6px 16px -4px rgba(207, 58, 58, .5); }
.btn-danger:hover { transform: translateY(-1.5px); }
.btn-green { background: linear-gradient(135deg, #23a44c, var(--green)); color: #fff; box-shadow: 0 6px 16px -4px rgba(30, 142, 62, .5); }
.btn-green:hover { transform: translateY(-1.5px); }
.btn-amber { background: linear-gradient(135deg, var(--gold), #f08c00); color: #3d2a00; box-shadow: 0 6px 16px -4px rgba(249, 168, 38, .5); }
.btn-teal { background: linear-gradient(135deg, #089485, var(--teal)); color: #fff; }
.btn-lg { padding: .9rem 1.9rem; font-size: 1.05rem; border-radius: 13px; }
.btn-sm { padding: .48rem .95rem; font-size: .85rem; }
.btn-xs { padding: .32rem .62rem; font-size: .76rem; border-width: 1px; }
.btn-block { width: 100%; }
.btn.disabled, .btn[disabled] { opacity: .5; pointer-events: none; box-shadow: none; }
.link-btn { background: none; border: none; color: var(--brand); font: 700 .9rem var(--font-body); cursor: pointer; padding: .2rem .3rem; }
.link-btn:hover { text-decoration: underline; }
.link-more { font-weight: 700; color: var(--brand); font-size: .95rem; display: inline-flex; align-items: center; gap: .3rem; transition: gap var(--speed); }
.link-more:hover { gap: .55rem; }
.icon-btn {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 50%;
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-soft); transition: all var(--speed);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow-xs); }
.icon-btn.active { color: var(--red); border-color: var(--red); background: var(--red-soft); }

/* ---------- Badges & chips ---------- */
.badge { display: inline-block; padding: .2rem .62rem; border-radius: 99px; font-size: .74rem; font-weight: 800; letter-spacing: .02em; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-amber { background: var(--amber-soft); color: #9c6a00; }
.badge-teal { background: var(--teal-soft); color: var(--teal); }
.badge-gray { background: #f0ebe2; color: var(--ink-soft); }
.mini-count {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), #f0692f); color: #fff;
  border-radius: 99px; font-size: .68rem; font-weight: 800;
  min-width: 17px; height: 17px; padding: 0 4px; margin-left: 4px;
  box-shadow: 0 2px 6px rgba(228, 87, 46, .45);
}
.dot-badge {
  position: absolute; top: 4px; right: 8px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 0 rgba(228, 87, 46, .5); animation: ping 1.6s infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(228, 87, 46, .45); } 70% { box-shadow: 0 0 0 7px rgba(228, 87, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(228, 87, 46, 0); } }

/* ---------- Topbar & header ---------- */
.topbar {
  background: linear-gradient(90deg, var(--dark), var(--dark-2) 55%, #3a2a1a);
  color: #f4ede2; font-size: .8rem; position: relative; overflow: hidden;
}
.topbar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgba(249, 168, 38, .12) 50%, transparent 70%);
  animation: sheen 7s ease-in-out infinite; pointer-events: none;
}
@keyframes sheen { 0%, 100% { transform: translateX(-100%); } 50% { transform: translateX(100%); } }
.topbar-inner { display: flex; justify-content: space-between; padding: .48rem 0; }
.topbar-contact a:hover { color: var(--gold); }
.site-header {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid rgba(236, 227, 213, .8);
  position: sticky; top: 0; z-index: 60;
  transition: box-shadow var(--speed), background var(--speed);
}
.site-header.scrolled { box-shadow: 0 8px 30px -12px rgba(36, 26, 18, .18); background: rgba(255, 255, 255, .93); }
.header-inner { display: flex; align-items: center; gap: 1.2rem; padding: .65rem 0; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(135deg, var(--brand) 10%, var(--gold) 100%);
  color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .04em;
  box-shadow: 0 4px 14px -2px rgba(228, 87, 46, .45);
  transition: transform var(--speed) var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-mark-lg { width: 56px; height: 56px; font-size: 1rem; border-radius: 16px; }
.brand-text { font-family: var(--font-display); font-size: 1.06rem; line-height: 1.1; letter-spacing: .02em; }
.brand-text strong { color: var(--brand); }
.brand-text small { display: block; font-family: var(--font-body); font-size: .66rem; color: var(--ink-soft); letter-spacing: .16em; text-transform: uppercase; }
.brand-logo {
  height: 44px; width: auto; max-width: 150px; object-fit: contain;
  mix-blend-mode: multiply; /* white JPEG background melts into light headers */
  border-radius: 10px;
}
.header-search { flex: 1; max-width: 470px; position: relative; display: flex; }
.header-search input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 99px 0 0 99px;
  padding: .58rem 1.15rem; font: 500 .92rem var(--font-body); outline: none;
  background: var(--paper); transition: border-color var(--speed), box-shadow var(--speed), background var(--speed);
}
.header-search input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(228, 87, 46, .12); }
.header-search button {
  border: 1.5px solid var(--line); border-left: 0; border-radius: 0 99px 99px 0;
  background: var(--dark); color: #fff; padding: 0 1.05rem; cursor: pointer;
  transition: background var(--speed);
}
.header-search button:hover { background: var(--brand); }
.search-suggest {
  position: absolute; top: 112%; left: 0; right: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 80;
  animation: dropIn .18s var(--ease);
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } }
.search-suggest a { display: flex; align-items: center; gap: .7rem; padding: .55rem .9rem; border-bottom: 1px solid var(--line-soft); transition: background .12s; }
.search-suggest a:last-child { border-bottom: none; }
.search-suggest a:hover { background: var(--brand-soft); }
.search-suggest img { width: 38px; height: 38px; object-fit: cover; border-radius: 9px; }
.search-suggest .ss-price { margin-left: auto; font-weight: 800; }
.header-actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.header-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .92rem; position: relative; transition: color var(--speed); }
.header-link:hover { color: var(--brand); }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: var(--brand-soft); border-radius: 50%; color: var(--brand);
  transition: transform var(--speed) var(--ease), background var(--speed), color var(--speed);
}
.cart-btn:hover { transform: translateY(-2px) scale(1.05); background: var(--brand); color: #fff; }
.cart-btn.bump { animation: bump .4s var(--ease); }
@keyframes bump { 30% { transform: scale(1.18); } 60% { transform: scale(.95); } }
.cart-count {
  position: absolute; top: -3px; right: -4px; background: var(--brand); color: #fff;
  font-size: .68rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
  box-shadow: 0 2px 8px rgba(228, 87, 46, .5); border: 2px solid #fff;
}
.hamburger { display: none; flex-direction: column; gap: 4.5px; background: none; border: none; cursor: pointer; padding: 6px; border-radius: 8px; }
.hamburger span { width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.hamburger.dark span { background: #fff; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-nav {
  display: flex; flex-direction: column; padding: .6rem 4% .9rem;
  border-top: 1px solid var(--line); background: #fff;
}
.mobile-nav[hidden] { display: none !important; }
.mobile-nav a { padding: .68rem 0; font-weight: 700; border-bottom: 1px dashed var(--line); transition: color .15s, padding-left .15s; }
.mobile-nav a:hover { color: var(--brand); padding-left: .4rem; }
.mobile-nav a:last-child { border-bottom: none; }

.dropdown { position: relative; }
.dropdown-toggle { background: none; border: none; cursor: pointer; }
.dropdown-menu {
  position: absolute; right: 0; top: 130%; background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  min-width: 195px; padding: .45rem; z-index: 90; display: none;
  animation: dropIn .18s var(--ease);
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: .52rem .85rem; border-radius: 9px; font-weight: 600; font-size: .9rem; transition: background .12s, color .12s, padding-left .12s; }
.dropdown-menu a:hover { background: var(--brand-soft); color: var(--brand-dark); padding-left: 1rem; }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--line); margin: .3rem 0; }

.category-strip {
  background: rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-soft);
}
.category-strip-inner { display: flex; gap: .5rem; overflow-x: auto; padding: .55rem 0; scrollbar-width: none; }
.category-strip-inner::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: .38rem 1rem; border-radius: 99px; background: var(--paper);
  font-weight: 700; font-size: .85rem; border: 1px solid var(--line);
  transition: all var(--speed); cursor: pointer;
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: #fff; transform: translateY(-1px); box-shadow: var(--shadow-xs); }
.chip-accent { background: linear-gradient(135deg, var(--brand), #f0692f); color: #fff; border-color: transparent; box-shadow: 0 4px 12px -2px rgba(228, 87, 46, .4); }
.chip-accent:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-brand); }

/* ---------- Alerts & toasts ---------- */
.alert {
  padding: .85rem 1.15rem; border-radius: 12px; margin: .9rem 0; font-weight: 600;
  font-size: .92rem; position: relative; border: 1px solid transparent; animation: dropIn .25s var(--ease);
}
.alert-success { background: var(--green-soft); color: var(--green); border-color: #cdeeda; }
.alert-danger { background: var(--red-soft); color: var(--red); border-color: #f6cccc; }
.alert-info { background: var(--blue-soft); color: var(--blue); border-color: #cfe1f8; }
.alert-warning { background: var(--amber-soft); color: #9c6a00; border-color: #f5e3b3; }
.alert-dismissable { padding-right: 2.4rem; }
.alert-close { position: absolute; top: .5rem; right: .8rem; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: inherit; opacity: .7; }
.alert-close:hover { opacity: 1; }
.toast-stack { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: .5rem; }
.toast {
  background: rgba(28, 21, 15, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; padding: .85rem 1.25rem; border-radius: 13px; box-shadow: var(--shadow-lg);
  font-weight: 600; font-size: .9rem; max-width: 340px; animation: toastIn .3s var(--ease);
  border-left: 3px solid var(--green); transition: opacity .3s, transform .3s;
}
.toast.err { background: rgba(207, 58, 58, .96); border-left-color: #ffb3b3; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* ---------- Skeleton shimmer (AJAX loading) ---------- */
.skeleton { position: relative; overflow: hidden; background: #efe9df; border-radius: var(--radius-sm); }
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 8% -60px, rgba(228, 87, 46, .12), transparent 60%),
    radial-gradient(800px 400px at 92% 30%, rgba(249, 168, 38, .14), transparent 55%),
    linear-gradient(160deg, #fff9f2 0%, var(--paper) 60%);
  overflow: hidden; border-bottom: 1px solid var(--line); position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(36, 26, 18, .055) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; padding: 3.6rem 0; position: relative; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  background: #fff; border: 1px solid #f6d9cd; color: var(--brand);
  font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem 1rem; border-radius: 99px; box-shadow: var(--shadow-xs);
}
.hero h1 { margin: 1.1rem 0; }
.hero h1 em { color: var(--brand); font-style: italic; position: relative; }
.hero h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .04em; height: .32em;
  background: linear-gradient(90deg, rgba(249, 168, 38, .35), rgba(228, 87, 46, .22));
  border-radius: 99px; z-index: -1;
}
.hero p { color: var(--ink-soft); font-size: 1.06rem; max-width: 46ch; }
.hero-actions { display: flex; gap: .8rem; margin: 1.5rem 0; flex-wrap: wrap; }
.hero-points { display: flex; gap: 1.2rem; list-style: none; padding: 0; margin: .8rem 0 0; font-size: .85rem; color: var(--ink-soft); flex-wrap: wrap; }
.hero-points li { display: flex; align-items: center; gap: .35rem; }
.hero-art { position: relative; min-height: 330px; }
.hero-blob {
  position: absolute; inset: 8% 3%;
  background:
    radial-gradient(circle at 28% 30%, rgba(228, 87, 46, .22), transparent 62%),
    radial-gradient(circle at 72% 68%, rgba(249, 168, 38, .3), transparent 60%);
  border-radius: 40% 60% 55% 45%; filter: blur(2px);
  animation: blobFloat 9s ease-in-out infinite;
}
@keyframes blobFloat {
  0%, 100% { border-radius: 40% 60% 55% 45%; transform: rotate(0deg) scale(1); }
  50% { border-radius: 55% 45% 40% 60%; transform: rotate(4deg) scale(1.04); }
}
.hero-scale {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid #fff; border-radius: 24px; box-shadow: var(--shadow-lg);
  padding: 1.7rem 2.3rem; text-align: center;
  animation: floatY 5.5s ease-in-out infinite;
}
@keyframes floatY { 0%, 100% { margin-top: 0; } 50% { margin-top: -12px; } }
.hero-scale .hs-num {
  font-family: var(--font-display); font-size: 3.3rem; font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; line-height: 1;
}
.hero-scale .hs-unit { font-weight: 800; letter-spacing: .3em; color: var(--ink-soft); font-size: .9rem; }
.hero-scale small { display: block; margin-top: .4rem; color: var(--ink-soft); }
.hero-chip {
  position: absolute; background: rgba(255, 255, 255, .95); border: 1px solid #fff;
  padding: .5rem 1rem; border-radius: 99px; font-size: .8rem; font-weight: 700;
  box-shadow: var(--shadow); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hc1 { top: 14%; left: 2%; animation: floatY 6s .6s ease-in-out infinite; }
.hc2 { bottom: 10%; right: 0; animation: floatY 7s .3s ease-in-out infinite; }

/* ---------- Sections ---------- */
.section { padding: 2.8rem 0; }
.section-cream { background: #fff; border-block: 1px solid var(--line); }
.section-dark {
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(228, 87, 46, .15), transparent 60%),
    radial-gradient(600px 300px at 10% 100%, rgba(249, 168, 38, .1), transparent 55%),
    var(--dark);
  color: #f4ede2;
}
.section-dark .value-card p { color: #b7a893; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem; }
.page-head { padding: 2.1rem 0 .6rem; }
.page-head p { color: var(--ink-soft); }
.breadcrumbs { font-size: .84rem; color: var(--ink-soft); margin-bottom: .6rem; display: flex; gap: .3rem; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--brand); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.value-card {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius); padding: 1.5rem;
  transition: transform var(--speed) var(--ease), background var(--speed), border-color var(--speed);
}
.value-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }
.value-ico { font-size: 1.7rem; display: inline-block; margin-bottom: .3rem; }
/* ---------- Categories (scroll-snap carousel, circular tiles) ---------- */
.cat-carousel { position: relative; }
.cat-grid {
  display: flex; gap: .85rem; overflow-x: auto; scroll-snap-type: x proximity;
  padding: .45rem .2rem 1rem; margin-bottom: -.35rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cat-grid::-webkit-scrollbar { display: none; }
.cat-card {
  flex: 0 0 158px; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.15rem .6rem .95rem; text-align: center; position: relative; overflow: hidden;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed), border-color var(--speed), background var(--speed);
}
.cat-card::before {
  content: ''; position: absolute; inset: auto -30% -60% -30%; height: 70%;
  background: radial-gradient(closest-side, rgba(228, 87, 46, .1), transparent);
  opacity: 0; transition: opacity var(--speed);
}
.cat-card:hover, .cat-card:focus-visible {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--brand); background: var(--brand-soft);
}
.cat-card:hover::before { opacity: 1; }
.cat-card img {
  width: 76px; height: 76px; object-fit: cover; border-radius: 50%;
  margin: 0 auto .6rem; background: var(--paper); display: block;
  transition: transform var(--speed) var(--ease);
  box-shadow: var(--shadow-xs);
}
.cat-card:hover img { transform: scale(1.08) rotate(-3deg); }
.cat-name {
  display: block; font-weight: 700; font-size: .88rem; position: relative;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat-card small { color: var(--ink-soft); font-size: .74rem; position: relative; }

/* crowned "most stocked" category card */
.cat-card.cat-featured {
  border-color: var(--brand); background: var(--brand-soft);
  box-shadow: 0 10px 24px -12px rgba(228, 87, 46, .55);
}
.cat-crown {
  position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; color: var(--brand); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px -1px rgba(199, 69, 33, .45); z-index: 2;
}
.cat-crown svg { display: block; }

/* carousel prev / next arrows (desktop only, JS-enabled) */
.cat-nav {
  position: absolute; top: 56px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; padding: 0;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px -4px rgba(36, 26, 18, .28);
  transition: background var(--speed), color var(--speed), transform var(--speed), opacity var(--speed), border-color var(--speed);
}
.cat-nav:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.07); }
.cat-nav-prev { left: -16px; }
.cat-nav-next { right: -16px; }
.cat-nav.is-off { opacity: .3; pointer-events: none; }
@media (min-width: 861px) {
  .cat-carousel.js-ready .cat-nav { display: flex; }
}
@media (min-width: 1200px) {
  .cat-nav-prev { left: -22px; }
  .cat-nav-next { right: -22px; }
}

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed), border-color var(--speed);
  box-shadow: var(--shadow-xs);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #f0d4c6; }
.product-media { position: relative; display: block; aspect-ratio: 4/3; background: var(--paper); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.07); }
.product-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28, 21, 15, .18), transparent 40%);
  opacity: 0; transition: opacity var(--speed);
}
.product-card:hover .product-media::after { opacity: 1; }
.offer-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: linear-gradient(135deg, var(--brand), #f0692f); color: #fff;
  font-size: .7rem; font-weight: 800; padding: .27rem .65rem; border-radius: 99px;
  box-shadow: 0 4px 10px -2px rgba(228, 87, 46, .55);
}
.offer-tag-lg { font-size: .82rem; top: 14px; left: 14px; }
.veg-dot {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 16px; height: 16px;
  border: 2px solid var(--green); border-radius: 4px; background: #fff; display: inline-flex;
  box-shadow: var(--shadow-xs);
}
.veg-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin: auto; }
.veg-dot.nonveg { border-color: var(--red); }
.veg-dot.nonveg::after { background: var(--red); }
.veg-lg { width: 22px; height: 22px; }
.product-body { padding: .9rem 1.05rem 1.05rem; display: flex; flex-direction: column; flex: 1; }
.product-top { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; }
.product-top h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 800; margin: 0; letter-spacing: 0; }
.product-top h3 a { transition: color .15s; }
.product-top h3 a:hover { color: var(--brand); }
.rating-pill {
  display: inline-flex; align-items: center; gap: .25rem; background: var(--green-soft);
  color: var(--green); border-radius: 99px; padding: .17rem .58rem; font-size: .76rem;
  font-weight: 800; white-space: nowrap;
}
.product-sub { color: var(--ink-soft); font-size: .82rem; margin: .3rem 0 .7rem; flex: 1; }
.product-foot { display: flex; justify-content: space-between; align-items: center; }
.price-block { display: flex; align-items: baseline; gap: .45rem; }
.price { font-weight: 800; font-size: 1.06rem; font-variant-numeric: tabular-nums; }
.mrp { color: var(--ink-soft); text-decoration: line-through; font-size: .84rem; }
.price-range { font-size: .74rem; color: var(--ink-soft); }
.stars { color: var(--gold); letter-spacing: .05em; font-size: .8rem; }
.star-full { color: var(--gold); }
.star-half { color: #e3c98f; }
.star-empty { color: #d8cfc2; }
.stars-count { color: var(--ink-soft); }

/* ---------- Menu page ---------- */
.menu-layout { display: grid; grid-template-columns: 252px 1fr; gap: 1.7rem; align-items: start; }
.filter-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.25rem; position: sticky; top: 148px; box-shadow: var(--shadow-xs);
}
.filter-head { display: flex; justify-content: space-between; align-items: center; }
.filter-head h3 { margin: 0; }
.filter-group { border-top: 1px dashed var(--line); margin-top: .95rem; padding-top: .85rem; }
.filter-group h4 { margin: 0 0 .55rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.radio, .check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; padding: .2rem 0; cursor: pointer; }
.radio input, .check input { accent-color: var(--brand); width: 16px; height: 16px; }
.price-inputs { display: flex; align-items: center; gap: .5rem; }
.price-inputs input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 9px; padding: .42rem .65rem;
  font: 500 .88rem var(--font-body); transition: border-color var(--speed), box-shadow var(--speed);
}
.price-inputs input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(228, 87, 46, .12); outline: none; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.results-bar span { font-weight: 700; color: var(--ink-soft); font-size: .9rem; }
.sort-wrap { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--ink-soft); }
.sort-wrap select {
  border: 1.5px solid var(--line); border-radius: 9px; padding: .42rem .7rem;
  font: 700 .88rem var(--font-body); background: #fff; cursor: pointer;
  transition: border-color var(--speed);
}
.sort-wrap select:hover, .sort-wrap select:focus { border-color: var(--brand); outline: none; }
.menu-pagination { margin-top: 1.7rem; }
.loading-block { grid-column: 1/-1; text-align: center; padding: 3rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; }
.page-link {
  padding: .48rem .88rem; border: 1.5px solid var(--line); background: #fff;
  border-radius: 10px; font-weight: 700; font-size: .88rem;
  transition: all var(--speed); box-shadow: var(--shadow-xs);
}
.page-link:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.page-link.current {
  background: linear-gradient(135deg, var(--dark-2), var(--dark)); border-color: var(--dark);
  color: #fff; box-shadow: var(--shadow);
}
.page-link.disabled { opacity: .4; pointer-events: none; }
.page-dots { padding: .48rem 0; color: var(--ink-soft); }

/* ---------- Product page ---------- */
.product-page { padding-top: 1.7rem; }
.product-detail { display: grid; grid-template-columns: .95fr 1.05fr; gap: 2.5rem; }
.pd-main-img {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 1px solid var(--line); aspect-ratio: 1.05; box-shadow: var(--shadow);
}
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: .6rem; margin-top: .75rem; overflow-x: auto; padding-bottom: .3rem; }
.pd-thumb {
  width: 68px; height: 68px; border-radius: 12px; overflow: hidden;
  border: 2px solid var(--line); background: none; padding: 0; cursor: pointer; flex-shrink: 0;
  transition: all var(--speed); opacity: .8;
}
.pd-thumb:hover { opacity: 1; transform: translateY(-2px); }
.pd-thumb.current { border-color: var(--brand); opacity: 1; box-shadow: 0 0 0 3px rgba(228, 87, 46, .18); }
.pd-meta-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: .4rem 0; }
.pd-short { color: var(--ink-soft); }
.pd-variants h4 small, .pd-info h4 small { color: var(--ink-soft); font-weight: 500; }
.variant-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.variant-chip {
  border: 2px solid var(--line); background: #fff; border-radius: 13px;
  padding: .58rem 1.05rem; cursor: pointer; text-align: left; min-width: 110px;
  transition: all var(--speed); position: relative;
}
.variant-chip:hover { border-color: #f0b89f; transform: translateY(-1px); box-shadow: var(--shadow-xs); }
.variant-chip b { display: block; font-size: .92rem; }
.variant-chip span { font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.variant-chip em { display: block; font-style: normal; font-size: .7rem; color: var(--red); font-weight: 700; }
.variant-chip.selected {
  border-color: var(--brand); background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(228, 87, 46, .14);
}
.variant-chip:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.pd-addons { margin-top: 1rem; }
.addon-row {
  display: flex; align-items: center; gap: .7rem; padding: .5rem .25rem;
  border-bottom: 1px dashed var(--line); cursor: pointer; font-size: .92rem;
  transition: background .12s; border-radius: 6px;
}
.addon-row:hover { background: var(--paper); }
.addon-name { flex: 1; }
.addon-price { font-weight: 700; color: var(--ink-soft); }
.addon-qty {
  border: 1.5px solid var(--line); border-radius: 8px; padding: .22rem .45rem;
  font: 600 .85rem var(--font-body); width: 56px;
}
.pd-buy { display: flex; align-items: center; justify-content: space-between; margin-top: 1.3rem; gap: 1rem; flex-wrap: wrap; }
.pd-price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.off-pct { color: var(--green); font-weight: 800; font-size: .9rem; }
.qty-stepper {
  display: inline-flex; align-items: center; border: 2px solid var(--line);
  border-radius: 13px; overflow: hidden; background: #fff; transition: border-color var(--speed);
}
.qty-stepper:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(228, 87, 46, .12); }
.qty-stepper button {
  width: 42px; height: 46px; border: none; background: none; font-size: 1.3rem;
  cursor: pointer; color: var(--brand); font-weight: 700; transition: background .12s;
}
.qty-stepper button:hover { background: var(--brand-soft); }
.qty-stepper input { width: 56px; text-align: center; border: none; font: 700 1.05rem var(--font-body); outline: none; }
.qty-sm button { width: 30px; height: 34px; font-size: 1rem; }
.qty-sm input { width: 40px; font-size: .9rem; }
.stock-line { min-height: 1.2em; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.stock-line.low { color: #9c6a00; }
.stock-line.out { color: var(--red); }
.pd-actions { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.pd-desc { margin-top: 1.7rem; border-top: 1px dashed var(--line); padding-top: 1.1rem; }
.pd-kitchens { margin-top: 1.9rem; }
.kitchen-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.kitchen-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 99px;
  padding: .48rem 1.05rem; font-size: .88rem; display: inline-flex; align-items: center; gap: .4rem;
  transition: all var(--speed);
}
.kitchen-chip:hover { border-color: var(--teal); color: var(--teal); box-shadow: var(--shadow-xs); }

/* Reviews */
.pd-reviews, .pd-related { margin-top: 2.6rem; }
.review-summary {
  display: flex; gap: 2rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; align-items: center; box-shadow: var(--shadow-xs);
}
.rs-avg { text-align: center; }
.rs-avg b { display: block; font-size: 2.5rem; font-family: var(--font-display); line-height: 1.1; }
.rs-avg small { display: block; color: var(--ink-soft); }
.rs-bars { flex: 1; max-width: 380px; }
.rs-bar { display: flex; align-items: center; gap: .6rem; font-size: .8rem; }
.rs-bar span { width: 26px; }
.rs-track { flex: 1; height: 8px; background: var(--paper); border-radius: 99px; overflow: hidden; }
.rs-fill { height: 100%; background: linear-gradient(90deg, var(--gold), #f08c00); border-radius: 99px; }
.review-list { margin-top: 1.25rem; display: grid; gap: 1rem; }
.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.05rem 1.25rem; transition: box-shadow var(--speed), transform var(--speed);
}
.review-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.review-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .4rem; flex-wrap: wrap; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%; color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
  background: linear-gradient(135deg, var(--brand-soft), var(--gold-soft));
}
.review-title { margin-left: auto; font-weight: 700; color: var(--ink-soft); }
.review-imgs { display: flex; gap: .5rem; margin-top: .6rem; }
.review-imgs img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; }
/* ---------- Cart & checkout ---------- */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 365px; gap: 1.9rem; align-items: start; }
.cart-item, .co-item {
  display: flex; gap: 1rem; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .95rem 1.05rem; margin-bottom: .8rem;
  align-items: center; transition: box-shadow var(--speed), border-color var(--speed);
  box-shadow: var(--shadow-xs);
}
.cart-item:hover, .co-item:hover { box-shadow: var(--shadow); border-color: #f0d9c9; }
.cart-item.has-issue { border-color: var(--red); background: linear-gradient(0deg, var(--red-soft), #fff 60%); }
.ci-img img { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow-xs); }
.ci-body { flex: 1; }
.ci-top { display: flex; justify-content: space-between; }
.ci-top h4 { margin: 0; font-size: 1rem; }
.ci-remove {
  background: none; border: none; font-size: 1.4rem; color: var(--ink-soft);
  cursor: pointer; line-height: 1; border-radius: 8px; width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.ci-remove:hover { color: var(--red); background: var(--red-soft); transform: rotate(90deg); }
.ci-addons { list-style: none; margin: .3rem 0 0; padding: 0; font-size: .82rem; color: var(--ink-soft); }
.ci-issue { color: var(--red); font-weight: 700; font-size: .84rem; margin: .3rem 0 0; }
.ci-foot { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; }
.ci-price { font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-actions-row { display: flex; justify-content: space-between; margin-top: 1rem; }
.cart-summary {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; position: sticky; top: 148px;
  box-shadow: var(--shadow); border-top: 4px solid var(--brand);
}
.coupon-box { display: flex; gap: .5rem; margin: .85rem 0; }
.coupon-box input {
  flex: 1; border: 1.5px dashed #cdbfa8; border-radius: 10px; padding: .55rem .85rem;
  font: 700 .9rem var(--font-body); text-transform: uppercase; letter-spacing: .06em;
  background: var(--paper); transition: all var(--speed);
}
.coupon-box input:focus { border-color: var(--brand); border-style: solid; background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(228, 87, 46, .12); }
.coupon-ok { color: var(--green); font-weight: 700; font-size: .88rem; }
.loyalty-box {
  background: linear-gradient(135deg, var(--amber-soft), #fff8e8);
  border: 1px solid #f2e2b8; border-radius: 12px; padding: .75rem .95rem; margin: .75rem 0;
}
.bill-rows { margin: 1.05rem 0; }
.bill-rows > div { display: flex; justify-content: space-between; padding: .32rem 0; font-size: .95rem; }
.bill-rows dt { color: var(--ink-soft); }
.bill-rows dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.bill-rows .green dd { color: var(--green); }
.bill-rows .bill-total { border-top: 2px solid var(--ink); margin-top: .55rem; padding-top: .65rem; font-size: 1.08rem; }
.bill-rows .bill-total dd { font-family: var(--font-display); font-size: 1.32rem; }
.bill-hint dd { font-weight: 500; }
.checkout-main .co-block { margin-bottom: 1.2rem; }
.co-block {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.45rem; box-shadow: var(--shadow-xs);
}
.co-block h3 { margin-bottom: .85rem; }
.block-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.co-item { padding: .65rem .85rem; }
.co-item-info { flex: 1; }
.co-item-info small { display: block; color: var(--ink-soft); }
.address-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.address-card {
  border: 2px solid var(--line); border-radius: 13px; padding: .95rem 1.05rem;
  cursor: pointer; background: #fff; font-size: .88rem; display: block; position: relative;
  transition: all var(--speed);
}
.address-card:hover { border-color: #f0b89f; transform: translateY(-1px); box-shadow: var(--shadow-xs); }
.address-card input { position: absolute; opacity: 0; }
.address-card.selected {
  border-color: var(--brand); background: linear-gradient(135deg, var(--brand-soft), #fff 85%);
  box-shadow: 0 0 0 3px rgba(228, 87, 46, .13);
}
.address-new-toggle { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--brand); min-height: 86px; border-style: dashed; }
.pay-options { display: grid; gap: .7rem; }
.pay-option {
  display: flex; align-items: center; gap: 1rem; border: 2px solid var(--line);
  border-radius: 13px; padding: .95rem 1.15rem; cursor: pointer; background: #fff;
  position: relative; transition: all var(--speed);
}
.pay-option:hover { border-color: #f0b89f; }
.pay-option.selected {
  border-color: var(--brand); background: linear-gradient(135deg, var(--brand-soft), #fff 85%);
  box-shadow: 0 0 0 3px rgba(228, 87, 46, .13);
}
.pay-option.disabled { opacity: .55; pointer-events: none; }
.pay-option input { width: 18px; height: 18px; accent-color: var(--brand); }
.pay-option small { display: block; color: var(--ink-soft); }
.pay-badge {
  position: absolute; top: -10px; right: 12px; background: linear-gradient(135deg, #23a44c, var(--green));
  color: #fff; font-size: .68rem; font-weight: 800; padding: .18rem .65rem;
  border-radius: 99px; box-shadow: 0 3px 8px -2px rgba(30, 142, 62, .5);
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: .95rem; }
.form-group label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: .32rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 11px; background: #fff;
  padding: .64rem .9rem; font: 500 .95rem var(--font-body); outline: none; color: var(--ink);
  transition: border-color var(--speed), box-shadow var(--speed), background var(--speed);
}
.form-group input:hover, .form-group select:hover, .form-group textarea:hover { border-color: #dccfb9; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 4px rgba(228, 87, 46, .13);
}
.form-group select { cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.form-grid .span2 { grid-column: span 2; }
.form-3 { grid-template-columns: repeat(3, 1fr); }
.form-3 .span2 { grid-column: span 2; }
.field-error { color: var(--red); font-weight: 600; font-size: .82rem; margin: .3rem 0 0; }
.inline-form { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.inline-form label { font-weight: 700; font-size: .85rem; }
.inline-form select, .inline-form input {
  border: 1.5px solid var(--line); border-radius: 9px; padding: .42rem .65rem;
  font: 500 .88rem var(--font-body); transition: border-color var(--speed);
}
.inline-form select:focus, .inline-form input:focus { border-color: var(--brand); outline: none; }
.input-xs { width: 70px !important; }
.input-sm { width: 130px !important; }
.input-md { width: 200px !important; }

/* ---------- Auth pages ---------- */
.auth-wrap { padding: 3rem 0; }
.auth-box {
  display: grid; grid-template-columns: .9fr 1.1fr; background: var(--card);
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg); max-width: 940px;
}
.auth-side {
  background:
    radial-gradient(500px 300px at 90% 10%, rgba(228, 87, 46, .3), transparent 60%),
    radial-gradient(400px 300px at 10% 90%, rgba(249, 168, 38, .18), transparent 55%),
    linear-gradient(160deg, var(--dark), #3a2c1e);
  color: #f4ede2; padding: 2.5rem; position: relative; overflow: hidden;
}
.auth-side h2 { font-size: 1.7rem; margin: 1rem 0; }
.auth-side ul { padding-left: 1.1rem; color: #cbbba4; font-size: .92rem; line-height: 2; }
.auth-main { padding: 2.5rem; }
.auth-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; background: var(--paper); padding: .32rem; border-radius: 99px; width: max-content; }
.auth-tabs a { padding: .52rem 1.45rem; border-radius: 99px; font-weight: 700; font-size: .92rem; transition: all var(--speed); }
.auth-tabs a:hover { color: var(--brand); }
.auth-tabs a.current { background: var(--dark); color: #fff; box-shadow: var(--shadow); }

/* ---------- Track page ---------- */
.track-form { display: flex; gap: .6rem; }
.track-form input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: .72rem 1.05rem;
  font: 600 .95rem var(--font-body); text-transform: uppercase; letter-spacing: .04em;
  transition: all var(--speed);
}
.track-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(228, 87, 46, .13); outline: none; }
.track-steps { list-style: none; padding: 0; margin: 1rem 0 0; position: relative; }
.track-steps::before {
  content: ''; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2.5px;
  background: var(--line); border-radius: 99px;
}
.track-steps li { display: flex; gap: 1rem; padding: .45rem 0; position: relative; align-items: flex-start; }
.track-dot {
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 2.5px solid var(--line); flex-shrink: 0; margin-top: 2px; position: relative; z-index: 1;
  transition: all var(--speed);
}
.track-steps li.done .track-dot { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 3.5px #fff; }
.track-steps li.done + li .track-dot { border-color: var(--brand); }
.track-steps li.current .track-dot { border-color: var(--brand); animation: pulse 1.5s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(228, 87, 46, .35); }
  50% { box-shadow: 0 0 0 8px rgba(228, 87, 46, 0); }
}
.track-steps small { color: var(--ink-soft); }
.track-steps-lg li { padding: .72rem 0; }
.porter-box {
  background: linear-gradient(135deg, var(--teal-soft), #f0faf9); border: 1px solid #c8e8e4;
  border-radius: 14px; padding: 1.05rem 1.25rem; margin-top: 1rem;
}
.porter-box code { background: #fff; padding: .12rem .55rem; border-radius: 7px; font-weight: 700; }

/* ---------- Empty states, success ---------- */
.empty-state {
  text-align: center; padding: 3.2rem 1rem; background: var(--card);
  border: 1.5px dashed #d9cdb8; border-radius: var(--radius);
}
.empty-ico { font-size: 3rem; display: block; margin-bottom: .6rem; filter: grayscale(.2); }
.success-hero {
  text-align: center; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.6rem 1rem; margin-bottom: 1.4rem;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.success-hero::before {
  content: ''; position: absolute; top: -60%; left: 30%; width: 40%; height: 120%;
  background: radial-gradient(closest-side, rgba(30, 142, 62, .12), transparent);
}
.success-check {
  width: 76px; height: 76px; border-radius: 50%; color: var(--green);
  font-size: 2.2rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; background: var(--green-soft);
  border: 3px solid #cdeeda; animation: popIn .45s var(--ease); position: relative;
}
@keyframes popIn { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } }
.success-actions { display: flex; gap: .8rem; justify-content: center; margin-top: 1.25rem; flex-wrap: wrap; }

/* ---------- Offers page ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.offer-card {
  position: relative; background: linear-gradient(150deg, #fff, var(--brand-soft));
  border: 1px solid #f6dccf; border-radius: var(--radius); padding: 1.25rem 1.35rem;
  transition: all var(--speed);
}
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.offer-badge {
  position: absolute; top: 12px; right: 12px; background: var(--dark); color: #fff;
  font-size: .64rem; font-weight: 800; padding: .22rem .6rem; border-radius: 99px; letter-spacing: .06em;
}
.offer-value { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; color: var(--brand); margin: .3rem 0; }
.coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.coupon-card {
  background: #fff; border: 1.5px dashed var(--brand); border-radius: var(--radius);
  padding: 1.15rem 1.25rem; transition: all var(--speed); position: relative;
}
.coupon-card::before, .coupon-card::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper); border: 1.5px dashed var(--brand); top: 50%; transform: translateY(-50%);
}
.coupon-card::before { left: -10px; }
.coupon-card::after { right: -10px; }
.coupon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.coupon-code {
  display: flex; align-items: center; justify-content: space-between; font-weight: 800;
  letter-spacing: .08em; color: var(--brand); font-size: 1.05rem;
  border-bottom: 1px dashed var(--line); padding-bottom: .55rem; margin-bottom: .55rem;
}
.copy-coupon {
  border: none; background: var(--brand-soft); color: var(--brand); font-weight: 700;
  font-size: .74rem; border-radius: 8px; padding: .3rem .75rem; cursor: pointer;
  transition: all .15s;
}
.copy-coupon:hover { background: var(--brand); color: #fff; }

/* ---------- Kitchens (home) ---------- */
.kitchen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.kitchen-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.35rem; transition: all var(--speed); box-shadow: var(--shadow-xs);
}
.kitchen-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c8e8e4; }
.kitchen-head { display: flex; justify-content: space-between; align-items: center; }
.kitchen-addr { color: var(--ink-soft); font-size: .88rem; }
.kitchen-meta { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(228, 87, 46, .12), transparent 60%),
    var(--dark);
  color: #cbbba4; margin-top: 3.5rem; position: relative;
}
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--gold), var(--brand)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding: 2.8rem 0 2.1rem; }
.footer-grid h3 { color: #fff; font-family: var(--font-body); font-size: 1.05rem; letter-spacing: .06em; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: .75rem; }
.footer-grid a { display: block; padding: .2rem 0; font-size: .9rem; transition: color .15s, padding-left .15s; }
.footer-grid a:hover { color: var(--gold); padding-left: .35rem; }
.footer-brand p { font-size: .86rem; max-width: 34ch; }
.footer-logo {
  display: block; width: 60px; height: 60px; object-fit: cover;
  border-radius: 16px; background: #fff; padding: 5px;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .55); margin-bottom: .7rem;
}
.footer-social { display: flex; gap: .5rem; margin-top: .9rem; }
.footer-social a {
  display: inline-flex; width: 36px; height: 36px; border: 1px solid #4a3c2c; border-radius: 50%;
  align-items: center; justify-content: center; font-size: .72rem; font-weight: 800;
  transition: all var(--speed);
}
.footer-social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.footer-kitchen { font-size: .82rem; margin: 0 0 .5rem; }
.footer-bottom { border-top: 1px solid #372c1e; padding: 1.05rem 0; font-size: .8rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-pay strong { color: var(--gold); }

/* ---------- Bulk order ---------- */
.bulk-item-row { display: grid; grid-template-columns: 1fr 130px; gap: .7rem; margin-bottom: .6rem; }
.bulk-item-row input {
  border: 1.5px solid var(--line); border-radius: 11px; padding: .58rem .85rem;
  font: 500 .92rem var(--font-body); transition: all var(--speed);
}
.bulk-item-row input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(228, 87, 46, .13); outline: none; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-card { flex-basis: 146px; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
}
@media (max-width: 860px) {
  .header-search { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; padding: 2.3rem 0; }
  .hero-art { display: none; }
  .product-detail { grid-template-columns: 1fr; gap: 1.4rem; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid, .form-3 { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: span 1; }
  .review-summary { flex-direction: column; align-items: flex-start; }
  .toast-stack { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
}
@media (max-width: 620px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .cat-card { flex-basis: 128px; }
  .cat-card img, .cat-card .cat-fallback { width: 64px; height: 64px; }
  .cat-nav { display: none !important; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-contact { display: none; }
  .hide-sm { display: none; }
  .pd-buy { flex-direction: column; align-items: flex-start; }
  body { font-size: 15px; }
  .btn { padding: .58rem 1.1rem; }
  .btn-lg { padding: .8rem 1.5rem; font-size: 1rem; }
  .ci-img img { width: 64px; height: 64px; }
  .track-form { flex-direction: column; }
}

/* ============================================================
   MOBILE APP EDITION — bottom tab bar, user area styles,
   and mobile layout fixes
   ============================================================ */

/* ---------- Category tile fallback (no image) ---------- */
.cat-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto .6rem;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  color: #fff; font-weight: 800; font-size: 1.45rem; font-family: var(--font-display);
  box-shadow: var(--shadow-xs); position: relative;
}
.cat-card:hover .cat-fallback { transform: scale(1.08) rotate(-3deg); }

/* ---------- App-style bottom tab bar (mobile only) ---------- */
.app-tabbar { display: none; }
@media (max-width: 860px) {
  .app-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    display: flex; align-items: stretch; justify-content: space-around;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
    border-top: 1px solid var(--line);
    padding: .3rem .3rem calc(.3rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 30px -12px rgba(36, 26, 18, .22);
  }
  .app-tab {
    position: relative; flex: 1; display: flex; flex-direction: column; align-items: center;
    gap: .14rem; padding: .3rem 0 .24rem; border-radius: 12px;
    color: var(--ink-soft); font-size: .66rem; font-weight: 700; letter-spacing: .02em;
    text-decoration: none; transition: color .16s, transform .16s; -webkit-tap-highlight-color: transparent;
  }
  .app-tab svg { width: 22px; height: 22px; transition: transform .18s var(--ease); }
  .app-tab:active svg { transform: scale(.88); }
  .app-tab.active { color: var(--brand); }
  .app-tab.active::before {
    content: ''; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
    width: 34px; height: 3px; border-radius: 99px;
    background: linear-gradient(90deg, var(--brand), var(--gold));
  }
  .app-tab-badge {
    position: absolute; top: 0; right: 50%; margin-right: -22px;
    background: var(--brand); color: #fff; font-size: .6rem; font-weight: 800;
    min-width: 16px; height: 16px; border-radius: 99px; padding: 0 4px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff; box-shadow: 0 2px 6px rgba(228, 87, 46, .5);
  }
  .app-tab-badge[hidden] { display: none; }
  /* keep page content clear of the bar (user panel has no tab bar) */
  body:not(.dash-body) { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { margin-bottom: 0; }
  .toast-stack { bottom: 76px; }
  /* the in-header mobile drop menu becomes redundant with the tab bar */
  .mobile-nav { padding-bottom: 1rem; }
}

/* ---------- Product card: stop price-row overflow on narrow grids ---------- */
.product-grid > * { min-width: 0; }
.product-foot { flex-wrap: wrap; gap: .45rem .6rem; }
.price-block { flex-wrap: wrap; min-width: 0; max-width: 100%; }
@media (max-width: 620px) {
  .price { font-size: .98rem; }
  .mrp { font-size: .78rem; }
  .price-range { display: none; }
  .product-foot .btn { margin-left: auto; }
  .product-body { padding: .8rem .85rem .9rem; }
}

/* ---------- Auth pages: stack the split panel on mobile ---------- */
@media (max-width: 860px) {
  .auth-wrap { padding: 1.4rem 0 2rem; }
  .auth-box { grid-template-columns: 1fr; }
  .auth-side {
    padding: 1.5rem 1.4rem;
  }
  .auth-side h2 { font-size: 1.25rem; margin: .8rem 0 .4rem; }
  .auth-side ul { display: none; }
  .auth-main { padding: 1.6rem 1.3rem 2rem; }
  .auth-tabs { width: 100%; justify-content: center; }
  .auth-tabs a { flex: 1; text-align: center; }
}

/* ---------- Menu page: collapsible filters on mobile ---------- */
.filter-toggle { display: none; }
@media (max-width: 860px) {
  .filter-toggle {
    display: flex; align-items: center; gap: .55rem; width: 100%;
    background: var(--dark); color: #fff; border: none; cursor: pointer;
    padding: .8rem 1.1rem; border-radius: 13px; font: 700 .95rem var(--font-body);
    margin: 0; -webkit-tap-highlight-color: transparent;
  }
  .filter-toggle .filter-caret { margin-left: auto; transition: transform .2s; }
  .filter-panel.open .filter-toggle .filter-caret { transform: rotate(180deg); }
  .filter-panel .filter-body { display: none; }
  .filter-panel.open .filter-body { display: block; animation: dropIn .22s var(--ease); }
  .filter-panel.open { padding-bottom: 1.2rem; }
  .filter-panel { padding: .55rem; }
}

/* ============================================================
   USER ACCOUNT AREA (dash-*) — was previously unstyled
   ============================================================ */
.dash-body { background: var(--paper); }
.dash-header {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60;
}
.dash-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.dash-header-actions { display: flex; align-items: center; gap: .9rem; }
.dash-header-actions .header-link { position: relative; font-weight: 700; font-size: .9rem; }
.dash-header-actions .header-link:hover { color: var(--brand); }
.dash-wrap { display: grid; grid-template-columns: 236px 1fr; gap: 1.6rem; align-items: start; padding: 1.6rem 0 3rem; }
.dash-side {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; box-shadow: var(--shadow-xs); position: sticky; top: 76px;
}
.dash-user { display: flex; align-items: center; gap: .7rem; padding-bottom: .9rem; border-bottom: 1px dashed var(--line); }
.dash-user b { display: block; font-size: .95rem; }
.dash-user small { color: var(--ink-soft); font-size: .76rem; word-break: break-all; }
.dash-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 14px; color: #fff; font-weight: 800; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 4px 12px -2px rgba(228, 87, 46, .45);
}
.dash-nav { display: flex; flex-direction: column; padding-top: .6rem; }
.dash-nav a {
  display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 11px;
  font-weight: 600; font-size: .92rem; color: var(--ink); text-decoration: none;
  transition: background .14s, color .14s;
}
.dash-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.dash-nav a.active { background: var(--dark); color: #fff; }
.dash-logout { color: var(--red) !important; margin-top: .35rem; border-top: 1px dashed var(--line); border-radius: 0 0 11px 11px !important; padding-top: .7rem !important; }
.dash-main { min-width: 0; }
.dash-title { font-size: 1.7rem; margin: 0 0 .2rem; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.2rem 0; }
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; box-shadow: var(--shadow-xs); position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .18rem;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed);
}
.stat-card::after {
  content: ''; position: absolute; inset: auto -18% -55% auto; width: 120px; height: 120px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(228, 87, 46, .1), transparent);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-num { font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--ink-soft); font-size: .8rem; font-weight: 600; }
.stat-accent { background: linear-gradient(135deg, #fff8ec, #fff); }
.stat-accent .stat-num { color: var(--brand); }

.loyalty-strip { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.loyalty-strip h3 { margin: 0; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .7rem; }
.block-head h3 { margin: 0; }
.link-more { font-weight: 700; font-size: .88rem; color: var(--brand); white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

.order-rows { display: flex; flex-direction: column; }
.order-row {
  display: flex; align-items: center; justify-content: space-between; gap: .9rem;
  padding: .8rem .3rem; border-bottom: 1px dashed var(--line); text-decoration: none; color: inherit;
  transition: background .13s, padding-left .13s; border-radius: 10px;
}
.order-row:last-child { border-bottom: none; }
.order-row:hover { background: var(--brand-soft); padding-left: .6rem; }
.order-row b { font-size: .93rem; }
.order-row small { display: block; color: var(--ink-soft); font-size: .78rem; margin-top: .12rem; }
.order-row-right { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }

.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-top: 1.4rem; }
.quick-link {
  display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem .6rem; text-decoration: none; color: var(--ink); font-size: .82rem; font-weight: 700;
  box-shadow: var(--shadow-xs); transition: transform var(--speed) var(--ease), box-shadow var(--speed), color .15s;
}
.quick-link span:first-child { font-size: 1.5rem; }
.quick-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--brand); }

/* User area responsive */
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .dash-header-inner { padding: .55rem 0; }
  .dash-wrap { display: block; padding: 1rem 0 2.2rem; }
  .dash-side { position: static; padding: .85rem .85rem .9rem; }
  .dash-user { padding-bottom: .7rem; }
  /* app-like horizontal pill nav */
  .dash-nav {
    flex-direction: row; overflow-x: auto; gap: .4rem; padding-top: .7rem;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .dash-nav::-webkit-scrollbar { display: none; }
  .dash-nav a {
    flex: 0 0 auto; padding: .42rem .8rem; border-radius: 99px; font-size: .84rem;
    background: var(--paper); border: 1px solid var(--line); white-space: nowrap;
  }
  .dash-nav a.active { background: var(--dark); border-color: var(--dark); color: #fff; }
  .dash-logout { margin-top: 0; border-top: none; border-radius: 99px !important; background: var(--red-soft); color: var(--red) !important; border-color: #f6cccc; }
  .dash-title { font-size: 1.4rem; }
  .stat-grid { gap: .7rem; margin: 1rem 0; }
  .stat-card { padding: .85rem .9rem; }
  .stat-num { font-size: 1.22rem; }
  .quick-links { gap: .7rem; }
  .quick-link { padding: .85rem .5rem; font-size: .78rem; }
  .order-row { flex-wrap: wrap; }
  .order-row-right { width: 100%; justify-content: flex-start; padding-left: .1rem; }
}
@media (max-width: 620px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Checkout summary card on mobile ---------- */
.co-item > img { width: 74px; height: 74px; object-fit: cover; border-radius: 12px; flex-shrink: 0; box-shadow: var(--shadow-xs); }
.co-item-info b { word-break: break-word; }
.co-item > span { flex-shrink: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .co-side { position: static; }
}

/* ---------- Misc mobile polish ---------- */
@media (max-width: 620px) {
  .topbar-msg { font-size: .72rem; }
  .section-head h2 { font-size: 1.35rem; }
  .bill-rows { font-size: .92rem; }
  .btn-lg { width: 100%; }
  .pd-actions .btn-lg + .btn-lg { margin-top: .55rem; }
}

/* ============================================================
   MY ORDERS + VIEW/TRACK (uo-*) — previously unstyled pages
   ============================================================ */
.tab-row { display: flex; gap: .45rem; margin: 1.1rem 0; flex-wrap: wrap; }
.tab-row .tab {
  padding: .5rem 1.05rem; border-radius: 99px; border: 1.5px solid var(--line);
  background: #fff; font-weight: 700; font-size: .86rem; color: var(--ink-soft);
  transition: all var(--speed) var(--ease);
}
.tab-row .tab:hover { border-color: #f0cdbb; color: var(--brand); transform: translateY(-1px); }
.tab-row .tab.current { background: var(--dark); border-color: var(--dark); color: #fff; box-shadow: 0 6px 16px -6px rgba(29, 23, 18, .45); }

/* --- summary tiles --- */
.uo-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin: 1.15rem 0 .3rem; }
.uo-stat {
  background: #fff; border: 1px solid var(--line); border-radius: 15px;
  padding: .85rem 1rem; display: flex; flex-direction: column; gap: .1rem;
  box-shadow: var(--shadow-xs); transition: transform var(--speed) var(--ease), box-shadow var(--speed);
  position: relative; overflow: hidden;
}
.uo-stat::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--brand); opacity: .8; }
.uo-stat-live::before { background: #2f9e6c; }
.uo-stat-done::before { background: #3b82d6; }
.uo-stat-gold::before { background: #e8a711; }
.uo-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.uo-stat b { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.15; }
.uo-stat span { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

/* --- order cards --- */
.uo-card {
  background: #fff; border: 1px solid var(--line); border-radius: 17px;
  padding: 1.05rem 1.15rem; margin-bottom: 1rem; box-shadow: var(--shadow-xs);
  transition: box-shadow var(--speed) var(--ease), border-color var(--speed), transform var(--speed) var(--ease);
}
.uo-card:hover { box-shadow: var(--shadow); border-color: #efd9c9; }
.uo-card-live { border-left: 4px solid var(--brand); }
.uo-head { display: flex; justify-content: space-between; align-items: center; gap: .9rem; flex-wrap: wrap; }
.uo-head-main { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.uo-thumb {
  width: 58px; height: 58px; border-radius: 14px; object-fit: cover; flex-shrink: 0;
  box-shadow: var(--shadow-xs); background: var(--paper);
}
.uo-thumb-fb {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; color: var(--brand);
  background: linear-gradient(135deg, #fdece4, #fdf3d8);
}
.uo-idbox { min-width: 0; }
.uo-number { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.uo-number:hover { color: var(--brand); }
.uo-idbox small { display: block; font-size: .76rem; }
.uo-head-side { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.uo-total { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.uo-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.uo-chip {
  font-size: .78rem; font-weight: 700; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 99px; padding: .28rem .7rem;
}
.uo-chip small { color: var(--ink-soft); font-weight: 600; }
.uo-chip-more { background: transparent; border-style: dashed; color: var(--ink-soft); }

/* --- milestone rail --- */
.uo-rail { display: flex; align-items: center; gap: .25rem; margin-top: .9rem; overflow-x: auto; padding: .35rem 0 .15rem; scrollbar-width: none; }
.uo-rail::-webkit-scrollbar { display: none; }
.uo-step {
  display: inline-flex; align-items: center; gap: .38rem; white-space: nowrap;
  font-size: .72rem; font-weight: 700; color: var(--ink-soft); letter-spacing: .02em;
}
.uo-step i {
  width: 11px; height: 11px; border-radius: 50%; background: #fff;
  border: 2.5px solid var(--line); flex-shrink: 0; transition: all var(--speed);
}
.uo-step.done { color: var(--ink); }
.uo-step.done i { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 2px #fff; }
.uo-step.now { color: var(--brand-dark); }
.uo-step.now i { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 4px rgba(228, 87, 46, .18); animation: uoPulse 1.6s infinite; }
.uo-step:not(:last-child)::after { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--line); margin-left: .45rem; }
.uo-step.done:not(:last-child)::after { background: #bfe4d2; }
@keyframes uoPulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(228, 87, 46, .18); } 50% { box-shadow: 0 0 0 7px rgba(228, 87, 46, .08); } }

.uo-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .95rem; padding-top: .85rem; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.uo-foot-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* --- order detail (View / Track) --- */
.uo-hero {
  background: linear-gradient(135deg, #241c14 0%, #3a2a1a 55%, #59331b 100%);
  color: #f7efe3; border-radius: 20px; padding: 1.35rem 1.4rem 1.25rem;
  box-shadow: 0 18px 40px -18px rgba(29, 23, 18, .55); margin-top: .4rem;
  position: relative; overflow: hidden;
}
.uo-hero::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 210px; height: 210px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(228, 87, 46, .35), transparent);
}
.uo-hero-eyebrow { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: #cbb391; font-weight: 800; margin: 0 0 .15rem; }
.uo-hero-no { font-family: var(--font-display); font-size: 1.55rem; margin: 0; letter-spacing: .01em; }
.uo-hero-meta { margin: .35rem 0 0; font-size: .84rem; color: #d8c6ab; }
.uo-hero-meta b { color: #ffe9d2; }
.uo-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1; }
.uo-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; }
.uo-hero-side .badge { font-size: .8rem; padding: .38rem .85rem; }
.uo-hero-total { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #ffd9a8; }
.uo-rail-hero { margin-top: 1.15rem; }
.uo-rail-hero .uo-step { color: #cbb391; }
.uo-rail-hero .uo-step.done { color: #ffe9d2; }
.uo-rail-hero .uo-step i { border-color: #6b5638; background: rgba(255, 255, 255, .08); }
.uo-rail-hero .uo-step.done i { background: #58b98a; border-color: #58b98a; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.uo-rail-hero .uo-step.now { color: #ffb597; }
.uo-rail-hero .uo-step.now i { border-color: #ff8a5c; background: #ff8a5c; box-shadow: 0 0 0 4px rgba(255, 138, 92, .25); }
.uo-rail-hero .uo-step:not(:last-child)::after { background: #4a3a26; }
.uo-rail-hero .uo-step.done:not(:last-child)::after { background: #6f8f6a; }

.order-detail-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 1.2rem; align-items: start; margin-top: 1.2rem; }
.order-detail-main, .order-detail-side { min-width: 0; }
.order-detail-main .co-block { margin-bottom: 1.15rem; }
.order-detail-side .co-block { margin-bottom: 1.15rem; }
.order-detail-side { position: sticky; top: 76px; }

/* timeline */
.uo-timeline { list-style: none; padding: 0; margin: 1rem 0 0; position: relative; }
.uo-timeline::before { content: ''; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2.5px; border-radius: 2px; background: var(--line); }
.uo-timeline li { display: flex; gap: .95rem; padding: .55rem 0; position: relative; align-items: flex-start; }
.uo-tl-dot {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; z-index: 1;
  background: #fff; border: 2.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  transition: all var(--speed);
}
.uo-timeline li.done .uo-tl-dot { background: var(--green); border-color: var(--green); }
.uo-timeline li.current .uo-tl-dot { background: var(--brand); border-color: var(--brand); }
.uo-tl-body b { display: block; font-size: .93rem; }
.uo-tl-body small { color: var(--ink-soft); font-size: .76rem; }
.uo-tl-body em { display: block; font-style: normal; font-size: .78rem; color: var(--ink-soft); background: var(--paper); border-radius: 8px; padding: .2rem .55rem; margin-top: .2rem; }
.uo-timeline li.current .uo-tl-body b { color: var(--brand-dark); }
.uo-timeline li:not(.done):not(.current) .uo-tl-body b { color: var(--ink-soft); font-weight: 600; }
.uo-tl-pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: uoPulse 1.5s infinite; }

/* porter card */
.uo-porter { border: 1.5px solid #ffd9be; background: linear-gradient(180deg, #fff8f1, #fff); }
.uo-porter-banner { display: flex; gap: .85rem; align-items: center; margin-bottom: .9rem; }
.uo-porter-truck { font-size: 1.9rem; background: linear-gradient(135deg, #ffefe2, #fff3d8); border-radius: 14px; width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-xs); }
.uo-porter-banner h3 { margin: 0; }
.uo-porter-banner p { margin: .1rem 0 0; font-size: .82rem; color: var(--ink-soft); }
.uo-porter-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; margin-bottom: .9rem; }
.uo-porter-cell { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; }
.uo-porter-cell small { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 800; margin-bottom: .15rem; }
.uo-porter-cell b { font-size: .95rem; }
.uo-porter-call { display: inline-block; margin-left: .5rem; font-size: .8rem; font-weight: 700; color: var(--brand); }
.porter-id { background: var(--paper); border: 1px dashed var(--line); border-radius: 7px; padding: .1rem .45rem; font-size: .82rem; }
.porter-history { margin-top: .75rem; }
.porter-history summary { cursor: pointer; font-weight: 700; font-size: .86rem; color: var(--ink-soft); }
.porter-history ul { margin: .5rem 0 0; padding-left: 1.1rem; font-size: .84rem; }
.porter-history li { margin-bottom: .3rem; }

.addr-block { line-height: 1.55; font-size: .92rem; background: var(--paper); border-radius: 12px; padding: .8rem .95rem; }
.order-actions-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .9rem; }
.uo-cancel { border: 1.5px dashed #f3cfc7; background: #fff9f7; }

/* responsive */
@media (max-width: 900px) {
  .uo-stats { grid-template-columns: repeat(2, 1fr); }
  .order-detail-grid { grid-template-columns: 1fr; }
  .order-detail-side { position: static; }
}
@media (max-width: 560px) {
  .uo-card { padding: .9rem .85rem; }
  .uo-thumb { width: 50px; height: 50px; border-radius: 12px; }
  .uo-head-side { width: 100%; justify-content: space-between; }
  .uo-hero { padding: 1.1rem 1rem; }
  .uo-hero-no { font-size: 1.3rem; }
  .uo-hero-side { flex-direction: row; align-items: center; }
  .uo-porter-grid { grid-template-columns: 1fr 1fr; }
  .uo-stat b { font-size: 1.15rem; }
}

/* ============================================================
   HOMEPAGE — video hero, offers row, veg/non-veg toggle (v1.4)
   ============================================================ */
.section-tight { padding: 2rem 0 1rem; }

/* ---- video hero ---- */
.hero.hero-video { background: var(--dark); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.hero.hero-video::before { display: none; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(20, 13, 8, .9) 0%, rgba(20, 13, 8, .66) 42%, rgba(20, 13, 8, .22) 74%, rgba(20, 13, 8, .42) 100%),
    linear-gradient(to top, rgba(20, 13, 8, .85), transparent 44%);
}
.hero.hero-video .hero-inner { grid-template-columns: 1fr; min-height: 540px; padding: 4.2rem 0; align-items: center; position: relative; z-index: 2; }
.hero.hero-video .hero-copy { max-width: 640px; }
.hero.hero-video .hero-eyebrow {
  background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #ffd9a8;
  box-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero.hero-video .hero-copy h1 { color: #fff; }
.hero.hero-video .hero-copy h1 em { color: #ffc98a; }
.hero.hero-video .hero-copy h1 em::after { background: linear-gradient(90deg, rgba(255, 201, 138, .3), rgba(228, 87, 46, .35)); }
.hero.hero-video .hero-copy p { color: #eadfd2; }
.hero.hero-video .hero-points { color: #cdbfae; }
.hero.hero-video .hero-points strong { color: #fff; }
.hero.hero-video .btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; background: rgba(20, 13, 8, .28); }
.hero.hero-video .btn-ghost:hover { background: rgba(255, 255, 255, .15); border-color: #fff; box-shadow: none; }

/* ---- homepage offers row ---- */
.home-offer-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(258px, 1fr);
  gap: 1rem; overflow-x: auto; padding: .2rem .2rem 1rem; margin: 0 -.2rem;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #e8cdbd transparent;
}
.home-offer-row::-webkit-scrollbar { height: 6px; }
.home-offer-row::-webkit-scrollbar-thumb { background: #ecd3c5; border-radius: 99px; }
.ho-card {
  scroll-snap-align: start; position: relative; overflow: hidden;
  background: linear-gradient(150deg, #fff9f4 0%, #fff 55%);
  border: 1px solid #f6dfd2; border-radius: var(--radius); padding: 1.15rem 1.2rem 1rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed), border-color var(--speed);
}
.ho-card::after {
  content: ''; position: absolute; right: -34px; top: -34px; width: 104px; height: 104px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(228, 87, 46, .16), transparent);
}
.ho-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #f0c8b6; }
.ho-top { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .45rem; position: relative; }
.ho-value {
  font-family: var(--font-display); font-weight: 800; font-size: 1.85rem; line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ho-label { font-size: .72rem; font-weight: 800; letter-spacing: .18em; color: var(--brand); text-transform: uppercase; }
.ho-title { font-size: 1.02rem; font-weight: 700; margin: 0 0 .3rem; position: relative; }
.ho-desc { color: var(--ink-soft); font-size: .85rem; margin: 0 0 .8rem; position: relative; }
.ho-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; font-size: .76rem; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: .6rem; position: relative; }
.ho-scope { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-ends { background: var(--green-soft); color: var(--green); font-weight: 700; padding: .16rem .55rem; border-radius: 99px; white-space: nowrap; }

/* ---- veg / non-veg toggle ---- */
.diet-bar { display: flex; align-items: center; gap: .9rem; margin: -.4rem 0 1.3rem; flex-wrap: wrap; }
.diet-toggle { display: inline-flex; gap: .55rem; flex-wrap: wrap; }
.diet-pill {
  display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line);
  background: #fff; padding: .5rem 1.05rem; border-radius: 99px;
  font: 600 .86rem var(--font-body); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-xs);
  transition: background var(--speed), color var(--speed), border-color var(--speed), box-shadow var(--speed);
}
.diet-pill:hover { border-color: #f3cdbd; color: var(--brand-dark); }
.diet-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.diet-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--green); display: inline-block; flex-shrink: 0; }
.diet-dot.nonveg { background: var(--red); }
.diet-hint { color: var(--ink-soft); font-size: .76rem; }
.diet-hide { display: none !important; }
.diet-empty { color: var(--ink-soft); background: var(--paper); border: 1px dashed var(--line); padding: 1rem 1.2rem; border-radius: var(--radius); text-align: center; margin-top: .4rem; }

@media (max-width: 860px) {
  .hero.hero-video .hero-inner { min-height: 500px; padding: 3rem 0; }
  .hero-veil {
    background:
      linear-gradient(to top, rgba(20, 13, 8, .95) 0%, rgba(20, 13, 8, .78) 50%, rgba(20, 13, 8, .66) 100%),
      linear-gradient(100deg, rgba(20, 13, 8, .55), rgba(20, 13, 8, .3));
  }
  .home-offer-row { grid-auto-columns: 78%; }
  .diet-bar { justify-content: space-between; }
  .diet-hint { display: none; }
  .diet-pill { padding: .48rem .9rem; }
}

/* ============================================================
   USER PANEL — MOBILE-ONLY CSS FIXES (v1.5)
   Resolves stylesheet conflicts in the customer account area.
   Every rule below lives inside a max-width media query, so
   the desktop rendering stays exactly as it was.
   ============================================================ */

@media (max-width: 860px) {

  /* -- My Orders + Track: the 6-stop milestone rail clipped hard at
        the card edge and looked broken. Give it a fade edge + snap so
        the horizontal scroll reads as intentional. -- */
  .uo-rail {
    scroll-snap-type: x proximity;
    padding-right: 1.4rem;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 86%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 0, #000 86%, transparent 100%);
  }
  .uo-rail .uo-step { scroll-snap-align: start; }
  .uo-rail-hero { padding-right: 1rem; }

  /* -- Notifications: rows were completely unstyled plain text.
        Proper card list with an unread accent. -- */
  .notif-list { display: flex; flex-direction: column; gap: .6rem; margin-top: .9rem; }
  .notif-item {
    display: flex; align-items: center; justify-content: space-between; gap: .8rem;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: .8rem .95rem; box-shadow: var(--shadow-xs);
  }
  .notif-item b { font-size: .9rem; }
  .notif-item p { margin: .18rem 0 .28rem; font-size: .84rem; line-height: 1.45; color: var(--ink); }
  .notif-item .btn { flex-shrink: 0; }
  .notif-item.unread {
    border-left: 4px solid var(--brand);
    background: linear-gradient(90deg, #fff6f0, #fff 34%);
  }

  /* -- Saved Addresses: grid + structured card head/foot; the
        "＋ Add New Address" chip became a proper dashed tile. -- */
  .address-grid { display: grid; grid-template-columns: 1fr; gap: .85rem; margin-top: .9rem; }
  .addr-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
  .addr-top .badge { flex-shrink: 0; }
  .addr-actions {
    display: flex; gap: .35rem; flex-wrap: wrap;
    margin-top: .7rem; padding-top: .65rem; border-top: 1px dashed var(--line);
  }
  .address-add {
    width: 100%; min-height: 74px;
    display: flex; align-items: center; justify-content: center; gap: .45rem;
    border: 2px dashed #e9c4ae; background: #fffcf9; color: var(--brand);
    font-weight: 800; cursor: pointer; border-radius: 13px;
    transition: background var(--speed);
  }
  .address-add:hover { background: var(--brand-soft); border-color: var(--brand); transform: none; box-shadow: none; }

  /* -- Reviews: star picker buttons were raw UA buttons. -- */
  .star-input { display: flex; gap: .3rem; }
  .star-input button {
    width: 40px; height: 40px; margin: 0; padding: 0;
    border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
    font-size: 1.15rem; line-height: 1; cursor: pointer; color: var(--gold);
  }
}

@media (max-width: 620px) {

  /* -- Data tables (Royalty Points rules + history, bulk-order quotes):
        columns were crushed into chaos on narrow screens. Keep the real
        table layout but scroll it INSIDE the card, styled as a data sheet. -- */
  .table {
    display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
    white-space: nowrap; border: 1px solid var(--line); border-radius: 12px;
    font-size: .85rem; background: #fff;
  }
  .table th, .table td { padding: .55rem .75rem; border-bottom: 1px solid var(--line-soft); text-align: left; }
  .table thead th {
    background: var(--paper); color: var(--ink-soft); font-size: .66rem;
    letter-spacing: .09em; text-transform: uppercase; border-bottom: 1.5px solid var(--line);
  }
  .table tbody tr:last-child td { border-bottom: none; }
  .table tbody tr:nth-child(even) { background: #fbf8f3; }
  .table td.right, .table th.right { text-align: right; }
  .table .bill-total-row td { border-top: 2px solid var(--dark); background: #fff; }

  /* -- Royalty / bulk bullet lists breathe. -- */
  .muted-loose { margin: .4rem 0 .8rem; padding-left: 1.2rem; display: grid; gap: .35rem; font-size: .88rem; }
  .muted-loose li::marker { color: var(--brand); }

  /* -- Bulk quote box framing (was invisible). -- */
  .quote-box {
    border: 1.5px solid var(--line); border-radius: 14px;
    padding: .95rem 1rem 1rem; margin-top: 1.05rem; background: #fdfbf7;
  }
  .quote-box .table { border: none; background: transparent; }
  .quote-accepted { border-color: #b7e2c8; background: #f3fbf5; }

  /* -- Coupon card: meta line collided with the CTA button. -- */
  .coupon-card small { display: block; line-height: 1.5; }
  .coupon-card .btn.mt { display: flex; width: 100%; }

  /* -- Dashboard quick links: the label span stole the emoji's 1.5rem
         size (emoji is a bare text node) and wrapped clumsily. Keep the
         emoji readable, put the label back on one line. -- */
  .quick-link { font-size: 1.05rem; }
  .quick-link span:first-child { font-size: .74rem; line-height: 1.35; }
}

/* ============================================================
   FOOTER APP DOWNLOAD BUTTON & PROMO BANNER
   ============================================================ */
.footer-app-box {
  margin-top: 1.25rem;
}
.btn-app-download {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.15rem;
  background: linear-gradient(135deg, #2b231d, #1a1512);
  border: 1.5px solid rgba(228, 87, 46, .45);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  text-align: left;
}
.btn-app-download:hover {
  border-color: var(--brand);
  background: linear-gradient(135deg, #382d25, #221c17);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(228, 87, 46, .25);
}
.btn-app-download .app-icon {
  color: var(--brand);
  flex-shrink: 0;
}
.btn-app-download .btn-app-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.btn-app-download .btn-app-text small {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  font-weight: 600;
}
.btn-app-download .btn-app-text strong {
  font-size: .95rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: .01em;
}
.btn-app-download .download-ico {
  margin-left: .25rem;
  color: var(--gold);
  transition: transform .2s ease;
}
.btn-app-download:hover .download-ico {
  transform: translateY(2px);
}

/* Footer Full-Width App Download Banner */
.footer-app-bar {
  background: linear-gradient(135deg, rgba(228, 87, 46, .14), rgba(212, 160, 23, .08));
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 1.4rem 0;
}
.footer-app-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-app-copy {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.app-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(228, 87, 46, .35);
  flex-shrink: 0;
}
.footer-app-copy h4 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}
.footer-app-copy p {
  margin: .2rem 0 0;
  color: rgba(255, 255, 255, .7);
  font-size: .88rem;
}
.footer-app-actions {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}
.btn-store-badge {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: #11141a;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  padding: .5rem .95rem;
  color: #fff;
  cursor: pointer;
  transition: all .2s;
  text-align: left;
}
.btn-store-badge:hover {
  background: #1d222c;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.btn-store-badge .store-icon {
  flex-shrink: 0;
}
.btn-store-badge .store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.btn-store-badge .store-text small {
  font-size: .58rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  letter-spacing: .06em;
}
.btn-store-badge .store-text strong {
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
}

/* App Download Modal */
.app-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.app-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.app-modal-dialog {
  background: #1e1814;
  color: #fff;
  border: 1.5px solid rgba(228, 87, 46, .35);
  border-radius: 18px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  overflow: hidden;
  position: relative;
  transform: translateY(12px);
  transition: transform .25s ease;
}
.app-modal.open .app-modal-dialog {
  transform: translateY(0);
}
.app-modal-header {
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.app-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
}
.app-modal-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, .6);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.app-modal-close:hover { color: #fff; }
.app-modal-body {
  padding: 1.4rem;
}
.app-modal-promo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, .03);
  padding: .85rem;
  border-radius: 12px;
}
.app-modal-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.app-modal-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: .65rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .85);
}
.app-modal-steps li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
}
.app-modal-steps li span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.app-modal-btn-install {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s;
}
.app-modal-btn-install:hover {
  background: var(--brand-dark, #c74521);
}

