/* JouryMed storefront
   Palette taken from the logo and the 2026 catalogue: navy band, stethoscope blue, cool clinical paper. */
:root {
  --navy: #17336B;
  --navy-2: #0F2552;
  --blue: #3D8FC6;
  --sky: #E4F0F8;
  --paper: #F5F8FB;
  --white: #FFFFFF;
  --ink: #13233D;
  --ink-2: #4A5B73;
  --line: #D6E1EC;
  --green: #2F7D55;
  --amber: #A8571E;
  --red: #B23A32;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "IBM Plex Sans Arabic", "Public Sans", system-ui, sans-serif;

  --r-s: 6px;
  --r-m: 10px;
  --wrap: 1200px;
  --head-h: 76px;
  --tab-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  font-variant-numeric: tabular-nums;
  padding-bottom: var(--tab-h);
}
:lang(ar) body, body:lang(ar) { font-family: var(--arabic); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--navy-2); }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { font-family: var(--arabic); font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--r-s); z-index: 50; }
.skip:focus { top: 8px; }
.plain { list-style: none; margin: 0; padding: 0; }
.hp { position: absolute; inset-inline-start: -9999px; }
.linkish { background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.note { background: var(--sky); border-inline-start: 3px solid var(--blue); padding: 10px 14px; border-radius: var(--r-s); color: var(--ink); font-size: .9375rem; }
.fine { color: var(--ink-2); font-size: .875rem; }
.opt { color: var(--ink-2); font-weight: 400; font-size: .875rem; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--r-s);
  background: var(--navy); color: #fff; border: 1px solid var(--navy);
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn--light { color: #fff; border-color: rgba(255,255,255,.45); }
.btn--light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn--small { min-height: 36px; padding: 0 12px; font-size: .875rem; }
.btn--wide { width: 100%; min-height: 50px; font-size: 1.0625rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- top line + header */
.topline { background: var(--navy-2); color: #C9D8EA; font-size: .8125rem; }
.topline__in { display: flex; justify-content: space-between; gap: 16px; padding-block: 6px; }
.topline a { color: #fff; text-decoration: none; }
.topline a:hover { text-decoration: underline; color: #fff; }
.topline__links { display: flex; gap: 18px; white-space: nowrap; }

.head { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.head__in { display: flex; align-items: center; gap: 24px; min-height: var(--head-h); }
.brand img { width: 150px; height: auto; }
.search { position: relative; flex: 1; max-width: 520px; display: flex; }
.search input {
  width: 100%; height: 44px; padding-inline: 16px 48px; border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--paper);
}
.search input:focus { background: #fff; border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(61,143,198,.2); }
.search button { position: absolute; inset-inline-end: 4px; top: 4px; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.search svg, .nav svg, .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 10px 12px; border-radius: var(--r-s); text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a:hover { background: var(--paper); color: var(--navy); }
.nav a[aria-current] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.cartlink { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--blue); color: #fff;
  font: 700 .75rem/20px var(--sans); text-align: center;
}
.badge.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* ---------- suggestions */
.suggest {
  position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 40; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 12px 32px rgba(15,37,82,.14); overflow: hidden;
}
.suggest a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline; padding: 10px 14px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--paper); }
.suggest a:first-child { border-top: 0; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--sky); }
.suggest code { font: 500 .8125rem var(--sans); color: var(--ink-2); }
.suggest b { font-weight: 600; white-space: nowrap; }
.suggest p { margin: 0; padding: 12px 14px; color: var(--ink-2); font-size: .9375rem; }

/* ---------- flash */
.flash { padding: 12px 0; font-weight: 500; }
.flash--ok { background: #E3F2EA; color: #1E5A3B; }
.flash--error { background: #FBEAE8; color: #8A2620; }
p.flash { padding: 12px 16px; border-radius: var(--r-s); }

/* ---------- hero */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-block: 56px 64px; }
.hero h1 { max-width: 17ch; margin-bottom: .4em; }
.hero__lede { font-size: 1.125rem; color: var(--ink-2); max-width: 46ch; }
.bigsearch { margin-top: 28px; }
.bigsearch label { display: block; font-weight: 600; margin-bottom: 8px; }
.bigsearch__box { position: relative; display: flex; gap: 8px; }
.bigsearch input {
  flex: 1; min-width: 0; height: 58px; padding-inline: 18px; font-size: 1.125rem;
  border: 2px solid var(--navy); border-radius: var(--r-s); background: #fff;
}
.bigsearch input:focus { outline: none; box-shadow: 0 0 0 4px rgba(61,143,198,.25); }
.bigsearch .btn { height: 58px; padding-inline: 28px; font-size: 1.0625rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.chips a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--sky); color: var(--navy); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.chips a:hover { background: var(--navy); color: #fff; }
.chips--sub { margin: 0 0 18px; }
.hero__fig { margin: 0; }
.hero__fig img { border-radius: var(--r-m); border: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(15,37,82,.35); }
.hero__fig figcaption { margin-top: 10px; font-size: .875rem; color: var(--ink-2); }

/* ---------- sections */
.sec { padding-block: 56px; }
.sec--tint { background: var(--white); border-block: 1px solid var(--line); }
.sec--flush { padding-block: 40px 0; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec__head h2 { margin: 0; }

.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cat { display: grid; grid-template-rows: auto auto auto; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; height: 100%; }
.cat img { aspect-ratio: 11 / 9; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); }
.cat__name { padding: 12px 14px 0; font-weight: 600; line-height: 1.3; }
.cat__count { padding: 2px 14px 14px; color: var(--ink-2); font-size: .875rem; }
.cat:hover { border-color: var(--blue); color: var(--navy); }
.cat:hover .cat__name { text-decoration: underline; text-underline-offset: 3px; }

.steps ol { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 24px 0 0; padding: 0; }
.steps li { counter-increment: s; border-top: 2px solid var(--navy); padding-top: 16px; }
.steps li::before { content: counter(s); display: block; font: 600 2rem/1 var(--serif); color: var(--blue); margin-bottom: 10px; }
.steps p { color: var(--ink-2); margin: 0; }

.trade { background: var(--navy); color: #DCE7F3; border-radius: var(--r-m); padding: 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.trade h2 { color: #fff; }
.trade p { margin: 0; max-width: 56ch; }
.trade__act { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.trade .btn:not(.btn--light) { background: #fff; color: var(--navy); border-color: #fff; }
.trade .btn:not(.btn--light):hover { background: var(--sky); }

/* ---------- price list (the signature view) */
.pricelist { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.pricelist__head, .row {
  display: grid; align-items: center; gap: 16px;
  grid-template-columns: 48px minmax(84px, 118px) minmax(0, 1fr) 64px 104px 84px 172px;
  padding: 10px 16px;
}
.pricelist__head { padding-block: 0 8px; font-size: .8125rem; color: var(--ink-2); font-weight: 600; }
.row { border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row:nth-child(even) { background: #FAFCFE; }
.row:hover { background: var(--sky); }
.row__img img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--r-s); background: var(--sky); }
.row__ref { font-size: .8125rem; line-height: 1.3; color: var(--ink-2); word-break: break-word; font-weight: 500; }
.row__name { font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.35; }
.row__name:hover { color: var(--navy); text-decoration: underline; }
.row__unit { color: var(--ink-2); font-size: .875rem; }
.row__price { font-weight: 700; text-align: end; color: var(--navy-2); }
.is-quote { font-weight: 500 !important; color: var(--ink-2) !important; font-size: .875rem; }
.row__buy { justify-self: end; }

.stock { font-size: .8125rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.stock--in { color: var(--green); }
.stock--low { color: var(--amber); }
.stock--out { color: var(--ink-2); }
.stock--unknown::before { display: none; }

.buy { display: flex; gap: 6px; align-items: center; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; height: 40px; }
.qty button { width: 32px; border: 0; background: none; cursor: pointer; font-size: 1.125rem; color: var(--navy); }
.qty button:hover { background: var(--sky); }
.qty input { width: 40px; border: 0; text-align: center; -moz-appearance: textfield; background: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn--add { min-height: 40px; padding: 0 14px; }
.btn--add.is-done { background: var(--green); border-color: var(--green); }

/* grid view */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; }
.card__img img { aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--sky); }
.card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__ref { font-size: .75rem; color: var(--ink-2); }
.card__name { font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.35; flex: 1; }
.card__name:hover { text-decoration: underline; }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card__price { font-weight: 700; color: var(--navy-2); }
.card__price small { font-weight: 400; color: var(--ink-2); }
.card .buy { margin-top: 6px; }
.card .btn--add { flex: 1; }

/* ---------- shop layout */
.shop { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; padding-block: 32px 56px; }
.shop__side { position: sticky; top: calc(var(--head-h) + 16px); align-self: start; max-height: calc(100vh - var(--head-h) - 32px); overflow: auto; }
.catnav { list-style: none; margin: 0; padding: 0; }
.catnav a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: var(--r-s); text-decoration: none; color: var(--ink); font-size: .9375rem; }
.catnav a span { color: var(--ink-2); font-size: .8125rem; }
.catnav a:hover { background: #fff; color: var(--navy); }
.catnav a[aria-current] { background: var(--navy); color: #fff; }
.catnav a[aria-current] span { color: #C9D8EA; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; margin: 0 0 8px; }
.wrap > .crumbs { margin-top: 24px; }
.crumbs a { color: var(--ink-2); }
.crumbs a + a::before { content: "/"; margin-inline-end: 6px; color: var(--line); }
.shop__title { margin-bottom: 16px; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tools__count { margin: 0; margin-inline-end: auto; color: var(--ink-2); }
.tools__check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.tools__check input { width: 18px; height: 18px; accent-color: var(--navy); }
.tools select { height: 40px; border: 1px solid var(--line); border-radius: var(--r-s); padding-inline: 10px; background: #fff; }
.viewtoggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.viewtoggle a { padding: 8px 14px; text-decoration: none; color: var(--ink); font-size: .9375rem; background: #fff; }
.viewtoggle a + a { border-inline-start: 1px solid var(--line); }
.viewtoggle a[aria-current] { background: var(--navy); color: #fff; }
.shop__note { margin-top: 20px; color: var(--ink-2); font-size: .875rem; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 24px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-s); text-decoration: none; }
.pager a { background: #fff; border: 1px solid var(--line); }
.pager span[aria-current] { background: var(--navy); color: #fff; font-weight: 600; }
.empty { text-align: center; padding: 48px 16px; }
.empty .btn { margin: 4px; }

/* ---------- product page */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-block: 16px 24px; }
.pd__main { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); }
.pd__thumbs { list-style: none; display: flex; gap: 8px; padding: 0; margin: 10px 0 0; }
.pd__thumbs button { padding: 0; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; cursor: pointer; background: #fff; }
.pd__thumbs button[aria-pressed="true"] { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
.pd__thumbs img { width: 72px; height: 72px; object-fit: cover; }
.pd__ref { color: var(--ink-2); font-size: .9375rem; margin-bottom: 6px; }
.pd h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
.pd__price { display: flex; align-items: baseline; gap: 10px; margin: 12px 0; }
.pd__price span { font: 600 2rem/1 var(--sans); color: var(--navy-2); }
.pd__price span.is-quote { font-size: 1.25rem !important; }
.pd__price small { color: var(--ink-2); }
.pd__stock { margin-bottom: 16px; font-size: .9375rem; }
.pd__buy .buy { gap: 10px; }
.pd__buy .qty { height: 50px; }
.pd__buy .qty input { width: 64px; font-size: 1.0625rem; }
.pd__buy .qty button { width: 40px; }
.pd__buy .btn { min-height: 50px; padding-inline: 32px; font-size: 1.0625rem; }
.pd__wa { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-weight: 500; }
.pd__wa svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pd__desc { margin: 20px 0; padding-top: 20px; border-top: 1px solid var(--line); max-width: 65ch; }
.pd__facts { margin: 20px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.pd__facts > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pd__facts dt { color: var(--ink-2); }
.pd__facts dd { margin: 0; }

/* ---------- cart, checkout */
.pagetitle { margin: 32px 0 20px; }
.cartlist { list-style: none; margin: 0 0 24px; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); }
.cl { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 90px auto; gap: 16px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); }
.cl:first-child { border-top: 0; }
.cl img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-s); background: var(--sky); }
.cl__name a { font-weight: 600; color: var(--ink); text-decoration: none; display: block; }
.cl__name a:hover { text-decoration: underline; }
.cl__name span { font-size: .8125rem; color: var(--ink-2); }
.cl__total { font-weight: 700; text-align: end; }
.cl__rm .linkish { font-size: .875rem; color: var(--ink-2); }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; }
.summary dl { margin: 0 0 16px; }
.summary dl > div { display: flex; justify-content: space-between; padding: 6px 0; }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; font-weight: 600; }
.summary__total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px !important; font-size: 1.25rem; }
.summary__total dt { color: var(--ink); font-weight: 600; }
.summary .linkish { display: block; text-align: center; margin-top: 12px; }
.cartlist + .summary { max-width: 420px; margin-inline-start: auto; margin-bottom: 56px; }

.checkout { padding-bottom: 56px; }
.co { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.co__sum { position: sticky; top: calc(var(--head-h) + 16px); }
.co__sum h2 { font-size: 1.25rem; }
.field { margin-bottom: 18px; }
.field label, .seg legend, .pay legend { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #B9C9DA; border-radius: var(--r-s); background: #fff;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,143,198,.2); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field__err { color: var(--red); font-size: .875rem; margin: 6px 0 0; }
.field2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { width: 100%; }
.seg label { flex: 1 1 200px; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid #B9C9DA; border-radius: var(--r-s); background: #fff; cursor: pointer; }
.seg label:has(input:checked), .pay__opt:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #F4F8FC; }
.seg input, .pay input { accent-color: var(--navy); width: 18px; height: 18px; flex: none; }
.pay__opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid #B9C9DA; border-radius: var(--r-s); background: #fff; cursor: pointer; margin-bottom: 8px; }
.pay__opt input { margin-top: 3px; }
.pay__opt b { display: block; }
.pay__opt small { color: var(--ink-2); font-size: .875rem; }
.mini { list-style: none; margin: 0 0 12px; padding: 0; }
.mini li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.mini li span:last-child { white-space: nowrap; font-weight: 600; }
.mini__total { font-size: 1.0625rem; border-bottom: 0 !important; }

.done { text-align: center; padding-block: 48px 64px; }
.done__mark { width: 64px; height: 64px; margin: 0 auto 16px; fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.done__mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .2s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__ref { font-size: 1.125rem; }
.done .mini { text-align: start; max-width: 520px; margin: 24px auto; }
.done__act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.trackf { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end; margin-bottom: 24px; }
.trackf .field { margin: 0; }
.trackf .btn { min-height: 48px; }
.order { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; margin-bottom: 56px; }
.progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 20px 0 24px; counter-reset: p; }
.progress li { position: relative; padding-top: 28px; font-size: .875rem; color: var(--ink-2); text-align: center; }
.progress li::before { content: ""; position: absolute; top: 6px; inset-inline-start: 50%; width: 14px; height: 14px; margin-inline-start: -7px; border-radius: 50%; background: #fff; border: 2px solid var(--line); z-index: 1; }
.progress li::after { content: ""; position: absolute; top: 12px; inset-inline-start: -50%; width: 100%; height: 2px; background: var(--line); }
.progress li:first-child::after { display: none; }
.progress li.is-done { color: var(--ink); }
.progress li.is-done::before { background: var(--green); border-color: var(--green); }
.progress li.is-done::after { background: var(--green); }
.progress li.is-now { font-weight: 700; }

.prose { padding-bottom: 56px; max-width: 760px; }
.prose .lede, .contact .lede { font-size: 1.1875rem; color: var(--ink-2); }
.prose h2 { margin-top: 1.6em; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-bottom: 56px; }
.contact .pagetitle { margin-top: 32px; }
.msgf { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; margin-top: 32px; }

/* ---------- footer */
.foot { background: var(--white); border-top: 1px solid var(--line); margin-top: 24px; font-size: .9375rem; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 40px; }
.foot h2 { font: 600 1rem var(--sans); color: var(--ink); margin-bottom: 10px; }
:lang(ar) .foot h2 { font-family: var(--arabic); }
.foot p { color: var(--ink-2); }
.foot li { padding: 3px 0; }
.foot__logo { width: 130px; margin-bottom: 12px; }
.foot__base { border-top: 1px solid var(--line); padding-block: 16px; color: var(--ink-2); font-size: .8125rem; }

/* ---------- toast */
.toast {
  position: fixed; inset-inline: 16px; bottom: calc(16px + var(--tab-h)); z-index: 60; margin-inline: auto; max-width: 420px;
  background: var(--navy-2); color: #fff; border-radius: var(--r-m); padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; box-shadow: 0 12px 28px rgba(15,37,82,.3);
  animation: rise .2s ease;
}
.toast a { color: #fff; font-weight: 600; white-space: nowrap; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }

/* ---------- app tab bar (phones and installed app) */
.tabbar { display: none; }
@media (max-width: 760px), (display-mode: standalone) and (max-width: 1000px) {
  :root { --tab-h: calc(62px + env(safe-area-inset-bottom)); --head-h: 64px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 35;
    background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; text-decoration: none; color: var(--ink-2); font-size: .75rem; font-weight: 500; }
  .tabbar a[aria-current] { color: var(--navy); }
  .tabbar a[aria-current] svg { stroke-width: 2.3; }
  .tabbar .badge { position: absolute; top: 4px; inset-inline-start: calc(50% + 6px); }
  .nav { display: none; }
}

/* ---------- responsive */
@media (max-width: 1080px) {
  .pricelist__head, .row { grid-template-columns: 44px minmax(76px, 104px) minmax(0, 1fr) 96px 80px 164px; }
  .row__unit, .pricelist__head span:nth-child(4) { display: none; }
  .row__img img { width: 44px; height: 44px; }
  .shop { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; gap: 32px; padding-block: 32px 40px; }
  .hero__fig { max-width: 520px; }
  .shop { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
  .shop__side { position: static; max-height: none; overflow: visible; order: 0; }
  .shop__main { order: 1; }
  .catnav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .catnav a { white-space: nowrap; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
  .pd { grid-template-columns: 1fr; gap: 24px; }
  .co { grid-template-columns: 1fr; }
  .co__sum { position: static; }
  .trade { grid-template-columns: 1fr; padding: 28px; }
  .trade__act { justify-content: flex-start; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .topline__in > span:first-child { display: none; }
  .topline__in { justify-content: flex-end; }
  .head__in { gap: 12px; }
  .brand img { width: 104px; }
  .search input { height: 40px; }
  .bigsearch__box { flex-direction: column; }
  .bigsearch .btn { height: 52px; }
  .bigsearch input { height: 54px; font-size: 1rem; }
  .sec { padding-block: 40px; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat__name { font-size: .9375rem; padding: 10px 10px 0; }
  .cat__count { padding: 0 10px 10px; }
  .steps ol { grid-template-columns: 1fr; gap: 20px; }

  /* price list rows become two-line entries */
  .pricelist__head { display: none; }
  .row {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    grid-template-areas: "img name price" "img ref stock" "buy buy buy";
    gap: 2px 12px; padding: 12px;
  }
  .row__img { grid-area: img; align-self: start; }
  .row__name { grid-area: name; }
  .row__ref { grid-area: ref; }
  .row__price { grid-area: price; align-self: start; }
  .row__stock { grid-area: stock; justify-self: end; }
  .row__buy { grid-area: buy; justify-self: stretch; margin-top: 8px; }
  .row__buy .buy { justify-content: flex-end; }
  .row__img img { width: 56px; height: 56px; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card__body { padding: 10px; }
  .card .buy { flex-wrap: wrap; }
  .card .qty { width: 100%; justify-content: space-between; }
  .card .btn--add { width: 100%; }

  .tools { gap: 10px 14px; }
  .tools__count { width: 100%; }
  .pd__facts > div { grid-template-columns: 110px 1fr; }
  .pd__buy .buy { flex-wrap: wrap; }
  .pd__buy .btn { flex: 1; }
  .cl { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "img name name" "img qty total" ". rm rm"; gap: 8px 12px; }
  .cl img { grid-area: img; width: 56px; height: 56px; }
  .cl__name { grid-area: name; }
  .cl__qty { grid-area: qty; }
  .cl__total { grid-area: total; }
  .cl__rm { grid-area: rm; }
  .field2 { grid-template-columns: 1fr; gap: 0; }
  .trackf { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; gap: 20px; }
  .progress li { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .done__mark path { stroke-dashoffset: 0; }
}
@media print {
  .topline, .head, .tabbar, .foot, .buy, .tools, .shop__side { display: none !important; }
  .row { break-inside: avoid; }
}
@media (max-width: 760px) { .hero .chips li:nth-child(n+5) { display: none; } }

/* =====================================================================
   Store home — offer banners, category circles, product rails.
   The signature: a marigold price sticker, like the ones on wholesaler boxes.
   ===================================================================== */
:root { --sticker: #FFC93C; --sticker-ink: #3A2600; --mint: #E2F3EC; }

.sticker {
  position: absolute; z-index: 2; inset-inline-end: -14px; top: -16px;
  width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: 0;
  background: var(--sticker); color: var(--sticker-ink);
  transform: rotate(-10deg);
  box-shadow: 0 10px 24px -10px rgba(58, 38, 0, .55), inset 0 0 0 3px rgba(255,255,255,.55), inset 0 0 0 5px var(--sticker);
  font-family: var(--sans); line-height: 1;
}
.sticker::after { /* dashed perforation ring */
  content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1.5px dashed rgba(58, 38, 0, .35);
}
.sticker small { font-size: .8125rem; font-weight: 600; }
.sticker b { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; margin: 2px 0; }
.sticker--sm { width: 54px; height: 54px; top: 8px; inset-inline-end: 8px; transform: rotate(-8deg); }
.sticker--sm::after { inset: 4px; border-width: 1px; }
.sticker--sm b { font-size: .9375rem; margin: 0; }
.sticker--inline { position: relative; inset: auto; top: auto; display: inline-grid; vertical-align: middle; margin-inline-start: 6px; }

/* ---------- top: carousel + side tiles */
.top { padding: 20px 0 8px; }
.top__in { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; }
.promo { position: relative; border-radius: 14px; overflow: hidden; background: var(--navy); }
.promo__track, .rail__track { position: relative; }
.promo__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.promo__track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: start; min-height: 360px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: 24px;
  padding: 40px 40px 64px; position: relative;
}
.slide--navy { background: var(--navy); color: #DCE7F3; }
.slide--sky { background: #DCEBF6; color: var(--ink); }
.slide--mint { background: var(--mint); color: var(--ink); }
.slide--paper { background: #fff; color: var(--ink); }
.slide__kicker { font-weight: 700; font-size: .9375rem; margin-bottom: 10px; color: var(--blue); }
.slide--navy .slide__kicker { color: var(--sticker); }
.slide--mint .slide__kicker { color: #1F6B4B; }
.slide__title { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.75rem); line-height: 1.06; letter-spacing: -.02em; margin-bottom: 14px; max-width: 15ch; }
:lang(ar) .slide__title { line-height: 1.3; letter-spacing: 0; }
.slide--navy .slide__title { color: #fff; }
.slide__body { max-width: 44ch; margin-bottom: 22px; font-size: 1.0625rem; }
.slide--navy .slide__body { color: #C9D8EA; }
.slide--navy .slide__cta { background: var(--sticker); border-color: var(--sticker); color: var(--sticker-ink); }
.slide--navy .slide__cta:hover { background: #fff; border-color: #fff; color: var(--navy); }
.slide__art { position: relative; justify-self: center; width: min(100%, 420px); }
.slide__art img { border-radius: 10px; transform: rotate(2deg); box-shadow: 0 24px 40px -20px rgba(0,0,0,.5); border: 4px solid #fff; }
.promo__ctrl { position: absolute; inset-inline-start: 40px; bottom: 18px; display: flex; align-items: center; gap: 10px; }
.promo__arrow { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; color: var(--navy); }
.promo__arrow svg, .rail__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .promo__arrow svg, [dir="rtl"] .rail__nav svg { transform: scaleX(-1); }
.promo__dots { display: flex; gap: 6px; }
.promo__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(23, 51, 107, .3); cursor: pointer; transition: width .25s; }
.promo[data-theme="navy"] .promo__dots button { background: rgba(255,255,255,.4); }
.promo__dots button[aria-current] { width: 26px; background: var(--blue); }
.promo[data-theme="navy"] .promo__dots button[aria-current] { background: var(--sticker); }

.side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.side__tile { border-radius: 14px; padding: 20px; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; color: var(--ink); position: relative; overflow: hidden; }
.side__tile svg { position: absolute; top: 16px; inset-inline-end: 16px; width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.side__tile b { font-size: 1.125rem; }
.side__tile span { font-size: .9375rem; color: var(--ink-2); max-width: 24ch; }
.side__tile--wa { background: #DFF5E7; } .side__tile--wa svg { color: #1F7A46; }
.side__tile--app { background: #fff; border: 1px solid var(--line); } .side__tile--app svg { color: var(--navy); }
.side__tile:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- category circles */
.circles { padding: 22px 0 6px; }
.circles ul { list-style: none; margin: 0; padding: 4px 0 10px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: thin; }
.circles a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); text-align: center; }
.circle { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; transition: transform .2s ease; }
.circle .ic { width: 40px; height: 40px; }
.circles a:hover .circle { transform: translateY(-3px); }
.circles a:hover .circles__name { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.circles__name { font-size: .8125rem; font-weight: 600; line-height: 1.25; max-width: 12ch; }

/* ---------- product rails */
.rail { padding: 22px 0; }
.rail__head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.rail__head > div { margin-inline-end: auto; }
.rail__head h2 { margin: 0; font-size: clamp(1.3rem, 1.05rem + .8vw, 1.625rem); }
.rail__head p { margin: 4px 0 0; color: var(--ink-2); }
.rail__head > a { font-weight: 600; white-space: nowrap; }
.rail__nav { display: flex; gap: 6px; }
.rail__nav button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--navy); }
.rail__nav button:hover { border-color: var(--navy); }
.rail__track { list-style: none; margin: 0; padding: 2px 2px 12px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.rail__track::-webkit-scrollbar { display: none; }
.rail--deals { background: var(--navy); margin: 18px 0; padding: 28px 0 22px; }
.rail--deals .rail__head h2 { color: #fff; }
.rail--deals .rail__head p { color: #C9D8EA; }
.rail--deals .rail__head > a { color: var(--sticker); }
.rail--deals .rail__nav button { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }

.tile { scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rail--deals .tile { border-color: transparent; }
.tile__img { position: relative; display: block; border-radius: 8px; overflow: hidden; }
.tile__img img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--sky); transition: transform .3s ease; }
.tile:hover .tile__img img { transform: scale(1.04); }
.tile__name { font-weight: 600; font-size: .9375rem; line-height: 1.3; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.tile__name:hover { color: var(--navy); text-decoration: underline; }
.tile__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.tile__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-width: 0; }
.tile__price b { font-size: 1.125rem; color: var(--navy-2); }
.tile__price s, .row__price s, .pd__price s { color: var(--ink-2); font-size: .8125rem; font-weight: 400; }
.tile__price small { width: 100%; color: var(--ink-2); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile__add button {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none;
  transition: background .15s, transform .15s;
}
.tile__add button:hover { background: var(--blue); }
.tile__add button:active { transform: scale(.92); }
.tile__add button.is-done { background: var(--green); }
.tile__add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.tile__low { margin: -2px 0 0; font-size: .75rem; font-weight: 600; color: var(--amber); }
.row__price s { display: block; }
.pd__price s { font-size: 1.125rem; }

/* ---------- trust strip */
.trust { background: #fff; border-block: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0 auto; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust li { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.trust svg { grid-row: 1 / 3; width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--sky); fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trust b { font-size: .9375rem; }
.trust span { font-size: .8125rem; color: var(--ink-2); }

@media (max-width: 1080px) {
  .rail__track { grid-auto-columns: calc((100% - 3 * 14px) / 4.3); }
  .top__in { grid-template-columns: minmax(0, 1fr) 230px; }
}
@media (max-width: 900px) {
  .top__in { grid-template-columns: minmax(0, 1fr); }
  .side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .side__tile { min-height: 120px; }
  .trust ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .top { padding-top: 12px; }
  .top .wrap, .rail .wrap { width: 100%; }
  .top__in { gap: 12px; }
  .promo { border-radius: 0; }
  .side { padding-inline: 16px; gap: 10px; }
  .side__tile { padding: 14px; min-height: 0; padding-top: 52px; }
  .side__tile svg { width: 36px; height: 36px; top: 12px; inset-inline-end: auto; inset-inline-start: 14px; }
  .side__tile b { font-size: 1rem; }
  .side__tile span { font-size: .8125rem; }
  .slide { grid-template-columns: 1fr; grid-template-rows: auto auto; padding: 22px 20px 58px; min-height: 0; gap: 18px; }
  .slide__art { order: -1; justify-self: start; margin-top: 10px; }
  .slide .sticker { width: 92px; height: 92px; inset-inline-end: -56px; top: 0; }
  .slide .sticker b { font-size: 1.45rem; }
  .slide .sticker small { font-size: .6875rem; }
  .slide__art { width: 64%; }
  .slide__body { font-size: 1rem; margin-bottom: 18px; }
  .promo__ctrl { inset-inline-start: 20px; bottom: 16px; }
  .circles ul { grid-auto-columns: 84px; padding-inline: 16px; margin-inline: -16px; }
  .circle { width: 68px; height: 68px; }
  .circle .ic { width: 32px; height: 32px; }
  .rail__head { padding-inline: 16px; }
  .rail__nav { display: none; }
  .rail__track { grid-auto-columns: 44%; padding-inline: 16px; scroll-padding-inline: 16px; gap: 10px; }
  .trust ul { gap: 18px 14px; padding: 18px 0; }
  .trust li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  .trust svg { margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .promo__track, .rail__track { scroll-behavior: auto; }
}

/* product photos: show the whole product, never crop */
.tile__img img, .card__img img, .row__img img, .cl img, .pd__main, .pd__thumbs img { object-fit: contain; background: #fff; }
.row__img img, .cl img { border: 1px solid var(--line); }
