/* Fonts — Changa (2026-10-19): the owner wanted the DoCaffeine store's font — square Kufi letters and boxy digits, easy to read.
   One variable file per script (weights 200–800), from Google Fonts; size-adjust because Changa draws ~10% smaller than
   the old fonts at the same px. Plex Arabic only fills in symbols Changa lacks (← →) */
@font-face{font-family:"Changa";font-style:normal;font-weight:200 800;font-display:swap;size-adjust:110%;src:url(../fonts/changa-arabic.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"Changa";font-style:normal;font-weight:200 800;font-display:swap;size-adjust:110%;src:url(../fonts/changa-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Plex Arabic";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/plex-arabic-400.woff2) format("woff2")}

/* ============ Tokens ============ */
:root {
  /* the owner's identity colours (2026-10-19, from the "الوكيل الحصري لأكثر من 300 منتج" poster):
     navy #0C2448 -> blue #0C4878 -> #3084B4 -> sky #6CB4D8 -> pale aqua #CCF0F0.
     Text only ever sits on the darker part (white >= 5:1); #3084B4 itself is a little too light for small
     white text, so the gradients end on #276FA3 and the poster's own #3084B4/#6CB4D8 are for decoration */
  --navy: #0C2448;
  --navy-hover: #0C4878;
  --blue-1: #0C2448;
  --blue-2: #0C4878;
  --blue-3: #276FA3;
  --cyan-2: #6CB4D8;
  --wave: #3084B4;
  --aqua: #CCF0F0;
  --grad-band: linear-gradient(100deg, var(--blue-1) 0%, var(--blue-2) 55%, var(--blue-3) 100%);
  --grad-deep: linear-gradient(180deg, var(--blue-1) 0%, var(--blue-2) 60%, var(--blue-3) 100%);
  --grad-accent: linear-gradient(90deg, var(--blue-1), var(--blue-3) 50%, var(--cyan-2));
  --white: #FFFFFF;
  --tile: #EDF4F8;
  --line: #E1E9EF;
  --ink-2: #566B7E;
  --cyan: #1D6FA0;         /* links/accents on white (5.5:1) */
  --on-navy-2: #D6EAF4;    /* secondary text on the blues */
  --on-navy-line: rgba(255, 255, 255, .2); /* hairlines on the blues */
  --vivid: #0C4878;        /* default colour of a company plate */
  --vivid-hover: #0C2448;
  --logo-blue: #3084B4;

  --f-head: "Changa", "Plex Arabic", Tahoma, sans-serif;
  --f-body: "Changa", "Plex Arabic", system-ui, Tahoma, sans-serif;
  --f-num: "Changa", "Plex Arabic", sans-serif;

  /* type scale (mobile first) */
  --t-display: 40px;
  --t-h2: 26px;
  --t-h3: 17px;
  --t-body: 16px;
  --t-small: 14px;
  --t-micro: 12.5px;

  --gutter: 16px;
  --header-h: 64px;
  --hdr: 64px;         /* the shop header (the panel keeps --header-h) */
  --hdr-logo: 50px;
  color-scheme: light;
}
@media (min-width: 1200px) { :root { --hdr: 86px; --hdr-logo: 66px; } }
@media (min-width: 768px) { :root { --gutter: 32px; --t-display: 56px; --t-h2: 34px; } }
@media (min-width: 1024px) { :root { --t-display: 68px; --t-h2: 40px; --t-h3: 18px; } }

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 8px); }
html.lock { overflow: hidden; }
body {
  margin: 0; background: var(--white); color: var(--navy);
  font-family: var(--f-body); font-size: var(--t-body); line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul, pre { margin: 0; }
h1, h2, h3 { font-family: var(--f-head); text-wrap: balance; }
p { text-wrap: pretty; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 22px; height: 22px; flex: none; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.text-btn {
  min-height: 44px; font-family: var(--f-head); font-size: var(--t-small); font-weight: 600;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px;
}

/* ============ Buttons ============ */
.btn {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding: 0 18px; border: 1.5px solid var(--navy);
  font-family: var(--f-head); font-size: 15px; font-weight: 700; line-height: 1.3; text-align: start;
  cursor: pointer; transition: background-color .15s, color .15s;
}
.btn i { font-style: normal; font-family: var(--f-body); font-size: 20px; line-height: 1; }
.btn-navy { background: var(--grad-band); color: var(--white); border-color: var(--blue-1); }
.btn-white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-line { background: var(--grad-band); color: var(--white); border-color: var(--white); }
.btn-outline { background: var(--white); color: var(--navy); }
.btn-xl { min-height: 56px; }
button.btn { width: 100%; }
/* hover: the colour deepens and the arrow moves forward a little — no extra outlines */
.btn i { transition: transform .2s var(--ease, ease); }
@media (hover: hover) {
  .btn:hover i { transform: translateX(-4px); }
  .btn-navy:hover { background: var(--navy-hover); border-color: var(--navy-hover); }
  .btn-white:hover { background: var(--tile); border-color: var(--tile); }
  .btn-line:hover { background: var(--navy-hover); }
  .btn-outline:hover { background: var(--tile); }
}
.btn:focus:not(:focus-visible) { outline: none; }
.btn-navy:active, .btn-line:active { background: var(--navy-hover); }
.btn-white:active, .btn-outline:active { background: var(--tile); }

/* ============ Top strip + header ============ */
.strip {
  display: flex; align-items: center; justify-content: center; height: 34px; padding-inline: var(--gutter);
  background: var(--navy); color: var(--white);
  font-family: var(--f-head); font-size: var(--t-micro); font-weight: 500; line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* the logo + name pair (used by the panel's header and the menu) */
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; flex: none; }
.logo img { width: 40px; height: 40px; }
.logo-txt { display: flex; flex-direction: column; gap: 3px; }
.logo-txt b { font-family: var(--f-head); font-size: 17px; font-weight: 800; line-height: 1.1; }
.logo-txt small { font-family: var(--f-num); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; line-height: 1; color: var(--ink-2); }

/* the shop header, after the DoCaffeine one the owner sent (2026-10-19): links | logo alone in the middle | icons only.
   A thin logo-blue line marks the section you're in; it slides away while you scroll down and comes back on the way up */
.header {
  position: sticky; top: 0; z-index: 40; height: var(--hdr); background: var(--white);
  transition: transform .28s var(--ease), box-shadow .2s;
}
.header.is-stuck { box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(12, 36, 72, .06); }
.header.is-away { transform: translateY(-100%); box-shadow: none; }
.header-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; height: 100%; }
.header-start, .header-end { display: flex; align-items: center; gap: 2px; min-width: 0; }
.header-end { justify-content: flex-end; }
.header .logo { display: block; min-height: 0; }
.header .logo img { width: var(--hdr-logo); height: var(--hdr-logo); }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--navy); }
.icon-btn .ic { width: 26px; height: 26px; }
.cart-btn b {
  position: absolute; top: 0; inset-inline-end: -3px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--navy); box-shadow: 0 0 0 2px var(--white); color: var(--white);
  font-family: var(--f-num); font-size: 13px; font-weight: 600; line-height: 1;
}
.nav, .only-desk { display: none; }
@media (hover: hover) { .icon-btn:hover { background: var(--tile); } }
@media (min-width: 1200px) {
  .menu-btn, .only-mob { display: none; }
  .only-desk { display: grid; }
  .header-end { gap: 6px; }
  .nav { display: flex; gap: 20px; }
  .nav a {
    display: flex; align-items: center; min-height: 44px; font-family: var(--f-head); font-size: 14px; font-weight: 600; white-space: nowrap;
    text-decoration: underline 2px transparent; text-underline-offset: 10px; transition: text-decoration-color .2s, color .2s;
  }
  .nav a:hover { text-decoration-color: var(--cyan-2); }
  .nav a[aria-current="true"] { text-decoration-color: var(--wave); }
}
@media (min-width: 1280px) { .nav { gap: 26px; } .nav a { font-size: 15px; } }

/* ============ Search + tabs ============ */
.finder { position: relative; padding-top: 12px; background: var(--white); }
.search {
  display: flex; align-items: center; gap: 10px; height: 48px; padding-inline: 14px 4px;
  border: 1.5px solid var(--navy); background: var(--white); cursor: text;
}
.search > .ic { width: 20px; height: 20px; }
.search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: var(--white);
  font-size: 16px; -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--ink-2); opacity: 1; }
.search input::-webkit-search-cancel-button { display: none; }
.search:focus-within { outline: 2px solid var(--cyan); outline-offset: 1px; }
.search-clear { min-width: 52px; min-height: 44px; font-family: var(--f-head); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.finder .wrap { position: relative; }
.suggest {
  position: absolute; inset-inline: var(--gutter); top: calc(100% + 6px); z-index: 30;
  max-height: min(70vh, 540px); overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 14px 10px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 22px 44px -22px rgba(11, 42, 74, .5);
}
.suggest p { font-family: var(--f-head); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.sg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sg-chips button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); font-size: var(--t-small); }
@media (hover: hover) { .sg-chips button:hover { border-color: var(--navy); } }
.sg-results { display: grid; }
.sg-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; padding: 6px; text-align: start; }
.sg-row.on { background: var(--tile); }
@media (hover: hover) { .sg-row:hover { background: var(--tile); } }
.sg-thumb { width: 56px; height: 56px; background: var(--tile); }
.sg-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sg-txt { display: flex; flex-direction: column; min-width: 0; }
.sg-txt b, .sg-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-txt b { font-family: var(--f-head); font-size: 14.5px; font-weight: 700; line-height: 1.4; text-align: right; }
.sg-txt small { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.sg-none { padding: 8px 6px; font-size: 14px; color: var(--ink-2); }
.sg-all {
  width: 100%; min-height: 44px; margin-top: 6px; border-top: 1px solid var(--line);
  font-family: var(--f-head); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px;
}
/* the category bar: a photo card per category, scrolls sideways; it moves away with the page (not stuck) */
.tabs {
  display: flex; gap: 10px; padding: 14px var(--gutter) 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; border-bottom: 1px solid var(--line);
  background: var(--white);
}
#products { padding-top: 0; }
#products > .wrap { padding-top: 36px; }
@media (min-width: 1024px) { #products > .wrap { padding-top: 56px; } }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 88px; padding-bottom: 2px;
  font-family: var(--f-head); font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--ink-2); text-align: center;
}
.tab-pic {
  display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 6px; overflow: hidden;
  border-radius: 18px; background: var(--tile); box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .15s;
}
.tab-pic img { width: 100%; height: 100%; object-fit: cover; }
.tab-pic.tab-cut img { object-fit: contain; mix-blend-mode: multiply; padding: 6px; }   /* a catalog cut-out, not a photo */
.tab-pic.tab-all { background: var(--white); }
.tab-pic.tab-all img { object-fit: contain; padding: 8px; }
.tab-pic.tab-deal { background: var(--navy); color: var(--white); }
.tab-pic.tab-deal b { font-family: var(--f-num); font-size: 34px; font-weight: 600; line-height: 1; }
.tab-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tab small { font-family: var(--f-num); font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--cyan); }
.tab[aria-pressed="true"] { color: var(--navy); font-weight: 800; }
.tab[aria-pressed="true"] .tab-pic { box-shadow: 0 0 0 2.5px var(--navy); }
@media (hover: hover) { .tab:hover .tab-pic { box-shadow: 0 0 0 2px var(--navy-hover); } }
@media (min-width: 1024px) {
  .tabs { gap: 14px; padding-block: 18px 14px; }
  .tab { width: 104px; font-size: 13.5px; }
  .tab-pic { width: 88px; height: 88px; }
}
@media (min-width: 1280px) { .tabs { padding-inline: calc((100% - 1280px) / 2 + var(--gutter)); } }

/* ============ Hero: company slider (like the Pinterest home screen) ============ */
/* every company is one plate as wide as the screen, all on the same light background of our identity (2026-10-19, owner),
   with the logo big and in its real colours (the logo files have a see-through background); they slide sideways */
.hero { position: relative; background: var(--blue-1); color: var(--white); --pin-h: clamp(440px, 112vw, 560px); }
.plates {
  display: flex; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.plates::-webkit-scrollbar { display: none; }
.plates > li { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.plate {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  width: 100%; height: var(--pin-h); padding: 84px 20px 32px;
  --ink: color-mix(in srgb, var(--pc, var(--vivid)) 82%, #000);
  background: linear-gradient(180deg, #fff 0%, #F2FBFC 45%, var(--aqua) 100%); color: var(--ink); text-align: center;
}
.plate-logo { flex: 1 1 0; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.plate-logo img { width: auto; height: auto; max-width: min(92%, 1000px); max-height: 100%; object-fit: contain; }
.plate-txt { display: flex; flex-direction: column; align-items: center; min-width: 0; max-width: 100%; }
.plate-txt small { order: -1; font-size: 15px; color: var(--ink); line-height: 1.5; }
.plate-txt b {
  margin-top: 2px; font-family: var(--f-num); font-size: 56px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; line-height: 1.05; overflow-wrap: anywhere;
}
.plate[data-brand="alriada"] .plate-txt b { font-family: var(--f-head); font-size: 36px; font-weight: 800; letter-spacing: 0; text-transform: none; line-height: 1.35; }
.plate-go {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 1.5px solid var(--ink); border-radius: 999px; font-family: var(--f-head); font-size: 15px; font-weight: 700;
  transition: background-color .15s, color .15s;
}
.plate-go i { font-style: normal; font-size: 18px; line-height: 1; }
@media (hover: hover) { .plate:hover .plate-go { background: var(--ink); color: var(--white); } }
.plate:active .plate-go { background: var(--ink); color: var(--white); }
/* each company's words and button take the main colour of its own logo (darkened for contrast) */
/* (colours measured from the new logo files by tools/make_brand_assets.py -> brand_src/logo_colours.json;
   Betatech keeps its teal hexagon colour rather than the navy of its lettering) */
.plate[data-brand="disposafe bonreemed"] { --pc: #480878; }
.plate[data-brand="alriada"] { --pc: #0C4878; }
.plate[data-brand="wego"] { --pc: #161616; }
.plate[data-brand="betatech"] { --pc: #028092; }
.plate[data-brand="ostupmed"] { --pc: #082898; }
.plate[data-brand="eurocell"] { --pc: #e00a0a; }
.plate[data-brand="renw"] { --pc: #082898; }
.plate[data-brand="disposafe"] { --pc: #181868; }
.plate[data-brand="bonreemed"] { --pc: #0868b8; }

/* the first slide: the owner's poster — every product, on the poster's own aqua with its waves in two corners.
   Tapping it shows all the products. Text on the right, the product pile on the left (RTL) */
.plate-poster {
  position: relative; isolation: isolate; overflow: hidden;
  flex-direction: row; align-items: stretch; justify-content: space-between; gap: 8px;
  padding: 76px 14px 22px; --ink: var(--navy); color: var(--navy);
  background: linear-gradient(180deg, #fff 0%, #F2FBFC 45%, var(--aqua) 100%);
}
.plate-poster::before, .plate-poster::after {
  content: ""; position: absolute; z-index: -1; width: min(46%, 470px); aspect-ratio: 1300 / 676;
  background: url(../images/poster/wave.webp) no-repeat 0 0 / 100% 100%; pointer-events: none;
}
.plate-poster::before { top: 0; left: 0; }
.plate-poster::after { bottom: 0; left: 0; transform: scaleY(-1); } /* both waves on the pictures' side, the text side stays clean */
.poster-txt {
  flex: 1 1 52%; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center;
}
.poster-logo { width: 64px; height: 64px; }
.poster-txt b { font-family: var(--f-head); font-size: 25px; font-weight: 800; line-height: 1.3; }
.poster-sub { font-family: var(--f-head); font-size: 15px; font-weight: 600; line-height: 1.6; color: var(--navy-hover); }
.poster-sub em { font-family: var(--f-num); font-style: normal; font-size: 1.35em; }
.plate-poster .plate-go { margin-top: 4px; padding: 0 18px; background: var(--navy); border-color: var(--navy); color: var(--white); }
@media (hover: hover) { .plate-poster:hover .plate-go { background: var(--navy-hover); border-color: var(--navy-hover); } }
.plate-poster:active .plate-go { background: var(--navy-hover); }
.poster-pic { flex: 1 1 48%; min-width: 0; display: flex; align-items: center; justify-content: center; }
.poster-pic img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(12, 36, 72, .18)); }
.plate-poster .plate-go { white-space: nowrap; }
/* phones: the pile of products on top, the words under it (the header already shows the logo) */
@media (max-width: 767px) {
  .hero { --pin-h: clamp(470px, 124vw, 580px); }
  .plate-poster { flex-direction: column-reverse; align-items: center; justify-content: flex-end; gap: 10px; padding-bottom: 20px; }
  .poster-pic { flex: 1 1 0; min-height: 0; width: 100%; }
  .poster-txt { flex: none; gap: 6px; }
  .poster-logo { display: none; }
}
@media (min-width: 768px) {
  .plate-poster { padding: 80px max(var(--gutter), calc((100% - 1180px) / 2)) 26px; gap: 32px; }
  .poster-txt { gap: 14px; }
  .poster-logo { width: 104px; height: 104px; }
  .poster-txt b { font-size: 46px; }
  .poster-sub { font-size: 21px; }
}
@media (min-width: 1024px) { .poster-txt b { font-size: 58px; } .poster-sub { font-size: 24px; } }

/* the dots under the slider: which company you are on */
.dots { display: flex; justify-content: center; gap: 2px; padding: 8px 0; background: var(--grad-band); }
.dots .dot { display: grid; place-items: center; width: 24px; height: 28px; background: none; box-shadow: none; border-radius: 0; }
.dots .dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: background-color .2s, transform .2s; }
.dots .dot[aria-current="true"]::before { background: var(--white); transform: scale(1.25); }

/* arrows on computers (phones swipe) */
.pin-arrow { display: none; }
@media (hover: hover) and (min-width: 768px) {
  .pin-arrow {
    position: absolute; top: calc(var(--pin-h) / 2); z-index: 3; display: grid; place-items: center;
    width: 48px; height: 48px; margin-top: -24px; border-radius: 50%;
    background: rgba(11, 42, 74, .5); color: var(--white); font-size: 22px; line-height: 1; transition: background-color .15s;
  }
  .pin-arrow:hover { background: var(--navy); }
  .pin-prev { right: 24px; }
  .pin-next { left: 24px; }
}

/* on the home screen the search sits on top of the slider, like Pinterest */
#home { position: relative; }
.finder:has(+ .hero:not([hidden])) { position: absolute; inset-inline: 0; top: 0; z-index: 5; padding-top: 16px; background: transparent; }
.finder:has(+ .hero:not([hidden])) .search {
  border-color: rgba(11, 42, 74, .35); border-radius: 999px; background: rgba(255, 255, 255, .92);
}
.finder:has(+ .hero:not([hidden])) .search input { background: transparent; }
.finder:has(+ .hero:not([hidden])) .suggest { margin-top: 8px; padding: 14px 16px 16px; background: var(--white); border-radius: 18px; }

@media (min-width: 768px) {
  .hero { --pin-h: 480px; }
  .plate-txt b { font-size: 72px; }
  .plate[data-brand="alriada"] .plate-txt b { font-size: 48px; }
  .plate-txt small { font-size: 17px; }
}
@media (min-width: 1024px) {
  .hero { --pin-h: 540px; }
  .plate-txt b { font-size: 88px; }
}

/* ============ Sections ============ */
.block { padding: 48px 0; }
.block + .block { border-top: 1px solid var(--line); }
.block-head { margin-bottom: 22px; }
.block-head h2 { font-size: var(--t-h2); font-weight: 800; line-height: 1.3; }
.filterbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-top: 6px; }
.filterbar p { font-size: var(--t-small); color: var(--ink-2); }
@media (min-width: 1024px) { .block { padding: 80px 0; } .block-head { margin-bottom: 36px; } }

/* ============ Product grid ============ */
/* product cards, after the DoCaffeine store the owner sent (2026-10-19): each product in its own rounded box,
   the photo rounded inside it with the tags and a ♡ on top, name + price centred, an outline button with a bag */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; } }
.card {
  --pad: 8px;
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: var(--pad);
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  transition: box-shadow .25s var(--ease), border-color .25s;
}
@media (min-width: 768px) { .card { --pad: 14px; border-radius: 18px; } }
@media (hover: hover) { .card:hover { border-color: #D2DEE8; box-shadow: 0 12px 28px rgba(12, 36, 72, .08); } }
.card-link { display: flex; flex-direction: column; flex: 1; text-align: center; }
.card-media { display: block; width: 100%; aspect-ratio: 1 / 1; background: var(--tile); border-radius: 12px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s ease; }
@media (hover: hover) { .card-link:hover .card-media img { transform: scale(1.05); } .card-link:hover .card-name { text-decoration: underline; text-underline-offset: 5px; } }
.card-brand { display: block; margin-top: 12px; font-family: var(--f-num); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); line-height: 1.3; }
.card-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 4px; font-family: var(--f-head); font-size: 14.5px; font-weight: 700; line-height: 1.45; text-align: center;
}
.card-ar {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 2px; font-size: 13px; color: var(--ink-2); line-height: 1.6;
}
@media (min-width: 768px) { .card-name { font-size: 16px; } .card-ar { font-size: 14px; } }
/* the price sits at the bottom, so prices and buttons line up across a row */
.card-bottom { display: block; margin-top: auto; padding-top: 8px; }
.card-foot { margin-top: 10px; }
.btn.btn-card {
  justify-content: center; gap: 8px; min-height: 44px; padding-inline: 10px; border-radius: 12px;
  background: var(--white); color: var(--navy); font-size: 14px; text-align: center;
}
.btn-card .ic { width: 20px; height: 20px; }
@media (min-width: 768px) { .btn.btn-card { min-height: 48px; font-size: 15px; gap: 10px; } .btn-card .ic { width: 22px; height: 22px; } }
@media (hover: hover) { .btn.btn-card:hover { background: var(--navy); border-color: var(--navy); color: var(--white); } }
.btn.btn-card:active { background: var(--tile); }
.btn.btn-card.is-done { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ♡ on the photo: a white rounded square, filled navy once saved */
.fav {
  position: absolute; top: calc(var(--pad) + 6px); inset-inline-start: calc(var(--pad) + 6px); z-index: 1;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--white); color: var(--navy); box-shadow: 0 1px 4px rgba(12, 36, 72, .12);
  transition: transform .14s var(--ease), color .18s;
}
.fav .ic { width: 21px; height: 21px; fill: none; transition: fill .18s; }
.fav[aria-pressed="true"] .ic, .fav-pdp[aria-pressed="true"] .ic, .fav-btn:not(:has(b[hidden])) .ic { fill: currentColor; }
.fav:active { transform: scale(.9); }
@media (min-width: 768px) { .fav { width: 42px; height: 42px; } .fav .ic { width: 23px; height: 23px; } }
.fav.bump .ic, .fav-btn.bump .ic { animation: bump .45s var(--ease); }
.fav-pdp .ic, .fav-btn .ic { fill: none; }

/* the tags on the photo: pills on the corner opposite the ♡ */
.card-tags { position: absolute; top: 8px; inset-inline-end: 8px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (min-width: 768px) { .card-tags { top: 10px; inset-inline-end: 10px; } }

.more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 44px; }
.more-txt { font-size: var(--t-small); color: var(--ink-2); }
.more-txt b { font-family: var(--f-num); font-size: 16px; font-weight: 600; color: var(--cyan); }
.progress { width: 220px; height: 2px; background: var(--line); }
.progress span { display: block; height: 100%; width: 0; background: var(--grad-accent); transition: width .3s ease; }
.more .btn { width: 100%; max-width: 360px; margin-top: 8px; }

.empty { padding: 24px 0 8px; }
.empty h3 { font-size: 20px; font-weight: 700; line-height: 1.4; }
.empty p { margin-top: 6px; color: var(--ink-2); }
.empty .btn { margin-top: 20px; max-width: 360px; }

/* ============ Category rows ============ */
.cat-rows { border-top: 1px solid var(--line); }
.cat-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  width: 100%; height: 120px; border-bottom: 1px solid var(--line); text-align: start;
}
.cat-row .thumb { width: 96px; height: 96px; background: var(--tile); overflow: hidden; }
.cat-row .thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cat-row .thumb.photo img { mix-blend-mode: normal; object-fit: cover; }
.cat-row h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.4; }
.cat-row p { font-size: 13px; color: var(--ink-2); }
.cat-row p b { font-family: var(--f-num); font-size: 14px; font-weight: 600; color: var(--cyan); }
.cat-row i { font-style: normal; font-size: 22px; padding-inline-end: 4px; }
@media (hover: hover) { .cat-row:hover h3 { text-decoration: underline; text-underline-offset: 6px; } }
@media (min-width: 1024px) {
  .cat-rows { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; border-top: 0; border-bottom: 1px solid var(--line); }
  .cat-row { border-top: 1px solid var(--line); border-bottom: 0; grid-template-columns: 128px minmax(0, 1fr) auto; height: 152px; }
  .cat-row .thumb { width: 128px; height: 128px; }
}

/* ============ About ============ */
.about { background: var(--grad-deep); color: var(--white); padding: 56px 0; }
.kicker { font-family: var(--f-num); font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--on-navy-2); }
.about .kicker { margin-top: 0; font-family: var(--f-head); font-weight: 600; letter-spacing: 0; font-size: 14px; }
.about h2 { margin-top: 10px; font-size: 32px; font-weight: 800; line-height: 1.3; }
.about-txt { margin-top: 18px; max-width: 60ch; color: var(--on-navy-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; border-top: 1px solid var(--on-navy-line); }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 18px 0 0; padding-inline-start: 14px; border-inline-start: 1px solid var(--on-navy-line); }
.stats div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.stats dd { font-family: var(--f-num); font-size: 46px; font-weight: 600; line-height: 1; }
.stats dd[data-plus]::after { content: "+"; }
.stats dt { margin-top: 6px; font-size: var(--t-small); color: var(--on-navy-2); }
@media (min-width: 1024px) {
  .about { padding: 104px 0; }
  .about h2 { font-size: 52px; line-height: 1.25; }
  .about-txt { font-size: 18px; }
  .stats { max-width: 760px; }
  .stats dd { font-size: 72px; }
  .stats div { padding-inline-start: 28px; }
}

/* ============ Steps ============ */
.steps { border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.steps b { font-family: var(--f-num); font-size: 40px; font-weight: 600; line-height: 1; }
.steps h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.45; }
.steps p { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
@media (min-width: 1024px) {
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .steps li { grid-template-columns: 1fr; padding: 32px 28px; border-bottom: 0; border-inline-start: 1px solid var(--line); }
  .steps li:first-child { border-inline-start: 0; padding-inline-start: 0; }
  .steps b { font-size: 56px; }
}

/* ============ Order band ============ */
.band { background: var(--tile); padding: 40px 0; }
.band-in { display: grid; gap: 20px; }
.band h2 { font-size: 24px; font-weight: 800; line-height: 1.35; }
.band p { margin-top: 6px; color: var(--ink-2); }
@media (min-width: 1024px) {
  .band { padding: 56px 0; }
  .band-in { grid-template-columns: 1fr minmax(0, 380px); align-items: center; gap: 48px; }
  .band h2 { font-size: 32px; }
}

/* ============ Footer ============ */
.footer { background: var(--grad-deep); color: var(--white); padding-top: 44px; }
.footer-in { display: grid; gap: 28px; }
.f-brand { display: flex; align-items: center; gap: 14px; }
.f-brand img { width: 56px; height: 56px; padding: 3px; border-radius: 50%; background: var(--white); } /* the dark-blue logo needs a white disc on the blues */
.f-brand strong { font-family: var(--f-head); font-size: 18px; font-weight: 800; }
.f-brand p { font-size: 13px; color: var(--on-navy-2); }
.f-rows { border-top: 1px solid var(--on-navy-line); }
.f-row {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 56px; border-bottom: 1px solid var(--on-navy-line);
}
.f-row span { font-size: var(--t-small); color: var(--on-navy-2); }
.f-row b { font-family: var(--f-num); font-size: 20px; font-weight: 600; text-align: start; letter-spacing: .02em; }
.f-row b:not([dir]) { font-family: var(--f-body); font-size: 15px; font-weight: 400; letter-spacing: 0; }
.f-row .ic { width: 20px; height: 20px; }
.f-row i { font-style: normal; font-size: 18px; }
@media (hover: hover) { .f-row:hover b { text-decoration: underline; text-underline-offset: 5px; } }
.f-bottom { padding-block: 24px calc(24px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--on-navy-2); }
@media (min-width: 1024px) { .footer-in { grid-template-columns: 1fr 1.4fr; gap: 64px; } }

/* ============ Menu + cart panels ============ */
.menu, .cart { position: fixed; inset: 0; z-index: 60; background: var(--white); overflow-y: auto; overscroll-behavior: contain; }
.menu { padding-bottom: env(safe-area-inset-bottom); }
.menu-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); border-bottom: 1px solid var(--line); }
.menu-close { min-height: 44px; min-width: 64px; font-family: var(--f-head); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.menu-label { margin: 28px 0 6px; font-family: var(--f-head); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.row-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px;
  border-bottom: 1px solid var(--line); font-family: var(--f-head); font-size: 16px; font-weight: 600; text-align: start;
}
.row-link i { font-style: normal; font-size: 20px; }
.row-link small { font-family: var(--f-num); font-size: 14px; font-weight: 600; color: var(--cyan); margin-inline-start: 6px; }
.menu-wa { margin: 32px 0 40px; }

.cart-scroll { display: flex; flex-direction: column; min-height: 100%; }
.cart-scroll > .wrap { flex: 1; }
.cart-title { font-size: 20px; font-weight: 800; }
.cart-title small { font-family: var(--f-num); font-size: 18px; font-weight: 600; color: var(--cyan); }
.cart-items li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-items .thumb { width: 84px; height: 84px; background: var(--tile); }
.cart-items .thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ci-brand { font-family: var(--f-num); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); line-height: 1.3; }
.ci-name { font-family: var(--f-head); font-size: 15px; font-weight: 700; line-height: 1.45; text-align: right; }
.ci-ar { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.ci-size { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-top: 6px; }
.ci-size b { font-family: var(--f-head); font-size: 14px; font-weight: 700; color: var(--navy); }
.ci-size small { flex-basis: 100%; font-size: 12px; color: var(--ink-2); line-height: 1.5; text-align: right; }
.ci-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.qty.sm button { width: 44px; height: 44px; font-size: 22px; }
.qty.sm input { width: 56px; height: 44px; font-size: 18px; }
.cart-empty { padding: 40px 0; }
.cart-empty h3 { font-size: 22px; font-weight: 800; }
.cart-empty p { margin-top: 8px; color: var(--ink-2); max-width: 46ch; }
.cart-empty .btn { margin-top: 24px; max-width: 360px; }
.cart-form { padding: 8px 0 24px; }
.input { display: block; margin-top: 20px; }
.input span { display: block; margin-bottom: 8px; font-family: var(--f-head); font-size: 14px; font-weight: 600; }
.input small { font-family: var(--f-body); font-weight: 400; color: var(--ink-2); }
.input input { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--navy); background: var(--white); font-size: 16px; -webkit-appearance: none; appearance: none; }
.input input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.input-note { margin-top: 6px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.input + .field-error { margin-top: 6px; }
/* who is ordering, on the product page (the same name and number as the cart) */
.who { margin: 14px 0 4px; }
.who .input:first-child { margin-top: 0; }
.who-saved { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 10px 14px; border-radius: 12px; background: var(--tile); font-size: 14px; }
.who-saved b { font-family: var(--f-head); }
.who-saved bdi { font-family: var(--f-num); direction: ltr; unicode-bidi: isolate; }
.check { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; font-family: var(--f-head); font-size: 14px; font-weight: 600; line-height: 1.6; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--navy); }
.check small { font-family: var(--f-body); font-weight: 400; color: var(--ink-2); }

/* past orders in the cart */
.past { padding: 8px 0 32px; border-top: 1px solid var(--line); }
.past h3 { margin-top: 24px; font-size: 18px; font-weight: 800; }
.past > p { margin-top: 4px; font-size: var(--t-small); color: var(--ink-2); }
.past li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.past-date { font-family: var(--f-head); font-size: 15px; font-weight: 700; }
.past-items { margin-top: 2px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.past .btn { min-height: 44px; padding-inline: 14px; font-size: 14px; }

/* company filter above the product grid */
.refine { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--f-head); font-size: 14px; font-weight: 600; }
.refine select {
  height: 44px; min-width: 210px; padding: 0 14px 0 38px; border: 1.5px solid var(--navy); background: var(--white); color: var(--navy);
  font: inherit; font-weight: 600; cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23232C8A' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center;
}
.refine select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }

/* "ordered together" under the product */
.related { padding-top: 40px; padding-bottom: 48px; border-top: 1px solid var(--line); margin-top: 8px; }
.related h2 { margin-bottom: 22px; font-size: var(--t-h2); font-weight: 800; line-height: 1.3; }
@media (min-width: 1024px) { .related { margin-top: 48px; padding-top: 56px; padding-bottom: 80px; } }
.cart-clear { margin-top: 16px; color: var(--ink-2); }
@media (min-width: 1024px) { .cart-scroll > .wrap, .cart .buybar-in, .cart .menu-head { max-width: 760px; } .cart .buybar-in { justify-content: stretch; } .cart .buybar .btn { flex: 1; } }

/* "added to cart" panel */
.added { position: fixed; inset-inline: 0; bottom: 0; z-index: 55; background: var(--white); border-top: 2px solid var(--navy); padding: 18px 0 calc(18px + env(safe-area-inset-bottom)); }
.added-title { font-family: var(--f-head); font-size: 17px; font-weight: 800; }
.added-line { margin-top: 2px; font-size: var(--t-small); color: var(--ink-2); }
.added-actions { display: grid; gap: 8px; margin-top: 14px; }
@media (min-width: 768px) { .added-actions { grid-template-columns: 1fr 1fr; max-width: 720px; } }

/* sticky "view cart" bar on the home page */
.cartbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 35; display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 56px; padding: 0 var(--gutter) env(safe-area-inset-bottom);
  background: var(--grad-band); color: var(--white); font-family: var(--f-head); font-size: 15px; font-weight: 700;
}
.cartbar b { font-family: var(--f-num); font-size: 18px; font-weight: 600; }
.cartbar-go i { font-style: normal; font-family: var(--f-body); font-size: 20px; margin-inline-start: 10px; }
body.has-cartbar { padding-bottom: 56px; }

/* ============ Product page ============ */
.pdp-top { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.share { display: flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 6px; font-family: var(--f-head); font-size: 15px; font-weight: 600; }
.share .ic { width: 20px; height: 20px; }
.pdp-acts { display: flex; align-items: center; gap: 4px; }
@media (min-width: 768px) { .pdp-acts { gap: 16px; } }
@media (hover: hover) { .share:hover span { text-decoration: underline; text-underline-offset: 5px; } }
.back { display: flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--f-head); font-size: 15px; font-weight: 600; }
.back i { font-style: normal; font-size: 20px; }
.pdp-media { display: grid; place-items: center; height: 330px; background: var(--tile); }
.pdp-media img { width: auto; height: 100%; max-width: 100%; max-height: 330px; object-fit: contain; mix-blend-mode: multiply; }
.pdp-info { padding: 22px var(--gutter) 32px; }
.pdp-brand { font-family: var(--f-num); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.pdp-name { margin-top: 6px; font-size: 28px; font-weight: 800; line-height: 1.3; text-align: right; }
.pdp-ar { margin-top: 4px; font-family: var(--f-head); font-size: 17px; font-weight: 600; color: var(--ink-2); line-height: 1.5; }
.specs { margin-top: 18px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-family: var(--f-head); font-size: 13.5px; font-weight: 600; color: var(--ink-2); line-height: 1.6; }
.specs dd { margin: 0; font-size: 14.5px; line-height: 1.6; }
.pick-info .dot, .ci-size .dot { margin-inline: 8px 0; vertical-align: 1px; }
.pdp-desc { margin-top: 14px; color: var(--ink-2); }
.field { margin-top: 28px; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.field-head h2, .field-head h3 { font-size: 16px; font-weight: 700; }
.field-head span { font-size: var(--t-small); color: var(--ink-2); }
/* the size picker: type tabs, size buttons (several can be picked), a quantity for each picked size */
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.type {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  min-height: 60px; padding: 8px 12px; border: 1.5px solid var(--line); background: var(--white); text-align: start;
}
.type b { font-family: var(--f-head); font-size: 15px; font-weight: 700; line-height: 1.3; }
.type small { font-size: 12px; color: var(--ink-2); line-height: 1.45; }
.type[aria-selected="true"] { border-color: var(--navy); background: var(--tile); box-shadow: inset 0 -3px 0 var(--navy); }
@media (hover: hover) { .type:hover { border-color: var(--navy); } }
.type-n {
  position: absolute; top: -9px; inset-inline-end: -6px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: var(--grad-band); color: var(--white); font-style: normal; font-family: var(--f-num); font-size: 13px; font-weight: 600; line-height: 1;
}
.size-group-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-bottom: 10px; }
.size-group-name b { font-family: var(--f-head); font-size: 15px; font-weight: 700; }
.size-group-name small { font-size: 12.5px; color: var(--ink-2); }
.sizes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.sizes-grid.wide { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.size {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 54px; padding: 6px 8px; border: 1px solid var(--line); background: var(--white); text-align: center;
}
.size b { font-family: var(--f-num); font-size: 17px; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.sizes-grid.wide .size b { font-family: var(--f-head); font-size: 14px; font-weight: 700; line-height: 1.35; }
.size small { font-size: 11.5px; color: var(--ink-2); line-height: 1.3; }
@media (hover: hover) { .size:hover { border-color: var(--navy); } }
.size[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
/* one size that ran out (from the control panel): still shown, cannot be picked */
.size.is-out { background: var(--tile); border-style: dashed; color: var(--ink-2); cursor: default; }
.size.is-out b { text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: .7; }
.size-out { font-style: normal; font-family: var(--f-head); font-size: 11px; font-weight: 700; color: #7A4B00; }
@media (hover: hover) { .size.is-out:hover { border-color: var(--line); } }
.size[aria-pressed="true"] small { color: var(--on-navy-2); }
.size[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 2px; inset-inline-end: 6px; font-size: 12px; line-height: 1.2; }
.dot { flex: none; display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .28); }
.size .dot { position: absolute; top: 6px; inset-inline-start: 6px; }
.size[aria-pressed="true"] .dot { box-shadow: 0 0 0 1.5px var(--white); }
.picker.err .sizes-grid { outline: 1.5px solid var(--navy); outline-offset: 4px; }
.picks { margin-top: 18px; border-top: 1px solid var(--line); }
.picks-head { padding: 12px 0 2px; font-family: var(--f-head); font-size: 14px; font-weight: 700; }
.picks-head span { font-family: var(--f-body); font-weight: 400; color: var(--ink-2); }
.pick { display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pick-info { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; min-width: 0; }
.pick-info b { font-family: var(--f-head); font-size: 15px; font-weight: 700; line-height: 1.4; }
.pick-info small { flex-basis: 100%; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; text-align: right; }
.pick-x { width: 40px; height: 44px; font-size: 24px; line-height: 1; color: var(--ink-2); }
@media (hover: hover) { .pick-x:hover { color: var(--navy); } }
.field-error { margin-top: 12px; padding-inline-start: 10px; border-inline-start: 3px solid var(--navy); font-family: var(--f-head); font-size: 14px; font-weight: 700; }
.qty { display: inline-flex; }
.qty button { width: 48px; height: 48px; border: 1px solid var(--line); background: var(--white); font-size: 24px; line-height: 1; }
@media (hover: hover) { .qty button:hover { border-color: var(--navy); } }
.qty input {
  width: 72px; height: 48px; border: 1px solid var(--line); border-inline: 0; background: var(--white);
  font-family: var(--f-num); font-size: 20px; font-weight: 600; text-align: center; outline-offset: -2px;
}
.msg {
  padding: 16px; background: var(--tile); font-family: var(--f-body); font-size: 15px; line-height: 1.85;
  white-space: pre-wrap; word-break: break-word;
}
.single { margin-top: 10px; }
.buybar {
  position: sticky; bottom: 0; z-index: 30; background: var(--white); border-top: 1px solid var(--line);
  padding-block: 10px calc(10px + env(safe-area-inset-bottom));
}
.buybar-in { display: flex; gap: 8px; }
.buybar .btn { flex: 1; }
.call-sq { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border: 1.5px solid var(--navy); background: var(--white); }
@media (hover: hover) { .call-sq:hover { background: var(--tile); } }
@media (min-width: 1024px) {
  .pdp-top { height: 64px; }
  .pdp-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
  .pdp-media { height: auto; aspect-ratio: 1 / 1; align-self: start; }
  .pdp-media img { width: 100%; height: 100%; max-height: none; }
  .pdp-info { padding: 8px 0 32px; }
  .pdp-name { font-size: 38px; }
  #pdp .buybar-in { justify-content: flex-end; }
  #pdp .buybar .btn { flex: 0 1 460px; }
}

/* ============ Quick add sheet ============ */
.qa { position: fixed; inset: 0; z-index: 58; display: flex; align-items: flex-end; justify-content: center; }
.qa-backdrop { position: absolute; inset: 0; background: rgba(11, 42, 74, .55); }
.qa-panel {
  position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--white); padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); border-top: 3px solid var(--navy);
}
.qa-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.qa-thumb { width: 64px; height: 64px; background: var(--tile); }
.qa-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.qa-name { font-size: 17px; font-weight: 700; line-height: 1.4; text-align: right; }
.qa-ar { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.qa .field { margin-top: 20px; }
.qa-add { margin-top: 24px; }
.qa-more { display: block; margin: 8px auto 0; color: var(--ink-2); }
@media (min-width: 768px) { .qa { align-items: center; } .qa-panel { border: 0; padding: 28px; } }

/* ============ Motion: quick and soft, never in the way ============ */
:root { --ease: cubic-bezier(.2, .8, .2, 1); --t-in: .26s; --t-out: .2s; }

/* press feedback on everything you can tap */
.btn, .plate, .size, .tab, .qty button, .row-link, .cat-row, .call-sq, .icon-btn, .text-btn, .back {
  transition: transform .14s var(--ease), background-color .18s, color .18s, border-color .18s;
}
.btn:active, .call-sq:active { transform: scale(.975); }
.plate:active, .cat-row:active, .row-link:active { transform: scale(.99); }
.size:active, .qty button:active, .tab:active, .icon-btn:active { transform: scale(.94); }
.card-link .card-media { transition: transform .18s var(--ease); }
.card-link:active .card-media { transform: scale(.98); }
.size[aria-pressed="true"] { animation: pop .22s var(--ease); }

/* "added" feedback on the button itself */
.btn.is-done { background: var(--navy-hover); border-color: var(--navy-hover); }
.btn.is-done span { animation: swap .3s var(--ease); }

/* cart count bumps when something is added */
.cart-btn b.bump { animation: bump .45s var(--ease); }

/* panels slide/fade in and out */
.cart.is-in, .menu.is-in { animation: panelIn var(--t-in) var(--ease) both; }
.cart.is-out, .menu.is-out { animation: panelOut var(--t-out) ease-in both; }
.added.is-in, .cartbar.is-in { animation: rise var(--t-in) var(--ease) both; }
.added.is-out { animation: sink var(--t-out) ease-in both; }
.qa.is-in .qa-backdrop { animation: fadeIn var(--t-in) ease both; }
.qa.is-in .qa-panel { animation: rise .3s var(--ease) both; }
.qa.is-out .qa-backdrop { animation: fadeOut var(--t-out) ease-in both; }
.qa.is-out .qa-panel { animation: sink var(--t-out) ease-in both; }
@media (min-width: 768px) {
  .qa.is-in .qa-panel { animation-name: popIn; }
  .qa.is-out .qa-panel { animation-name: popOut; }
}

/* switching between the list and a product page */
.page-in { animation: pageIn .3s var(--ease) both; }

/* new cards appear one after another */
.card.enter { animation: cardIn .38s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }

@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } }
@keyframes panelOut { to { opacity: 0; transform: translateY(18px); } }
@keyframes rise { from { transform: translateY(100%); } }
@keyframes sink { to { transform: translateY(100%); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes popOut { to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes pop { 0% { transform: scale(.92); } 100% { transform: scale(1); } }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.cart-items li.leaving { animation: fadeOut .18s ease-in both; }

/* recently viewed: a row you can swipe */
.recent { padding: 28px 0 20px; }
.recent.off { display: none; }
.recent .block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.recent .block-head h2 { font-size: 20px; }
@media (min-width: 1024px) { .recent { padding: 40px 0 28px; } .recent .block-head h2 { font-size: 24px; } }
.recent .text-btn { color: var(--ink-2); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 136px; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 8px; scrollbar-width: thin;
}
.mini { display: flex; flex-direction: column; min-width: 0; scroll-snap-align: start; }
.mini-media { display: block; aspect-ratio: 1 / 1; background: var(--tile); overflow: hidden; }
.mini-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
@media (hover: hover) { .mini:hover .mini-media img { transform: scale(1.05); } }
.mini-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 8px; font-family: var(--f-head); font-size: 13.5px; font-weight: 700; line-height: 1.4; text-align: right;
}
.mini-ar { font-size: 12px; color: var(--ink-2); line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1024px) { .rail { grid-auto-columns: 172px; gap: 16px; } }

/* little message at the bottom (link copied) */
.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 75; transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 12px 20px; background: var(--navy); color: var(--white);
  font-family: var(--f-head); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.toast.is-in { animation: fadeIn .2s ease both; }
.toast.is-out { animation: fadeOut .2s ease-in both; }

/* picker motion */
.sizes-grid.swap-in { animation: pageIn .24s var(--ease) both; }
.pick.enter { animation: cardIn .3s var(--ease) both; }
.type, .pick-x, .share, .sg-row, .sg-chips button { transition: transform .14s var(--ease), background-color .18s, border-color .18s, color .18s; }
.type:active, .pick-x:active, .sg-chips button:active { transform: scale(.96); }

/* ============ Sold out (set from the control panel) ============ */
.card-media { position: relative; }
.card.sold-out .card-media img, .mini.sold-out .mini-media img { opacity: .5; filter: grayscale(.6); }
.so-badge, .so-tag {
  display: inline-block; padding: 4px 10px; background: #FFF1D6; color: #7A4B00;
  font-family: var(--f-head); font-size: 12.5px; font-weight: 700; line-height: 1.4;
}
/* tags on a card's photo: rounded pills (inside .card-tags) */
.so-badge, .of-badge, .new-badge { padding: 4px 11px; border-radius: 999px; font-family: var(--f-head); font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.of-badge, .new-badge { background: var(--navy); color: var(--white); }
@media (min-width: 768px) { .so-badge, .of-badge, .new-badge { padding: 5px 13px; font-size: 13px; } }
.so-tag { margin-top: 10px; font-size: 14px; }
.so-note { margin-top: 18px; padding: 14px 16px; background: #FFF1D6; border-inline-start: 4px solid #B86E00; color: #5C3800; }
.so-note b { font-family: var(--f-head); font-size: 16px; }
.so-note p { margin-top: 4px; font-size: var(--t-small); }
.mini-out { font-family: var(--f-head); font-size: 12px; font-weight: 700; color: #7A4B00; }

/* ============ Prices and offers (set from the control panel) ============ */
.card-price { display: block; font-family: var(--f-head); font-size: 15.5px; font-weight: 800; color: var(--navy); line-height: 1.5; }
@media (min-width: 768px) { .card-price { font-size: 18px; } .card-price s { font-size: 14px; } }
.card-price small { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.card-price s, .pdp-price s { margin-inline-start: 8px; font-family: var(--f-body); font-size: 12.5px; font-weight: 400; color: var(--ink-2); }
.card-price.ask { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.card-offer { display: block; margin-top: 2px; font-family: var(--f-head); font-size: 12.5px; font-weight: 700; color: #9B1C1C; line-height: 1.45; }
.size-price { display: block; margin-top: 2px; font-style: normal; font-family: var(--f-num); font-size: 13.5px; font-weight: 600; color: var(--navy); }
.size-price.deal { color: #9B1C1C; }
.size[aria-pressed="true"] .size-price { color: inherit; }
.pick-price { flex-basis: 100%; font-family: var(--f-head); font-size: 12.5px; font-weight: 700; color: var(--navy); }
.ci-price { margin-top: 6px; font-family: var(--f-head); font-size: 13.5px; font-weight: 700; color: var(--navy); }
.ci-price.ask { font-weight: 600; color: var(--ink-2); }
.cart-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-total span { font-family: var(--f-head); font-size: 16px; font-weight: 800; }
.cart-total b { font-family: var(--f-head); font-size: 20px; font-weight: 800; }
.cart-total small { flex-basis: 100%; font-size: 12.5px; color: var(--ink-2); }
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 12px; }
.pdp-price b { font-family: var(--f-head); font-size: 24px; font-weight: 800; }
.pdp-price small { font-size: 13px; color: var(--ink-2); }
.pdp-price .ask { font-family: var(--f-head); font-size: 15px; font-weight: 700; color: var(--ink-2); }
.pdp-offer { display: inline-block; margin-top: 10px; padding: 6px 12px; background: #FDE7E7; color: #9B1C1C; font-family: var(--f-head); font-size: 14px; font-weight: 700; line-height: 1.6; }
.offers.off { display: none; }
.offers .block-head .text-btn { margin-inline-start: auto; }

/* ============ Order sheet (PDF) in the cart: js/order-pdf.js ============ */
.pdf-box { margin-top: 20px; }
.pdf-ready { display: grid; gap: 8px; }
.pdf-done { font-family: var(--f-head); font-size: 14px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.pdf-done bdi { font-family: var(--f-num); font-size: 15px; font-weight: 600; }
@media (min-width: 560px) { .pdf-ready { grid-template-columns: 1fr 1fr; } .pdf-done { grid-column: 1 / -1; } }
.pdf-note { margin-top: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
#cartPdf[aria-busy="true"] { cursor: progress; opacity: .7; }
@media (hover: hover) { #cartPdf:hover i, #pdfSave:hover i { transform: translateY(2px); } }

/* ============ Smart search notes ============ */
.search-note { flex-basis: 100%; margin-top: 4px; font-family: var(--f-head); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sg-note { padding: 8px 4px 4px; font-family: var(--f-head); font-size: 13px; font-weight: 700; color: var(--ink-2); }

/* ============ Product photos: swipe between the catalog shots, thumbnails underneath ============ */
.pdp-gallery { min-width: 0; }
.pdp-media { position: relative; overflow: hidden; }
.pdp-media > .pdp-track {
  display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  background: var(--tile); isolation: isolate;
}
.pdp-track::-webkit-scrollbar { display: none; }
.pdp-media .pdp-track img {
  flex: 0 0 100%; width: 100%; height: 100%; max-width: none; max-height: none;
  object-fit: contain; scroll-snap-align: center; scroll-snap-stop: always; mix-blend-mode: multiply;
}
.pdp-cap, .pdp-count {
  position: absolute; bottom: 12px; z-index: 1; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); box-shadow: 0 0 0 1px var(--line);
  font-family: var(--f-head); font-size: 13px; font-weight: 700; line-height: 1.6; color: var(--navy); pointer-events: none;
}
/* physical sides: the counter is written left-to-right, which would flip its logical side */
.pdp-cap { right: 12px; max-width: calc(100% - 100px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdp-count { left: 12px; font-family: var(--f-num); direction: ltr; }
.pdp-nav {
  position: absolute; top: 50%; z-index: 1; display: none; place-items: center; width: 44px; height: 44px; margin-top: -22px;
  border-radius: 999px; background: var(--white); box-shadow: 0 2px 10px rgba(12, 36, 72, .14); color: var(--navy);
}
.pdp-nav i { font-style: normal; font-size: 20px; line-height: 1; }
.pdp-nav.prev { inset-inline-start: 12px; }
.pdp-nav.next { inset-inline-end: 12px; }
.pdp-nav:disabled { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .pdp-nav:not([hidden]) { display: grid; opacity: 0; transition: opacity .15s; }
  .pdp-media:hover .pdp-nav:not(:disabled), .pdp-nav:focus-visible { opacity: 1; }
  .pdp-nav:hover { background: var(--navy); color: var(--white); }
}
.pdp-thumbs {
  display: flex; gap: 10px; padding: 12px var(--gutter) 2px; overflow-x: auto; scrollbar-width: none;
}
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb { flex: none; display: grid; justify-items: center; align-content: start; gap: 4px; width: 72px; padding: 0; }
.pdp-thumb-sq {
  display: block; width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
  background: var(--tile); box-shadow: inset 0 0 0 1px var(--line); isolation: isolate;
}
.pdp-thumb-sq img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp-thumb small {
  max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  font-family: var(--f-head); font-size: 11.5px; font-weight: 600; line-height: 1.35; text-align: center; color: var(--ink-2);
}
.pdp-thumb[aria-current="true"] .pdp-thumb-sq { box-shadow: inset 0 0 0 2px var(--navy); }
.pdp-thumb[aria-current="true"] small { color: var(--navy); font-weight: 700; }
@media (hover: hover) { .pdp-thumb:hover .pdp-thumb-sq { box-shadow: inset 0 0 0 2px var(--navy-hover); } }
@media (min-width: 1024px) {
  .pdp-gallery { align-self: start; }
  .pdp-thumbs { flex-wrap: wrap; padding: 14px 0 0; overflow: visible; }
  .pdp-thumb { width: 84px; }
  .pdp-thumb-sq { width: 84px; height: 84px; }
}
