/* ===================================================================
   Arsalan & Brothers — Storefront (premium)
   Pure CSS, no libraries. Full-width layout with slim side padding.
   =================================================================== */
:root {
  /* Palette follows the ACTIVE theme: themes/<slug>/assets/theme.css loads after
     this file and defines the --hx* tokens on :root, so checkout, the cart drawer,
     the thank-you page and toasts recolor automatically when a theme is published.
     The var names are historical (--green now holds the theme BRAND color, --red
     the theme CTA color); fallbacks are the HX theme values. */
  --green: var(--hxvio, #5b2eea);
  --green-2: var(--hxvio-2, #8b5cf6);
  --green-dark: var(--hxink, #241a3d);
  --green-soft: var(--hxvio-soft, #efe9ff);
  --red: var(--hxor, #ff5c1f);
  --red-2: var(--hxor-2, #e94b10);
  --amber: var(--hxamber, #ffb31a);
  --err: #d92d20;                           /* form validation only — never themed */
  --ink: var(--hxink, #241a3d);
  --muted: var(--hxmut, #6f6590);
  --line: var(--hxvio-line, #e7dff7);
  --bg: var(--hxb, #fbf9f4);
  --card: var(--hxcard, #ffffff);
  --radius: var(--hxr, 18px);
  --radius-sm: var(--hxr-sm, 12px);
  --pad: clamp(16px, 3.5vw, 56px);          /* page side padding */
  --shadow-sm: var(--hxsh, 0 1px 3px rgba(36, 26, 61, .06), 0 4px 14px rgba(36, 26, 61, .05));
  --shadow-md: var(--hxsh-lg, 0 4px 10px rgba(36, 26, 61, .07), 0 14px 34px rgba(36, 26, 61, .09));
  --shadow-btn: var(--hxsh-or, 0 8px 22px rgba(233, 75, 16, .32));
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 15px; overflow-x: hidden; }

/* Urdu mode — Nastaliq needs generous line-height and no Latin-style effects */
body.lang-ur { font-family: "Noto Nastaliq Urdu", var(--font); line-height: 2.1; }

body.lang-ur h1, body.lang-ur h2, body.lang-ur h3, body.lang-ur .hx-sec-head h2 { line-height: 1.9; letter-spacing: 0; text-transform: none; }

body.lang-ur .hx-hero-copy h1 { font-size: clamp(26px, 4.2vw, 46px); line-height: 2; letter-spacing: 0; }

/* marker/gradient highlights clip Nastaliq descenders — plain accent color instead */
body.lang-ur .hx-hero-copy h1 em { background: none; padding: 0; color: var(--red); }

body.lang-ur .hx-btn, body.lang-ur .btn { letter-spacing: 0; text-transform: none; line-height: 1.8; }

body.lang-ur .hx-eyebrow, body.lang-ur .hx-buy-label, body.lang-ur .hx-announce-track span { letter-spacing: 0; text-transform: none; }

body.lang-ur .hx-price-now { background: none; -webkit-text-fill-color: currentColor; padding: 0; }

.hx-lang {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px;
  padding: 0 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card);
  color: var(--ink); font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap;
}

.hx-lang:hover { border-color: var(--green); color: var(--green); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: 0; background: none; }

::selection { background: var(--green); color: #fff; }

/* Full-width container, slim side padding */
.wrap { width: 100%; max-width: 1200px; padding-left: var(--pad); padding-right: var(--pad); margin: 0 auto; }

.logo { font-weight: 900; font-size: clamp(16px, 2.4vw, 20px); color: var(--green); letter-spacing: 1px; }

.logo span { color: var(--red); }

.logo img { height: 44px; max-width: 210px; object-fit: contain; display: block; }

.cart-count {
  position: absolute; top: 2px; right: 2px; background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
  box-shadow: 0 2px 6px rgba(224, 49, 47, .4);
}

.hero .off { color: var(--amber); }

/* Countdown */
/* No justify-content here — the theme decides (hero = left, offer band = center). */
.countdown { display: flex; flex-wrap: wrap; gap: clamp(8px, 1.4vw, 14px); margin-top: 26px; }

.countdown .cell {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px); border-radius: 14px; min-width: clamp(64px, 8vw, 86px); padding: 10px 8px;
}

.countdown .num { font-size: clamp(22px, 3.4vw, 32px); font-weight: 900; font-variant-numeric: tabular-nums; }

.countdown .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.6px; opacity: .78; margin-top: 2px; }

.badge {
  display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
  color: var(--green-dark); background: var(--green-soft);
  border: 1px solid #d8e9e0; border-radius: 999px; padding: 8px 16px;
}

/* ---------- Product grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(16px, 2vw, 26px); justify-items: center; }

.card {
  width: 100%; max-width: 380px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}

.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.card .img { aspect-ratio: 1; background: var(--green-soft); position: relative; overflow: hidden; display: block; }

.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }

.card:hover .img img { transform: scale(1.05); }

.card .body { padding: clamp(16px, 1.8vw, 22px); display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card h3 { font-size: 17.5px; font-weight: 800; line-height: 1.3; letter-spacing: -.2px; }

.card .sub { font-size: 13px; color: var(--muted); }

.price { font-size: 23px; font-weight: 900; color: var(--red); letter-spacing: -.4px; }

.compare { font-size: 14px; color: var(--muted); text-decoration: line-through; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red);
  color: #fff; font-weight: 800; font-size: 15.5px; border-radius: 13px;
  padding: 15px 22px; text-align: center; letter-spacing: .2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }

.btn:active { transform: translateY(0); }

.btn svg { width: 20px; height: 20px; flex: none; }

.btn.green { background: var(--green); box-shadow: 0 2px 8px rgba(0, 0, 0, .16); }

.btn.block { width: 100%; }

.btn.ghost { background: #fff; color: var(--green); border: 2px solid var(--green); box-shadow: none; }

.btn.ghost:hover { background: var(--green-soft); }

.btn:disabled { opacity: .65; transform: none; cursor: wait; }

.bundle > * { min-width: 0; }

.pdp .gallery {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--green-soft); position: relative; box-shadow: var(--shadow-sm);
}

.gthumb.on, .gthumb:hover { border-color: var(--green); }

/* Bundle selector */
.bundles { display: flex; flex-direction: column; gap: 11px; margin-top: 20px; }

.bundle {
  position: relative; display: flex; align-items: center; gap: 13px;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius-sm);
  padding: 15px 16px; cursor: pointer; transition: border-color .16s, background .16s, box-shadow .16s;
}

.bundle:hover { border-color: var(--green-2); }

.bundle.selected { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 4px var(--green-soft); }

.bundle input { accent-color: var(--green); width: 20px; height: 20px; flex: none; }

.bundle .b-qty { font-weight: 900; font-size: 16.5px; }

.bundle .b-save { font-size: 12.5px; color: var(--green-2); font-weight: 800; }

.bundle .b-price { margin-left: auto; text-align: right; }

.bundle .b-price .p { font-weight: 900; font-size: 19px; color: var(--red); }

.bundle .b-price .c { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }

.bundle .b-label {
  position: absolute; top: -11px; right: 14px;
  background: var(--green); color: #fff;
  font-size: 11px; font-weight: 900; padding: 3px 12px; border-radius: 999px;
  letter-spacing: .4px; box-shadow: 0 3px 8px rgba(11, 92, 62, .3);
}

.step .n {
  width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 14px;
  background: var(--green); color: #fff;
  font-weight: 900; font-size: 19px; display: flex; align-items: center; justify-content: center;
  
}

.review .name { font-weight: 800; font-size: 14px; }

.review .meta { font-size: 12px; color: var(--muted); }

/* ---------- Cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(22, 15, 42, .52); opacity: 0; pointer-events: none; transition: opacity .22s; z-index: 90; backdrop-filter: blur(2px); }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 94vw); background: #fff; z-index: 100;
  transform: translateX(105%); transition: transform .28s cubic-bezier(.32, .72, .34, 1);
  display: flex; flex-direction: column;
  border-radius: 20px 0 0 20px;
}

body.cart-open .overlay { opacity: 1; pointer-events: auto; }

/* Shadow only while open — closed, it bled into the viewport right edge */
body.cart-open .drawer { transform: none; box-shadow: -18px 0 50px rgba(22, 15, 42, .18); }

.drawer .d-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }

.drawer .d-head h3 { font-size: 18px; font-weight: 900; letter-spacing: -.2px; display: flex; align-items: center; gap: 9px; }

.d-count {
  display: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px;
  background: var(--green); color: #fff; font-size: 12px; font-weight: 800;
  align-items: center; justify-content: center;
}

.d-count.on { display: inline-flex; }

.d-close {
  width: 36px; height: 36px; display: grid; place-items: center; font-size: 22px; line-height: 1;
  color: var(--muted); border: 1px solid var(--line); border-radius: 50%; background: #fff;
  transition: color .15s, border-color .15s, transform .15s;
}

.d-close:hover { color: var(--ink); border-color: var(--muted); transform: rotate(90deg); }

.d-perks {
  display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
  background: var(--green-soft); color: var(--green-dark);
  font-size: 11.5px; font-weight: 750; padding: 8px 14px; text-align: center;
  border-bottom: 1px solid var(--line);
}

.d-items { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }

/* Empty state sits vertically centered in the drawer */
.d-items:has(.d-empty) { justify-content: center; }

.d-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--muted); padding: 42px 16px; font-size: 14px; }

.d-empty .de-ic {
  width: 64px; height: 64px; display: grid; place-items: center; font-size: 28px;
  background: var(--green-soft); border-radius: 50%; margin-bottom: 6px;
}

.d-empty b { color: var(--ink); font-size: 16px; font-weight: 900; }

.d-empty .btn { margin-top: 14px; padding: 12px 22px; font-size: 14px; }

.d-item {
  display: flex; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px; background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.d-item > div { min-width: 0; flex: 1; }

.d-item img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--green-soft); border: 1px solid var(--line); }

.d-item .di-name { font-size: 13.5px; font-weight: 800; line-height: 1.35; }

.li-pack { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-top: 2px; }

.d-item .di-price { font-size: 15px; font-weight: 900; color: var(--red); margin-top: 3px; }

.di-price s { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 5px; }

.qty-ctl { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; margin-top: 8px; overflow: hidden; background: #fff; }

.qty-ctl button { width: 32px; height: 30px; font-weight: 800; font-size: 15px; color: var(--green); transition: background .12s; }

.qty-ctl button:hover { background: var(--green-soft); }

.qty-ctl span { min-width: 30px; text-align: center; font-size: 13.5px; font-weight: 800; }

.di-remove {
  margin-left: auto; align-self: flex-start; flex: none; width: 28px; height: 28px;
  display: grid; place-items: center; color: var(--muted); font-size: 13px; border-radius: 50%;
  transition: background .12s, color .12s;
}

.di-remove:hover { background: #fdeaea; color: var(--err); }

.d-foot { border-top: 1px solid var(--line); padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 18px rgba(0, 0, 0, .04); }

.d-savings {
  display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: var(--green-dark);
  background: var(--green-soft); border: 1px dashed var(--green-2); border-radius: 10px; padding: 9px 12px; margin-bottom: 10px;
}

.d-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 900; font-size: 15px; margin-bottom: 12px; }

.d-total span:last-child { font-size: 21px; color: var(--ink); letter-spacing: -.3px; }

.d-foot .btn { border-radius: 14px; padding: 16px 22px; font-size: 16px; }

.d-note { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; font-weight: 650; }

/* ---------- Shared checkout / thank-you header (co-header.php) ---------- */
.cx-head { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }

.cx-head-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }

.cx-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; font-size: 16px; color: var(--ink); min-width: 0; }

.cx-logo img { height: 38px; max-width: 180px; object-fit: contain; display: block; }

.cx-mark {
  width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--green); color: #fff; font-weight: 900; font-size: 16px;
}

.cx-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cx-secure {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800;
  color: var(--green-dark); background: var(--green-soft); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 99px; white-space: nowrap;
}

/* trust strip under the header — CRO reassurance on every checkout/thank-you view */
.cx-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  background: var(--green-dark, #0e5c3f); color: #fff;
  font-size: 12.5px; font-weight: 700; padding: 9px 14px;
}
.cx-trust span { white-space: nowrap; opacity: .96; }

@media (max-width: 600px) {
  .cx-secure span { display: none; }         /* keep just the lock icon on phones */
  .cx-secure { padding: 8px; }
  .cx-trust { gap: 6px 14px; font-size: 11.5px; padding: 8px 10px; }
}

.co-foot { border-top: 1px solid var(--line); padding: 18px 0 26px; margin-top: 10px; }

.co-foot-in { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--muted); }

.co-foot-in nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }

.co-foot a { color: var(--muted); font-weight: 650; }

.co-foot a:hover { color: var(--green); }

/* ---------- Checkout ---------- */
/* The funnel pages sit on a soft grey so the white panels lift off it. Set on
   <body> (both pages carry .co-page) — the theme header/footer keep their own bg. */
body.co-page { background: #eef2f7; }

/* padding-top/bottom only — a `padding:` shorthand would zero the .wrap side padding */
.checkout-page { padding-top: clamp(18px, 2.5vw, 34px); padding-bottom: 60px; }

.co-grid { display: grid; gap: 20px; }
@media (min-width: 920px) {
  .co-grid { grid-template-columns: 11fr 8fr; align-items: start; max-width: 1280px; margin: 0 auto; }

  .co-summary { position: sticky; top: 84px; }

  .co-form { order: -1; }

}
@media (max-width: 919px) { .co-summary { order: -1; }
 }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 28px); box-shadow: var(--shadow-sm); }

/* weight 400: the heading font is a display face — faux-bolding it (900) made it
   look smudged/outlined, so it renders at its natural weight */
.panel h2 { font-size: 18px; font-weight: 400; margin-bottom: 16px; letter-spacing: -.2px; }

.field { margin-bottom: 15px; }

.field label { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 6px; }

.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 15px; font: inherit; font-size: 16px; background: #fcfdfc;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--green); background: #fff;
  box-shadow: 0 0 0 4px var(--green-soft);
}

.field .err { color: var(--err); font-size: 12.5px; margin-top: 5px; display: none; font-weight: 600; }

.field.invalid input, .field.invalid textarea { border-color: var(--err); background: #fffafa; }

.field.invalid .err { display: block; }

/* Summary item — desktop keeps the classic row (image · title · price); on phones
   the image takes its own top row, then title (~70%) + price (right), so long COD
   product names stay readable instead of a tall sliver. */
.sum-item {
  display: grid; grid-template-columns: auto 1fr auto;
  grid-template-areas: "img name price" "img ctl price";
  align-items: start; gap: 5px 13px; padding: 10px 0; border-bottom: 1px solid var(--line);
}

@media (max-width: 600px) {
  .sum-item {
    grid-template-columns: 1fr auto;
    grid-template-areas: "img img" "name price" "ctl ctl";
    gap: 9px 12px; padding: 12px 0;
  }
}

.sum-item:last-of-type { border-bottom: 0; }

.si-img { grid-area: img; position: relative; width: 58px; height: 58px; flex: none; border-radius: 11px; border: 1px solid var(--line); background: var(--green-soft); }

.si-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

.si-img .si-plus { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 22px; font-weight: 900; color: var(--green); }

.si-qty {
  position: absolute; top: -7px; right: -7px; background: var(--green); color: #fff;
  font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

.si-name { grid-area: name; font-size: 13.5px; font-weight: 800; line-height: 1.3; flex: 1; }

.si-price { grid-area: price; text-align: right; font-size: 14.5px; font-weight: 900; white-space: nowrap; }

.si-price s { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }

/* Quantity stepper + Remove: one row under the name / pack breakdown
   (store.js .si-qty-ctl — shipped unstyled when the cart drawer's controls
   moved here, 29 Jul). */
.si-qty-ctl { grid-area: ctl; display: flex; align-items: center; gap: 14px; margin-top: 2px; }

.si-step {
  display: inline-flex; align-items: center; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--card); overflow: hidden;
}

.si-step b { min-width: 28px; text-align: center; font-size: 13.5px; font-weight: 800; }

.si-q {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--ink); font-size: 16px; font-weight: 700;
  line-height: 1; padding: 0; cursor: pointer; transition: background .15s, color .15s;
}

.si-q:hover { background: var(--green-soft); color: var(--green); }

.si-rm {
  border: 0; background: none; padding: 0; color: var(--muted); font-size: 11.5px;
  font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}

.si-rm:hover { color: var(--red); }

.sum-lines { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }

.sum-line { display: flex; justify-content: space-between; font-size: 14.5px; padding: 5px 0; }

.sum-line.disc b { color: var(--red); }

.sum-line small { color: var(--muted); font-weight: 600; }

.sum-line.total { font-weight: 900; font-size: 18px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }

.save-banner {
  background: var(--green-soft); border: 1.5px dashed var(--line); color: var(--green-dark);
  border-radius: var(--radius-sm); padding: 10px 13px; font-size: 13.5px; font-weight: 800;
  text-align: center; margin-top: 12px;
}

.cod-note {
  display: flex; gap: 11px; align-items: center; background: var(--green-soft);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px;
  font-size: 13.5px; font-weight: 700; color: var(--green-dark); margin: 16px 0;
}

/* City + Email side by side on desktop, stacked on phones */
.co-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .co-two { grid-template-columns: 1fr; } }
.field label .opt { color: var(--muted); font-weight: 600; }

/* Place Order uses the store's brand colour (theme match), not the red default */
.checkout-page #placeOrderBtn { background: var(--green); }
.checkout-page #placeOrderBtn:hover { filter: brightness(1.06); }

/* CRO: reassurance line right under the Place-Order button */
.cx-assure {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  margin-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--muted);
}
.cx-assure span { display: inline-flex; align-items: center; gap: 5px; }
.cx-assure svg { color: var(--green); }

/* The trust grid exists twice in the markup — exactly one shows per breakpoint:
   desktop = under the Order Summary, mobile = after the Delivery Details.
   Two-class selectors (0,2,0) so they beat the `.cx-why { display:grid }` base
   below (0,1,0) regardless of source order — otherwise BOTH copies rendered and
   the desktop copy (inside the order:-1 summary) landed above Delivery Details. */
@media (min-width: 920px) { .cx-why.cx-why-mob { display: none; } }
@media (max-width: 919px) { .cx-why.cx-why-desk { display: none; } }

/* CRO: trust grid — 2 columns of pill cards */
.cx-why {
  margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.cx-why-item {
  display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px;
}
.cx-why-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: var(--green-soft); }
.cx-why-item b { font-size: 13px; font-weight: 800; line-height: 1.3; }
@media (max-width: 520px) { .cx-why { grid-template-columns: 1fr; } }

/* ---------- Payment methods (COD + Bank Transfer) ---------- */
.pay-methods { margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }

.pay-opt {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 15px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.pay-opt:hover { border-color: var(--green-2); }
.pay-opt:has(input:checked) { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 3px var(--green-soft); }
.pay-opt input { width: 19px; height: 19px; flex: none; accent-color: var(--green); margin-top: 1px; }
.pay-title { display: block; font-size: 14.5px; font-weight: 800; }
.pay-sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 3px; }
.pay-tag {
  display: inline-block; font-style: normal; font-size: 11px; font-weight: 800;
  background: var(--green-soft); color: var(--green-dark); border-radius: 99px; padding: 3px 9px; margin-left: 5px;
}

/* "Save Extra Rs X" — red so the saving pops on the Bank Transfer option */
.pay-save {
  display: inline-block; font-style: normal; font-size: 11px; font-weight: 800;
  background: var(--red); color: #fff; border-radius: 99px; padding: 3px 10px; margin-left: 5px;
  white-space: nowrap;
}
.pay-save:empty { display: none; }

/* the account panel — only while Bank Transfer is picked */
.pay-bank { border: 1.5px dashed var(--green-2); border-radius: 14px; padding: 14px; background: var(--green-soft); }

/* one card per account (Meezan, Easypaisa…) */
.pay-acct-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 13px 8px; margin-bottom: 10px; }
.pay-acct-card:last-of-type { margin-bottom: 0; }
.pac-head { padding: 9px 0 5px; border-bottom: 1px solid var(--line); margin-bottom: 3px; }
.pac-name { font-size: 14px; font-weight: 900; color: var(--green-dark); }

.pay-bank-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.pay-bank-row:last-of-type { border-bottom: 0; }
.pbr-k { flex: 1; font-size: 13px; color: var(--muted); font-weight: 650; }
.pbr-v { font-size: 13.5px; font-weight: 800; text-align: right; word-break: break-all; }
.pbr-copy {
  flex: none; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer;
  color: var(--green); background: #fff; border: 1.5px solid var(--green-2);
  border-radius: 9px; padding: 7px 12px; transition: background .15s, color .15s;
}
.pbr-copy:hover { background: var(--green); color: #fff; border-color: var(--green); }
.pbr-copy.done { background: var(--green); color: #fff; border-color: var(--green); }
.pay-bank-note { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 10px; }

.hp { position: absolute; left: -9999px; opacity: 0; }

/* Add-ons */
.addons {
  border: 1.5px dashed var(--amber); border-radius: var(--radius-sm);
  background: #fffdf7; padding: 16px; margin: 18px 0;
}

.addons h3 { font-size: 15px; font-weight: 900; margin-bottom: 11px; }

.addon {
  display: flex; align-items: center; gap: 11px; background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 13px; margin-bottom: 9px; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.addon:last-child { margin-bottom: 0; }

.addon:hover { border-color: var(--green-2); }

.addon:has(input:checked) { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 3px var(--green-soft); }

.addon input { width: 19px; height: 19px; accent-color: var(--green); flex: none; }

.addon img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; }

.addon .a-name { font-size: 13.5px; font-weight: 800; flex: 1; }

.addon .a-price { font-size: 13.5px; font-weight: 900; color: var(--red); text-align: right; }

.addon .a-price s { display: block; color: var(--muted); font-weight: 500; font-size: 11.5px; }

/* Legacy checkout container (thank-you uses .panel inside .thanks) */

/* ---------- Thank-you ---------- */
.thanks { text-align: center; padding: clamp(40px, 6vw, 70px) var(--pad); max-width: 620px; margin: 0 auto; }

.thanks .tick {
  width: 82px; height: 82px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 40px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.thanks h1 { font-size: clamp(24px, 4vw, 30px); font-weight: 900; letter-spacing: -.4px; }

.thanks .ono { color: var(--red); font-weight: 900; }

.thanks .panel { text-align: left; margin-top: 24px; }

/* thank-you summary items reuse the checkout .sum-item look */
.thanks .sum-item:first-of-type { padding-top: 0; }

/* CRO: reassurance strip */
.ty-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
  margin-top: 18px; font-size: 12.5px; font-weight: 700; color: var(--muted);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; padding: 12px 20px;
  border-radius: 999px; opacity: 0; pointer-events: none; transition: all .28s; z-index: 120;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  /* fixed + left:50% caps shrink-to-fit at half the viewport — force one line */
  width: max-content; max-width: calc(100vw - 32px); text-align: center;
}

.toast.show { opacity: 1; transform: translateX(-50%); }

::placeholder { color: #b9b3c9; opacity: 1; }

/* ============ Content pages ============ */
.page-wrap { padding: 44px 0 64px; min-height: 52vh; }

/* ---- Not found (app/views/notfound.php) — one design for every missing thing.
   Colours come from the theme's own tokens, so it belongs to whichever theme
   is live instead of being a bare white line of text. */
.nf { text-align: center; max-width: 560px; margin: 0 auto; padding: 26px 0 12px; }

.nf-code {
  font-size: clamp(64px, 13vw, 104px); font-weight: 900; line-height: 1;
  letter-spacing: -3px; color: var(--green); opacity: .16; margin-bottom: 6px;
}

.nf h1 { font-size: clamp(22px, 3.6vw, 31px); font-weight: 800; color: var(--ink); letter-spacing: -.5px; }

.nf p { color: var(--muted); font-size: 15.5px; line-height: 1.7; margin-top: 10px; }

.nf-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

.page-title { font-size: clamp(25px, 4vw, 36px); font-weight: 800; color: var(--ink); margin-bottom: 22px; letter-spacing: -.5px; }

.page-body { max-width: 760px; font-size: 15.5px; line-height: 1.72; color: #384039; }

.page-body h2 { font-size: 20px; font-weight: 700; margin: 26px 0 8px; color: var(--ink); }

.page-body p { margin-bottom: 15px; }

.page-body ul, .page-body ol { margin: 0 0 15px 22px; }

.page-body li { margin-bottom: 6px; }

.page-body a { color: var(--green); font-weight: 600; text-decoration: underline; }

.vpill.on { border-color: var(--green); background: #eef7f1; color: var(--green); }

@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(224,49,47,.5)} 70%{box-shadow:0 0 0 8px rgba(224,49,47,0)} 100%{box-shadow:0 0 0 0 rgba(224,49,47,0)} }

.bundle .b-mid { display: flex; flex-direction: column; }

.btn.wa-order { background: #1fab54; box-shadow: 0 2px 8px rgba(31,171,84,.28); margin-top: 10px; }

.btn.ghost.block { margin-top: 10px; }

/* Room for the theme's fixed mobile order bar — ONLY on pages that render one
   (product pages). Other pages keep a clean bottom edge. */
@media (max-width: 900px) {
  body:has(.hx-mbar) { padding-bottom: 74px; }
}

/* ============ Comparison table ============ */
.compare { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }

.compare .yes { color: var(--green-2); font-size: 18px; }
 .compare .no { color: #cbd2ce; font-size: 16px; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ Blog ============ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }

.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .16s, box-shadow .16s; }

.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.blog-card .bc-img { aspect-ratio: 16/9; background: var(--green-soft); overflow: hidden; }

.blog-card .bc-img img { width: 100%; height: 100%; object-fit: cover; }

.blog-card .bc-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }

.blog-card .bc-date { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

.blog-card h3 { font-size: 18px; font-weight: 800; line-height: 1.3; color: var(--ink); }

.blog-card p { font-size: 14px; color: var(--muted); line-height: 1.55; }

.blog-card .bc-read { margin-top: auto; padding-top: 6px; color: var(--green); font-weight: 700; font-size: 13.5px; }

.blog-meta { color: var(--muted); font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }

.blog-cover { width: 100%; border-radius: 16px; margin-bottom: 22px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }

}

