/* LabhoFy Online Store — mobile-first, no framework. */
:root {
  --purple: #6d28d9;
  --purple-dark: #4c1d95;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --danger: #dc2626;
  --green: #16a34a;
}
* { box-sizing: border-box; }
body {
  margin: 0; padding: 0;
  font-family: -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text);
  padding-bottom: 24px;
}
a { color: var(--purple); text-decoration: none; }
img { max-width: 100%; display: block; }

.ls-header {
  background: var(--purple); color: #fff;
  padding: 16px; display: flex; align-items: center; gap: 12px;
}
.ls-header img.logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #fff; }
.ls-header .name { font-size: 18px; font-weight: 800; }
.ls-header .area { font-size: 13px; opacity: 0.85; }
.ls-wa-btn {
  margin-left: auto; background: #22c55e; color: #fff; font-weight: 700;
  padding: 8px 12px; border-radius: 999px; font-size: 13px; white-space: nowrap;
}

.ls-search { padding: 12px 16px 0; }
.ls-search input {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--border);
  font-size: 14px;
}

.ls-chips { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; }
.ls-chip {
  flex: none; padding: 6px 14px; border-radius: 999px; background: #fff;
  border: 1.5px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text);
}
.ls-chip.active { background: var(--purple); color: #fff; border-color: var(--purple); }

.ls-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px 16px;
}
@media (min-width: 560px) { .ls-grid { grid-template-columns: 1fr 1fr 1fr; } }

.ls-card {
  background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  position: relative;
}
.ls-card .thumb { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f1f5f9; }
.ls-card .thumb.placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.ls-card .body { padding: 10px; }
.ls-card .name { font-size: 13px; font-weight: 700; line-height: 1.3; margin-bottom: 2px; }
.ls-card .pack { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.ls-badge-oos {
  position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.7); color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
}
.ls-card.oos .thumb { opacity: 0.5; }

.ls-price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.ls-mrp-strike { font-size: 11px; color: var(--muted); text-decoration: line-through; }
.ls-price { font-size: 15px; font-weight: 800; color: var(--text); }
.ls-discount { font-size: 10px; font-weight: 700; color: var(--green); }

.ls-section { padding: 16px; }
.ls-section h2 { font-size: 15px; margin: 0 0 8px; }

.ls-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.ls-gallery img { flex: none; width: 100%; scroll-snap-align: start; aspect-ratio: 1; object-fit: cover; }
.ls-gallery.empty { aspect-ratio: 1; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: var(--muted); }

.ls-btn {
  display: inline-block; width: 100%; text-align: center; padding: 13px; border-radius: 999px;
  background: var(--purple); color: #fff; font-weight: 700; font-size: 15px; border: none;
}
.ls-btn:disabled { background: #cbd5e1; color: #64748b; }
.ls-btn.secondary { background: #fff; color: var(--purple); border: 2px solid var(--purple); }

.ls-stepper { display: flex; align-items: center; gap: 10px; }
.ls-stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--border); background: #fff; font-size: 16px; }
.ls-stepper .qty { font-weight: 700; min-width: 20px; text-align: center; }

.ls-cart-line { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: center; }
.ls-cart-line img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: #f1f5f9; }
.ls-cart-line .info { flex: 1; }
.ls-cart-line .name { font-size: 13px; font-weight: 700; }
.ls-cart-line .price { font-size: 12px; color: var(--muted); }
.ls-cart-line .remove { color: var(--danger); font-size: 12px; font-weight: 700; }

.ls-total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 16px; padding: 14px 0; border-top: 2px solid var(--text); }

.ls-field { margin-bottom: 12px; }
.ls-field label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.ls-field input, .ls-field textarea {
  width: 100%; padding: 11px; border-radius: 10px; border: 1.5px solid var(--border); font-size: 14px;
}
.ls-radio-row { display: flex; gap: 12px; }
.ls-radio-row label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }

.ls-notice { text-align: center; padding: 60px 20px; color: var(--muted); }
.ls-notice h1 { font-size: 18px; color: var(--text); }

.ls-footer { text-align: center; font-size: 12px; color: var(--muted); padding: 20px; }

.ls-alert { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 12px 16px 0; }
.ls-status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.ls-status.new { background: #fef3c7; color: #92400e; }
.ls-status.accepted { background: #dcfce7; color: #166534; }
.ls-status.rejected { background: #fee2e2; color: #991b1b; }
.ls-status.packed, .ls-status.shipped { background: #dbeafe; color: #1e40af; }
.ls-status.delivered { background: #dcfce7; color: #166534; }
.ls-sum-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 6px 0; }
.ls-steps { list-style: none; margin: 14px 0; padding: 0 0 0 4px; }
.ls-steps li { position: relative; padding: 0 0 12px 24px; font-size: 13px; color: var(--muted); }
.ls-steps li::before { content: ""; position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #cbd5e1; background: #fff; }
.ls-steps li.done { color: var(--text); }
.ls-steps li.done::before { background: #16a34a; border-color: #16a34a; }
.ls-steps li.current { color: var(--text); font-weight: 800; }
.ls-steps li.current::before { border-color: #16a34a; background: #bbf7d0; }
.ls-allorders { margin: 12px 0; }
.ls-allorders summary {
  list-style: none; cursor: pointer; text-align: center; font-weight: 700; font-size: 14px;
  padding: 11px 14px; border-radius: 999px; border: 2px solid var(--purple); color: var(--purple); background: #fff;
}
.ls-allorders summary::-webkit-details-marker { display: none; }
.ls-orderrow {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 4px; border-bottom: 1px solid #e2e8f0; color: var(--text); font-size: 14px;
}
.ls-orderrow small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ls-orderrow .right { text-align: right; }
.ls-orderrow.current { background: #f5f3ff; }
.ls-track-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 10px 12px; font-size: 13px; }

.ls-cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; background: rgba(255,255,255,0.18); color: #fff;
  margin-left: 8px; flex: none;
}
.ls-header > a:first-child + .ls-cart-btn, .ls-header > div + .ls-cart-btn { margin-left: auto; }
.ls-orders-btn {
  margin-left: 8px; flex: none; background: rgba(255,255,255,0.18); color: #fff;
  font-weight: 700; font-size: 13px; padding: 9px 13px; border-radius: 999px; white-space: nowrap;
}
/* With no WhatsApp button before it, Orders is the one that pushes right. */
.ls-header > a:first-child + .ls-orders-btn, .ls-header > div + .ls-orders-btn { margin-left: auto; }
.ls-cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800;
  line-height: 18px; text-align: center;
}
.ls-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 12px 16px 0; }
