:root {
  --black: #0a0a0a;
  --card: #141414;
  --line: #2a2a2a;
  --line-gold: #4a4228;
  --gold: #d4af37;
  --gold-deep: #b59119;
  --cream: #f5efe0;
  --muted: #b8b2a3;
  --ok: #5fb878;
  --warn: #e0a030;
  --bad: #e07070;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--cream); font-family: var(--sans); font-size: 16px; line-height: 1.5; padding-bottom: 88px; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--gold); }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* header + hero */
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.crest { width: 44px; height: 44px; flex: none; border: 2px solid var(--gold); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 800; font-size: 22px; color: var(--gold); }
.brand { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.2; }
.urdu { font-family: var(--urdu); direction: rtl; text-align: left; color: var(--muted); font-size: 14px; line-height: 1.9; }
.hero { display: flex; flex-direction: column; gap: 16px; padding: 40px 20px 36px; background: linear-gradient(180deg, #1a1608 0%, var(--black) 100%); max-width: 100%; }
.hero > * { width: 100%; max-width: 720px; margin-left: auto; margin-right: auto; }
.eyebrow { font-size: 12px; letter-spacing: 3px; color: var(--gold); font-weight: 600; }
.hero h1 { font-family: var(--serif); font-weight: 800; font-size: 36px; line-height: 1.15; }
.hero p { color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { border: 1px solid var(--line-gold); font-size: 12px; padding: 5px 11px; border-radius: 999px; }
.demo-note { background: #2a2108; border-bottom: 1px solid var(--gold-deep); color: var(--gold); font-size: 13px; padding: 8px 12px; text-align: center; }

h2 { font-family: var(--serif); font-weight: 700; font-size: 26px; margin: 36px 0 10px; }
.lead { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

/* filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 20px; }
.pill { border: 1px solid var(--line-gold); background: transparent; color: var(--cream); border-radius: 999px; padding: 10px 16px; min-height: 44px; font-size: 14px; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--black); font-weight: 600; }

/* product cards */
.grid { display: grid; grid-template-columns: 1fr; gap: 20px; scroll-margin-top: 8px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card.out .photo img { opacity: .55; }
.photo { height: 280px; background: linear-gradient(135deg, #2a2412 0%, #0f0f0f 100%); position: relative; display: grid; place-items: center; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .mono { font-family: var(--serif); font-weight: 800; font-size: 56px; color: var(--gold-deep); }
.stock { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: rgba(10,10,10,.85); border: 1px solid currentColor; }
.stock.in_stock { color: var(--ok); } .stock.low { color: var(--warn); } .stock.out { color: var(--bad); }
.body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.name { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.25; }
.price { color: var(--gold); font-weight: 600; font-size: 16px; }
.desc { color: var(--muted); font-size: 14px; }
.colorlabel { font-size: 14px; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 44px; height: 44px; border-radius: 50%; padding: 0; cursor: pointer; border: 3px solid var(--line-gold); background-clip: padding-box; }
.sw[aria-pressed="true"] { border-color: var(--gold); }
.sw.txt { width: auto; border-radius: 999px; padding: 0 14px; font-size: 13px; background: transparent; }
.sw.txt[aria-pressed="true"] { background: var(--gold); color: var(--black); }
.sw[disabled] { cursor: not-allowed; }
.add { margin-top: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 12px 16px; min-height: 48px; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; text-align: center; }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:active { background: var(--gold-deep); }
.btn-line { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-lg { min-height: 54px; font-size: 17px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-line.added { background: var(--gold); color: var(--black); }

/* order section */
#order { scroll-margin-top: 8px; }
#order-form { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 16px; }
.lines { display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; border-bottom: 1px dashed var(--line); padding-bottom: 10px; font-size: 15px; }
.line small { color: var(--muted); font-size: 13px; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-gold); background: transparent; color: var(--gold); font-size: 20px; cursor: pointer; }
.qty span { min-width: 24px; text-align: center; }
.totals { display: grid; gap: 4px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { color: var(--gold); font-family: var(--serif); font-size: 21px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
label { display: grid; gap: 6px; font-size: 14px; }
input, textarea { background: var(--black); border: 1px solid var(--line-gold); border-radius: 10px; padding: 0 14px; min-height: 48px; font-size: 16px; color: var(--cream); width: 100%; }
textarea { padding: 12px 14px; }
input:focus, textarea:focus, .sw:focus-visible, .pill:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.err { color: var(--bad); font-size: 14px; min-height: 1em; }
.empty { color: var(--muted); text-align: center; padding: 16px 0; font-size: 14px; }
.hint { color: var(--muted); font-size: 13px; text-align: center; }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
summary { cursor: pointer; padding: 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 48px; }
summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "−"; }
summary::-webkit-details-marker { display: none; }
details p { padding: 0 14px 14px; color: var(--muted); }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 36px 20px 28px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
footer .fbrand { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--gold); }
footer a { text-decoration: none; }

/* cart bar + toast */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #0d0b03; border-top: 1px solid var(--gold-deep); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: none; }
.cartbar.show { display: block; }
.cartbar .inner { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.cartbar .sum { flex: 1; font-size: 14px; color: var(--muted); }
.cartbar .sum b { display: block; color: var(--gold); font-size: 18px; font-family: var(--serif); }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--gold); color: var(--black); font-weight: 600; padding: 10px 16px; border-radius: 10px; z-index: 30; max-width: 90vw; }

/* ---- picture-first layout for customers who cannot read well ---- */
.grow { flex: 1; min-width: 0; }
.urdu small, .btn small { display: block; }
.roundbtn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.roundbtn svg { width: 26px; height: 26px; fill: currentColor; }
.roundbtn.call { background: var(--gold); color: var(--black); }
.roundbtn.wa { background: #25d366; color: #06210f; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px 12px; background: linear-gradient(180deg, #1a1608 0%, var(--black) 100%); }
.step { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; line-height: 1.25; }
.step .ico { font-size: 34px; line-height: 1.2; }
.step b { font-weight: 600; }
.step i { font-style: normal; font-family: var(--urdu); color: var(--muted); font-size: 13px; line-height: 1.9; }
.step .num { position: absolute; top: 0; left: 8%; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--black); font-weight: 700; font-size: 13px; display: grid; place-items: center; }

.wrap { padding-top: 12px; }
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.tile { padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; width: 100%; }
.tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tile .photo { height: auto; aspect-ratio: 4 / 5; }
.tile .body { padding: 10px 12px 14px; gap: 4px; }
.tile .name { font-size: 15px; }
.tile .price { font-size: 22px; font-weight: 700; }
.stock { font-size: 13px; padding: 5px 11px; }
.tile.out { opacity: .7; }
.tap { margin-top: 6px; color: var(--gold); font-weight: 600; font-size: 14px; }

.btn small, .btn .urdu { font-size: 14px; font-weight: 500; line-height: 1.8; }
.btn-wa { background: #25d366; color: #06210f; }
.btn-xl { min-height: 64px; font-size: 18px; width: 100%; gap: 12px; }
.btn-xl svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.cartbar .btn { min-width: 150px; }

/* product sheet */
.sheet { position: fixed; inset: 0; z-index: 40; background: var(--black); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet[hidden] { display: none; }
.sheet-in { max-width: 560px; margin: 0 auto; padding-bottom: 40px; }
.back { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 16px; background: #0d0b03; border: 0; border-bottom: 1px solid var(--line); color: var(--gold); font-size: 18px; font-weight: 600; cursor: pointer; position: sticky; top: 0; z-index: 2; }
.shphoto { aspect-ratio: 1 / 1; background: linear-gradient(135deg, #2a2412, #0f0f0f); display: grid; place-items: center; position: relative; }
.shphoto img { width: 100%; height: 100%; object-fit: contain; background: #0f0f0f; }
.shbody { padding: 16px 20px; display: grid; gap: 14px; }
.name.big { font-size: 24px; }
.price.big { font-size: 34px; font-weight: 700; }
.optgroup { display: grid; gap: 8px; }
.optlabel { font-size: 18px; font-weight: 600; }
.optlabel .urdu { font-size: 16px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.opt { position: relative; min-height: 64px; border: 3px solid var(--line-gold); border-radius: 14px; background: var(--card); padding: 8px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 16px; font-weight: 600; cursor: pointer; }
.opt .dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #ffffff55; }
.opt[aria-pressed="true"] { border-color: var(--gold); background: #231c06; }
.opt[aria-pressed="true"]::after { content: "✓"; position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--black); font-size: 16px; display: grid; place-items: center; }
.opt[disabled] { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.opt[disabled] small { text-decoration: none; color: var(--bad); font-size: 12px; font-family: var(--urdu); font-weight: 500; }
.opt:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.qtyrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 18px; font-weight: 600; }
.qty.big button { width: 56px; height: 56px; font-size: 28px; border-radius: 14px; }
.qty.big span { min-width: 40px; font-size: 24px; font-weight: 700; }
body.locked { overflow: hidden; }

/* bigger text in the order form */
label { font-size: 16px; font-weight: 500; }
label .urdu { font-size: 15px; }
.line { font-size: 17px; }
.line .qty button { width: 48px; height: 48px; font-size: 22px; }
.totals { font-size: 17px; }

.fallback { display: grid; gap: 8px; text-align: center; background: #0f2a18; border: 1px solid #25d366; border-radius: 12px; padding: 14px; }
.fallback[hidden] { display: none; }
.shphoto .mono { font-family: var(--serif); font-weight: 800; font-size: 96px; color: var(--gold-deep); }

/* sub-category row sits tight under the category row, a little smaller */
.filters.sub { padding-top: 0; margin-top: -8px; }
.filters.sub .pill { min-height: 40px; padding: 8px 14px; font-size: 13px; border-style: dashed; }

/* swipeable product gallery */
.shphoto { overflow: hidden; }
.gal { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gal::-webkit-scrollbar { display: none; }
.gal img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; background: #0f0f0f; }
.dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 2px; }
.dots button { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #ffffff66; border: 1px solid #0008; }
.dots button[aria-current="true"]::before { background: var(--gold); width: 12px; height: 12px; }
