/* Storefront — Shopify Dawn-inspired: airy, type-led, hairline borders. */
:root {
  --ink: #121212;
  --body: #4a4a4a;
  --muted: #8a8a8a;
  --line: rgba(18, 18, 18, 0.1);
  --bg: #ffffff;
  --soft: #f6f6f6;
  --radius: 10px;
  --ok-bg: #e6f4ea;       --ok-ink: #1e6b3a;
  --warn-bg: #fdf3e0;     --warn-ink: #8a5b00;
  --info-bg: #e9f0fd;     --info-ink: #1f4fa3;
  --bad-bg: #fdeaea;      --bad-ink: #a32020;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Chrome ---------- */
.announcement {
  background: var(--ink); color: #fff;
  font-size: 12px; letter-spacing: 0.04em;
  text-align: center; padding: 7px 16px;
}
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.wordmark {
  font-size: 19px; font-weight: 650; letter-spacing: 0.02em;
  text-decoration: none; color: var(--ink);
}
.cart-button {
  position: relative; display: inline-flex; padding: 4px;
  color: var(--ink); text-decoration: none;
}
.cart-badge {
  position: absolute; top: -4px; right: -7px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 17px;
  text-align: center; border-radius: 999px;
}
.cart-badge:empty { display: none; }

.page { max-width: 1080px; margin: 0 auto; padding: 28px 20px 64px; }

.footer { border-top: 1px solid var(--line); margin-top: 24px; }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 28px 20px;
  display: flex; flex-direction: column; gap: 2px;
}
.footer-brand { font-weight: 650; font-size: 14px; }
.footer-note { color: var(--muted); font-size: 12.5px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 6px;
}
.page-title { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 18px; }
.section-title { font-size: 16px; font-weight: 650; margin: 28px 0 10px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.field-label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; margin: 16px 0 6px; }
.field-hint { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.per-unit { font-size: 0.82em; color: var(--muted); font-weight: 400; }

/* ---------- Collection ---------- */
.collection-head { margin-bottom: 16px; }
.collection-title { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.collection-count { color: var(--muted); font-size: 13px; margin: 4px 0 0; }

.filter-bar {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 0 14px; scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-pill {
  white-space: nowrap; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg);
  font-size: 13.5px; text-decoration: none; color: var(--body);
  transition: border-color 0.15s;
}
.filter-pill:hover { border-color: var(--ink); }
.filter-pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.product-grid {
  display: grid; gap: 20px 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 28px 20px; } }

.product-card { text-decoration: none; }
.card-media {
  border-radius: var(--radius); overflow: hidden;
  background: var(--soft); aspect-ratio: 1;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.product-card:hover .card-media img { transform: scale(1.045); }
.card-placeholder {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center;
}
.card-placeholder.tall { aspect-ratio: 4 / 3; }
.card-info { padding: 10px 2px 0; }
.card-title {
  margin: 0; font-size: 14px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-price { margin: 3px 0 0; font-size: 14px; font-weight: 600; }

.empty-collection { text-align: center; padding: 70px 20px; color: var(--body); }
.empty-collection p { margin: 0 0 8px; }

/* ---------- Product page ---------- */
.breadcrumb {
  display: flex; gap: 8px; font-size: 12.5px; color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

.product-layout { display: grid; gap: 28px; }
@media (min-width: 820px) {
  .product-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
}

.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.gallery-main img { width: 100%; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumb {
  width: 64px; height: 64px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0; overflow: hidden; background: var(--soft); cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--ink); }
.video-thumb { position: relative; }
.play-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
  background: rgba(0, 0, 0, 0.35); border-radius: 7px;
  pointer-events: none;
}
#video-embed {
  width: 100%; aspect-ratio: 16 / 9; border: 0;
  border-radius: var(--radius); display: block;
}

.product-title { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.product-price { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.stock-note { color: var(--warn-ink); font-size: 13px; margin: 6px 0 0; }

.meter-block { margin: 22px 0 6px; }
.meter-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--ink); border-radius: 999px;
}
.stepper-btn {
  width: 42px; height: 44px; border: none; background: none;
  font-size: 19px; cursor: pointer; color: var(--ink);
}
.stepper-btn:disabled { color: #c5c5c5; cursor: default; }
.stepper-value { min-width: 64px; text-align: center; font-weight: 600; font-size: 15px; }
.meter-total { text-align: right; display: flex; flex-direction: column; line-height: 1.3; }
.meter-total .muted { font-size: 12px; }
.meter-total strong { font-size: 17px; }

.btn-primary {
  display: block; width: 100%; margin-top: 18px;
  background: var(--ink); color: #fff;
  border: 1px solid var(--ink); border-radius: var(--radius);
  padding: 14px 18px; font-size: 14.5px; font-weight: 600;
  letter-spacing: 0.04em; cursor: pointer; text-align: center;
  text-decoration: none; transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.88; }
.btn-primary:disabled { opacity: 0.4; cursor: default; }
.btn-secondary {
  display: block; width: 100%; margin-top: 10px;
  background: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: center; text-decoration: none;
  transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-secondary.inline { display: inline-block; width: auto; margin: 0; padding: 11px 20px; }

.product-desc { margin-top: 28px; border-top: 1px solid var(--line); }
.desc-body { color: var(--body); font-size: 14px; }

.swatch-block { margin-top: 18px; }
.variant-name { font-weight: 650; color: var(--ink); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  min-width: 38px; height: 38px; padding: 0 6px;
  border: 2px solid var(--line); border-radius: 999px;
  background: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, transform 0.1s;
}
.swatch:hover { border-color: var(--muted); }
.swatch.active { border-color: var(--ink); transform: scale(1.06); }
.swatch-dot {
  width: 26px; height: 26px; border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.swatch-text { font-size: 12.5px; font-weight: 600; padding: 0 6px; }

.option-block { margin-top: 18px; }
.option-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; margin-bottom: 6px;
  border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: border-color 0.15s;
}
.option-row:hover { border-color: var(--ink); }
.option-row:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.option-row input { width: auto; accent-color: var(--ink); margin: 0; }
.option-name { flex: 1; font-size: 14px; }
.option-price { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.cart-line.sub-extras { margin: -4px 0 6px; padding-left: 86px; }
.extras-list { font-size: 12.5px; color: var(--muted); margin: 0; }
.order-line.sub .line-title { font-weight: 400; font-size: 13px; color: var(--body); }

/* ---------- Cart ---------- */
.cart-lines { display: flex; flex-direction: column; }
.cart-line {
  display: flex; gap: 14px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cart-thumb {
  width: 72px; height: 72px; flex: 0 0 auto;
  border-radius: 8px; background: var(--soft); overflow: hidden;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-title {
  margin: 0; font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cart-line-sub { margin: 2px 0 8px; font-size: 12.5px; color: var(--muted); }
.cart-line .stepper { transform: scale(0.88); transform-origin: left center; }
.cart-line-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-line-amount { font-weight: 600; font-size: 14.5px; }
.remove-btn {
  border: none; background: none; color: var(--muted);
  font-size: 12.5px; text-decoration: underline; cursor: pointer; padding: 0;
}
.remove-btn:hover { color: var(--bad-ink); }

.summary-card {
  margin-top: 18px; padding: 16px 18px;
  background: var(--soft); border-radius: var(--radius);
}
.summary-row { display: flex; justify-content: space-between; font-size: 16px; }
.summary-row strong { font-size: 17px; }

.checkout-card {
  margin-top: 16px; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.checkout-card .section-title { margin-top: 0; }
/* ---------- Identity steps (checkout) ---------- */
.urdu {
  font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq",
    "Urdu Typesetting", serif;
  direction: rtl; unicode-bidi: isolate;
  line-height: 1.9;
}
.title-urdu { font-size: 15px; font-weight: 400; color: var(--body); margin-right: 6px; }
.field-hint .urdu, .step-labels .urdu { color: var(--muted); }

.step { margin-top: 18px; }
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.step-badge {
  width: 30px; height: 30px; flex: 0 0 auto;
  background: var(--ink); color: #fff;
  border-radius: 999px; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 14px;
}
.step-labels { display: flex; flex-direction: column; }
.step-en { font-size: 14.5px; font-weight: 650; }
.step-labels .urdu { font-size: 14px; }

.big-input {
  font-size: 20px; padding: 14px 16px; font-weight: 600;
  letter-spacing: 0.04em;
}
.digits-big {
  max-width: 200px; text-align: center; font-size: 24px;
  letter-spacing: 0.35em;
}
.digit-hint { color: var(--ink); background: #fdf3e0; padding: 0 3px; border-radius: 4px; }

.identity-status {
  margin-top: 16px; padding: 14px 16px;
  border-radius: var(--radius); font-size: 14.5px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.identity-status.checking { background: var(--soft); color: var(--body); }
.identity-status.ok { background: var(--ok-bg); color: var(--ok-ink); }
.identity-status.bad { background: var(--bad-bg); color: var(--bad-ink); }
.status-tick {
  width: 30px; height: 30px; flex: 0 0 auto;
  background: var(--ok-ink); color: #fff; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.status-name { font-size: 18px; font-weight: 700; }
.status-line { width: 100%; font-size: 13px; }
.spinner {
  width: 16px; height: 16px; flex: 0 0 auto;
  border: 2px solid var(--line); border-top-color: var(--ink);
  border-radius: 999px; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.new-customer-note {
  margin-top: 20px; padding: 14px 16px;
  background: var(--soft); border-radius: var(--radius);
}
.new-customer-note .note-en { margin: 0; font-size: 13.5px; font-weight: 650; }
.new-customer-note .note-urdu {
  margin: 4px 0 10px; font-size: 14.5px; color: var(--body);
}
.new-customer-note .whatsapp-help { margin-top: 0; background: #fff; }

.whatsapp-help[hidden] { display: none; }
.whatsapp-help {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 10px 14px;
  border: 1px solid #16a34a44; border-radius: var(--radius);
  color: #128c4b; font-size: 13.5px; font-weight: 600;
  text-decoration: none; background: #f0fdf4;
}
.btn-order { font-size: 16px; padding: 16px 18px; }
.btn-urdu { color: #fff; font-size: 14px; margin-right: 6px; }
.serial-result { font-size: 13.5px; font-weight: 600; margin: 8px 0 0; min-height: 1.2em; }
.serial-result.ok { color: var(--ok-ink); }
.serial-result.bad { color: var(--bad-ink); font-weight: 400; }

input, textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 15px; font-family: inherit; background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus { outline: none; border-color: var(--ink); }

/* ---------- Order status ---------- */
.order-head { margin-bottom: 18px; }
.order-head .page-title { margin-bottom: 0; }

.progress {
  list-style: none; display: flex; gap: 4px;
  padding: 0; margin: 0 0 18px; counter-reset: step;
}
.progress li {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--muted); text-align: center;
  position: relative;
}
.progress li:not(:last-child)::after {
  content: ""; position: absolute; top: 13px; left: calc(50% + 18px);
  width: calc(100% - 36px); height: 1px; background: var(--line);
}
.progress .dot {
  width: 26px; height: 26px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.progress li.active { color: var(--ink); font-weight: 600; }
.progress li.active .dot { background: var(--ink); border-color: var(--ink); color: #fff; }

.status-banner {
  padding: 13px 16px; border-radius: var(--radius);
  font-size: 13.5px; margin-bottom: 20px;
}
.status-banner.placed { background: var(--warn-bg); color: var(--warn-ink); }
.status-banner.payment_uploaded { background: var(--info-bg); color: var(--info-ink); }
.status-banner.confirmed, .status-banner.converted { background: var(--ok-bg); color: var(--ok-ink); }
.status-banner.rejected { background: var(--bad-bg); color: var(--bad-ink); }

.order-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px; }
.order-line {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.order-card .order-line:last-child { border-bottom: none; }
.line-title { margin: 0; font-size: 14px; font-weight: 600; }
.line-sub { margin: 1px 0 0; font-size: 12.5px; color: var(--muted); }
.line-amount { font-weight: 600; font-size: 14px; white-space: nowrap; }
.order-line.total { font-weight: 700; font-size: 15px; }
.order-line.total .line-amount { font-size: 16px; }

.bank-list { display: grid; gap: 10px; }
@media (min-width: 700px) { .bank-list { grid-template-columns: 1fr 1fr; } }
.bank-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
}
.bank-name { margin: 0; font-weight: 650; font-size: 14px; }
.bank-title { margin: 1px 0 10px; font-size: 13px; color: var(--body); }
.copy-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; min-width: 0; }
.copy-label { font-size: 11px; color: var(--muted); width: 52px; flex: 0 0 auto; }
.copy-row code {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  font-size: 12.5px; background: var(--soft); padding: 4px 8px; border-radius: 6px;
}
.copy-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; padding: 4px 10px; cursor: pointer;
}
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.copied { background: var(--ok-bg); border-color: var(--ok-bg); color: var(--ok-ink); }

.whatsapp-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px; font-size: 14px; font-weight: 600;
  color: #128c4b; text-decoration: none;
}
.whatsapp-link:hover { text-decoration: underline; }
