/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scrollbar-gutter: stable; scroll-padding-top: 6.5rem; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-synthesis-weight: none; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, dl, dd, ul, ol, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
html.is-locked { overflow: hidden; }

/* ---------- browser surfaces ---------- */
::selection { background: var(--moss); color: var(--ink); }
input, textarea { caret-color: var(--moss-deep); }
html { scrollbar-color: color-mix(in oklch, var(--ink) 26%, transparent) transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Urdu ---------- */
:lang(ur) { font-family: var(--font-urdu); font-synthesis: none; letter-spacing: 0; }
[lang="en"] { font-family: var(--font-body); }
:lang(ur) body { font-size: 1.1875rem; line-height: 2; }
span[lang="en"], bdi[lang="en"] { direction: ltr; unicode-bidi: isolate; }
span[lang="ur"] { direction: rtl; unicode-bidi: isolate; font-family: var(--font-urdu); font-weight: 400; }
bdi, .ltr { direction: ltr; unicode-bidi: isolate; }
:lang(ur) bdi, :lang(ur) .ltr { font-family: var(--font-body); }

/* ---------- layout ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; inset-inline-start: var(--s-4); top: var(--s-4); z-index: 999; padding: var(--s-3) var(--s-5); background: var(--ink); color: var(--paper); border-radius: var(--r-pill); transform: translateY(-160%); transition: transform var(--d-2) var(--ease-out); }
.skip:focus { transform: none; }

/* ---------- type ---------- */
.display, .h2, .h3 { font-family: var(--font-display); font-variation-settings: "wdth" 106; font-weight: 700; letter-spacing: -0.026em; text-wrap: balance; overflow-wrap: anywhere; min-width: 0; }
.display { font-size: var(--text-display); line-height: 0.98; }
.h2 { font-size: var(--text-2xl); line-height: 1.02; }
.h3 { font-size: var(--text-xl); line-height: 1.1; letter-spacing: -0.018em; }
.lede { font-size: var(--text-md); line-height: 1.6; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.small { font-size: var(--text-sm); color: var(--ink-3); }
.label { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
:lang(ur) .display, :lang(ur) .h2, :lang(ur) .h3 { font-family: var(--font-urdu); font-variation-settings: normal; font-weight: 400; letter-spacing: 0; }
:lang(ur) .display { font-size: calc(var(--text-display) * 0.8); line-height: 1.55; }
:lang(ur) .h2 { font-size: calc(var(--text-2xl) * 0.84); line-height: 1.6; }
:lang(ur) .h3 { font-size: calc(var(--text-xl) * 0.95); line-height: 1.7; }
:lang(ur) .lede { font-size: 1.25rem; line-height: 2.05; max-width: 42ch; }
:lang(ur) .small { font-size: 1.0625rem; line-height: 1.95; }
:lang(ur) .label { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 400; line-height: 1.9; }

/* ---------- icons ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .flip-rtl, [dir="rtl"] .arrow .icon { transform: scaleX(-1); }
.arrow { display: inline-flex; transition: transform var(--d-3) var(--ease-out); }

/* ---------- links: one underline sweep everywhere ---------- */
/* no grey or blue tap flash on phones; every control has its own pressed state */
* { -webkit-tap-highlight-color: transparent; }
.link { position: relative; display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; font-weight: 600; transition: color var(--d-2) var(--ease-out); white-space: nowrap; }
.link::after { content: ""; position: absolute; inset-inline: 0; bottom: 8px; height: 1.5px; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: var(--sweep-out); transition: transform var(--d-3) var(--ease-out); pointer-events: none; }
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); transform-origin: var(--sweep-in); }
.link:hover .arrow, .link:focus-visible .arrow { transform: translateX(calc(4px * var(--flip))); }
.link--moss { color: var(--moss-deep); }
:lang(ur) .link::after { bottom: 6px; }

/* ---------- buttons ---------- */
.btn { --btn-bg: transparent; --btn-fg: var(--ink); --btn-line: var(--line-strong); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 50px; padding: 0 1.5rem; border-radius: var(--r-pill); border: 1px solid var(--btn-line); background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: 1rem; line-height: 1.2; white-space: nowrap; isolation: isolate; overflow: hidden; transition: color var(--d-3) var(--ease-out), border-color var(--d-3) var(--ease-out), background-color var(--d-3) var(--ease-out), transform var(--d-2) var(--ease-out), box-shadow var(--d-3) var(--ease-out); -webkit-tap-highlight-color: transparent; }
.btn .icon { width: 1.2em; height: 1.2em; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--btn-sweep, transparent); transform: scaleX(0); transform-origin: var(--sweep-out); transition: transform var(--d-4) var(--ease-out); }
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(calc(4px * var(--flip))); }
.btn:active { transform: translateY(1px); transition-duration: var(--d-1); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; --btn-bg: var(--paper-2); --btn-fg: var(--ink-3); --btn-line: var(--line); box-shadow: none; }
.btn[disabled]::before { display: none; }

.btn--primary { --btn-bg: var(--moss); --btn-fg: var(--ink); --btn-line: var(--moss); --btn-sweep: var(--moss-hi); box-shadow: inset 0 -2px 0 rgb(23 20 15 / 0.08); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-line: var(--line-strong); --btn-sweep: var(--ink); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--alabaster); --btn-line: var(--ink); --btn-sweep: var(--brown-3); }
.btn--veil { --btn-bg: rgb(23 20 15 / 0.28); --btn-fg: var(--alabaster); --btn-line: rgb(243 239 228 / 0.55); --btn-sweep: var(--alabaster); }
@media (hover: hover) {
  .btn:not([disabled]):hover::before { transform: scaleX(1); transform-origin: var(--sweep-in); }
  .btn--primary:not([disabled]):hover { box-shadow: 0 14px 28px -16px rgb(56 88 5 / 0.65), inset 0 -2px 0 rgb(23 20 15 / 0.08); transform: translateY(-1px); }
  .btn--ghost:not([disabled]):hover { --btn-fg: var(--alabaster); --btn-line: var(--ink); }
  .btn--dark:not([disabled]):hover { transform: translateY(-1px); }
  .btn--veil:not([disabled]):hover { --btn-fg: var(--ink); --btn-line: var(--alabaster); }
}
/* Urdu in pills. Gulzar's kaaf and lam reach ~1.8em above the baseline and its descenders ~0.6em
   below, measured with canvas actualBoundingBox. Centring the line box leaves tall letters poking
   out of the top of a pill, so single-line pills drop the baseline with top padding instead:
   baseline = box centre + 0.15em + (padding-top - padding-bottom) / 2. */
:lang(ur) .btn { font-size: 1.125rem; font-weight: 400; line-height: 1.5; padding-top: 0.8em; padding-bottom: 0.05em; min-height: 52px; }

.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--ink); background: transparent; transition: background-color var(--d-3) var(--ease-out), color var(--d-3) var(--ease-out), border-color var(--d-3) var(--ease-out), transform var(--d-2) var(--ease-out); }
.icon-btn .icon { width: 20px; height: 20px; }
@media (hover: hover) { .icon-btn:hover { background: var(--ink); color: var(--alabaster); border-color: var(--ink); } }
.icon-btn:active { transform: scale(0.96); }

/* ---------- segmented control ---------- */
.seg { position: relative; display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--lift); isolation: isolate; }
.seg__thumb { position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: var(--r-pill); background: var(--ink); transition: transform var(--d-3) var(--ease-out), width var(--d-3) var(--ease-out); }
.seg [role="radio"] { position: relative; min-height: 38px; padding: 0 1rem; border-radius: var(--r-pill); font-size: 0.9375rem; font-weight: 600; line-height: 1; color: var(--ink-2); white-space: nowrap; transition: color var(--d-3) var(--ease-out); }
.seg a[role="radio"] { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.seg [role="radio"]:hover { color: var(--ink); }
.seg [role="radio"][aria-checked="true"] { color: var(--alabaster); }
.seg:not(.has-thumb) [role="radio"][aria-checked="true"] { background: var(--ink); }
.seg [lang="ur"] { font-family: var(--font-urdu); font-size: 1.25rem; font-weight: 400; line-height: 1.7; padding-top: 0.12em; }
:lang(ur) .seg [role="radio"] { font-size: 1.0625rem; font-weight: 400; line-height: 1.7; padding-top: 0.15em; }
/* the product filter's Urdu labels carry tall marks (ٹ): a taller pill keeps their ink inside */
:lang(ur) .seg--filter [role="radio"] { min-height: 44px; padding-top: 0.3em; }

/* ---------- forms ---------- */
.field { display: grid; gap: var(--s-2); }
.field__label { font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
:lang(ur) .field__label { font-size: 1.0625rem; font-weight: 400; }
.input { width: 100%; min-height: 56px; padding: 0 1.1rem; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--lift); font-size: 1.0625rem; transition: border-color var(--d-2) var(--ease-out), box-shadow var(--d-2) var(--ease-out), background-color var(--d-2) var(--ease-out); }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--moss-deep); box-shadow: 0 0 0 4px rgb(151 195 63 / 0.32); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgb(166 45 28 / 0.12); }
.input::placeholder { color: var(--ink-3); }
:lang(ur) .input { font-size: 1.125rem; }
.hint { font-size: var(--text-sm); color: var(--ink-3); }
.err { min-height: 1.5em; font-size: var(--text-sm); color: var(--danger); opacity: 0; transform: translateY(-4px); transition: opacity var(--d-2) var(--ease-out), transform var(--d-2) var(--ease-out); }
.err.is-shown { opacity: 1; transform: none; }
:lang(ur) .err, :lang(ur) .hint { font-size: 1.0625rem; line-height: 1.9; }

/* ---------- decorative motifs ---------- */
.motif { pointer-events: none; color: var(--moss); }
.motif--granules circle { transform-box: fill-box; transform-origin: center; }
.motif--furrows path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

/* ---------- pack drawings (always drawn left to right, whatever the page direction) ---------- */
.pack { overflow: visible; direction: ltr; unicode-bidi: isolate; }
.pack text { font-family: var(--font-pack); }
.pack .pk-name { font-size: 24px; font-weight: 800; letter-spacing: 0.04em; fill: #fbf8f1; }
.pack .pk-name--s { font-size: 13px; letter-spacing: 0.06em; }
.pack .pk-ur { font-family: var(--font-urdu); font-size: 12px; fill: #fbf8f1; fill-opacity: 0.92; }
.pack .pk-ur--s { font-size: 8.5px; }
.pack .pk-big { font-size: 58px; font-weight: 800; letter-spacing: -0.03em; }
.pack .pk-big--s { font-size: 40px; }
.pack .pk-unit { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; fill: #3a352c; }
.pack .pk-sub { font-size: 9px; font-weight: 600; letter-spacing: 0.1em; fill: #6b6456; text-transform: uppercase; }
.pack .pk-net { font-size: 19px; font-weight: 800; fill: #fbf8f1; letter-spacing: 0.02em; }
.pack .pk-net--s { font-size: 12px; fill: #3a352c; }
.pack .pk-mark { font-size: 6.5px; font-weight: 700; letter-spacing: 0.22em; fill: #fbf8f1; fill-opacity: 0.85; }
.pack .pk-fine { font-size: 5.8px; font-weight: 600; letter-spacing: 0.08em; fill: #3a352c; }
.pack .pk-fine--label { font-size: 4.6px; font-weight: 700; letter-spacing: 0.14em; fill: #7a7263; }
.pack .pk-fine--xs { font-size: 4.4px; fill: #5c5548; }
.pack .pk-fine--on { fill: #fbf8f1; fill-opacity: 0.88; }
