/* The catalog viewer (the site's only page). Pages are A4 and sized from
   --pw/--ph (set by JS); all inner sizes use --u (1% of page width) so the
   content scales with the page on phones, tablets, desktop and print. */
html, body.fb { height: 100%; }
body.fb { margin: 0; overflow: hidden; background: #dfe4f2; display: flex; flex-direction: column; }
@media (prefers-color-scheme: dark) { body.fb { background: #080d24; } }

/* ── chrome ──────────────────────────────────────────────────────────── */
.fb-top { flex: none; display: flex; align-items: center; gap: .3rem; height: 52px; padding: 0 .6rem; padding-top: env(safe-area-inset-top); background: var(--primary-700); color: #fff; z-index: 20; }
.fb-title { flex: 1; display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; min-width: 0; }
.fb-title img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.fb-title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-title small { font-weight: 400; opacity: .8; margin-inline-start: .3rem; }
.fb-ico { min-width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: none; border: 0; border-radius: 12px; font-size: 1.1rem; cursor: pointer; font-family: inherit; }
.fb-lang { font-size: .85rem; font-weight: 800; letter-spacing: .02em; }
.fb-ico:hover { background: rgb(255 255 255 / .14); }

.fb-stage { position: relative; flex: 1; min-height: 0; display: flex; overflow: hidden; }
.fb-stage.zoomed { overflow: auto; }
.fb-book { margin: auto; display: flex; align-items: stretch; box-shadow: 0 20px 50px -14px rgb(11 26 94 / .5); border-radius: 4px; --pw: 300px; --ph: 424px; }
.cpage { position: relative; width: var(--pw); height: var(--ph); flex: none; background: #fff; color: #0f172a; overflow: hidden; --u: calc(var(--pw) / 100); font-size: calc(var(--u) * 3.6); line-height: 1.5; }
.cpage[hidden] { display: none; }
.cpage + .cpage { box-shadow: inset 6px 0 14px -8px rgb(0 0 0 / .35); }
[dir="rtl"] .cpage + .cpage { box-shadow: inset -6px 0 14px -8px rgb(0 0 0 / .35); }
.cpage.in-next { animation: fbin-next .35s var(--ease); }
.cpage.in-prev { animation: fbin-prev .35s var(--ease); }
@keyframes fbin-next { from { opacity: 0; transform: translateX(3%); } }
@keyframes fbin-prev { from { opacity: 0; transform: translateX(-3%); } }
[dir="rtl"] .cpage.in-next { animation-name: fbin-prev; }
[dir="rtl"] .cpage.in-prev { animation-name: fbin-next; }

.fb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(11 26 94 / .65); color: #fff; cursor: pointer; z-index: 10; backdrop-filter: blur(6px); transition: opacity .2s; }
.fb-nav:disabled { opacity: 0; pointer-events: none; }
.fb-nav.prev { inset-inline-start: .6rem; } .fb-nav.next { inset-inline-end: .6rem; }
@media (max-width: 720px) { .fb-nav { display: none; } }

.fb-count { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 15; padding: .15rem .9rem; border-radius: 10px 10px 0 0; background: rgb(0 0 0 / .45); color: #fff; font-size: .8rem; font-weight: 700; direction: ltr; backdrop-filter: blur(6px); }
.fb-bar { flex: none; display: flex; justify-content: center; gap: .2rem; padding: .35rem .6rem calc(.35rem + env(safe-area-inset-bottom)); background: #2a2a2a; z-index: 20; }
.fb-bar > * { width: 46px; height: 42px; display: grid; place-items: center; background: none; border: 0; color: #fff; font-size: 1.1rem; border-radius: 10px; cursor: pointer; }
.fb-bar > *:hover { background: rgb(255 255 255 / .12); }

.sheet { position: fixed; inset: 0; z-index: 50; background: rgb(5 10 40 / .55); backdrop-filter: blur(3px); display: flex; justify-content: flex-start; }
.sheet[hidden] { display: none; }
.sheet-in { width: min(380px, 92vw); height: 100%; overflow: auto; background: var(--surface); color: var(--text); padding: 1rem; animation: sheetin .25s var(--ease); }
.sheet.wide { justify-content: center; align-items: center; }
.sheet.wide .sheet-in { width: min(900px, 96vw); height: min(80vh, 720px); border-radius: 20px; }
@keyframes sheetin { from { opacity: 0; transform: translateY(10px); } }
.sheet-h { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; position: sticky; top: -1rem; background: var(--surface); padding: .4rem 0; z-index: 1; }
.sheet .x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: none; color: var(--text); cursor: pointer; flex: none; }
.sheet-list { list-style: none; margin: 0; padding: 0; }
.sheet-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem .4rem; color: var(--text); border-bottom: 1px solid var(--border); }
.sheet-list a:hover { color: var(--accent-strong); }
.sheet-list em { font-style: normal; color: var(--muted); }
.fb-search { flex: 1; display: flex; align-items: center; gap: .6rem; background: var(--bg-soft); border: 1.5px solid var(--border); border-radius: 999px; padding: 0 1rem; }
.fb-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; color: var(--text); padding: .6rem 0; outline: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .7rem; }
.thumb { aspect-ratio: 1 / 1.414; border: 1.5px solid var(--border); border-radius: 8px; background: #fff; color: #0f172a; position: relative; cursor: pointer; padding: .5rem .35rem 1.2rem; display: flex; align-items: center; justify-content: center; text-align: center; font: inherit; font-size: .7rem; font-weight: 600; line-height: 1.3; overflow: hidden; transition: .2s; }
.thumb:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.thumb em { position: absolute; bottom: .3rem; inset-inline: 0; font-style: normal; color: var(--primary-700); font-size: .72rem; }
.fb-toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: #111; color: #fff; padding: .5rem 1.1rem; border-radius: 999px; z-index: 70; font-size: .85rem; }

/* ── shared page pieces ──────────────────────────────────────────────── */
.pad { position: absolute; inset: 0; padding: calc(var(--u) * 7) calc(var(--u) * 7) calc(var(--u) * 5); display: flex; flex-direction: column; }
.ph { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; margin: 0 0 calc(var(--u) * 4); padding-bottom: calc(var(--u) * 2); border-bottom: calc(var(--u) * .6) solid var(--primary-500); font-size: calc(var(--u) * 5.6); font-weight: 800; color: var(--primary-800); }
.ph em { font-style: normal; font-size: .55em; color: var(--muted); font-weight: 500; }
.pfoot { display: flex; justify-content: space-between; margin-top: auto; padding-top: calc(var(--u) * 2); font-size: calc(var(--u) * 2.6); color: #94a3b8; }
.cpage img { display: block; }
img.broken { visibility: hidden; }
.dots { flex: 1; border-bottom: 2px dotted #cbd5e1; transform: translateY(-.25em); min-width: calc(var(--u) * 3); }

/* ── page 1: the cover (just the brand) ─────────────────────────────── */
.k-cover { background: radial-gradient(120% 90% at 85% 0, rgb(84 112 212 / .55), transparent 60%), linear-gradient(165deg, var(--primary-900), var(--primary-700)); }
.k-cover::before { content: ""; position: absolute; inset: 0; background: url("../images/hero-orbit.svg") no-repeat right -38% center / auto 92%; opacity: .9; }
html[dir="rtl"] .k-cover::before { transform: scaleX(-1); }
.cv-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: calc(var(--u) * 8); }
.cv-logo { height: calc(var(--u) * 15); width: auto; margin: 0 auto calc(var(--u) * 5); filter: brightness(0) invert(1); }
.cv-cover h1 { font-size: calc(var(--u) * 15); margin: 0; font-weight: 900; line-height: 1.15; letter-spacing: -.01em; }
.cv-cover p { font-size: calc(var(--u) * 5.2); margin: calc(var(--u) * 2) 0 0; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; opacity: .85; }
html[dir="rtl"] .cv-cover p { letter-spacing: 0; text-transform: none; }

/* ── page 2: the main categories (a category list, not a product list) ─ */
.cat-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: calc(var(--u) * 3); }
.cat-row { flex: 1 1 0; min-height: 0; max-height: calc(var(--u) * 22); display: flex; align-items: center; gap: calc(var(--u) * 4); padding: 0 calc(var(--u) * 4); border: 1px solid #e2e8f0; border-radius: calc(var(--u) * 3.4); color: inherit; background: #fff; transition: .2s; }
.cat-row:hover { border-color: var(--primary-400); box-shadow: 0 6px 18px -8px rgb(11 26 94 / .35); transform: translateY(-1px); }
.cat-thumb { flex: none; height: 78%; aspect-ratio: 1; border-radius: calc(var(--u) * 2.2); background: radial-gradient(circle at 50% 40%, #fff, #f1f5f9); overflow: hidden; display: grid; place-items: center; }
.cat-thumb img { width: 88%; height: 88%; object-fit: contain; }
.cat-name { flex: 1; min-width: 0; font-weight: 800; font-size: calc(var(--u) * 4.4); line-height: 1.3; display: flex; flex-direction: column; }
.cat-name small { font-weight: 500; font-size: .62em; color: #64748b; }
.cat-pg { flex: none; width: calc(var(--u) * 8); height: calc(var(--u) * 8); display: grid; place-items: center; border-radius: 50%; background: var(--primary-50); color: var(--primary-700); font-weight: 800; font-size: calc(var(--u) * 3.2); }

/* ── category divider / filler / contact ─────────────────────────────── */
.dv { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; padding: calc(var(--u) * 10) calc(var(--u) * 8) calc(var(--u) * 9); color: #fff;
  background: radial-gradient(120% 70% at 85% 0, rgb(84 112 212 / .6), transparent 60%), linear-gradient(165deg, var(--primary-900), var(--primary-700)); }
.dv::before { content: ""; position: absolute; inset: 0; background: var(--bg) center / cover; opacity: .25; mix-blend-mode: luminosity; }
.dv > * { position: relative; }
.dv-logo { height: calc(var(--u) * 11); width: auto; filter: brightness(0) invert(1); }
.dv-mid h2 { font-size: calc(var(--u) * 11); margin: 0 0 .15em; font-weight: 900; line-height: 1.25; }
.dv-mid p { font-size: calc(var(--u) * 4.2); opacity: .88; margin: 0 0 .6em; }
.dv-covers { display: flex; gap: calc(var(--u) * 3); justify-content: center; min-height: calc(var(--u) * 24); }
.dv-covers span { width: calc(var(--u) * 24); height: calc(var(--u) * 24); background: #fff; border-radius: calc(var(--u) * 3); display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgb(0 0 0 / .5); }
.dv-covers img { width: 86%; height: 86%; object-fit: contain; }
.dv.fill { justify-content: center; }
.dv-foot { font-size: calc(var(--u) * 3); opacity: .75; direction: ltr; }
.bk-line { font-size: calc(var(--u) * 4) !important; margin: .2em 0 !important; }

/* ── category product index ──────────────────────────────────────────── */
.idx { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.idx-row { flex: 1 1 0; min-height: 0; max-height: calc(var(--u) * 12.5); display: flex; align-items: center; gap: calc(var(--u) * 2.5); color: inherit; border-bottom: 1px solid #eef2f6; }
.idx-row:hover .idx-t b { color: var(--primary-700); }
.idx-thumb { flex: none; height: 82%; aspect-ratio: 1; border-radius: calc(var(--u) * 1.6); background: #f1f5f9; display: grid; place-items: center; overflow: hidden; }
.idx-thumb img { width: 88%; height: 88%; object-fit: contain; }
.idx-t { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.idx-t b { font-size: calc(var(--u) * 3.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idx-t small { font-size: calc(var(--u) * 2.6); color: #64748b; }
.idx-pg { color: var(--primary-700); font-weight: 800; font-size: calc(var(--u) * 3.4); }

/* ── product page (A) ────────────────────────────────────────────────── */
.pp { padding-top: calc(var(--u) * 6); }
.pp-cat { display: flex; justify-content: space-between; align-items: center; font-size: calc(var(--u) * 3); font-weight: 700; color: var(--primary-600); margin-bottom: calc(var(--u) * 2.5); }
.pp-cat .sep { opacity: .5; font-style: normal; }
.pnew { background: var(--primary-600); color: #fff; font-size: calc(var(--u) * 2.6); padding: .05em .9em; border-radius: 999px; }
.pp > * { flex: none; }
.pp > .pp-imgs { flex: 1 1 0; min-height: calc(var(--u) * 22); }
.pp-imgs { display: grid; gap: calc(var(--u) * 3); margin-bottom: calc(var(--u) * 4); }
.pp-imgs.n2 { grid-template-columns: 1fr 1fr; }
.pp-imgs span { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fff, #f1f5f9); border: 1px solid #e8edf2; border-radius: calc(var(--u) * 3.5); padding: calc(var(--u) * 2.5); min-height: 0; overflow: hidden; }
.pp-imgs img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pp h2 { font-size: calc(var(--u) * 6.2); line-height: 1.3; margin: 0 0 calc(var(--u) * 1); color: #0b1f26; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-ids { display: flex; gap: calc(var(--u) * 2); margin-bottom: calc(var(--u) * 3.5); }
.pp-ids span { font-size: calc(var(--u) * 2.9); font-weight: 700; padding: .05em .8em; border-radius: 999px; background: var(--primary-50); color: var(--primary-700); }
.pp-feats { list-style: none; margin: 0 0 calc(var(--u) * 3); padding: 0; display: grid; gap: calc(var(--u) * 1.4); }
.pp-feats li { display: flex; align-items: flex-start; gap: calc(var(--u) * 2.2); font-size: calc(var(--u) * 3.7); line-height: 1.45; }
.pp-feats i { margin-top: .4em; font-size: .6em; color: var(--primary-500); flex: none; }
.pp-blurb { margin: 0 0 calc(var(--u) * 3); color: #64748b; font-size: calc(var(--u) * 3.2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-specs { width: 100%; border-collapse: collapse; font-size: calc(var(--u) * 3); margin-bottom: calc(var(--u) * 3); }
.pp-specs th, .pp-specs td { text-align: start; padding: calc(var(--u) * .9) 0; border-bottom: 1px solid #eef2f6; }
.pp-specs th { color: #64748b; font-weight: 500; width: 42%; }
.pp .pfoot { margin-top: calc(var(--u) * 2.5); padding-top: 0; }
.pp .pp-imgs span { min-height: 0; }

/* ── lifestyle page (B): images only ─────────────────────────────────── */
.ls { position: absolute; inset: 0; display: grid; gap: calc(var(--u) * .8); background: #fff; }
.ls span { position: relative; overflow: hidden; background: #e9edf7; }
.ls img { width: 100%; height: 100%; object-fit: cover; }
.ls-1 { grid-template: 1fr / 1fr; }
.ls-2 { grid-template: 1fr 1fr / 1fr; }
.ls-3 { grid-template: 1.4fr 1fr / 1fr 1fr; } .ls-3 span:first-child { grid-column: 1 / -1; }
.ls-4 { grid-template: 1fr 1fr / 1fr 1fr; }
.ls-empty { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(165deg, var(--primary-50), #fff); }
.ls-empty img { height: calc(var(--u) * 22); opacity: .18; }
.ls-n { position: absolute; bottom: calc(var(--u) * 2.5); inset-inline-end: calc(var(--u) * 3); z-index: 1; font-size: calc(var(--u) * 2.6); font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgb(0 0 0 / .6); }

/* search highlight */
.k-product.flash h2 { animation: flashbg 1s ease 2; border-radius: 8px; }
@keyframes flashbg { 50% { background: rgb(84 112 212 / .25); } }

/* ── print / Save as PDF: every page, A4 ─────────────────────────────── */
@media print {
  @page { size: A4; margin: 0; }
  html, body.fb { height: auto; overflow: visible; background: #fff; display: block; }
  .fb-top, .fb-bar, .fb-count, .fb-nav, .sheet, .fb-toast { display: none !important; }
  .fb-stage { display: block; overflow: visible; }
  .fb-book { display: block; box-shadow: none; --pw: 210mm; --ph: 297mm; }
  .cpage, .cpage[hidden] { display: block !important; width: 210mm; height: 297mm; page-break-after: always; break-after: page; box-shadow: none !important; animation: none !important; }
  .cpage, .cv-top, .dv, }

/* Language switcher in the brand top bar */
.langsw { display: inline-flex; align-items: center; padding: 2px; border: 1px solid rgb(255 255 255 / .35); border-radius: 999px; direction: ltr; }
.langsw a { padding: .2rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .04em; color: rgb(255 255 255 / .8); }
.langsw a.on { background: #fff; color: var(--primary-700); }

/* product page: "More details" button + popup */
.pp-imgs.n3 { grid-template-columns: 1fr 1fr 1fr; }
.pp-more { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: .6em; width: 100%; margin-top: calc(var(--u) * 1.5); padding: calc(var(--u) * 3) 0; border: 0; border-radius: calc(var(--u) * 3); background: linear-gradient(135deg, var(--primary-500), var(--primary-700)); color: #fff; font: inherit; font-weight: 700; font-size: calc(var(--u) * 3.8); cursor: pointer; }
.pp-more:hover { filter: brightness(1.08); }
.sheet.pd-sheet .sheet-in.pd { position: relative; width: min(1040px, 96vw); height: min(86vh, 760px); padding: 0; overflow: auto; border-radius: 20px; background: #fff; color: #0f172a; }
.pd-x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; background: rgb(255 255 255 / .92); color: #0f172a; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 100%; }
.pd-media { display: grid; grid-auto-rows: 1fr; gap: 2px; background: #f1f5f9; min-height: 280px; }
.pd-media img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
.pd-media img.contain { object-fit: contain; padding: 8%; }
.pd-body { padding: 28px 26px 32px; font-size: .95rem; line-height: 1.7; }
.pd-cat { color: var(--primary-600); font-weight: 700; font-size: .85rem; margin-bottom: 6px; padding-inline-end: 44px; }
.pd-body h3 { margin: 0 0 8px; font-size: 1.35rem; line-height: 1.35; color: #0b1f26; }
.pd-body h4 { margin: 22px 0 8px; font-size: .95rem; color: var(--primary-800); padding-bottom: 4px; border-bottom: 2px solid var(--primary-100); }
.pd-body .pp-ids span { font-size: .78rem; }
.pd-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pd-feats li { display: flex; gap: 10px; align-items: flex-start; }
.pd-feats i { margin-top: .5em; font-size: .6em; color: var(--primary-500); flex: none; }
.pd-specs { width: 100%; border-collapse: collapse; font-size: .88rem; }
.pd-specs th, .pd-specs td { text-align: start; padding: 6px 0; border-bottom: 1px solid #eef2f6; vertical-align: top; }
.pd-specs th { color: #64748b; font-weight: 500; width: 42%; padding-inline-end: 10px; }
.pd-vars { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.pd-var { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 8px; border: 1px solid #e8edf2; border-radius: 12px; background: #f8fafc; }
.pd-var img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 8px; }
.pd-var b { font-size: .78rem; line-height: 1.3; }
.pd-var small { color: #64748b; font-size: .72rem; }
@media (max-width: 720px) {
  .sheet.pd-sheet .sheet-in.pd { height: 94vh; width: 100vw; border-radius: 16px 16px 0 0; align-self: flex-end; }
  .pd-grid { grid-template-columns: 1fr; }
  .pd-media { grid-auto-rows: 220px; min-height: 0; }
}
@media print { .pp-more { display: none; } }

/* product page A: square image tiles (source photos are ~1:1) and the freed height goes to the text */
.pp > .pp-imgs { flex: none; min-height: 0; gap: calc(var(--u) * 2.5); margin-bottom: calc(var(--u) * 4.5); }
.pp-imgs span { aspect-ratio: 1 / 1; padding: calc(var(--u) * 1.2); border-radius: calc(var(--u) * 3); }
.pp-imgs img { width: 100%; height: 100%; object-fit: contain; }
.pp-imgs.n1 { grid-template-columns: 62%; justify-content: center; }
.pp-imgs.n2 { grid-template-columns: 1fr 1fr; }
.pp h2 { font-size: calc(var(--u) * 6.8); -webkit-line-clamp: 3; margin-bottom: calc(var(--u) * 1.5); }
.pp-ids { margin-bottom: calc(var(--u) * 4); }
.pp-feats { gap: calc(var(--u) * 2.2); margin-bottom: calc(var(--u) * 4); }
.pp-feats li { font-size: calc(var(--u) * 4.1); }
.pp-blurb { -webkit-line-clamp: 4; font-size: calc(var(--u) * 3.4); }
.pp-more { margin-top: auto; }
.pp .pfoot { margin-top: calc(var(--u) * 3); }
/* 3 images: one big square + two small squares stacked beside it (2:1 columns, so every tile stays 1:1) */
.pp-imgs.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 3 / 2; }
.pp-imgs.n3 span { aspect-ratio: auto; }
.pp-imgs.n3 span:first-child { grid-row: 1 / span 2; }
.pp-imgs.n3 span:first-child img { padding: calc(var(--u) * 1.5); }
.pp-imgs.n2 { aspect-ratio: 2 / 1; }
.pp-imgs.n2 span { aspect-ratio: auto; }
.pp-blurb { -webkit-line-clamp: 2; margin-bottom: calc(var(--u) * 2); }
.pp h2 { font-size: calc(var(--u) * 6.2); -webkit-line-clamp: 2; }
.pp-feats { gap: calc(var(--u) * 1.6); margin-bottom: calc(var(--u) * 2.5); }
.pp-feats li { font-size: calc(var(--u) * 3.8); }
.pp-ids { margin-bottom: calc(var(--u) * 3); }
.pp > .pp-imgs { margin-bottom: calc(var(--u) * 3.5); }
.pp-more { padding: calc(var(--u) * 2.2) 0; margin-top: auto; }
.pp .pfoot { margin-top: calc(var(--u) * 1.5); }
.pp { padding-top: calc(var(--u) * 5); padding-bottom: calc(var(--u) * 3.5); }
.pp-cat { margin-bottom: calc(var(--u) * 1.8); }
/* images take whatever height the text leaves (fixed-size text can never push the button off the page) */
.pp > .pp-imgs { flex: 1 1 0; min-height: calc(var(--u) * 18); aspect-ratio: auto; }
.pp-imgs.n2, .pp-imgs.n3 { aspect-ratio: auto; }
.pp-imgs span { min-height: 0; }
.pp-imgs.n3 span:first-child img { padding: 0; }
.pp-feats li { font-size: calc(var(--u) * 3.6); }
.pp-feats { gap: calc(var(--u) * 1.3); }
.pp-blurb { flex: 0 1 auto; min-height: 0; }
.pp-imgs span { position: relative; display: block; }
.pp-imgs span img { position: absolute; inset: calc(var(--u) * 1.2); width: calc(100% - var(--u) * 2.4); height: calc(100% - var(--u) * 2.4); max-width: none; max-height: none; object-fit: contain; }
/* product page background: the lifestyle photo, blurred into pure colour (no shapes) */
.pp-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-size: cover; background-position: center; filter: blur(45px) saturate(1.25); transform: scale(1.6); opacity: .55; }
.pp-bg ~ * { position: relative; z-index: 1; }
.pp-bg + .pp-cat { position: relative; }
.pp:has(.pp-bg) .pp-imgs span { background: rgb(255 255 255 / .78); border-color: rgb(255 255 255 / .6); backdrop-filter: blur(6px); }
.pp:has(.pp-bg) .pp-blurb, .pp:has(.pp-bg) .pfoot { color: #475569; }
.pp:has(.pp-bg) .pp-ids span { background: rgb(255 255 255 / .75); }
@media print { .pp-bg { filter: blur(45px); } }
/* popup: the close button never scrolls away (only the content scrolls) and phones keep a gap at the top */
.sheet.pd-sheet .sheet-in.pd { overflow: hidden; }
.pd-grid { height: 100%; overflow: auto; overscroll-behavior: contain; align-content: start; -webkit-overflow-scrolling: touch; }
.pd-x { width: 42px; height: 42px; font-size: 1.05rem; background: #fff; color: #0b1f26; border: 0; box-shadow: 0 2px 10px rgb(11 26 94 / .35); z-index: 5; }
@media (max-width: 720px) {
  .sheet.pd-sheet .sheet-in.pd { height: calc(100vh - 72px); height: calc(100dvh - 72px); max-height: calc(100dvh - 72px); }
  .pd-media { grid-auto-rows: 210px; }
  .pd-body { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
}
@media (max-width: 720px) {
  .pd-media { display: block; height: 230px; min-height: 0; overflow: hidden; }
  .pd-media img { height: 230px; }
  .pd-media img:nth-child(n+2) { display: none; }
}

/* lifestyle photos are never cropped: the whole photo sits on a blurred copy of itself */
.ls span, .pd-media span { position: relative; overflow: hidden; display: block; min-height: 0; background: #e9edf7; }
.ls span::before, .pd-media span::before { content: ""; position: absolute; inset: -12%; background: var(--bg) center / cover; filter: blur(24px) saturate(1.2); }
.ls img, .pd-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 0; }
.pd-media img.contain { padding: 0; }
.pd-media { grid-auto-rows: 1fr; }
@media (max-width: 720px) {
  .pd-media span:nth-child(n+2) { display: none; }
  .pd-media span { height: 230px; }
  .pd-media img:nth-child(n+2) { display: block; }
}

/* phones: one page per product - the lifestyle photo is its background, softened by a light shadow */
.single .pp-bg { filter: none; transform: none; opacity: 1; }
.single .pp-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(255 255 255 / .5) 0%, rgb(255 255 255 / .8) 40%, rgb(255 255 255 / .92) 100%); }
.single .pp:has(.pp-bg) .pp-imgs span { background: rgb(255 255 255 / .85); box-shadow: 0 6px 18px rgb(11 26 94 / .18); }
.single .pp-feats li { font-size: calc(var(--u) * 4.2); }
/* product tiles over a lifestyle background: glass instead of pure white, and the photos' white backdrop blends away */
.pp:has(.pp-bg) .pp-imgs, .pp:has(.pp-bg) .pp-imgs span { z-index: auto; }
.pp:has(.pp-bg) .pp-imgs span, .single .pp:has(.pp-bg) .pp-imgs span { background: rgb(255 255 255 / .2); border: 1px solid rgb(255 255 255 / .65); backdrop-filter: none; box-shadow: 0 8px 22px rgb(11 26 94 / .16), inset 0 0 0 1px rgb(255 255 255 / .25); }
.pp:has(.pp-bg) .pp-imgs img { mix-blend-mode: multiply; }
.single .pp-bg::after { background: linear-gradient(180deg, rgb(255 255 255 / .28) 0%, rgb(255 255 255 / .5) 45%, rgb(255 255 255 / .82) 100%); }
/* calmer: tiles mostly opaque white (a hint of the background), the phone photo softly blurred under a stronger fade */
.pp:has(.pp-bg) .pp-imgs span, .single .pp:has(.pp-bg) .pp-imgs span { background: rgb(255 255 255 / .7); }
.single .pp-bg { filter: blur(7px) saturate(1.1); transform: scale(1.12); }
.single .pp-bg::after { background: linear-gradient(180deg, rgb(255 255 255 / .45) 0%, rgb(255 255 255 / .68) 45%, rgb(255 255 255 / .9) 100%); }
/* final balance: sharp, clearly visible lifestyle photo behind; tiles keep only a small hint of it */
.single .pp-bg { filter: none; transform: none; }
.single .pp-bg::after { background: linear-gradient(180deg, rgb(255 255 255 / .28) 0%, rgb(255 255 255 / .5) 45%, rgb(255 255 255 / .82) 100%); }
.pp:has(.pp-bg) .pp-imgs span, .single .pp:has(.pp-bg) .pp-imgs span { background: rgb(255 255 255 / .85); }

/* categories sheet: main categories as cards that open into their subcategories */
.sheet.cn-sheet .sheet-in.cn { width: min(560px, 96vw); height: auto; max-height: min(86vh, 760px); border-radius: 22px; padding: 1.1rem 1.1rem 1.3rem; }
.cn-sheet .sheet-h { font-size: 1.05rem; }
.cn-list { display: grid; gap: .7rem; }
.cn-card { border: 1px solid var(--border); border-radius: 18px; background: rgb(255 255 255 / .04); overflow: hidden; transition: border-color .2s, background .2s, box-shadow .2s; }
.cn-card.cur { border-color: var(--primary-400); }
.cn-card.open { background: rgb(255 255 255 / .07); border-color: var(--primary-400); box-shadow: 0 10px 28px -14px rgb(0 0 0 / .6); }
.cn-head { width: 100%; display: flex; align-items: center; gap: .9rem; padding: .7rem .8rem; background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; text-align: start; }
.cn-img { flex: none; width: 58px; height: 58px; border-radius: 14px; background: radial-gradient(circle at 50% 40%, #fff, #e9eef7); display: grid; place-items: center; overflow: hidden; }
.cn-img img { width: 86%; height: 86%; object-fit: contain; }
.cn-txt { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.cn-txt b { font-size: 1.02rem; line-height: 1.3; }
.cn-txt small { color: var(--muted); font-size: .78rem; }
.cn-chev { flex: none; color: var(--muted); font-size: .8rem; transition: transform .25s var(--ease); }
.cn-card.open .cn-chev { transform: rotate(180deg); color: var(--primary-300); }
.cn-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--ease); }
.cn-card.open .cn-body { grid-template-rows: 1fr; }
.cn-inner { overflow: hidden; min-height: 0; padding: 0 .8rem; }
.cn-card.open .cn-inner { padding-bottom: .8rem; }
.cn-all { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .65rem .9rem; margin-bottom: .45rem; border-radius: 12px; background: linear-gradient(135deg, var(--primary-500), var(--primary-700)); color: #fff; font-weight: 700; font-size: .86rem; }
.cn-subs { display: grid; gap: .25rem; }
.cn-sub { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .62rem .9rem; border-radius: 11px; color: var(--text); font-size: .92rem; transition: background .15s; }
.cn-sub:hover { background: rgb(255 255 255 / .09); }
.cn-sub em { font-style: normal; font-size: .76rem; font-weight: 700; min-width: 1.9em; text-align: center; padding: .12em .6em; border-radius: 999px; background: rgb(255 255 255 / .1); color: var(--primary-200); }
@media (max-width: 720px) {
  .sheet.cn-sheet { align-items: flex-end; }
  .sheet.cn-sheet .sheet-in.cn { width: 100vw; max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); border-radius: 22px 22px 0 0; padding-bottom: calc(1.3rem + env(safe-area-inset-bottom)); }
}
/* categories sheet colours follow the theme (light and dark) */
.cn-card { background: var(--bg-soft); }
.cn-card.open { background: var(--surface); }
.cn-sub:hover { background: var(--bg-soft); }
.cn-sub em { background: var(--bg-soft); color: var(--accent-strong); border: 1px solid var(--border); }
.cn-card.open .cn-chev { color: var(--accent-strong); }
/* detail popup: wide lifestyle banner on top, two columns of details below, lifestyle colours as the background */
.sheet.pd-sheet .sheet-in.pd::before { content: ""; position: absolute; inset: -10%; z-index: 0; background: var(--bg, none) center / cover; filter: blur(42px) saturate(1.3); opacity: .6; pointer-events: none; }
.pd-grid { position: relative; z-index: 1; }
.pd-body { background: rgb(255 255 255 / .84); }
@media (min-width: 721px) {
  .sheet.pd-sheet .sheet-in.pd { width: min(1000px, 96vw); }
  .pd-grid { grid-template-columns: 1fr; align-content: start; }
  .pd-media { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; grid-auto-rows: auto; height: clamp(190px, 36vh, 320px); min-height: 0; gap: 2px; }
  .pd-media span:nth-child(n+3) { display: none; }
  .pd-media span { height: auto; }
  .pd-body { padding: 24px 34px 34px; column-count: 2; column-gap: 40px; }
  .pd-cat, .pd-body h3, .pd-body .pp-ids { column-span: all; }
  .pd-body h4 { break-after: avoid; margin-top: 0; margin-bottom: 8px; }
  .pd-feats, .pd-specs, .pd-vars { margin-bottom: 20px; }
  .pd-feats li { break-inside: avoid; }
}
@media (min-width: 721px) { .pd-grid { grid-template-rows: auto 1fr; } .pd-body .pp-ids { margin-bottom: 18px; } }

/* category showcase pages (2 + 3 categories): big picture, name, "see more", subcategory tiles */
.cs-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: calc(var(--u) * 3.2); }
.cs { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: calc(var(--u) * 1.8); padding-bottom: calc(var(--u) * 3); border-bottom: 1px solid #e2e8f0; }
.cs:last-child { border-bottom: 0; padding-bottom: 0; }
.cs-top { flex: 1.5 1 0; min-height: 0; display: flex; gap: calc(var(--u) * 4); align-items: stretch; }
.cs-hero { flex: none; aspect-ratio: 1; height: 100%; border-radius: calc(var(--u) * 3.4); background: radial-gradient(circle at 50% 38%, var(--primary-100), var(--primary-300) 130%); display: grid; place-items: center; overflow: hidden; box-shadow: 0 calc(var(--u) * 1.4) calc(var(--u) * 4) calc(var(--u) * -1.4) rgb(11 26 94 / .45); transition: transform .2s; }
.cs-hero:hover { transform: translateY(-2px); }
.cs-hero img { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 calc(var(--u) * 1.2) calc(var(--u) * 1.6) rgb(11 26 94 / .28)); }
.cs-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: calc(var(--u) * 1.1); }
.cs-txt h3 { margin: 0; font-size: calc(var(--u) * 6.6); line-height: 1.15; font-weight: 800; color: var(--primary-900); }
.cs-txt p { margin: 0; font-size: calc(var(--u) * 3); color: #64748b; }
.cs-more { align-self: flex-start; display: inline-flex; align-items: center; gap: calc(var(--u) * 1.8); margin-top: calc(var(--u) * 1); color: var(--primary-700); font-weight: 800; font-size: calc(var(--u) * 2.8); letter-spacing: .06em; text-transform: uppercase; }
.cs-more i { display: grid; place-items: center; width: calc(var(--u) * 7.4); height: calc(var(--u) * 7.4); border: 1.5px solid var(--primary-700); border-radius: 50%; font-size: calc(var(--u) * 2.6); transition: background .2s, color .2s; }
.cs-more:hover i { background: var(--primary-700); color: #fff; }
.cs-subs { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--u) * 2.2); }
.cs-sub { min-height: 0; display: flex; flex-direction: column; gap: calc(var(--u) * 1); align-items: center; text-align: center; color: #0f172a; }
.cs-simg { flex: 1; min-height: 0; width: 100%; display: grid; place-items: center; background: #f1f5f9; border: 1px solid #e8edf2; border-radius: calc(var(--u) * 2.4); overflow: hidden; transition: border-color .2s; }
.cs-sub:hover .cs-simg { border-color: var(--primary-400); }
.cs-simg img { width: 78%; height: 78%; object-fit: contain; }
.cs-sub b { font-size: calc(var(--u) * 2.5); font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-top { flex: 1.05 1 0; }
.cs-subs { flex: 1 1 0; }
.cs-simg { padding: calc(var(--u) * 1); }
.cs-simg img { width: 100%; height: 100%; }
.cs-list { gap: calc(var(--u) * 2.4); }
.cs { padding-bottom: calc(var(--u) * 2.4); }
/* 3 categories on one page: compact text so a block never grows taller than its share of the page */
.cs-list:has(.cs:nth-child(3)) .cs-top { flex: 1.2 1 0; }
.cs-list:has(.cs:nth-child(3)) .cs-txt { gap: calc(var(--u) * .5); }
.cs-list:has(.cs:nth-child(3)) .cs-txt h3 { font-size: calc(var(--u) * 5.2); }
.cs-list:has(.cs:nth-child(3)) .cs-txt p { font-size: calc(var(--u) * 2.6); }
.cs-list:has(.cs:nth-child(3)) .cs-more { margin-top: 0; font-size: calc(var(--u) * 2.4); }
.cs-list:has(.cs:nth-child(3)) .cs-more i { width: calc(var(--u) * 5.6); height: calc(var(--u) * 5.6); font-size: calc(var(--u) * 2.2); }
.cs-list:has(.cs:nth-child(3)) .cs-sub b { font-size: calc(var(--u) * 2.2); }
.cs-txt { overflow: hidden; }
/* showcase: one big 1:1 picture per category (no small tiles) - the picture takes the whole block height */
.cs-top { flex: 1 1 0; }
.cs-hero img { width: 90%; height: 90%; }
.cs-names { color: #475569 !important; font-size: calc(var(--u) * 2.9) !important; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-list:has(.cs:nth-child(3)) .cs-names { font-size: calc(var(--u) * 2.4) !important; }
.cs-list:has(.cs:nth-child(3)) .cs-top { flex: 1 1 0; }
.cs { padding-bottom: calc(var(--u) * 2.4); }
/* the shop homepage pictures are complete square artworks: fill the tile */
.cs-hero.full { background: none; box-shadow: 0 calc(var(--u) * 1.4) calc(var(--u) * 4) calc(var(--u) * -1.4) rgb(11 26 94 / .35); }
.cs-hero.full img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.cs-tag { color: #334155 !important; font-style: normal; }
/* phones: the picture keeps its size, so the text beside it is compact and always wraps inside its column */
.single .cs-top { gap: calc(var(--u) * 3.5); }
.single .cs-txt { min-width: 0; overflow: hidden; gap: calc(var(--u) * .7); }
.single .cs-txt h3 { font-size: calc(var(--u) * 4.7); line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }
.single .cs-list:has(.cs:nth-child(3)) .cs-txt h3 { font-size: calc(var(--u) * 4.4); }
.single .cs-txt p, .single .cs-names { font-size: calc(var(--u) * 2.6) !important; line-height: 1.4; overflow-wrap: anywhere; }
.single .cs-names, .single .cs-tag { -webkit-line-clamp: 2; }
.single .cs-more { font-size: calc(var(--u) * 2.5); gap: calc(var(--u) * 1.4); }
.single .cs-more i { width: calc(var(--u) * 6.4); height: calc(var(--u) * 6.4); font-size: calc(var(--u) * 2.4); }

/* phones: the picture is capped to about half the page width so the text always has room beside it */
.single .cs-hero { height: auto; width: 50%; align-self: center; }
/* desktop, 2 categories on a page: the square would otherwise take most of the page width */
.cs-list:not(:has(.cs:nth-child(3))) .cs-hero { height: auto; width: 40%; align-self: center; }
.single .cs-list .cs-hero { width: 54%; }
