/* JazzyKart Store — dark/black marketplace theme, mobile-first */
:root {
  --bg: #000000;
  --bg-soft: #0b0b0d;
  --surface: #121214;
  --surface-2: #1a1a1e;
  --border: #26262b;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --teal: #2dd4bf;
  --teal-dark: #0d9488;
  --accent: #f43f5e;
  --gold: #fbbf24;
  --green: #22c55e;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea {
  font-family: inherit;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 14px; }
.crumbs a { color: var(--teal); }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: var(--text); }

/* ---------- announcement + demo banner ---------- */
.announce-bar {
  background: linear-gradient(90deg, var(--teal-dark), var(--teal));
  color: #001512;
  font-weight: 700;
  text-align: center;
  font-size: 13px;
  padding: 8px 12px;
}
.demo-banner {
  background: #3b2f04;
  border: 1px solid var(--gold);
  color: #fde68a;
  text-align: center;
  font-size: 13.5px;
  padding: 10px 14px;
}
.demo-banner a { color: var(--gold); font-weight: 700; text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(5, 5, 6, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.logo-badge {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #001512; font-size: 20px;
}
.logo span em { font-style: normal; color: var(--teal); }
.search-wrap { flex: 1; position: relative; }
.search-wrap input { padding-left: 40px; border-radius: 999px; }
.search-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: 0.6; }
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: transform 0.15s;
}
.icon-btn:active { transform: scale(0.92); }
.count-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}
.count-badge.bump { animation: bump 0.45s ease; }
@keyframes bump {
  0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); }
}

/* ---------- nav ---------- */
.main-nav { border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 14px;
  display: flex; align-items: center; gap: 4px; overflow-x: auto;
}
.nav-link {
  padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--muted);
  white-space: nowrap; border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active { color: var(--teal); border-bottom-color: var(--teal); }
.cat-dropdown { position: relative; }
.cat-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 300;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 220px; padding: 8px;
  box-shadow: var(--shadow);
}
.cat-menu.open { display: block; }
.cat-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; color: var(--text);
  padding: 11px 12px; border-radius: 9px; font-size: 14.5px; text-align: left;
}
.cat-menu button:hover { background: var(--surface-2); }

/* ---------- hero carousel ---------- */
.hero { position: relative; margin: 14px 0 6px; }
.hero-track-wrap { overflow: hidden; border-radius: var(--radius); }
.hero-track { display: flex; transition: transform 0.5s ease; touch-action: pan-y; }
.hero-slide {
  min-width: 100%;
  min-height: 300px;
  display: flex; align-items: center;
  padding: 34px 26px;
  position: relative; overflow: hidden;
}
.hero-slide .hero-text { position: relative; z-index: 2; max-width: 62%; }
.hero-kicker {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 10px; opacity: 0.85;
}
.hero-slide h2 { font-size: clamp(28px, 6vw, 52px); font-weight: 900; line-height: 1.05; letter-spacing: -1px; }
.hero-slide p { margin: 10px 0 18px; color: rgba(255,255,255,0.85); font-size: 15px; max-width: 420px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--teal); color: #001512;
  border: none; border-radius: 999px;
  padding: 12px 26px; font-weight: 800; font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(45, 212, 191, 0.35); }
.btn:active { transform: scale(0.97); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: var(--accent); color: #fff; }
.btn-wa { background: #22c55e; color: #04120a; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.hero-slide-1 { background: linear-gradient(120deg, #134e4a 0%, #0b0b0d 70%); }
.hero-slide-2 { background: linear-gradient(120deg, #4c1d95 0%, #0b0b0d 70%); }
.hero-slide-3 { background: linear-gradient(120deg, #9a3412 0%, #0b0b0d 70%); }
.hero-slide-4 { background: linear-gradient(120deg, #831843 0%, #0b0b0d 70%); }
.hero-slide-5 { background: linear-gradient(120deg, #1e3a8a 0%, #0b0b0d 70%); }
.hero-slide::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,0.25), transparent 70%);
}
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; display: flex; align-items: center; justify-content: center; z-index: 3;
}
.hero-arrow.prev { left: 10px; } .hero-arrow.next { right: 10px; }
.hero-dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 999px; border: none; background: var(--border); padding: 0; }
.hero-dots button.active { background: var(--teal); width: 26px; }

/* ---------- sections ---------- */
.section { margin: 26px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.section-head h3 .tick { color: var(--teal); }
.deal-timer {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
}
.deal-timer b { color: var(--teal); font-variant-numeric: tabular-nums; }

/* categories row */
.cat-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.cat-tile {
  flex: 0 0 auto; width: 92px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  transition: border-color 0.15s, transform 0.15s;
}
.cat-tile:hover, .cat-tile.active { border-color: var(--teal); color: var(--text); transform: translateY(-2px); }
.cat-tile .cat-ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--teal);
}

/* toolbar: search + filters + sort */
.toolbar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 16px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.toolbar .fld { flex: 1 1 150px; min-width: 140px; }
.toolbar label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* product grid + cards */
.product-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.pcard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  position: relative;
}
.pcard:hover { transform: translateY(-3px); border-color: #3a3a41; box-shadow: var(--shadow); }
.pcard-img { position: relative; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; cursor: pointer; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.off-badge, .stock-badge {
  position: absolute; top: 10px; left: 10px;
  color: #fff; font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 7px;
}
.off-badge { background: var(--accent); }
.stock-badge { background: #4b5563; letter-spacing: .4px; }
.demo-tag {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.65); color: var(--gold);
  font-size: 10.5px; font-weight: 800; letter-spacing: 1px;
  padding: 4px 8px; border-radius: 7px; border: 1px solid var(--gold);
}
.wish-btn {
  position: absolute; bottom: 10px; right: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.6); border: 1px solid var(--border);
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.wish-btn.active { color: var(--accent); border-color: var(--accent); }
.wish-btn.active svg { fill: var(--accent); }
.pcard-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-name { font-size: 14.5px; font-weight: 600; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-name:hover { color: var(--teal); }
.pcard-brand { font-size: 12px; color: var(--muted); }
.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--gold); font-size: 13px; }
.stars .rc { color: var(--muted); margin-left: 5px; font-size: 12px; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price { font-size: 18px; font-weight: 800; }
.mrp { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.add-btn {
  margin-top: 8px; width: 100%;
  background: var(--surface-2); border: 1px solid var(--teal);
  color: var(--teal); font-weight: 800; font-size: 14px;
  padding: 10px; border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.add-btn:hover { background: var(--teal); color: #001512; }
.add-btn:disabled, .btn:disabled {
  background: #30343b; border-color: #555b66; color: #a9afb9; cursor: not-allowed; opacity: .85;
}
.add-btn:disabled:hover { background: #30343b; color: #a9afb9; }

/* fly-to-cart ghost */
.fly-ghost {
  position: fixed; z-index: 9999; border-radius: 12px;
  pointer-events: none; object-fit: cover;
  transition: transform 0.85s cubic-bezier(0.3, -0.1, 0.4, 1), opacity 0.85s, width 0.85s, height 0.85s;
}

/* ---------- drawers (cart / wishlist) ---------- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 400;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(420px, 94vw);
  background: var(--bg-soft); border-left: 1px solid var(--border);
  transform: translateX(105%); transition: transform 0.3s ease;
  z-index: 401; display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 18px; font-weight: 800; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.drawer-foot { border-top: 1px solid var(--border); padding: 14px 16px; background: var(--surface); }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item img { width: 74px; height: 74px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info .nm { font-size: 14px; font-weight: 600; }
.cart-item-info .pr { font-size: 14px; font-weight: 800; color: var(--teal); margin-top: 3px; }
.qty-stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; margin-top: 8px; }
.qty-stepper button { width: 32px; height: 30px; background: var(--surface-2); border: none; color: var(--text); font-size: 16px; font-weight: 700; }
.qty-stepper span { min-width: 34px; text-align: center; font-weight: 700; font-size: 14px; }
.qty-stepper button:disabled { color: var(--muted); cursor: not-allowed; opacity: .55; }
.pd-quantity { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; font-size: 14px; font-weight: 700; }
.pd-quantity .qty-stepper { margin-top: 0; }
.stock-message { color: #d1d5db; border-color: #6b7280; background: #282d35; font-weight: 800; }
.link-btn { background: none; border: none; color: var(--accent); font-size: 13px; font-weight: 600; margin-top: 8px; padding: 0; }
.coupon-row { display: flex; gap: 8px; margin: 12px 0; }
.coupon-row input { text-transform: uppercase; }
.coupon-msg { font-size: 13px; margin-top: 6px; min-height: 18px; }
.coupon-msg.ok { color: var(--green); } .coupon-msg.err { color: var(--accent); }
.bill-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; color: var(--muted); }
.bill-row.total { font-size: 17px; font-weight: 800; color: var(--text); border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px; }
.bill-row .free { color: var(--green); font-weight: 700; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state svg { opacity: 0.35; margin-bottom: 14px; }
.empty-state h4 { color: var(--text); font-size: 17px; margin-bottom: 6px; }

/* ---------- toasts ---------- */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 9998; display: flex; flex-direction: column; gap: 8px; width: min(420px, 92vw); }
.toast {
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  padding: 12px 16px; border-radius: 12px; font-size: 14px;
  box-shadow: var(--shadow); animation: toastIn 0.3s ease;
  display: flex; align-items: center; gap: 10px;
}
.toast.err { border-left-color: var(--accent); }
.toast.ok { border-left-color: var(--green); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- product page ---------- */
.breadcrumbs { font-size: 13px; color: var(--muted); margin: 16px 0; }
.breadcrumbs a:hover { color: var(--teal); }
.pd-layout { display: grid; gap: 22px; }
@media (min-width: 860px) { .pd-layout { grid-template-columns: 1.05fr 1fr; } }
.pd-gallery { position: relative; }
.pd-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); aspect-ratio: 1; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.pd-thumbs img {
  width: 74px; height: 74px; object-fit: cover; border-radius: 10px;
  border: 2px solid var(--border); cursor: pointer; background: var(--surface-2);
}
.pd-thumbs img.active { border-color: var(--teal); }
.pd-info h1 { font-size: clamp(21px, 4vw, 30px); font-weight: 800; letter-spacing: -0.5px; }
.pd-brand { color: var(--muted); font-size: 14px; margin: 4px 0 10px; }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin: 8px 0; }
.pd-price { font-size: 30px; font-weight: 900; }
.pd-mrp { font-size: 17px; color: var(--muted); text-decoration: line-through; }
.pd-off { background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 8px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; padding: 8px 13px; border-radius: 999px; color: var(--muted);
}
.meta-chip svg { color: var(--teal); }
.meta-chip b { color: var(--text); }
.pd-actions { display: flex; gap: 10px; margin: 18px 0; }
.pd-actions .btn { flex: 1; }
.pd-actions .icon-btn { width: 50px; height: 50px; flex: 0 0 auto; }
.pd-actions .icon-btn.active { color: var(--accent); border-color: var(--accent); }
.pd-actions .icon-btn.active svg { fill: var(--accent); }
.pincode-check { display: flex; gap: 8px; margin: 6px 0 16px; max-width: 380px; }
.pincode-msg { font-size: 13.5px; margin-top: 6px; color: var(--muted); }
.pincode-msg.ok { color: var(--green); }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.spec-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.spec-table td:first-child { color: var(--muted); width: 38%; font-weight: 600; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin: 26px 0 4px; }
.tabs button { background: none; border: none; color: var(--muted); font-size: 15px; font-weight: 700; padding: 12px 16px; border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--teal); border-bottom-color: var(--teal); }
.review { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-top: 12px; background: var(--surface); }
.review .who { font-weight: 700; font-size: 14px; }
.review .txt { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- checkout ---------- */
.co-layout { display: grid; gap: 20px; margin: 20px 0 40px; }
@media (min-width: 900px) { .co-layout { grid-template-columns: 1.2fr 0.8fr; align-items: start; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.form-grid { display: grid; gap: 12px; }
@media (min-width: 600px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.fld-err { color: var(--accent); font-size: 12.5px; margin-top: 4px; min-height: 16px; }
.fld-err.lookup-note { color: var(--muted); }
.steps { display: flex; gap: 8px; margin: 18px 0; }
.step { flex: 1; text-align: center; font-size: 12.5px; color: var(--muted); font-weight: 700; padding-top: 10px; position: relative; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--border); }
.step.done { color: var(--teal); } .step.done::before { background: var(--teal); }
.step.now { color: var(--text); } .step.now::before { background: var(--gold); }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 0; }
#qr-code { background: #fff; padding: 14px; border-radius: 14px; }
#qr-code img, #qr-code canvas { display: block; }
.upi-id-row { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border: 1px dashed var(--border); border-radius: 10px; padding: 10px 14px; font-size: 15px; font-weight: 700; }
.copy-btn { background: none; border: none; color: var(--teal); font-weight: 700; font-size: 13px; }
.order-id-chip {
  display: inline-block; background: var(--surface-2); border: 1px solid var(--teal);
  color: var(--teal); font-weight: 800; letter-spacing: 1px;
  padding: 8px 18px; border-radius: 999px; font-size: 16px; margin: 8px 0;
}

/* ---------- tracking ---------- */
.timeline { margin: 18px 0; }
.tl-step { display: flex; gap: 14px; position: relative; padding-bottom: 26px; }
.tl-step::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: var(--border); }
.tl-step:last-child::before { display: none; }
.tl-dot {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  background: var(--surface-2); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.tl-step.hit .tl-dot { background: var(--teal); border-color: var(--teal); color: #001512; }
.tl-step.hit::before { background: var(--teal); }
.tl-step .tt { font-weight: 700; font-size: 15px; }
.tl-step .ts { font-size: 12.5px; color: var(--muted); }
.status-pill { display: inline-block; font-size: 12.5px; font-weight: 800; padding: 5px 13px; border-radius: 999px; }
.st-payment_pending { background: #3b2f04; color: var(--gold); }
.st-payment_claimed { background: #0c2f3b; color: #67e8f9; }
.st-confirmed { background: #0f2f1d; color: var(--green); }
.st-shipped { background: #2b1a4d; color: #c4b5fd; }
.st-delivered { background: #0f2f1d; color: var(--green); }
.st-cancelled { background: #3b1016; color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); margin-top: 40px; }
.foot-grid { display: grid; gap: 22px; padding: 30px 0; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-grid h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 12px; }
.foot-grid a, .foot-grid p { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.foot-grid a:hover { color: var(--teal); }
.foot-bottom { border-top: 1px solid var(--border); padding: 16px 0; text-align: center; font-size: 13px; color: var(--muted); }
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pay-badges span { border: 1px solid var(--border); border-radius: 7px; padding: 4px 10px; font-size: 12px; font-weight: 700; color: var(--muted); }

/* misc */
.hidden { display: none !important; }
.center { text-align: center; }
.mt { margin-top: 16px; }
.small-muted { font-size: 13px; color: var(--muted); }
pre.code {
  background: #0a0a0c; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; overflow-x: auto; font-size: 12.5px; color: #a5f3fc;
}
.skel { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: skel 1.2s infinite; border-radius: var(--radius); }
@keyframes skel { to { background-position: -200% 0; } }

/* Static preview accessibility fixes: closed drawers are not operable; phone rows wrap. */
.drawer:not(.open) { visibility: hidden; pointer-events: none; }
.drawer.open { visibility: visible; pointer-events: auto; }
@media (max-width: 639px) {
  .nav-inner { flex-wrap: wrap; overflow-x: visible; padding-top: 4px; padding-bottom: 4px; }
  .nav-link { padding: 8px 10px; white-space: normal; }
  .cat-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); overflow-x: visible; }
  .cat-tile { width: auto; }
}

/* ---------- customer login (phone OTP) ---------- */
.jk-login-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--border); color: var(--text);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.jk-login-btn:hover { border-color: var(--teal); }
.jk-login-btn.logged-in { border-color: var(--teal); color: var(--teal); }
.jk-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 18px;
}
.jk-modal-overlay.open { display: flex; }
.jk-modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  width: 100%; max-width: 380px; padding: 22px; box-shadow: var(--shadow);
}
.jk-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.jk-modal-head h3 { font-size: 18px; }
.jk-phone-row { display: flex; gap: 8px; align-items: stretch; margin-top: 12px; }
.jk-cc {
  display: flex; align-items: center; padding: 0 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--muted); font-weight: 600;
}
.jk-phone-row input, .jk-otp-in {
  flex: 1; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px; color: var(--text); font-size: 16px; width: 100%;
}
.jk-otp-in { margin-top: 12px; letter-spacing: 6px; text-align: center; font-size: 20px; }
.jk-phone-row input:focus, .jk-otp-in:focus { outline: none; border-color: var(--teal); }
.jk-err { color: var(--accent); font-size: 13px; margin-top: 10px; min-height: 18px; }
.jk-user-menu {
  position: absolute; z-index: 210; display: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden; min-width: 160px;
}
.jk-user-menu.open { display: block; }
.jk-user-menu button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  color: var(--text); padding: 12px 16px; font-size: 14px; cursor: pointer;
}
.jk-user-menu button:hover { background: var(--surface-2); }
.jk-user-menu button + button { border-top: 1px solid var(--border); }

/* ---------- recent searches dropdown ---------- */
.jk-recent-dd {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 150;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden;
}
.jk-recent-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px;
}
.jk-recent-head button { background: none; border: none; color: var(--teal); font-size: 12px; cursor: pointer; }
.jk-recent-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; color: var(--text);
  padding: 11px 14px; font-size: 14px; cursor: pointer; text-align: left;
}
.jk-recent-item:hover { background: var(--surface-2); }
.jk-recent-item svg { color: var(--muted); flex-shrink: 0; }

/* ---------- my orders ---------- */
.order-card { margin-bottom: 14px; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.order-status {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--gold);
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.order-items { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 8px 0; margin-bottom: 8px; }
.order-item { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; }
.order-item span:first-child { color: var(--muted); }
.mt { margin-top: 12px; }

/* ---------- header search row (full-width, bada search) ---------- */
.header-search-row {
  padding: 0 14px 12px;
  max-width: 1200px;
  margin: 0 auto;
}
.header-search-row .search-wrap { flex: none; width: 100%; }
.header-search-row .search-wrap input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  font-size: 15px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.header-search-row .search-wrap input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}
.header-search-row .search-wrap input::placeholder { color: var(--muted); }
