/* Layout: boutique catalogue — centered wordmark header, portrait 3:4 product cards, cream ground with maroon ink and gold hairlines */
:root {
  --ground: #F7F1E8;
  --surface: #FFFBF5;
  --ink: #2A1A1E;
  --muted: #6B585C;
  --maroon: #6B1E2E;
  --maroon-deep: #4E1521;
  --gold: #B08A3E;
  --gold-ink: #7E6026;
  --line: #E4D7C4;
  --soft: #EFE5D6;
  --ok: #2F6B45;
  --danger: #A3262C;
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-script: "Pinyon Script", "Brush Script MT", cursive;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-urdu: "Noto Naskh Arabic", "Noto Nastaliq Urdu", "Segoe UI", Tahoma, sans-serif;
  --font-nastaliq: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif;
  --radius: 4px;
  --wrap: 1180px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
}
[dir="rtl"] body, body[dir="rtl"] { font-family: var(--font-urdu); line-height: 1.9; }
img { max-width: 100%; display: block; }
a { color: var(--maroon); }
a:hover { color: var(--maroon-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--maroon); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- demo banner ---------- */
.demo-bar { background: var(--maroon-deep); color: #F7F1E8; font-size: 13px; text-align: center; padding-block: 6px; }
.demo-bar a { color: #E6C98A; }

/* ---------- header ---------- */
.site-head { background: var(--ground); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.site-head .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-block: 10px; }
.head-left, .head-right { display: flex; align-items: center; gap: 4px; }
.head-right { justify-content: flex-end; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--maroon); }
.mono { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; position: relative; flex: none; }
.mono::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1px solid var(--gold); opacity: .7; }
.mono span { font: 600 17px/1 var(--font-display); letter-spacing: -.04em; color: var(--maroon); }
.mono span i { color: var(--gold-ink); font-style: italic; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-script { font: 34px/0.9 var(--font-script); }
.brand-caps { font: 600 10px/1 var(--font-display); letter-spacing: .42em; margin-top: 4px; }
.icon-btn { background: none; border: 0; min-width: 44px; min-height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; color: var(--maroon); padding: 0 10px; text-decoration: none; }
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count { background: var(--maroon); color: #fff; font: 600 11px/18px var(--font-body); min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; text-align: center; }
.lang-btn { font-weight: 500; font-size: 15px; border: 1px solid var(--line); }
.main-nav { border-top: 1px solid var(--line); }
.main-nav .wrap { display: flex; gap: 4px 22px; justify-content: center; flex-wrap: wrap; padding-block: 2px; }
.main-nav a { text-decoration: none; color: var(--ink); font-size: 14px; letter-spacing: .06em; padding: 10px 2px; display: inline-block; border-bottom: 2px solid transparent; }
[dir="rtl"] .main-nav a { letter-spacing: 0; font-size: 15px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--maroon); border-bottom-color: var(--gold); }
@media (max-width: 560px) {
  .brand-words { display: none; }
  .site-head .wrap { grid-template-columns: auto 1fr auto; }
  .brand { justify-self: center; }
  .head-left .label { display: none; }
}

/* ---------- hero ---------- */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-block: 44px 36px; }
.hero h1 { font: 500 clamp(38px, 6vw, 64px)/1.02 var(--font-display); color: var(--maroon); margin: 0 0 16px; text-wrap: balance; }
[dir="rtl"] .hero h1 { font-family: var(--font-nastaliq); font-size: clamp(30px, 4.6vw, 46px); line-height: 1.9; }
.hero p { margin: 0 0 24px; color: var(--muted); max-width: 46ch; font-size: 17px; }
.eyebrow { font: 600 12px/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 14px; }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.hero-art { position: relative; aspect-ratio: 4 / 5; max-width: 100%; }
.hero-art .frame { position: absolute; inset: 0; border: 1px solid var(--gold); border-radius: 220px 220px 4px 4px; transform: translate(14px, -14px); }
[dir="rtl"] .hero-art .frame { transform: translate(-14px, -14px); }
.hero-art img, .hero-art .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 220px 220px 4px 4px; background: var(--soft); }
.hero-art .tag { position: absolute; bottom: 18px; left: 18px; right: 18px; background: var(--surface); padding: 12px 14px; border-radius: var(--radius); display: flex; justify-content: space-between; gap: 12px; font-size: 14px; text-decoration: none; color: var(--ink); }
.hero-art .tag b { font-family: var(--font-display); font-size: 18px; color: var(--maroon); font-weight: 600; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-block: 28px; }
  .hero-art { max-width: 340px; width: 85%; margin: 0 auto; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: var(--radius); border: 1px solid var(--maroon); background: var(--maroon); color: #FBF5EC; font-weight: 500; letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--maroon-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--maroon); }
.btn.ghost:hover { background: var(--soft); }
.btn.wa { background: #1F7A4D; border-color: #1F7A4D; }
.btn.wa:hover { background: #17603C; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- perks ---------- */
.perks { border-block: 1px solid var(--line); background: var(--surface); }
.perks .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-block: 18px; }
.perk { display: flex; gap: 12px; align-items: center; }
.perk svg { width: 30px; height: 30px; color: var(--gold-ink); flex: none; }
.perk b { display: block; font-weight: 500; color: var(--maroon); }
.perk span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .perks .wrap { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- sections + grid ---------- */
.section { padding-block: 40px 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { font: 500 34px/1.1 var(--font-display); color: var(--maroon); margin: 0; text-wrap: balance; }
[dir="rtl"] .section-head h2 { font-family: var(--font-nastaliq); font-size: 28px; line-height: 2; }
.section-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); min-width: 40px; align-self: center; }
[dir="rtl"] .section-head .rule { background: linear-gradient(270deg, var(--gold), transparent); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0 16px; min-height: 40px; cursor: pointer; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } }
.card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card .img { position: relative; aspect-ratio: 3 / 4; background: var(--soft); border-radius: var(--radius); overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .img img { transform: scale(1.03); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--surface); color: var(--maroon); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; border-radius: 2px; font-weight: 600; }
[dir="rtl"] .badge { left: auto; right: 10px; letter-spacing: 0; font-size: 13px; }
.badge.out { background: var(--ink); color: #fff; }
.card h3 { font: 500 15px/1.35 var(--font-body); margin: 0; }
.price { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.price b { font-weight: 600; color: var(--maroon); }
.price s { color: var(--muted); font-size: 13px; }
.swatches { display: flex; gap: 5px; flex-wrap: wrap; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); }
.empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }

/* ---------- product page ---------- */
.crumb { padding-block: 18px 0; }
.crumb button { background: none; border: 0; color: var(--maroon); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; padding: 0; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; padding-block: 10px 40px; }
@media (max-width: 820px) { .pdp { grid-template-columns: 1fr; gap: 24px; } }
.gallery .main { aspect-ratio: 3 / 4; background: var(--soft); border-radius: var(--radius); overflow: hidden; max-width: 100%; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 70px; aspect-ratio: 3/4; border: 1px solid var(--line); border-radius: 3px; padding: 0; overflow: hidden; background: var(--soft); cursor: pointer; }
.thumbs button[aria-current="true"] { border: 2px solid var(--maroon); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font: 500 clamp(30px, 4vw, 40px)/1.15 var(--font-display); color: var(--maroon); margin: 0 0 10px; text-wrap: balance; }
[dir="rtl"] .pdp h1 { font-family: var(--font-nastaliq); font-size: 28px; line-height: 2; }
.pdp .price b { font-size: 24px; }
.pdp .desc { color: var(--muted); margin: 16px 0 22px; max-width: 60ch; }
.opt-label { display: flex; justify-content: space-between; font-weight: 500; margin: 18px 0 8px; font-size: 14px; letter-spacing: .04em; }
.opt-label em { font-style: normal; color: var(--muted); font-weight: 400; }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opt { min-width: 52px; min-height: 46px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; font-weight: 500; }
.opt[aria-pressed="true"] { border: 2px solid var(--maroon); padding: 0 13px; color: var(--maroon); }
.opt.na { color: #A9999B; text-decoration: line-through; background: var(--ground); }
.opt .dot { width: 18px; height: 18px; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.qty button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 20px; color: var(--maroon); }
.qty output { width: 40px; display: grid; place-items: center; font-weight: 500; }
.stock-note { font-size: 13px; color: var(--danger); margin-top: 8px; min-height: 20px; }
.buy-row { display: flex; gap: 12px; margin-top: 18px; align-items: center; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 200px; }
.facts { margin-top: 24px; border-top: 1px solid var(--line); }
.facts div { display: flex; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 14px; align-items: flex-start; }
.facts svg { width: 20px; height: 20px; color: var(--gold-ink); flex: none; margin-top: 2px; }

/* ---------- cart + checkout ---------- */
.page-title { font: 500 38px/1.1 var(--font-display); color: var(--maroon); margin: 26px 0 20px; }
[dir="rtl"] .page-title { font-family: var(--font-nastaliq); font-size: 30px; line-height: 2; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 48px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 84px; aspect-ratio: 3/4; object-fit: cover; border-radius: 3px; background: var(--soft); }
.line h3 { font-size: 15px; font-weight: 500; margin: 0 0 4px; }
.line .meta { font-size: 13px; color: var(--muted); }
.line .actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; color: var(--maroon); text-decoration: underline; cursor: pointer; padding: 6px 0; font-size: 13px; min-height: 32px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 120px); }
.summary h2 { font: 500 24px/1.2 var(--font-display); margin: 0 0 14px; color: var(--maroon); }
[dir="rtl"] .summary h2 { font-family: var(--font-urdu); font-size: 20px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; font-size: 15px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 600; font-size: 18px; color: var(--maroon); }
.fine { font-size: 13px; color: var(--muted); }
.mini-line { display: flex; gap: 10px; padding-block: 8px; font-size: 14px; align-items: center; }
.mini-line img { width: 44px; aspect-ratio: 3/4; object-fit: cover; border-radius: 2px; }
.mini-line span { flex: 1; min-width: 0; }

.form-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.form-block h2 { font: 500 22px/1.2 var(--font-display); color: var(--maroon); margin: 0 0 14px; }
[dir="rtl"] .form-block h2 { font-family: var(--font-urdu); font-size: 19px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 500; }
.field .hint { font-size: 12px; color: var(--muted); }
.field input, .field select, .field textarea { border: 1px solid #D5C6B1; background: #fff; border-radius: var(--radius); min-height: 46px; padding: 10px 12px; width: 100%; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--maroon); outline: none; box-shadow: 0 0 0 3px rgba(107,30,46,.14); }
.field .err { color: var(--danger); font-size: 13px; min-height: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.pay-opts { display: grid; gap: 10px; }
.pay { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; background: #fff; }
.pay:has(input:checked) { border: 2px solid var(--maroon); padding: 13px; background: #FFF8F3; }
.pay > span { flex: 1; min-width: 0; }
.pay input { margin-top: 4px; accent-color: var(--maroon); width: 18px; height: 18px; }
.pay b { display: block; font-weight: 500; }
.pay small { color: var(--muted); font-size: 13px; }
.acct { margin-top: 12px; border: 1px dashed var(--gold); border-radius: var(--radius); padding: 14px; background: #FFFCF6; }
.acct dl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 12px; margin: 10px 0 0; align-items: center; font-size: 14px; }
.acct dt { color: var(--muted); white-space: nowrap; }
@media (max-width: 420px) { .acct dl { grid-template-columns: minmax(0, 1fr) auto; } .acct dt { grid-column: 1 / -1; margin-top: 4px; } }
.acct dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.copy-btn { border: 1px solid var(--line); background: #fff; border-radius: 3px; font-size: 12px; padding: 4px 10px; cursor: pointer; min-height: 32px; }
.file-drop { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.file-drop input[type=file] { font-size: 14px; }
.proof-preview { max-width: 160px; max-height: 220px; object-fit: contain; background: #fff; border-radius: 3px; border: 1px solid var(--line); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 6px 0 16px; }
.agree input { width: 20px; height: 20px; accent-color: var(--maroon); margin-top: 3px; flex: none; }
.alert { padding: 12px 14px; border-radius: var(--radius); background: #FBECEC; color: var(--danger); border: 1px solid #EBC5C5; font-size: 14px; margin-bottom: 14px; }

/* ---------- thanks ---------- */
.thanks { text-align: center; max-width: 560px; margin: 0 auto; padding-block: 56px; }
.thanks .seal { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; color: var(--maroon); }
.thanks .seal svg { width: 38px; height: 38px; }
.thanks h1 { font: 500 34px/1.2 var(--font-display); color: var(--maroon); margin: 0 0 12px; }
[dir="rtl"] .thanks h1 { font-family: var(--font-nastaliq); font-size: 26px; line-height: 2; }
.order-no { display: inline-block; font: 600 22px/1 var(--font-body); letter-spacing: .08em; color: var(--maroon); border: 1px solid var(--line); background: var(--surface); padding: 12px 20px; border-radius: var(--radius); margin: 8px 0 18px; }

/* ---------- info pages ---------- */
.prose { max-width: 680px; padding-bottom: 48px; }
.prose h2 { font: 500 26px/1.2 var(--font-display); color: var(--maroon); margin: 28px 0 10px; }
[dir="rtl"] .prose h2 { font-family: var(--font-urdu); font-size: 21px; }
.prose ul { padding-inline-start: 20px; margin: 0; display: grid; gap: 8px; }

/* ---------- footer ---------- */
.site-foot { background: var(--maroon-deep); color: #EFE3D2; margin-top: 40px; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 28px; padding-block: 40px 24px; }
.site-foot h4 { font: 600 12px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: #E6C98A; margin: 0 0 14px; }
[dir="rtl"] .site-foot h4 { letter-spacing: 0; font-size: 14px; }
.site-foot a { color: #F7F1E8; }
.site-foot p { margin: 0 0 8px; font-size: 14px; }
.site-foot .brand-script { font-size: 40px; color: #F7F1E8; }
.site-foot .brand-caps { color: #E6C98A; }
.foot-urdu { font-family: var(--font-nastaliq); font-size: 18px; line-height: 2.2; color: #F7F1E8; }
.foot-bottom { border-top: 1px solid rgba(230,201,138,.25); }
.foot-bottom .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 14px; font-size: 13px; color: #CDB9A5; grid-template-columns: none; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr; } }

/* ---------- floating WhatsApp ---------- */
.wa-float { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; background: #1F7A4D; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(31,122,77,.35); z-index: 30; }
[dir="rtl"] .wa-float { right: auto; left: calc(16px + env(safe-area-inset-left, 0px)); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-size: 14px; z-index: 40; display: flex; gap: 14px; align-items: center; max-width: calc(100% - 32px); }
.toast a { color: #E6C98A; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
