/* OSTNKART Wholesale — neon green on black, matching the wholesale catalogue */
:root {
  --bg: #090a08;
  --surface: #12140f;
  --surface-2: #1a1d16;
  --line: #2a2f25;
  --line-strong: #3a4033;
  --text: #f1f4ec;
  --muted: #a2ab98;
  --faint: #6f7867;
  --green: #66ee0e;
  --green-soft: rgba(102, 238, 14, 0.12);
  --green-line: rgba(102, 238, 14, 0.45);
  --on-green: #071004;
  --gold: #d8b25a;
  --warn: #ffb547;
  --danger: #ff6a57;
  --info: #6cc4ff;
  --card: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --font-display: 'Marcellus', Georgia, serif;
  --font-ui: 'Hind', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 60px;
  --nav-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3.4vw, 1.7rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 0.75em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.78rem; }
.green { color: var(--green); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
main.page { padding: 20px 0 calc(var(--nav-h) + 40px); min-height: 70vh; }
@media (min-width: 900px) { main.page { padding-bottom: 60px; } }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap-row { flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1.4fr 1fr; align-items: start; } }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(9, 10, 8, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.06em; }
.brand-sub { display: block; font-family: var(--font-ui); font-size: 0.68rem; color: var(--green); letter-spacing: 0.14em; text-transform: uppercase; margin-top: -3px; }
.top-search { flex: 1; max-width: 460px; margin-left: auto; display: none; }
@media (min-width: 720px) { .top-search { display: block; } }
.search-ico { display: inline-flex; }
@media (min-width: 720px) { .search-ico { display: none; } }
.top-actions { display: flex; gap: 4px; margin-left: auto; }
@media (min-width: 720px) { .top-actions { margin-left: 8px; } }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); text-decoration: none; }
.icon-btn svg { width: 22px; height: 22px; }
.badge-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--green); color: var(--on-green);
  font-size: 0.7rem; font-weight: 700; line-height: 18px; text-align: center;
}
.desk-nav { display: none; gap: 4px; }
@media (min-width: 900px) {
  .desk-nav { display: flex; }
  .desk-nav a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 500; }
  .desk-nav a:hover, .desk-nav a.on { color: var(--text); background: var(--surface-2); text-decoration: none; }
}

/* ---------- bottom nav (mobile) ---------- */
.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(14, 16, 12, 0.97); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--faint); font-size: 0.72rem; position: relative;
}
.bottomnav a:hover { text-decoration: none; color: var(--text); }
.bottomnav a.on { color: var(--green); }
.bottomnav svg { width: 22px; height: 22px; }
.bottomnav .badge-count { top: 6px; right: calc(50% - 22px); }
@media (min-width: 900px) { .bottomnav { display: none; } }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  background: var(--green); color: var(--on-green); font-weight: 600; cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease; text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; filter: none; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--green-line); background: var(--surface-2); }
.btn.quiet { background: var(--surface-2); color: var(--text); }
.btn.danger { background: transparent; color: var(--danger); border-color: rgba(255, 106, 87, 0.45); }
.btn.wa { background: #25d366; color: #052e14; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 0.9rem; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; }
.linkish { background: none; border: 0; padding: 0; color: var(--green); cursor: pointer; }

label.field { display: block; }
label.field > span { display: block; font-size: 0.875rem; color: var(--muted); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); outline: none;
}
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.input::placeholder { color: var(--faint); }
.fields { display: grid; gap: 14px; }
@media (min-width: 640px) { .fields.two { grid-template-columns: 1fr 1fr; } }
.pin-input { letter-spacing: 0.6em; font-size: 1.3rem; text-align: center; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }

.search-box { position: relative; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); }
.search-box .input { padding-left: 40px; min-height: 42px; }

/* ---------- cards & panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel.tight { padding: 14px; }
.panel h3 { margin-bottom: 12px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; border: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 0.95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

.notice { padding: 12px 14px; border-radius: 12px; background: var(--green-soft); border: 1px solid var(--green-line); color: var(--text); font-size: 0.95rem; }
.notice.warn { background: rgba(255, 181, 71, 0.1); border-color: rgba(255, 181, 71, 0.45); }
.notice.err { background: rgba(255, 106, 87, 0.1); border-color: rgba(255, 106, 87, 0.45); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--line);
  background:
    radial-gradient(600px 260px at 85% 10%, rgba(102, 238, 14, 0.22), transparent 60%),
    radial-gradient(400px 200px at 0% 100%, rgba(102, 238, 14, 0.10), transparent 60%),
    var(--surface);
  padding: 26px 20px; display: grid; gap: 18px;
}
@media (min-width: 800px) { .hero { grid-template-columns: 1.2fr 1fr; padding: 40px; align-items: center; } }
.hero .eyebrow { color: var(--green); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.hero h1 { margin: 6px 0 10px; }
.hero p { color: var(--muted); max-width: 46ch; }
.hero-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-pics img { background: var(--card); border-radius: 14px; aspect-ratio: 1; object-fit: contain; padding: 6px; }
.hero-pics img:nth-child(2) { transform: translateY(-10px); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 4px; font-size: 0.85rem; color: var(--muted); }
.trust span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: 2px; }

/* ---------- sections & chips ---------- */
.section { margin-top: 32px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 640px) { .cats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 980px) { .cats { grid-template-columns: repeat(6, 1fr); } }
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 6px 12px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-align: center;
}
.cat:hover { border-color: var(--green-line); text-decoration: none; }
.cat img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--card); border-radius: 10px; padding: 4px; }
.cat b { font-weight: 500; font-size: 0.9rem; line-height: 1.2; }
.cat small { color: var(--faint); font-size: 0.75rem; margin-top: -6px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--muted); cursor: pointer; font-size: 0.9rem; white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--green-line); }
.chip.on { background: var(--green); color: var(--on-green); border-color: var(--green); font-weight: 600; }

.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
@media (min-width: 640px) { .hscroll { grid-auto-columns: 30%; } }
@media (min-width: 980px) { .hscroll { grid-auto-columns: 18.5%; } }

/* ---------- product grid ---------- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .products { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 1150px) { .products { grid-template-columns: repeat(5, 1fr); } }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pcard:hover { border-color: var(--line-strong); }
.pcard .pic { position: relative; display: block; background: var(--card); aspect-ratio: 1; }
.pcard .pic img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pcard .tag { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(9, 10, 8, 0.85); color: var(--green); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; }
.pcard .tag.out { color: var(--danger); }
.pcard .tag.low { color: var(--warn); }
.pcard .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .name { color: var(--text); font-weight: 500; line-height: 1.3; font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pcard .name:hover { text-decoration: none; color: var(--green); }
.pcard .meta { color: var(--faint); font-size: 0.78rem; }
.pcard .price { font-weight: 700; font-size: 1.05rem; margin-top: auto; padding-top: 4px; }
.pcard .price small { font-weight: 400; color: var(--faint); font-size: 0.75rem; }
.pcard .lock { margin-top: auto; padding-top: 4px; font-size: 0.85rem; }
.pcard .add { margin-top: 8px; }

/* ---------- stepper ---------- */
.stepper { display: inline-grid; grid-template-columns: 40px minmax(48px, 1fr) 40px; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; height: 40px; width: 100%; }
.stepper button { background: var(--surface-2); border: 0; cursor: pointer; font-size: 1.2rem; color: var(--text); }
.stepper button:hover { color: var(--green); }
.stepper input { width: 100%; border: 0; background: transparent; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.big { height: 48px; grid-template-columns: 48px minmax(60px, 1fr) 48px; max-width: 200px; }

/* ---------- product page ---------- */
.pdp { display: grid; gap: 20px; }
@media (min-width: 860px) { .pdp { grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; } }
.pdp .gallery { background: var(--card); border-radius: 18px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pdp .gallery img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs button { width: 64px; height: 64px; padding: 0; border-radius: 10px; border: 2px solid transparent; background: var(--card); cursor: pointer; overflow: hidden; }
.thumbs button.on { border-color: var(--green); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp .price-big { font-size: 1.8rem; font-weight: 700; }
.pdp .price-big small { font-size: 0.9rem; color: var(--muted); font-weight: 400; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.spec small { display: block; color: var(--faint); font-size: 0.75rem; }
.spec b { font-weight: 500; }
.crumbs { font-size: 0.85rem; color: var(--faint); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }

/* ---------- cart ---------- */
.line { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .thumb { width: 72px; height: 72px; background: var(--card); border-radius: 10px; object-fit: contain; padding: 4px; }
.line .info { display: grid; gap: 6px; }
.line .top { display: flex; justify-content: space-between; gap: 10px; }
.line .nm { font-weight: 500; line-height: 1.3; color: var(--text); }
.line .controls { display: flex; align-items: center; gap: 12px; }
.line .controls .stepper { width: 140px; height: 36px; grid-template-columns: 36px 1fr 36px; }
.totals { display: grid; gap: 8px; }
.totals > div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 1.2rem; font-weight: 700; padding-top: 8px; border-top: 1px solid var(--line); }
.minbar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: 8px 0 6px; }
.minbar i { display: block; height: 100%; background: var(--green); border-radius: 4px; transition: width 0.3s ease; }
.sticky-cta { position: static; }
@media (min-width: 900px) { .sticky-cta { position: sticky; top: calc(var(--header-h) + 16px); } }

/* ---------- options (radio cards) ---------- */
.options { display: grid; gap: 10px; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1px solid var(--line-strong); cursor: pointer; background: var(--surface); }
.option input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.option:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.option b { display: block; font-weight: 600; }
.option span { color: var(--muted); font-size: 0.9rem; }

/* ---------- status ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; border: 1px solid; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-new { color: var(--info); border-color: rgba(108, 196, 255, 0.4); }
.st-confirmed { color: var(--gold); border-color: rgba(216, 178, 90, 0.45); }
.st-packed { color: #c79bff; border-color: rgba(199, 155, 255, 0.4); }
.st-dispatched, .st-delivered, .pay-paid { color: var(--green); border-color: var(--green-line); }
.st-cancelled { color: var(--danger); border-color: rgba(255, 106, 87, 0.45); }
.pay-unpaid { color: var(--muted); border-color: var(--line-strong); }
.pay-submitted { color: var(--warn); border-color: rgba(255, 181, 71, 0.45); }
.pay-partly { color: var(--gold); border-color: rgba(216, 178, 90, 0.45); }

.track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 6px 0 4px; }
.track div { text-align: center; font-size: 0.72rem; color: var(--faint); }
.track div::before { content: ''; display: block; height: 4px; border-radius: 2px; background: var(--surface-2); margin-bottom: 6px; }
.track div.done { color: var(--text); }
.track div.done::before { background: var(--green); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.timeline li::after { content: ''; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line-strong); }
.timeline li:last-child::after { display: none; }
.timeline small { display: block; color: var(--faint); }

.olist { display: grid; gap: 10px; }
.ocard { display: grid; gap: 6px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.ocard:hover { border-color: var(--green-line); text-decoration: none; }

/* ---------- QR / pay ---------- */
.qr { background: #fff; border-radius: 16px; padding: 14px; width: 240px; max-width: 100%; margin: 0 auto; }
.qr img, .qr canvas, .qr svg { width: 100%; height: auto; display: block; }
.upi-id { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; margin: 12px 0; }
.drop { display: grid; place-items: center; gap: 6px; padding: 20px; border: 1.5px dashed var(--line-strong); border-radius: 14px; text-align: center; cursor: pointer; color: var(--muted); }
.drop:hover { border-color: var(--green-line); }
.drop svg { width: 30px; height: 30px; color: var(--green); }
.drop img { max-height: 180px; border-radius: 10px; }

/* ---------- sheets / toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px); transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: all 0.2s ease; z-index: 100; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 900px) { .toast { bottom: 28px; } }
.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .sheet-bg { align-items: center; } }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 0 0; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; padding: 20px; }
@media (min-width: 700px) { .sheet { border-radius: 18px; } }

/* ---------- empty & misc ---------- */
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty svg { width: 48px; height: 48px; color: var(--faint); margin-bottom: 10px; }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 calc(var(--nav-h) + 28px); color: var(--muted); font-size: 0.875rem; }
@media (min-width: 900px) { .footer { padding-bottom: 28px; } }
.footer .cols { display: grid; gap: 18px; }
@media (min-width: 720px) { .footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.footer b { color: var(--text); font-weight: 500; display: block; margin-bottom: 6px; }
.install-bar { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--green-line); }
.install-bar img { width: 40px; height: 40px; border-radius: 10px; }
.seo { padding: 20px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

[hidden] { display: none !important; }
.num { font-family: var(--font-ui); font-weight: 600; letter-spacing: 0.01em; }
