/* =========================================================
   CELLO LAB SOLUTIONS — STYLES
   Brand: white #ffffff · green #5AB545 · blue #1875C1
   ========================================================= */
:root {
  --white: #ffffff;
  --green: #5ab545;
  --green-dark: #3f8f2f;
  --green-soft: #eef8eb;
  --blue: #1875c1;
  --blue-dark: #0f5a97;
  --blue-soft: #e8f2fb;
  --ink: #16263a;
  --muted: #5b6b7d;
  --line: #e3e9ef;
  --bg-alt: #f6f9fc;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 38, 58, .06), 0 4px 16px rgba(16, 38, 58, .06);
  --shadow-lg: 0 10px 40px rgba(16, 38, 58, .18);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; font-size: 14px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 14px; height: 14px; flex: none; vertical-align: -3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-soft); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--blue-soft); }
.btn-sm { padding: 6px 12px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(24, 117, 193, .45); outline-offset: 2px;
}

/* ---------- Header ---------- */
.topbar { background: var(--blue); color: var(--white); font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 4px; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { .topbar-inner > span { display: none; } .topbar-inner { justify-content: center; } }

#site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 58px; }
.main-nav { margin-left: auto; }

/* Search in the header (between Contact and Quote list) */
.header-search { position: relative; flex: 0 1 260px; min-width: 160px; }
.header-search input {
  width: 100%; height: 36px; padding: 0 12px 0 34px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg-alt); color: var(--ink);
}
.header-search input:focus { background: var(--white); border-color: var(--blue); outline: none; }
.header-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; height: auto; padding-block: 8px; row-gap: 8px; }
  .header-actions { margin-left: auto; }
  .header-search { order: 3; flex: 1 1 100%; }
}

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--blue)); color: var(--white);
}
.logo-mark .icon { width: 20px; height: 20px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-size: 1.15rem; color: var(--blue); letter-spacing: -.01em; }
.logo-text span { font-size: .8rem; font-weight: 600; color: var(--green-dark); text-transform: uppercase; letter-spacing: .14em; }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500;
}
.main-nav a:hover { background: var(--bg-alt); color: var(--blue); }
.main-nav a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.quote-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; background: var(--green); color: var(--white);
  text-decoration: none; font-weight: 600; font-size: .92rem;
}
.quote-btn:hover { background: var(--green-dark); }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--white); color: var(--green-dark);
  font-size: .78rem; font-weight: 700; display: inline-grid; place-items: center;
}
.menu-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; border-radius: 8px; }

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--white); padding: 8px 16px 16px; box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 10px; }
}
@media (max-width: 420px) {
  .quote-btn-label { display: none; }
  .quote-btn { padding: 9px 12px; }
  .logo-text strong { font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 55%, #0d4f86 100%);
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 181, 69, .55), rgba(90, 181, 69, 0) 70%);
}
.hero-inner { position: relative; z-index: 1; padding-block: 36px 40px; display: grid; gap: 22px; }
.hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; max-width: 720px; }
.hero h1 span { color: #9be08a; }
.hero p { font-size: 1rem; max-width: 600px; opacity: .92; margin: 0 0 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: .9rem; }
.hero-stats div { display: flex; align-items: center; gap: 8px; opacity: .95; }
.hero-stats div::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.page-hero { background: var(--blue-soft); padding: 34px 0 28px; }
.page-hero h1 { color: var(--blue); font-size: clamp(1.5rem, 3.4vw, 2rem); }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0; }

/* ---------- Catalogue ---------- */
.catalogue { padding: 24px 0 56px; }
.catalogue-tools {
  position: sticky; top: var(--header-h, 104px); z-index: 20; background: var(--white);
  padding: 10px 0; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
  color: var(--ink); font-weight: 500; font-size: .9rem; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.chip .count { font-size: .75rem; opacity: .75; }

.cat-section { padding-top: 24px; scroll-margin-top: 200px; }
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.cat-head h2 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin: 0; }
.cat-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; }
.cat-head p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.link-btn { background: none; border: 0; color: var(--blue); font-weight: 600; cursor: pointer; padding: 6px 0; white-space: nowrap; }
.link-btn:hover { text-decoration: underline; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1200px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 780px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 560px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: transparent; }
.card-media { position: relative; aspect-ratio: 1; background: var(--bg-alt); border: 0; padding: 0; cursor: pointer; width: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-soft), var(--green-soft)); color: var(--blue);
}
.placeholder svg { width: 38%; height: 38%; opacity: .55; }
.stock {
  position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 600;
  background: var(--white); color: var(--green-dark); box-shadow: var(--shadow);
}
.stock.out { color: #b45309; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 10px; flex: 1; }
.card-cat { font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--green-dark); }
.card-title { font-size: .88rem; font-weight: 600; margin: 0; line-height: 1.3; }
.card-title button { all: unset; cursor: pointer; }
.card-title button:hover { color: var(--blue); }
.card-title button:focus-visible { outline: 3px solid rgba(24, 117, 193, .45); }
.price { font-size: 1rem; font-weight: 700; color: var(--blue); margin-top: auto; padding-top: 4px; }
.price small { font-size: .72rem; font-weight: 500; color: var(--muted); }
.card .btn { margin-top: 6px; }
.card .btn.added { background: var(--green-soft); color: var(--green-dark); }
@media (max-width: 520px) {
  .card-body { padding: 10px; }
  .card-title { font-size: .88rem; }
  .price { font-size: 1rem; }
  .card .price small { display: block; }
  .card .btn { padding: 8px 10px; font-size: .8rem; }
}

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 4px; }
.loading { padding: 48px 0; text-align: center; color: var(--muted); }

/* ---------- Product modal ---------- */
.modal {
  border: 0; padding: 0; border-radius: 16px; width: min(860px, calc(100% - 32px)); max-height: calc(100% - 32px);
  box-shadow: var(--shadow-lg); color: var(--ink);
}
.modal::backdrop { background: rgba(16, 38, 58, .55); }
.modal-inner { display: grid; grid-template-columns: 1fr 1fr; }
.modal-media { background: var(--bg-alt); aspect-ratio: 1; }
.modal-media img { width: 100%; height: 100%; object-fit: contain; }
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.modal-body h2 { font-size: 1.4rem; margin: 0; }
.modal-body p { margin: 0; color: var(--muted); }
.modal-close {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: var(--white); box-shadow: var(--shadow); font-size: 1.4rem; line-height: 1; cursor: pointer; z-index: 2;
}
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 38px; height: 38px; border: 0; background: var(--bg-alt); font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--blue-soft); }
.qty input { width: 52px; height: 38px; border: 0; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
@media (max-width: 680px) {
  .modal-inner { grid-template-columns: 1fr; }
  .modal-media { aspect-ratio: 16 / 10; }
  .modal-body { padding: 20px; }
}

/* ---------- Sections / content ---------- */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-title h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--blue); }
.section-title p { color: var(--muted); margin: 0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--green-dark); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }

.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .cat-icon { margin-bottom: 14px; }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--muted); margin: 0; font-size: .94rem; }

.split { display: grid; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split p { color: var(--muted); }
.panel {
  border-radius: 20px; padding: 32px; color: var(--white);
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
}
.panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.panel li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.panel li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: .8rem; }

.cta-band { background: var(--green); color: var(--white); padding: 32px 0; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { margin: 0 0 4px; font-size: 1.5rem; }
.cta-band p { margin: 0; opacity: .95; }

/* ---------- Blog ---------- */
.posts { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.post-cover { aspect-ratio: 16 / 9; background: var(--bg-alt); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h2 { font-size: 1.15rem; margin: 0; color: var(--ink); }
.post-card p { color: var(--muted); margin: 0; font-size: .94rem; }
.post-meta { font-size: .82rem; color: var(--muted); }
.read-more { margin-top: auto; padding-top: 8px; color: var(--blue); font-weight: 600; font-size: .92rem; }

.article { max-width: 760px; margin: 0 auto; padding-block: 40px 72px; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin: 24px 0; aspect-ratio: 16 / 8; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--ink); }
.article-content { font-size: 1.05rem; }
.article-content h2 { font-size: 1.35rem; margin-top: 1.6em; color: var(--blue); }
.article-content p, .article-content li { color: #2b3b4d; }
.back-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; margin-bottom: 20px; }

/* ---------- Contact / Quote ---------- */
.contact-grid { display: grid; gap: 28px; grid-template-columns: 1.2fr .8fr; align-items: start; padding-block: 40px 72px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.box { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--white); }
.box + .box { margin-top: 20px; }
.box h2 { font-size: 1.25rem; color: var(--blue); display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.quote-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.quote-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.quote-table td { padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.quote-table .num { text-align: right; white-space: nowrap; }
.quote-table .qty button { width: 32px; height: 32px; }
.quote-table .qty input { width: 40px; height: 32px; }
.remove { background: none; border: 0; color: #b42318; cursor: pointer; font-size: .85rem; padding: 4px; }
.remove:hover { text-decoration: underline; }
.quote-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; font-weight: 700; }
.quote-total span:last-child { font-size: 1.2rem; color: var(--blue); }
.note { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
@media (max-width: 560px) {
  .quote-table thead { display: none; }
  .quote-table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .quote-table td { border: 0; padding: 0; }
  .quote-table td.item { grid-column: 1 / -1; }
  .quote-table td.unit-price { display: none; }
}

.form { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.field textarea { min-height: 110px; resize: vertical; }
.field .error { color: #b42318; font-size: .82rem; margin-top: 4px; }
.field.invalid input { border-color: #b42318; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list .cat-icon { flex: none; }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }

.success {
  display: flex; gap: 12px; padding: 16px; border-radius: 12px; background: var(--green-soft); color: #24561b; margin-bottom: 16px;
}

/* ---------- Footer ---------- */
#site-footer { background: #0f2236; color: #c8d3df; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.6fr 1fr 1fr; padding-top: 40px; padding-bottom: 30px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
#site-footer .logo-text strong { color: var(--white); }
#site-footer .logo-text span { color: var(--green); }
.footer-about { font-size: .92rem; max-width: 380px; margin-top: 14px; }
#site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
#site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
#site-footer a { color: #c8d3df; text-decoration: none; }
#site-footer a:hover { color: var(--white); }
.footer-contact li { display: flex; align-items: center; gap: 8px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .85rem; }

/* ---------- Floating WhatsApp + toast ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 50px; height: 50px; border-radius: 50%;
  background: #25d366; color: var(--white); display: grid; place-items: center; box-shadow: var(--shadow-lg);
}
.wa-float .icon { width: 26px; height: 26px; }
.wa-float:hover { transform: scale(1.06); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 999px; font-size: .92rem; z-index: 70;
  transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.modal-body .price { margin-top: 0; padding-top: 0; }

/* Two-price products (e.g. test kits) */
.card .price-pack { margin-top: 0; padding-top: 0; font-size: .95rem; color: var(--green-dark); }
.modal-body .price-pack { color: var(--green-dark); }
.options { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0; display: grid; gap: 8px; }
.options legend { font-size: .8rem; font-weight: 600; color: var(--muted); padding: 0 4px; }
.options label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .92rem; }
.options label span { flex: 1; }
.options strong { color: var(--blue); }
.options small { color: var(--muted); }

/* ---------- Compact product tiles (two rows fit on a laptop screen) ---------- */
.card-media { aspect-ratio: 3 / 2; background: var(--white); border-bottom: 1px solid var(--line); }
.card-media img { padding: 6px; }
.card-media .placeholder svg { width: 30%; height: 45%; }
.card-body { padding: 8px 10px 10px; gap: 6px; }
.card-title { font-size: .84rem; line-height: 1.3; min-height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; }
.card-prices { min-width: 0; }
.card .price { font-size: .95rem; margin: 0; padding: 0; line-height: 1.25; white-space: nowrap; }
.card .price small { font-size: .68rem; display: inline; }
.card .price-pack { font-size: .82rem; }
.card .btn.btn-xs { margin: 0; padding: 5px 10px; font-size: .75rem; flex: none; white-space: nowrap; }
.card .stock { top: 6px; left: 6px; font-size: .62rem; padding: 1px 7px; }
@media (max-width: 560px) {
  .card-foot { flex-direction: column; align-items: stretch; }
  .card .price { white-space: normal; }
}
.card-media { min-height: 0; overflow: hidden; }
.card-media img, .card-media .placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-media .stock { z-index: 1; }

/* ---------- Tile design refresh ---------- */
:root { --tile-bg: #f2f6fb; }
.catalogue { background: var(--tile-bg); }
.catalogue-tools { background: var(--tile-bg); border-bottom-color: #e2e9f1; }
.chip { background: var(--white); border-color: transparent; box-shadow: 0 1px 2px rgba(16,38,58,.06); }
.chip:hover { border-color: var(--blue); }

.card {
  border: 0; border-radius: 14px; background: var(--white);
  box-shadow: 0 1px 2px rgba(16,38,58,.05), 0 4px 14px rgba(16,38,58,.06);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16,38,58,.06), 0 14px 30px rgba(24,117,193,.16); }
.card-media { border-bottom: 0; background: var(--white); }
.card-media img { padding: 10px 10px 2px; transition: transform .3s ease; }
.card:hover .card-media img { transform: scale(1.06); }

/* "In stock" as a small dot label instead of another box */
.card .stock {
  background: rgba(255,255,255,.88); box-shadow: none; padding: 1px 6px 1px 4px;
  display: inline-flex; align-items: center; gap: 4px; font-weight: 600;
}
.card .stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.card .stock.out::before { background: #f59e0b; }

.card-body { padding: 6px 12px 12px; }
.card-title button:hover { color: var(--blue); }

/* Round green + button */
.add-btn {
  flex: none; min-width: 32px; height: 32px; padding: 0 9px; border-radius: 999px; border: 0; cursor: pointer;
  display: inline-grid; place-items: center; background: var(--green); color: var(--white);
  font-weight: 700; font-size: .78rem; box-shadow: 0 3px 8px rgba(90,181,69,.35);
  transition: background .15s, transform .15s;
}
.add-btn:hover { background: var(--green-dark); transform: scale(1.08); }
.add-btn.added { background: var(--green-soft); color: var(--green-dark); box-shadow: none; }
.add-btn:focus-visible { outline: 3px solid rgba(24,117,193,.45); outline-offset: 2px; }

.cat-head h2 { color: var(--ink); }
.cat-icon { background: var(--white); box-shadow: 0 1px 3px rgba(16,38,58,.08); }
.link-btn { background: var(--white); padding: 5px 12px; border-radius: 999px; box-shadow: 0 1px 2px rgba(16,38,58,.06); }
.link-btn:hover { text-decoration: none; background: var(--blue); color: var(--white); }

@media (max-width: 560px) {
  .card-foot { flex-direction: row; align-items: flex-end; }
  .card .price { white-space: normal; }
}
@media (max-width: 560px) { .card .price small { display: block; } }

/* ---------- Category sidebar (laptops and larger) ---------- */
.sidebar-title, .sidebar-help { display: none; }
.chip-icon { display: none; }

@media (min-width: 900px) {
  .catalogue-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
  .catalogue-tools {
    position: sticky; top: calc(var(--header-h, 86px) + 16px); margin: 24px 0 0; padding: 0; border: 0; background: none;
  }
  .sidebar-title { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px 4px; }
  .chips {
    flex-direction: column; gap: 2px; overflow: visible; padding: 8px; background: var(--white); border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16,38,58,.05), 0 4px 14px rgba(16,38,58,.06);
  }
  .chip {
    width: 100%; justify-content: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px;
    box-shadow: none; border: 0; background: none; white-space: normal; text-align: left; font-size: .9rem;
  }
  .chip:hover { background: var(--bg-alt); color: var(--blue); }
  .chip[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
  .chip-icon {
    display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px;
    background: var(--green-soft); color: var(--green-dark);
  }
  .chip-icon .icon { width: 17px; height: 17px; }
  .chip[aria-pressed="true"] .chip-icon { background: var(--blue); color: var(--white); }
  .chip-label { flex: 1; line-height: 1.3; }
  .chip .count {
    font-size: .72rem; opacity: 1; color: var(--muted); background: var(--bg-alt); border-radius: 999px; padding: 1px 8px; font-weight: 600;
  }
  .chip[aria-pressed="true"] .count { background: var(--white); color: var(--blue); }

  .sidebar-help {
    display: block; margin-top: 14px; padding: 16px; border-radius: 14px; color: var(--white);
    background: linear-gradient(135deg, var(--green), var(--blue));
  }
  .sidebar-help strong { font-size: 1rem; }
  .sidebar-help p { margin: 4px 0 12px; font-size: .84rem; opacity: .95; }
  .sidebar-help .btn { background: var(--white); color: var(--green-dark); }
  .sidebar-help .btn:hover { background: var(--green-soft); }

  /* 5 products per row next to the sidebar */
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cat-section:first-child { padding-top: 24px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* small laptops / tablets held sideways: narrower sidebar, 3 products per row */
@media (min-width: 900px) and (max-width: 1023px) {
  .catalogue-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 18px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Hero with photo ---------- */
.hero-inner { gap: 28px; align-items: center; }
.hero-text { display: grid; gap: 0; }
.hero-stats { margin-top: 22px; }
.hero-media { margin: 0; position: relative; }
.hero-media img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px;
  box-shadow: 0 18px 40px rgba(6, 30, 60, .35); border: 4px solid rgba(255,255,255,.18);
}
.hero-media::before {  /* soft green glow behind the photo */
  content: ""; position: absolute; inset: 12% -6% -8% 10%; border-radius: 24px; z-index: -1;
  background: radial-gradient(closest-side, rgba(90,181,69,.55), rgba(90,181,69,0));
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); padding-block: 32px 36px; }
  .hero-media img { max-height: 330px; }
}
@media (max-width: 899px) {
  .hero-media img { aspect-ratio: 16 / 8; object-position: center 60%; }
}

/* ---------- Hero: photo fills the whole banner ---------- */
.hero { background: #0f5a97; isolation: isolate; }
.hero::after { display: none; }
.hero-inner { display: block; min-height: 400px; padding-block: 48px 52px; }
.hero-text { position: relative; z-index: 2; max-width: 620px; }
.hero-media { position: absolute; inset: 0; z-index: 0; margin: 0; }
.hero-media::before { display: none; }
.hero-media img {
  width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; object-position: 60% 55%;
  border: 0; border-radius: 0; box-shadow: none;
}
/* brand-blue shade on the left so the white text stays readable; photo shows clearly on the right */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,74,128,.94) 0%, rgba(15,90,151,.86) 32%, rgba(24,117,193,.45) 58%, rgba(24,117,193,0) 82%);
}
.hero h1, .hero p { text-shadow: 0 1px 12px rgba(6,30,60,.25); }
@media (max-width: 899px) {
  .hero-inner { min-height: 0; padding-block: 36px 40px; }
  .hero-media img { aspect-ratio: auto; object-position: 35% 60%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(12,74,128,.90) 0%, rgba(15,90,151,.82) 60%, rgba(15,90,151,.70) 100%); }
}
/* photo spans the full screen width, not just the content column */
.hero { position: relative; }
.hero-inner { position: static; }
@media (min-width: 900px) {
  .hero-inner { min-height: 440px; display: flex; align-items: center; }
  .hero-media img { object-position: 50% 62%; }
}
@media (min-width: 900px) { .hero-inner { min-height: clamp(440px, 29vw, 560px); } }

/* ---------- Hero: centered brand over the full photo (previous-site style) ---------- */
.hero-inner { justify-content: center; text-align: center; }
.hero-centered { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-logo {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--blue)); box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.hero-logo svg { width: 32px; height: 32px; }
.hero h1.hero-brand { margin: 0; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; max-width: none; display: flex; flex-direction: column; }
.hero-brand .w { color: var(--white); }
.hero-brand .g { color: var(--green); text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero p.hero-pill {
  margin: 6px 0 0; padding: 7px 18px; border-radius: 999px; font-weight: 600; font-size: 1rem; color: var(--white);
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero p.hero-sub { margin: 4px 0 0; font-size: 1rem; opacity: .95; max-width: 560px; }

/* neutral grey shade so the whole photo shows, like before */
.hero { background: #3f4a55; }
.hero-media::after, .hero-media::after {
  background: linear-gradient(180deg, rgba(25,32,40,.45) 0%, rgba(25,32,40,.55) 100%);
}
@media (min-width: 900px) {
  .hero-inner { min-height: clamp(420px, 32vw, 600px); }
  .hero-media img { object-position: 50% 35%; }
}
@media (max-width: 899px) {
  .hero-inner { padding-block: 44px 48px; }
  .hero-media img { object-position: 30% 50%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(25,32,40,.5) 0%, rgba(25,32,40,.6) 100%); }
}

/* ---------- Phones & tablets: all categories visible, no sideways sliding ---------- */
@media (max-width: 899px) {
  .catalogue-tools { position: static; padding: 4px 0 12px; }
  .chips { flex-wrap: wrap; overflow: visible; gap: 6px; padding-bottom: 0; }
  .chip { font-size: .8rem; padding: 5px 10px; gap: 5px; }
  .chip .count { font-size: .68rem; }
}
@media (max-width: 380px) {
  .chip { font-size: .76rem; padding: 4px 9px; }
}

.chip-short { display: none; }
@media (max-width: 560px) {
  .chip-label { display: none; }
  .chip-short { display: inline; }
}
@media (max-width: 560px) { .chip .count { display: none; } }
@media (max-width: 359px) {
  .chips { gap: 4px; }
  .chip { font-size: .72rem; padding: 4px 7px; }
}

/* Phones: "Quote List" button shows its words (its list icon looked like a second menu button) */
@media (max-width: 420px) {
  .quote-btn-label { display: inline; }
  .quote-btn .icon { display: none; }
  .quote-btn { padding: 7px 12px; font-size: .82rem; gap: 6px; }
}
@media (max-width: 359px) {
  .logo-mark { width: 30px; height: 30px; }
  .logo-text strong { font-size: .92rem; }
  .logo-text span { font-size: .68rem; }
  .quote-btn { padding: 6px 10px; font-size: .78rem; }
}

/* ---------- Hero curve + trust strip (boundary before the products) ---------- */
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 44px; z-index: 1; fill: var(--tile-bg); }
.trust { background: var(--tile-bg); position: relative; z-index: 2; }
.trust-bar {
  list-style: none; margin: -30px 0 0; padding: 12px 18px; background: var(--white); border-radius: 14px;
  box-shadow: 0 2px 4px rgba(16,38,58,.05), 0 10px 26px rgba(16,38,58,.10);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 18px;
}
.trust-bar li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.trust-bar li + li { border-left: 1px solid var(--line); padding-left: 18px; }
.trust-icon {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-dark);
}
.trust-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-bar strong { display: block; font-size: .86rem; line-height: 1.25; color: var(--ink); }
.trust-bar small { display: block; font-size: .74rem; color: var(--muted); line-height: 1.3; }
.trust + .catalogue { padding-top: 8px; }

@media (max-width: 899px) {
  .trust-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 14px; gap: 12px 14px; }
  .trust-bar li + li { border-left: 0; padding-left: 0; }
  .hero-curve { height: 28px; }
}
@media (max-width: 560px) {
  .trust-bar { margin-top: -22px; gap: 10px; }
  .trust-bar small { display: none; }
  .trust-bar strong { font-size: .76rem; }
  .trust-icon { width: 28px; height: 28px; border-radius: 8px; }
  .trust-icon svg { width: 15px; height: 15px; }
}

.trust-short { display: none; }
/* Phones: four items in one row, icon above a short label */
@media (max-width: 560px) {
  .trust-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 10px 6px; gap: 4px; margin-top: -22px; }
  .trust-bar li { flex-direction: column; gap: 5px; text-align: center; }
  .trust-bar li + li { border-left: 1px solid var(--line); padding-left: 0; }
  .trust-bar strong, .trust-bar small { display: none; }
  .trust-short { display: block; font-size: .68rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
}
@media (max-width: 359px) { .trust-short { font-size: .62rem; } }

/* ---------- Each category gets its own shade (clear boundary between categories) ---------- */
[data-cat-theme] { --cat-bg: #edf3f9; --cat-accent: var(--blue); --cat-soft: var(--blue-soft); }
[data-cat-theme="equipment"]               { --cat-bg: #e1ecf8; --cat-accent: #1569ad; --cat-soft: #d6e7f8; }
[data-cat-theme="test-kits"]               { --cat-bg: #eaf6e6; --cat-accent: #3a8a2b; --cat-soft: #d5edcd; }
[data-cat-theme="consumables"]             { --cat-bg: #e4f4f2; --cat-accent: #0d7f74; --cat-soft: #cdeae6; }
[data-cat-theme="student-items"]           { --cat-bg: #fbf2e1; --cat-accent: #a86a12; --cat-soft: #f5e2bd; }
[data-cat-theme="furniture-physiotherapy"] { --cat-bg: #efedfa; --cat-accent: #5f4fc4; --cat-soft: #dfdaf5; }

.cat-section[data-cat-theme] {
  margin-top: 18px; padding: 16px 16px 18px; border-radius: 18px; background: var(--cat-bg);
}
.cat-section[data-cat-theme]:first-child { margin-top: 0; padding-top: 16px; }
.cat-section[data-cat-theme] .cat-head h2 { color: var(--cat-accent); }
.cat-section[data-cat-theme] .cat-icon { background: var(--white); color: var(--cat-accent); box-shadow: 0 1px 3px rgba(16,38,58,.08); }
.cat-section[data-cat-theme] .link-btn { color: var(--cat-accent); }
.cat-section[data-cat-theme] .link-btn:hover { background: var(--cat-accent); color: var(--white); }
.cat-section[data-cat-theme] .card { box-shadow: 0 1px 2px rgba(16,38,58,.05), 0 3px 10px rgba(16,38,58,.05); }

/* matching colours on the category buttons / sidebar */
.chip[data-cat-theme]:not([data-cat-theme="all"]) .chip-icon { background: var(--cat-soft); color: var(--cat-accent); }
.chip[data-cat-theme]:not([data-cat-theme="all"])[aria-pressed="true"] .chip-icon { background: var(--cat-accent); color: var(--white); }

@media (max-width: 560px) {
  .cat-section[data-cat-theme] { margin-inline: -6px; padding: 12px 10px 14px; border-radius: 14px; }
}
/* Distinct hues per category (warm / cool alternate so neighbours never look alike) */
[data-cat-theme="equipment"]               { --cat-bg: #dceafa; --cat-accent: #1565a8; --cat-soft: #c9def6; }
[data-cat-theme="test-kits"]               { --cat-bg: #fbe8ef; --cat-accent: #b0305c; --cat-soft: #f6d2df; }
[data-cat-theme="consumables"]             { --cat-bg: #e2f4da; --cat-accent: #3a8a2b; --cat-soft: #cdeac1; }
[data-cat-theme="student-items"]           { --cat-bg: #fbf2e1; --cat-accent: #a86a12; --cat-soft: #f5e2bd; }
[data-cat-theme="furniture-physiotherapy"] { --cat-bg: #ece8fb; --cat-accent: #5f4fc4; --cat-soft: #dcd5f6; }
/* Two alternating shades: brand blue and amber */
[data-cat-theme="equipment"], [data-cat-theme="consumables"], [data-cat-theme="furniture-physiotherapy"] {
  --cat-bg: #dceafa; --cat-accent: #1565a8; --cat-soft: #c9def6;
}
[data-cat-theme="test-kits"], [data-cat-theme="student-items"] {
  --cat-bg: #fbf0dc; --cat-accent: #a86a12; --cat-soft: #f5e2bd;
}
/* Prices never run under the + button: the unit drops to the next line when space is short */
.card-prices { flex: 1 1 auto; min-width: 0; }
.card .price { white-space: normal; }
.card .price small { white-space: nowrap; }
/* Same price layout on every tile in a row: narrow tiles always put the unit on its own line */
.card { container-type: inline-size; }
@container (max-width: 205px) {
  .card .price small { display: block; }
}

/* ---------- Customer reviews slider ---------- */
.reviews { background: var(--white); padding-block: 44px 40px; }
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.reviews-head h2 { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.75rem); color: var(--ink); }
.reviews-nav { display: flex; gap: 8px; }
.reviews-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); color: var(--blue);
  display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.reviews-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.reviews-arrow:hover:not(:disabled) { background: var(--blue); border-color: var(--blue); color: var(--white); }
.reviews-arrow:disabled { opacity: .35; cursor: default; }

/* 1 per page on phones, 2 on tablets, 3 on laptops, 4 on large screens */
.reviews-track {
  --per: 1; --gap: 16px;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: 4px 2px 8px; margin: -4px -2px 0;
}
.reviews-track::-webkit-scrollbar { display: none; }
@media (min-width: 640px)  { .reviews-track { --per: 2; } }
@media (min-width: 1000px) { .reviews-track { --per: 3; } }
@media (min-width: 1400px) { .reviews-track { --per: 4; } }
@media (max-width: 639px)  { .reviews-track { grid-auto-columns: 88%; } } /* next review peeks in, inviting a swipe */

.review-card {
  position: relative; margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px;
  padding: 20px; border-radius: 16px; background: var(--tile-bg);
}
.review-stars { color: #f2a516; letter-spacing: 2px; font-size: 1rem; }
.review-stars .off { color: #d5dde6; }
.review-card blockquote { margin: 0; flex: 1; font-size: .95rem; line-height: 1.6; color: #2b3b4d; }
.review-card figcaption { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  color: var(--white); background: linear-gradient(135deg, var(--green), var(--blue));
}
.review-card strong { display: block; font-size: .9rem; color: var(--ink); }
.review-card small { display: block; font-size: .78rem; color: var(--muted); }
.review-sample {
  position: absolute; top: 14px; right: 14px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 2px 8px; border-radius: 999px; background: #fff4d6; color: #8a5a00; border: 1px dashed #e0b44c;
}

.reviews-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.reviews-dots button { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; background: #cdd8e3; cursor: pointer; transition: width .2s, background .2s; }
.reviews-dots button[aria-current="true"] { width: 24px; background: var(--blue); }
.reviews-track:focus-visible { outline: 3px solid rgba(24,117,193,.45); outline-offset: 4px; border-radius: 12px; }
@media (max-width: 560px) { .reviews-arrow { width: 34px; height: 34px; } .reviews { padding-block: 32px 30px; } }
@media (prefers-reduced-motion: reduce) { .reviews-track { scroll-behavior: auto; } }
/* Continuous slider: no snapping (it glides), no dots */
.reviews-track { scroll-snap-type: none; scroll-behavior: auto; }
.reviews-arrow:disabled { opacity: 1; cursor: pointer; }

/* ---------- Search bar: gentle pulsing glow to draw attention ---------- */
@keyframes search-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(90,181,69,0); border-color: var(--line); }
  50%      { box-shadow: 0 0 0 5px rgba(90,181,69,.28); border-color: var(--green); }
}
.header-search.attract input { animation: search-glow 2.4s ease-in-out infinite; }
.header-search.attract svg { color: var(--green-dark); }
@media (prefers-reduced-motion: reduce) {
  .header-search.attract input { animation: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(90,181,69,.2); }
}

/* ---------- Search: summary line + suggestions drop-down ---------- */
.search-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin: 18px 0 4px; padding: 10px 14px; border-radius: 12px; background: var(--white);
  box-shadow: 0 1px 2px rgba(16,38,58,.05); font-size: .9rem;
}
.link-btn.inline { padding: 0; box-shadow: none; background: none; text-decoration: underline; font-weight: 700; }
.header-search { position: relative; }
.search-dropdown {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 320px;
  background: var(--white); border-radius: 14px; padding: 6px; max-height: min(70vh, 460px); overflow-y: auto;
  box-shadow: 0 2px 6px rgba(16,38,58,.08), 0 18px 40px rgba(16,38,58,.18);
}
@media (max-width: 820px) { .search-dropdown { min-width: 0; } }
.search-dropdown button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none;
  border-radius: 10px; cursor: pointer; text-align: left; color: var(--ink); font-size: .88rem;
}
.search-dropdown button:hover, .search-dropdown button.active { background: var(--blue-soft); }
.search-dropdown img, .sd-thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; background: var(--bg-alt); flex: none; }
.sd-text { min-width: 0; display: flex; flex-direction: column; }
.sd-text strong { font-weight: 600; line-height: 1.3; }
.sd-text small { color: var(--blue); font-weight: 600; font-size: .78rem; }
.search-dropdown .sd-suggest { color: var(--muted); }
.search-dropdown .sd-suggest strong { color: var(--green-dark); }
.search-dropdown .sd-all { justify-content: center; color: var(--blue); font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }
.sd-note { margin: 4px 10px 6px; font-size: .8rem; color: var(--muted); }

/* ---------- While searching: only the results ---------- */
body.is-searching .hero,
body.is-searching .trust,
body.is-searching .reviews,
body.is-searching .cta-band { display: none; }
body.is-searching .catalogue { padding-top: 8px; min-height: 70vh; }
body.is-searching .cat-section:first-child { margin-top: 0; }
body.is-searching .cat-head p,
body.is-searching .cat-head .link-btn { display: none; }
body.is-searching .cat-head { margin-bottom: 10px; }
@media (max-width: 899px) {
  body.is-searching .catalogue-tools { display: none; }
  body.is-searching .search-summary { margin-top: 4px; }
}

/* ---------- Phones: compact "Need something not listed?" band and footer ---------- */
@media (max-width: 760px) {
  .cta-band { padding-block: 16px; }
  .cta-band .container { flex-wrap: nowrap; gap: 12px; }
  .cta-band h2 { font-size: 1rem; margin: 0 0 2px; }
  .cta-band p { font-size: .8rem; line-height: 1.35; }
  .cta-band .btn { flex: none; padding: 7px 14px; font-size: .8rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px 16px; padding-top: 24px; padding-bottom: 18px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-about {
    font-size: .8rem; margin-top: 8px; max-width: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  #site-footer .logo-mark { width: 30px; height: 30px; }
  #site-footer h3 { font-size: .85rem; margin-bottom: 8px; }
  #site-footer ul { gap: 6px; font-size: .82rem; }
  .footer-contact li, .footer-contact a { gap: 6px; }
  .footer-bottom { padding-block: 10px; font-size: .74rem; }
}
@media (max-width: 359px) {
  .cta-band .container { flex-wrap: wrap; }
  .footer-grid { gap: 16px 10px; }
  #site-footer ul { font-size: .78rem; }
}
@media (max-width: 760px) { .catalogue { padding-bottom: 24px; } }

/* ---------- "Request a quote" header button: two short lines, same size as before ---------- */
.quote-btn { padding: 5px 14px; gap: 8px; line-height: 1.05; }
.quote-btn-label { display: inline-flex; flex-direction: column; align-items: flex-start; font-size: .8rem; }
.quote-btn-label > span { white-space: nowrap; }
@media (max-width: 420px) {
  .quote-btn { padding: 5px 12px; }
  .quote-btn-label { display: inline-flex; font-size: .74rem; }
}
@media (max-width: 359px) { .quote-btn-label { font-size: .7rem; } }

/* ---------- Floating Call + WhatsApp buttons (raised off the bottom edge) ---------- */
.float-actions {
  position: fixed; z-index: 60; display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}
.float-actions .float-btn {
  position: relative; inset: auto; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: var(--white); text-decoration: none;
  box-shadow: 0 6px 18px rgba(16,38,58,.28); transition: transform .15s;
}
.float-actions .float-btn:hover { transform: scale(1.07); }
.float-actions .float-btn .icon { width: 26px; height: 26px; }
.float-actions .wa-float { background: #25d366; }
.float-actions .call-float { background: var(--blue); }
.float-label {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: var(--ink); color: var(--white); font-size: .75rem; font-weight: 600; white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.float-btn:hover .float-label, .float-btn:focus-visible .float-label { opacity: 1; }
@media (max-width: 560px) {
  .float-actions { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); gap: 10px; right: calc(12px + env(safe-area-inset-right, 0px)); }
  .float-actions .float-btn { width: 48px; height: 48px; }
  .float-actions .float-btn .icon { width: 24px; height: 24px; }
}

/* ---------- Selected category: gentle blue pulse so it stands out ---------- */
@keyframes chip-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(24,117,193,0); }
  50%      { box-shadow: 0 0 0 5px rgba(24,117,193,.30); }
}
.chip[aria-pressed="true"] { animation: chip-pulse 2.4s ease-in-out infinite; }
@media (min-width: 900px) {
  @keyframes chip-pulse-side {
    0%, 100% { box-shadow: inset 0 0 0 0 rgba(24,117,193,0); background-color: var(--blue-soft); }
    50%      { box-shadow: inset 0 0 0 2px rgba(24,117,193,.55); background-color: #d3e6f8; }
  }
  .chip[aria-pressed="true"] { animation-name: chip-pulse-side; }
}
@media (prefers-reduced-motion: reduce) {
  .chip[aria-pressed="true"] { animation: none; box-shadow: 0 0 0 3px rgba(24,117,193,.3); }
}
@media (min-width: 900px) {
  @keyframes chip-pulse-side2 {
    0%, 100% { box-shadow: inset 0 0 0 0 rgba(24,117,193,0), 0 0 0 0 rgba(24,117,193,0); background-color: var(--blue-soft); }
    50%      { box-shadow: inset 0 0 0 2px rgba(24,117,193,.75), 0 0 0 4px rgba(24,117,193,.18); background-color: #cfe3f7; }
  }
  .chip[aria-pressed="true"] { animation-name: chip-pulse-side2; }
}
@media (prefers-reduced-motion: reduce) { .chip[aria-pressed="true"] { animation: none; } }

/* ---------- Logo image ---------- */
.logo-img { width: 40px; height: 40px; border-radius: 10px; flex: none; object-fit: contain; background: var(--white); }
#site-footer .logo-img { padding: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.hero-logo { width: auto; height: auto; padding: 8px; background: var(--white); border-radius: 22px; }
.hero-logo img { width: 84px; height: 84px; display: block; border-radius: 14px; }
@media (max-width: 560px) {
  .logo-img { width: 36px; height: 36px; }
  .hero-logo { padding: 6px; border-radius: 18px; }
  .hero-logo img { width: 68px; height: 68px; }
}
@media (max-width: 359px) { .logo-img { width: 30px; height: 30px; } }

/* ---------- Product photos in the quote request list ---------- */
.quote-table td.photo { width: 64px; padding-inline: 8px; }
.quote-thumb {
  width: 52px; height: 52px; border-radius: 10px; object-fit: contain; background: var(--white);
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--blue);
}
.quote-thumb.noimg { background: linear-gradient(135deg, var(--blue-soft), var(--green-soft)); flex: none; }
.quote-thumb.noimg svg { width: 24px; height: 24px; opacity: .6; }
@media (max-width: 560px) {
  /* phone: photo beside the name, quantity and subtotal underneath */
  .quote-table tr { grid-template-columns: 52px 1fr auto; align-items: center; }
  .quote-table td.photo { grid-row: 1; grid-column: 1; width: auto; padding: 0; }
  .quote-table td.item { grid-row: 1; grid-column: 2; }
  .quote-table td.rm { grid-row: 1; grid-column: 3; align-self: start; }
  .quote-table td.q { grid-row: 2; grid-column: 1 / 3; }
  .quote-table td.sub { grid-row: 2; grid-column: 3; }
  .quote-thumb { width: 48px; height: 48px; }
}

/* Blog: reserve space while articles load, so the page doesn't change height after opening */
#blog-root { min-height: 75vh; }
.blog-list-placeholder { min-height: 50vh; }

/* ---------- Grey photo area on product tiles (like the previous site) ---------- */
:root { --photo-bg: #eef0f3; }
.card-media { background: var(--photo-bg); }
.card-media img { mix-blend-mode: multiply; }          /* white photo backgrounds blend into the grey */
.card-media .placeholder { background: var(--photo-bg); }
.modal-media { background: var(--photo-bg); }
.modal-media img { mix-blend-mode: multiply; }
.card .stock { background: rgba(255,255,255,.92); }

/* ---------- Photo area: lighter grey, inset with a white margin all round ---------- */
:root { --photo-bg: #f4f5f7; }
.card-media { background: var(--white); padding: 8px 8px 0; }
.card-media img, .card-media .placeholder {
  inset: 8px 8px 0 8px; width: calc(100% - 16px); height: calc(100% - 8px);
  background: var(--photo-bg); border-radius: 10px;
}
.card-media .stock { top: 13px; left: 13px; }
@media (max-width: 560px) {
  .card-media { padding: 6px 6px 0; }
  .card-media img, .card-media .placeholder { inset: 6px 6px 0 6px; width: calc(100% - 12px); height: calc(100% - 6px); }
  .card-media .stock { top: 10px; left: 10px; }
}
/* grey panel sits behind the photo so white photo backgrounds blend into it */
.card-media::before {
  content: ""; position: absolute; inset: 8px 8px 0 8px; border-radius: 10px; background: var(--photo-bg);
}
.card-media img { background: none; z-index: 0; }
.card-media .placeholder { background: var(--photo-bg); }
@media (max-width: 560px) { .card-media::before { inset: 6px 6px 0 6px; } }

/* ---------- Pictures inside blog articles ---------- */
.article-figure { margin: 28px 0; }
.article-figure img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; background: var(--bg-alt); display: block; }
.article-figure figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); text-align: center; }
.post-cover img, .article-cover img { object-fit: cover; }

/* ---------- Featured product banner (Finecare analyzer) ---------- */
.feature-banner {
  margin-top: 18px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 28px; align-items: center;
  padding: 24px 28px; border-radius: 18px; color: var(--white); position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0f5a97 0%, var(--blue) 55%, #2a8bd8 100%);
  box-shadow: 0 10px 30px rgba(15,90,151,.25);
}
.feature-banner::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(90,181,69,.55), rgba(90,181,69,0) 70%); pointer-events: none;
}
.fb-media { background: var(--white); border-radius: 16px; padding: 16px; display: grid; place-items: center; position: relative; z-index: 1; }
.fb-media img { width: 100%; max-width: 330px; height: auto; display: block; }
.fb-body { position: relative; z-index: 1; min-width: 0; }
.fb-eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  background: var(--green); color: var(--white); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.feature-banner h2 { margin: 0 0 6px; font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: var(--white); }
.feature-banner sup { font-size: .5em; }
.fb-lead { margin: 0 0 12px; opacity: .92; font-size: .95rem; max-width: 560px; }
.fb-tests-label { margin: 0 0 6px; font-size: .8rem; font-weight: 600; opacity: .85; }
.fb-tests { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.fb-tests li { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); }
.fb-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.fb-price { font-size: 1.6rem; font-weight: 700; line-height: 1; margin-right: 6px; }
.fb-price small { font-size: .78rem; font-weight: 500; opacity: .85; }
.btn-white-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.8); }
.btn-white-outline:hover { background: rgba(255,255,255,.14); }
.fb-note { margin: 12px 0 0; font-size: .78rem; opacity: .8; }
@media (max-width: 760px) {
  .feature-banner { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .fb-media img { max-width: 220px; }
  .fb-price { font-size: 1.4rem; width: 100%; }
  .fb-buy .btn { flex: 1 1 auto; }
}
@media (max-width: 560px) { .feature-banner { margin-inline: -6px; } }
@media (max-width: 760px) {
  .fb-media { padding: 10px; }
  .fb-media img { max-width: 150px; }
  .fb-lead { font-size: .88rem; }
  .fb-tests li { font-size: .72rem; padding: 3px 8px; }
}

/* ---------- Featured banners v2: big Black November price beside the photo ---------- */
.feature-banner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; gap: 22px 28px; }
.fb-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; position: relative; z-index: 1; }
.fb-media { min-height: 220px; }
.fb-media img { max-width: 100%; }
.fb-offer {
  background: #0d0f12; color: var(--white); border-radius: 16px; padding: 18px 16px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; text-align: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.28); border: 2px solid #f5c518;
}
.fb-offer-tag {
  align-self: center; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #0d0f12; background: #f5c518; padding: 4px 12px; border-radius: 999px;
}
.feature-banner .fb-price {
  font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 800; line-height: 1.05; color: #ffd84d; margin: 6px 0 0;
  letter-spacing: -.01em; white-space: nowrap;
}
.fb-per { font-size: .8rem; opacity: .8; }
.fb-offer .fb-buy { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 10px; }
.fb-offer .fb-buy .btn { width: 100%; }
.feature-banner .fb-body { align-self: center; }
@media (max-width: 1100px) { .feature-banner { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .fb-top { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 10px; }
  .fb-media { min-height: 0; padding: 8px; }
  .fb-media img { max-width: 100%; }
  .fb-offer { padding: 12px 10px; }
  .feature-banner .fb-price { font-size: clamp(1.55rem, 7.2vw, 2.1rem); }
  .fb-offer-tag { font-size: .6rem; padding: 3px 8px; letter-spacing: .08em; }
  .fb-offer .fb-buy .btn { padding: 8px 10px; font-size: .8rem; }
}
/* price scales with its black box: as large as possible, never spilling out */
.fb-offer { container-type: inline-size; min-width: 0; }

.feature-banner .fb-offer .fb-price { font-size: clamp(1.3rem, 13.4cqi, 3.4rem); }

/* bigger number: small "KSh", wider price box */
.fb-cur { font-size: .42em; font-weight: 700; margin-right: .18em; vertical-align: .9em; letter-spacing: .02em; }
.feature-banner .fb-offer .fb-price { font-size: clamp(1.6rem, 19cqi, 3.8rem); }
.fb-top { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.feature-banner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.fb-offer { padding-inline: 12px; }
@media (max-width: 1100px) { .feature-banner { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .fb-top { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); }
  .fb-offer { padding: 12px 8px; }
}

/* machine name first, across the full banner */
.fb-head { grid-column: 1 / -1; position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.fb-head .fb-eyebrow { margin: 0; order: 2; }
.fb-head h2 { margin: 0; order: 1; font-size: clamp(1.4rem, 2.8vw, 2rem); }
.feature-banner { row-gap: 16px; }
@media (max-width: 760px) {
  .fb-head { gap: 6px; }
  .fb-head h2 { font-size: 1.3rem; width: 100%; }
}

/* ---------- Two-colour "Cello": "Cell" blue, "o" green ---------- */
.brand-cell { color: #1875C1; }
.brand-o { color: #5AB545; }
.logo-text .brand-cell, .hero .brand-cell, #site-footer .brand-cell, .brand-cell {
  color: #1875C1 !important; font-size: inherit !important; letter-spacing: inherit !important; text-transform: none !important; font-weight: inherit !important;
}
.logo-text .brand-o, .hero .brand-o, #site-footer .brand-o, .brand-o {
  color: #5AB545 !important; font-size: inherit !important; letter-spacing: inherit !important; text-transform: none !important; font-weight: inherit !important;
}

/* ---------- Uniform name everywhere: "Cello Lab" (Cell+Lab blue, o green) / "Solutions" green ---------- */
.logo-text strong, #site-footer .logo-text strong, .brand-lab, .hero .brand-lab { color: #1875C1 !important; }
.logo-text > span, #site-footer .logo-text > span, .hero-brand .g { color: #5AB545 !important; }

.wa-num { white-space: nowrap; }
@media (max-width: 760px) { .wa-num { display: block; } .footer-contact a { align-items: flex-start; } .footer-contact a .icon-sm { margin-top: 3px; } }
.float-actions { transition: opacity .2s, transform .2s; }
.float-actions.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* ---------- Hero v2: team photo (copy on the photo's empty top-left on laptops, below it on phones) ---------- */
.hero.hero2 { background: #eaf3fb; color: var(--ink); isolation: isolate; }
.hero2-photo { display: block; width: 100%; height: auto; }
.hero2-copy { position: relative; z-index: 2; }
.hero2 .hero-brand { display: flex; align-items: center; gap: 14px; margin: 0; max-width: none; line-height: 1.02; }
.hero2-logo { width: 56px; height: 56px; border-radius: 14px; background: var(--white); box-shadow: 0 4px 14px rgba(16,38,58,.15); flex: none; }
.hero2-name { display: flex; flex-direction: column; font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; }
.hero2 .hero-brand .g { text-shadow: none; }
.hero2 p.hero-pill {
  display: inline-block; margin: 12px 0 0; padding: 6px 16px; color: var(--blue); font-weight: 700;
  background: rgba(255,255,255,.85); border: 1.5px solid rgba(24,117,193,.35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.hero2 p.hero-sub { margin: 10px 0 0; color: #23384f; font-size: 1rem; opacity: 1; max-width: 420px; text-shadow: none; }
.hero2 h1, .hero2 p { text-shadow: none; }

@media (min-width: 900px) {
  .hero.hero2 { min-height: clamp(440px, 46vw, 640px); }
  .hero2-photo { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: 0; }
  .hero2::before {   /* soft light wash behind the text, top-left only */
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(ellipse 42% 46% at 16% 18%, rgba(255,255,255,.82), rgba(255,255,255,0) 72%);
  }
  .hero2-copy { padding-block: clamp(22px, 3vw, 44px) 0; }
  .hero2-copy > * { max-width: min(36vw, 470px); }
}
@media (max-width: 899px) {
  .hero.hero2 { background: var(--white); text-align: center; }
  .hero2-photo { aspect-ratio: 1672 / 941; object-fit: cover; }
  .hero2-copy { padding-block: 18px 44px; display: flex; flex-direction: column; align-items: center; }
  .hero2 .hero-brand { justify-content: center; }
  .hero2-logo { width: 46px; height: 46px; border-radius: 12px; }
  .hero2-name { font-size: 1.9rem; text-align: left; }
  .hero2 p.hero-sub { font-size: .92rem; }
}
/* Hero v2 on laptops: text panel left, photo (the two scientists) right */
.hero.hero2 h1.hero-brand { flex-direction: row; align-items: center; text-align: left; }
@media (min-width: 900px) {
  .hero.hero2 { min-height: 0; display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 60%); align-items: stretch;
    background: linear-gradient(135deg, #f3f8fd 0%, #e3effa 100%); }
  .hero2::before { display: none; }
  .hero2-photo { position: relative; inset: auto; grid-column: 2; grid-row: 1; width: 100%; height: clamp(400px, 36vw, 560px);
    object-fit: cover; object-position: 78% 35%; z-index: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%); }
  .hero2-copy { grid-column: 1; grid-row: 1; align-self: center; max-width: none; margin: 0;
    padding: 0 0 36px max(24px, calc((100vw - 1360px) / 2 + 24px)); }
  .hero2-copy > * { max-width: 460px; }
  .hero2-name { font-size: clamp(2rem, 3.4vw, 3.1rem); }
}
@media (min-width: 900px) {
  .hero2-photo { object-position: 100% 35%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.5%); mask-image: linear-gradient(90deg, transparent 0, #000 2.5%); }
}
@media (min-width: 900px) {
  .hero2-photo { height: auto; aspect-ratio: 1672 / 941; max-height: 620px; object-position: 100% 35%; }
}

/* ---------- Hero v3: team photo as full-width background, centred text ---------- */
.hero.hero2, .hero.hero2 {
  display: grid; place-items: center; position: relative; overflow: hidden; text-align: center;
  min-height: clamp(400px, 40vw, 600px); background: #0d3a63;
}
.hero.hero2 .hero2-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto;
  object-fit: cover; object-position: 60% 35%; z-index: 0; -webkit-mask-image: none; mask-image: none;
  grid-column: auto; grid-row: auto;
}
.hero.hero2::before {
  display: block; content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 50% 50%, rgba(8,34,62,.72) 0%, rgba(8,34,62,.45) 60%, rgba(8,34,62,.25) 100%),
    linear-gradient(180deg, rgba(8,34,62,.25), rgba(8,34,62,.35));
}
.hero.hero2 .hero2-copy {
  position: relative; z-index: 2; grid-column: auto; grid-row: auto; margin: 0 auto; align-self: center;
  padding: 34px 16px 56px; display: flex; flex-direction: column; align-items: center; max-width: 760px;
}
.hero.hero2 .hero2-copy > * { max-width: none; }
.hero.hero2 h1.hero-brand { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.hero.hero2 .hero2-logo { width: 84px; height: 84px; padding: 8px; border-radius: 22px; background: var(--white); box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.hero.hero2 .hero2-name { align-items: center; text-align: center; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; }
/* white outline around the name so the blue/green letters stay crisp on the photo */
.hero.hero2 .hero2-name .w, .hero.hero2 .hero2-name .g {
  text-shadow:
    -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff,
    0 -2px 0 #fff, 0 2px 0 #fff, -2px 0 0 #fff, 2px 0 0 #fff,
    0 6px 18px rgba(0,0,0,.35) !important;
}
.hero.hero2 p.hero-pill {
  margin: 14px 0 0; color: var(--white); background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4);
}
.hero.hero2 p.hero-sub { color: var(--white); max-width: 560px; margin: 10px 0 0; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
@media (max-width: 899px) {
  .hero.hero2 { min-height: 0; }
  .hero.hero2 .hero2-photo { object-position: 62% 30%; }
  .hero.hero2 .hero2-copy { padding: 30px 16px 50px; }
  .hero.hero2 .hero2-logo { width: 68px; height: 68px; padding: 6px; border-radius: 18px; }
  .hero.hero2 .hero2-name { font-size: 2.2rem; }
  .hero.hero2::before { background: rgba(8,34,62,.58); }
}
@media (min-width: 900px) {
  .hero.hero2 { grid-template-columns: 1fr; }
  .hero.hero2 .hero2-copy { grid-column: 1; padding: 30px 24px 60px; justify-self: center; }
}
/* phones: show the right end of the photo (the woman's full shoulders) */
@media (max-width: 899px) { .hero.hero2 .hero2-photo { object-position: 100% 30%; } }
/* Products hero photo: keep the coat logo in view */
@media (min-width: 900px) { .hero.hero2 .hero2-photo { object-position: 60% 62%; } }
@media (max-width: 899px) {
  .hero.hero2 .hero2-photo { object-position: 100% 40%; }
  .hero.hero2 .hero2-copy { padding: 22px 16px 70px; }
  .hero.hero2 .hero2-logo { width: 58px; height: 58px; }
  .hero.hero2 .hero2-name { font-size: 2rem; }
}
/* Products hero: lady fully in view — no head crop on laptops, clear of the centred text on phones */
@media (min-width: 900px) {
  .hero.hero2 { min-height: clamp(440px, 48vw, 760px); }
  .hero.hero2 .hero2-photo { object-position: 60% 4%; }
}
@media (max-width: 899px) { .hero.hero2 .hero2-photo { object-position: 68% 40%; } }
@media (min-width: 900px) { .hero.hero2 .hero2-photo { object-position: 60% 20%; } }

/* ---------- About page hero: team photo, text in the lower part (faces stay clear) ---------- */
.about-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(420px, 46vw, 680px); background: #0d3a63; }
.about-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,34,62,0) 38%, rgba(8,34,62,.55) 62%, rgba(8,34,62,.9) 100%);
}
.about-hero-copy { position: relative; z-index: 2; text-align: center; padding-block: 24px 40px; color: var(--white); }
.about-hero .eyebrow { color: #9be08a; }
.about-hero h1 { color: var(--white); font-size: clamp(1.6rem, 3.6vw, 2.6rem); margin: 0 0 8px; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.about-hero p { margin: 0 auto; max-width: 620px; color: #e9f1f8; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
@media (max-width: 760px) {
  .about-hero { min-height: 0; display: block; background: #0d3a63; }
  .about-hero-photo { position: relative; height: auto; aspect-ratio: 1672 / 941; object-position: 50% 30%; }
  .about-hero::before { display: none; }
  .about-hero-copy { padding-block: 18px 26px; }
  .about-hero h1 { font-size: 1.5rem; }
  .about-hero p { font-size: .9rem; }
}
/* About hero (laptops): box being handed over sits above the text */
@media (min-width: 761px) {
  .about-hero { min-height: clamp(460px, 52vw, 760px); }
  .about-hero-photo { object-position: 50% 45%; }
  .about-hero-copy { padding-block: 16px 26px; }
  .about-hero::before { background: linear-gradient(180deg, rgba(8,34,62,0) 60%, rgba(8,34,62,.6) 78%, rgba(8,34,62,.92) 100%); }
}
@media (min-width: 761px) {
  .about-hero { min-height: 0; height: min(56.25vw, 900px); }
  .about-hero-photo { object-position: 50% 28%; }
  .about-hero-copy { padding-block: 10px 18px; }
  .about-hero h1 { margin-bottom: 4px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .about-hero h1 { font-size: 1.45rem; }
  .about-hero p { font-size: .85rem; max-width: 520px; }
  .about-hero .eyebrow { margin-bottom: 2px; }
}
@media (min-width: 1500px) {
  .about-hero-photo { object-position: 50% 12%; }
  .about-hero-copy { text-align: left; }
  .about-hero-copy > * { max-width: 560px; margin-left: 0; }
  .about-hero::before { background: linear-gradient(90deg, rgba(8,34,62,.75) 0%, rgba(8,34,62,0) 45%), linear-gradient(180deg, rgba(8,34,62,0) 65%, rgba(8,34,62,.55) 100%); }
}
@media (min-width: 1101px) {
  .about-hero { height: min(56.25vw, 900px, calc(100vh - 90px)); min-height: 440px; }
  .about-hero-photo { object-position: 50% 12%; }
  .about-hero-copy { text-align: left; padding-block: 10px 26px; }
  .about-hero-copy > *, .about-hero p { max-width: 520px; margin-left: 0; margin-right: 0; }
  .about-hero::before { background: linear-gradient(90deg, rgba(8,34,62,.78) 0%, rgba(8,34,62,.25) 38%, rgba(8,34,62,0) 52%), linear-gradient(180deg, rgba(8,34,62,0) 60%, rgba(8,34,62,.5) 100%); }
}

/* ---------- Product tiles: whole tile opens the product page; eye icon ---------- */
.card { position: relative; cursor: pointer; }
.card-media { display: block; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--blue); }
.eye-btn {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); color: var(--blue);
  box-shadow: 0 2px 8px rgba(16,38,58,.16); transition: transform .15s, background .15s, color .15s;
}
.eye-btn:hover, .card:hover .eye-btn { background: var(--blue); color: var(--white); transform: scale(1.06); }
a.add-btn { text-decoration: none; }
@media (max-width: 560px) { .eye-btn { top: 10px; right: 10px; width: 28px; height: 28px; } .eye-btn svg { width: 15px; height: 15px; } }

/* ---------- Product page ---------- */
.product-page { background: var(--tile-bg); padding-bottom: 40px; }
.product-page > .container { padding-block: 18px 8px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.pp {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start;
  background: var(--white); border-radius: 18px; padding: 22px; box-shadow: 0 1px 2px rgba(16,38,58,.05), 0 6px 20px rgba(16,38,58,.07);
}
.pp-media { background: var(--photo-bg); border-radius: 14px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.pp-media img { width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.pp-media .placeholder { width: 100%; height: 100%; }
.pp-info { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pp-cat { align-self: flex-start; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green-dark); text-decoration: none; }
.pp h1 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--ink); line-height: 1.2; }
.pp-stock { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--green-dark); }
.pp-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.pp-stock.out { color: #9a5b00; } .pp-stock.out::before { background: #f59e0b; }
.pp-price { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--blue); line-height: 1.1; }
.pp-price small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.pp-options { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0; display: grid; gap: 10px; }
.pp-options legend { font-size: .8rem; font-weight: 600; color: var(--muted); padding: 0 4px; }
.pp-options label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .95rem; }
.pp-options label span { flex: 1; }
.pp-options strong { color: var(--blue); font-size: 1.15rem; }
.pp-buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pp-buy .btn { flex: 1 1 200px; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-actions .btn { flex: 1 1 auto; }
.pp-desc h2 { font-size: 1rem; margin: 6px 0 4px; color: var(--ink); }
.pp-desc p { margin: 0; color: #2b3b4d; line-height: 1.6; }
.pp-trust { list-style: none; margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--bg-alt); display: grid; gap: 6px; font-size: .84rem; color: #2b3b4d; }
.pp-trust li::before { content: "✓"; color: var(--green-dark); font-weight: 700; margin-right: 8px; }
.related { padding-top: 26px; }
.related-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.related-head h2 { margin: 0; font-size: 1.25rem; color: var(--ink); }
.related .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .related .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 780px) { .related .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .related .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pp { grid-template-columns: 1fr; padding: 14px; gap: 16px; }
  .pp-media { aspect-ratio: 4 / 3; }
}

/* ---------- Phone header: "Products" button between the name and "Request a quote" ---------- */
.nav-products-mobile { display: none; }
@media (max-width: 820px) {
  .nav-products-mobile {
    display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600;
    color: var(--blue); background: var(--blue-soft); text-decoration: none; white-space: nowrap;
  }
  .nav-products-mobile[aria-current] { background: var(--blue); color: var(--white); }
  .header-actions { gap: 6px; }
}
@media (max-width: 420px) {
  .nav-products-mobile { font-size: .7rem; padding: 6px 9px; }
  .quote-btn { padding: 5px 10px; }
  .quote-btn-label { font-size: .68rem; }
  .logo { gap: 7px; }
  .logo-img { width: 32px; height: 32px; }
  .logo-text strong { font-size: .92rem; }
  .logo-text span { font-size: .6rem; letter-spacing: .1em; }
  .menu-toggle { padding: 4px; }
}
@media (max-width: 359px) {
  .nav-products-mobile { font-size: .64rem; padding: 5px 7px; }
  .quote-btn { padding: 4px 8px; }
  .quote-btn-label { font-size: .62rem; }
  .logo-img { width: 26px; height: 26px; }
  .logo-text strong { font-size: .8rem; }
  .logo-text span { font-size: .52rem; }
  .header-actions { gap: 4px; }
}

/* Header "Favourites" button: one short word, heart icon */
.quote-btn .quote-btn-label { flex-direction: row; font-size: .85rem; }
.quote-btn .icon { fill: currentColor; stroke: none; }
@media (max-width: 420px) { .quote-btn .quote-btn-label { font-size: .74rem; } }
@media (max-width: 359px) { .quote-btn .quote-btn-label { font-size: .66rem; } }
@media (max-width: 359px) {
  body[data-page="product"] .nav-products-mobile { padding: 5px 6px; font-size: .6rem; }
  body[data-page="product"] .quote-btn { padding: 4px 7px; gap: 4px; }
  body[data-page="product"] .quote-btn .icon { width: 13px; height: 13px; }
  body[data-page="product"] .logo-text span { letter-spacing: .06em; }
}

/* Favourites: added state */
.pp-added { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-weight: 700; }
.pp-or { color: var(--muted); margin: 0 4px; }
.add-btn.added { background: var(--green-soft); color: var(--green-dark); }
/* Clear list confirmation */
.clear-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #fdecec; color: #8a1c1c; font-size: .9rem; font-weight: 600; }
.clear-confirm span { flex: 1 1 200px; }
.btn-danger { background: #c62828; color: #fff; }
.btn-danger:hover { background: #a61f1f; }

.fav-row { cursor: pointer; }
.fav-row:hover td { background: #f7fafd; }
.fav-link { color: var(--ink); text-decoration: none; }
.fav-link:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Heart favourites ---------- */
.add-btn svg { display: block; }
.add-btn.added { background: #e8f6e4; color: #2f8a1f; box-shadow: inset 0 0 0 1.5px #5ab545; }
.card.is-fav { box-shadow: 0 0 0 2px #5ab545, 0 4px 14px rgba(90,181,69,.18); }
.card.is-fav:hover { box-shadow: 0 0 0 2px #5ab545, 0 14px 30px rgba(90,181,69,.22); }
.pp-media { position: relative; }
.pp-heart {
  position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--white); color: var(--green-dark);
  box-shadow: 0 4px 14px rgba(16,38,58,.16); transition: transform .15s, background .15s;
}
.pp-heart svg { width: 24px; height: 24px; }
.pp-heart:hover { transform: scale(1.08); }
.pp-heart.on { background: var(--green); color: var(--white); }
.pp-added { gap: 8px; }
.pp-added svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .pp-heart { width: 42px; height: 42px; top: 10px; right: 10px; } .pp-heart svg { width: 21px; height: 21px; } }
.grid .card.is-fav, .cat-section[data-cat-theme] .card.is-fav { box-shadow: 0 0 0 2.5px #5ab545, 0 6px 16px rgba(90,181,69,.22); }
/* Favourited: just the green heart, no circle or border */
.add-btn.added, .card .add-btn.added { background: none; box-shadow: none; border: 0; color: #5ab545; padding: 0; min-width: 32px; }
.add-btn.added svg { width: 26px; height: 26px; }
.add-btn.added:hover { transform: scale(1.12); background: none; }

button.pp-added { border: 0; cursor: pointer; font: inherit; font-weight: 700; transition: background .15s; }
button.pp-added:hover { background: #d6efcf; }
/* Products hero (man with BP machine): keep his face and the coat logo in view */
@media (min-width: 900px) { .hero.hero2 .hero2-photo { object-position: 60% 10%; } }
@media (max-width: 899px) { .hero.hero2 .hero2-photo { object-position: 86% 30%; } }

/* ---------- Products hero: soft white glow behind the centred text (replaces the dark shade) ---------- */
.hero.hero2::before { background: radial-gradient(ellipse 42% 62% at 50% 50%, rgba(255,255,255,.88) 0%, rgba(255,255,255,.6) 55%, rgba(255,255,255,0) 100%); }
.hero.hero2 .hero2-name .w, .hero.hero2 .hero2-name .g { text-shadow: none !important; }
.hero.hero2 p.hero-pill { color: var(--blue); background: rgba(255,255,255,.9); border-color: rgba(24,117,193,.35); }
.hero.hero2 p.hero-sub { color: var(--ink); text-shadow: none; }
@media (max-width: 899px) {
  .hero.hero2::before { background: radial-gradient(ellipse 75% 70% at 50% 50%, rgba(255,255,255,.9) 0%, rgba(255,255,255,.65) 60%, rgba(255,255,255,.2) 100%); }
}
@media (max-width: 899px) {
  .hero.hero2::before { background: radial-gradient(ellipse 62% 58% at 50% 54%, rgba(255,255,255,.88) 0%, rgba(255,255,255,.55) 60%, rgba(255,255,255,.05) 100%); }
}

/* ---------- Products hero: richer brand-blue tint, small soft white glow behind the name ---------- */
.hero.hero2 .hero2-photo { filter: saturate(1.3); }
.hero.hero2::before {
  background:
    radial-gradient(ellipse 32% 44% at 50% 50%, rgba(255,255,255,.55) 0%, rgba(255,255,255,.22) 60%, rgba(255,255,255,0) 100%),
    linear-gradient(rgba(21,101,168,.42), rgba(21,101,168,.42));
}
.hero.hero2 .hero2-name .w, .hero.hero2 .hero2-name .g { text-shadow: 0 0 1px #fff, 0 0 2px #fff, 0 0 14px rgba(255,255,255,.9) !important; }
.hero.hero2 p.hero-sub { color: #fff; text-shadow: 0 1px 8px rgba(8,34,62,.55); font-weight: 500; }
@media (max-width: 899px) {
  .hero.hero2::before {
    background:
      radial-gradient(ellipse 60% 40% at 50% 42%, rgba(255,255,255,.55) 0%, rgba(255,255,255,.2) 60%, rgba(255,255,255,0) 100%),
      linear-gradient(rgba(21,101,168,.45), rgba(21,101,168,.45));
  }
}
/* Phones: supplier line sits a little lower */
@media (max-width: 899px) { .hero.hero2 p.hero-sub { margin-top: 36px; } }
/* Contact / Favourites hero: staff member reading an order on her phone */
.page-hero.contact-hero { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center;
  min-height: clamp(320px, 34vw, 480px); padding: 40px 0; background: #0d3a63; }
.contact-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 25%; z-index: -2; filter: saturate(1.2); }
.contact-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(15,90,151,.92) 0%, rgba(15,90,151,.78) 34%, rgba(15,90,151,.25) 58%, rgba(15,90,151,0) 72%); }
.contact-hero-copy { position: relative; }
.contact-hero-copy > * { max-width: 470px; }
.contact-hero .eyebrow { color: #a8e597; }
.contact-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 10px; text-shadow: 0 2px 12px rgba(8,34,62,.35); }
.contact-hero p { color: #fff; font-weight: 500; text-shadow: 0 1px 8px rgba(8,34,62,.45); }
.contact-hero p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* Phones: her face at the top, text at the bottom over a blue fade */
@media (max-width: 699px) {
  .page-hero.contact-hero { align-items: flex-end; min-height: 440px; padding: 0 0 22px; }
  .contact-hero-photo { object-position: 74% 20%; }
  .contact-hero::before { background: linear-gradient(180deg, rgba(15,90,151,0) 30%, rgba(15,90,151,.75) 58%, rgba(15,90,151,.94) 100%); }
  .contact-hero-copy { text-align: center; }
  .contact-hero-copy > * { max-width: none; }
  .contact-hero h1 { font-size: 1.75rem; }
  .contact-hero p { font-size: .92rem; }
}
/* Favourites list: bigger product photos */
.quote-table td.photo { width: 112px; padding: 12px 14px 12px 0; }
.quote-thumb { width: 96px; height: 96px; border-radius: 12px; padding: 4px; }
.quote-thumb.noimg svg { width: 36px; height: 36px; }
@media (max-width: 560px) {
  .quote-table tr { grid-template-columns: 92px 1fr auto; gap: 8px 14px; align-items: start; }
  .quote-table td.photo { grid-row: 1 / 3; grid-column: 1; width: auto; padding: 0; }
  .quote-table td.item { grid-row: 1; grid-column: 2; }
  .quote-table td.rm { grid-row: 1; grid-column: 3; }
  .quote-table td.q { grid-row: 2; grid-column: 2; align-self: end; }
  .quote-table td.sub { grid-row: 2; grid-column: 3; align-self: end; padding-bottom: 6px; }
  .quote-thumb { width: 92px; height: 92px; }
}
/* Contact hero: phone banner + header + hero together fill about 65% of the screen */
.page-hero.contact-hero { min-height: max(300px, calc(65vh - 84px)); min-height: max(300px, calc(65svh - 84px)); }
@media (max-width: 699px) {
  .page-hero.contact-hero { min-height: max(240px, calc(65vh - 118px)); min-height: max(240px, calc(65svh - 118px)); padding-bottom: 16px; }
  .contact-hero-photo { object-position: 74% 12%; }
  .contact-hero::before { background: linear-gradient(180deg, rgba(15,90,151,0) 15%, rgba(15,90,151,.75) 48%, rgba(15,90,151,.94) 100%); }
  .contact-hero .eyebrow { margin-bottom: 2px; }
  .contact-hero h1 { font-size: 1.55rem; margin-bottom: 6px; }
  .contact-hero p { font-size: .86rem; line-height: 1.45; }
}
/* Laptops: aim for ~65% of the physical screen (browser bars and taskbar take ~15-20%), i.e. ~76% of the browser window */
@media (min-width: 700px) {
  .page-hero.contact-hero { min-height: max(320px, calc(76vh - 84px)); min-height: max(320px, calc(76svh - 84px)); }
  .contact-hero-photo { object-position: 70% 20%; }
}
/* Contact hero, 10% taller: phone banner + header + hero = ~71.5% (phones) / ~83.6% (laptops) of the window */
@media (max-width: 699px) {
  .page-hero.contact-hero { min-height: max(264px, calc(71.5vh - 118px)); min-height: max(264px, calc(71.5svh - 118px)); }
}
@media (min-width: 700px) {
  .page-hero.contact-hero { min-height: max(352px, calc(83.6vh - 84px)); min-height: max(352px, calc(83.6svh - 84px)); }
}
/* Laptops: Products and About heroes leave room to see what follows.
   Phone banner + header + hero = ~77% of the window (like the Favourites page screenshot) */
@media (min-width: 900px) {
  .hero.hero2 { min-height: max(380px, calc(77vh - 84px)); min-height: max(380px, calc(77svh - 84px)); }
  .about-hero { min-height: 400px; height: max(400px, calc(77vh - 84px)); height: max(400px, calc(77svh - 84px)); }
}
@media (min-width: 1500px) { .hero.hero2 .hero2-photo { object-position: 60% 24%; } }
/* Never taller than the photo's own shape allows: stops "desktop mode" on phones
   (a very tall, narrow window) from stretching the heroes. Laptops are unaffected. */
@media (min-width: 900px) {
  .hero.hero2 { min-height: max(380px, min(77vh - 84px, 52vw)); min-height: max(380px, min(77svh - 84px, 52vw)); }
  .about-hero { height: max(400px, min(77vh - 84px, 52vw)); height: max(400px, min(77svh - 84px, 52vw)); }
}
@media (min-width: 700px) {
  .page-hero.contact-hero { min-height: max(352px, min(83.6vh - 84px, 52vw)); min-height: max(352px, min(83.6svh - 84px, 52vw)); }
}
/* Products and About heroes: top three parts = ~81% of the window on laptops (capped by width for desktop mode on phones) */
@media (min-width: 900px) {
  .hero.hero2 { min-height: max(380px, min(81vh - 84px, 52vw)); min-height: max(380px, min(81svh - 84px, 52vw)); }
  .about-hero { height: max(400px, min(81vh - 84px, 52vw)); height: max(400px, min(81svh - 84px, 52vw)); }
}
/* Laptops: raise the Products hero photo so the BP machine shows (top of his head may be cut) */
@media (min-width: 900px) { .hero.hero2 .hero2-photo { object-position: 60% 45%; } }
/* Laptops (option A): his eyes always stay in view. The photo is raised to show the BP machine,
   but never by more than (eye height - 40px). Eyes sit ~19.5% down the photo; photo height = 56.28vw. */
@media (min-width: 900px) {
  .hero.hero2 .hero2-photo {
    object-position: 60% 20%;
    object-position: 60% max(calc(40px - 10.98vw), calc((max(380px, min(81vh - 84px, 52vw)) - 56.28vw) * 0.45));
    object-position: 60% max(calc(40px - 10.98vw), calc((max(380px, min(81svh - 84px, 52vw)) - 56.28vw) * 0.45));
  }
}
/* About hero (laptops): raise the photo to show the box being handed over, but never cut the man's eyes.
   His eyes sit ~16.3% down the photo (photo height = 56.28vw), so the photo moves up at most (eyes - 40px). */
@media (min-width: 900px) {
  .about-hero-photo {
    object-position: 50% 30%;
    object-position: 50% max(calc(40px - 9.17vw), calc(max(400px, min(81vh - 84px, 52vw)) - 56.28vw));
    object-position: 50% max(calc(40px - 9.17vw), calc(max(400px, min(81svh - 84px, 52vw)) - 56.28vw));
  }
}

/* Reviews: each card is only as tall as its own text */
.reviews-track { align-items: start; }
.review-card blockquote { flex: none; }
/* Footer description: always show the full sentence (it was cut to 2 lines on phones) */
.footer-about { display: block; -webkit-line-clamp: unset; overflow: visible; }

/* Product page: other names (from the admin's search keywords) */
.pp-aka { margin-top: 8px !important; font-size: .9rem; color: var(--muted) !important; }
.pp-aka strong { color: var(--ink); font-weight: 600; }

/* ---------- Phones & tablets: category bar stays visible under the header while scrolling ----------
   It becomes slimmer once it is stuck (smaller chips), so it takes less height. */
@media (max-width: 899px) {
  .catalogue-tools {
    position: sticky; top: var(--header-h, 118px); z-index: 30;
    background: #f2f6fb; margin-inline: -16px; padding: 4px 16px 12px;
    transition: padding .2s ease, box-shadow .2s ease;
  }
  .catalogue-tools .chip { transition: padding .2s ease, font-size .2s ease; }
  .catalogue-tools.is-stuck { padding-block: 6px 6px; box-shadow: 0 6px 12px -8px rgba(16,38,58,.25); border-bottom: 1px solid var(--line); }
  .catalogue-tools.is-stuck .chips { gap: 4px; }
  .catalogue-tools.is-stuck .chip { padding: 2px 9px; font-size: .74rem; border-width: 1px; box-shadow: none; }
  body.is-searching .catalogue-tools { position: static; }
}
@media (max-width: 359px) {
  .catalogue-tools.is-stuck .chip { padding: 2px 7px; font-size: .7rem; }
}

/* ---------- Pages inside a category (Previous · 1 2 3 · Next) ---------- */
.pager { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pager-info { margin: 0; font-size: .85rem; color: var(--muted); }
.pager-btns { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pager-nums { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pager-btn {
  min-width: 40px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); color: var(--blue); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.pager-btn:hover:not(:disabled) { border-color: var(--blue); }
.pager-btn.is-current { background: var(--blue); border-color: var(--blue); color: var(--white); cursor: default; }
.pager-btn:disabled { opacity: .4; cursor: default; }
.pager-btn:focus-visible { outline: 3px solid rgba(24,117,193,.45); outline-offset: 2px; }
@media (max-width: 420px) {
  .pager-btns { gap: 6px; }
  .pager-btn { min-width: 36px; height: 36px; padding: 0 11px; font-size: .84rem; }
}
/* Page buttons above the products too: one compact line (info on the left, buttons on the right) */
.pager.pager-top { margin: 4px 0 14px; flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.pager.pager-top .pager-btn { min-width: 34px; height: 34px; padding: 0 11px; font-size: .84rem; }
@media (max-width: 560px) {
  .pager.pager-top { flex-direction: column; align-items: center; }
}

/* ---------- Tap feedback: press-in plus a soft ring that spreads out ---------- */
.card, button, .btn, .chip, .pager-btn, .float-btn, .quote-btn, .nav-products-mobile, #main-nav a,
.logo, .link-btn, .fav-row, .reviews-arrow, .add-btn, .pp-heart {
  -webkit-tap-highlight-color: transparent;
}
.card:active, button:not(:disabled):active, .btn:active, .chip:active, .pager-btn:not(:disabled):active, .float-btn:active,
.quote-btn:active, .nav-products-mobile:active, #main-nav a:active, .link-btn:active, .reviews-arrow:active, .add-btn:active, .pp-heart:active { scale: .96; }
.card:active { scale: .98; }
/* ring colour: blue by default, green on green buttons */
.btn-green, .add-btn, .wa-float, .quote-btn, .pp-added { --pulse: 90, 181, 69; }
.tap-pulse { animation: tap-pulse .45s ease-out; }
@keyframes tap-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--pulse, 24, 117, 193), .45); }
  100% { box-shadow: 0 0 0 12px rgba(var(--pulse, 24, 117, 193), 0); }
}
.card.tap-pulse { animation-name: tap-pulse-card; animation-duration: .5s; }
@keyframes tap-pulse-card {
  0%   { box-shadow: 0 0 0 0 rgba(24, 117, 193, .5); }
  100% { box-shadow: 0 0 0 14px rgba(24, 117, 193, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .card:active, button:active, .btn:active, .chip:active { scale: 1; }
}

/* ---------- Product pages: category bar under the header (sticky, slimmer once scrolled) ---------- */
.pp-cats {
  position: sticky; top: var(--header-h, 84px); z-index: 30; background: var(--tile-bg, #f2f6fb);
  padding: 12px 0; border-bottom: 1px solid transparent; transition: padding .2s ease, box-shadow .2s ease;
}
.pp-cats .chips { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; overflow: visible; padding: 0; background: none; box-shadow: none; }
.pp-cats .chip { text-decoration: none; width: auto; transition: padding .2s ease, font-size .2s ease; }
.pp-cats .chip.is-current { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pp-cats.is-stuck { padding: 6px 0; border-bottom-color: var(--line); box-shadow: 0 6px 12px -8px rgba(16,38,58,.25); }
.pp-cats.is-stuck .chips { gap: 4px; }
/* phones and tablets: same look as the Products page */
@media (max-width: 899px) {
  .pp-cats { padding: 8px 0 10px; }
  .pp-cats .chips { gap: 6px; }
  .pp-cats.is-stuck { padding: 5px 0; }
  .pp-cats.is-stuck .chip { padding: 2px 9px; font-size: .74rem; border-width: 1px; box-shadow: none; }
}
@media (max-width: 359px) { .pp-cats.is-stuck .chip { padding: 2px 7px; font-size: .7rem; } }
/* laptops: a row of pills (the Products page shows these as a sidebar list instead) */
@media (min-width: 900px) {
  .pp-cats .chip {
    width: auto; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--white); border: 0;
    box-shadow: 0 1px 2px rgba(16,38,58,.08); white-space: nowrap; font-size: .88rem;
  }
  .pp-cats .chip:hover { background: var(--white); color: var(--blue); box-shadow: 0 0 0 1.5px var(--blue); }
  .pp-cats .chip .chip-icon { width: 26px; height: 26px; border-radius: 999px; }
  .pp-cats .chip .chip-icon .icon { width: 15px; height: 15px; }
  .pp-cats .chip.is-current { background: var(--blue-soft); color: var(--blue); font-weight: 600; box-shadow: 0 0 0 1.5px var(--blue); }
  .pp-cats .chip.is-current .chip-icon { background: var(--blue); color: var(--white); }
  .pp-cats.is-stuck .chip { padding: 3px 12px 3px 3px; font-size: .82rem; }
  .pp-cats.is-stuck .chip .chip-icon { width: 22px; height: 22px; }
  .pp-cats.is-stuck .chip .chip-icon .icon { width: 13px; height: 13px; }
}

/* ---------- Category menu: easier to notice (each button in its category's colour, tinted bar) ----------
   Phones & tablets on the Products page, and product pages at every size. */
@media (max-width: 899px) {
  .catalogue-tools, .pp-cats { background: #e3eef9; border-bottom: 1px solid #c9dcef; }
}
.pp-cats { background: #e3eef9; border-bottom: 1px solid #c9dcef; }
@media (max-width: 899px) {
  .catalogue-tools .chip[data-cat-theme], .pp-cats .chip[data-cat-theme] {
    background: var(--cat-soft); color: var(--cat-accent); font-weight: 600;
    border: 1.5px solid color-mix(in srgb, var(--cat-accent) 45%, transparent);
    box-shadow: 0 1px 2px rgba(16,38,58,.1);
  }
  .catalogue-tools .chip[data-cat-theme][aria-pressed="true"], .pp-cats .chip[data-cat-theme].is-current {
    background: var(--cat-accent); border-color: var(--cat-accent); color: var(--white);
    box-shadow: 0 2px 6px color-mix(in srgb, var(--cat-accent) 45%, transparent);
  }
  .catalogue-tools.is-stuck .chip[data-cat-theme], .pp-cats.is-stuck .chip[data-cat-theme] { border-width: 1px; }
}
@media (min-width: 900px) {
  .pp-cats .chip[data-cat-theme] { background: var(--cat-soft); color: var(--cat-accent); font-weight: 600; }
  .pp-cats .chip[data-cat-theme] .chip-icon { background: var(--white); color: var(--cat-accent); }
  .pp-cats .chip[data-cat-theme]:hover { box-shadow: 0 0 0 1.5px var(--cat-accent); color: var(--cat-accent); background: var(--cat-soft); }
  .pp-cats .chip[data-cat-theme].is-current { background: var(--cat-accent); color: var(--white); box-shadow: 0 2px 6px color-mix(in srgb, var(--cat-accent) 45%, transparent); }
  .pp-cats .chip[data-cat-theme].is-current .chip-icon { background: var(--white); color: var(--cat-accent); }
}

/* ---------- Selected category: green pulse everywhere (Products page buttons & sidebar, product pages) ----------
   Steady green outline + a green glow that swells and fades. */
/* Option A: stronger green outline + bigger glow + the button grows slightly (movement catches the eye) */
@keyframes active-cat-pulse {
  0%, 100% { box-shadow: 0 0 0 3px #3fae2a, 0 0 0 3px rgba(63, 174, 42, 0); scale: 1; }
  50%      { box-shadow: 0 0 0 3px #3fae2a, 0 0 0 12px rgba(63, 174, 42, .55); scale: var(--pulse-grow, 1.08); }
}
.chip[aria-pressed="true"], .pp-cats .chip.is-current {
  animation: active-cat-pulse 1.4s ease-in-out infinite; position: relative; z-index: 1;
}
/* the laptop sidebar list buttons are full width: grow less there so they stay inside the list */
@media (min-width: 900px) { .catalogue-tools .chip[aria-pressed="true"] { --pulse-grow: 1.03; } }
@media (prefers-reduced-motion: reduce) {
  .chip[aria-pressed="true"], .pp-cats .chip.is-current { animation: none; box-shadow: 0 0 0 3px #3fae2a, 0 0 0 7px rgba(63, 174, 42, .35); }
}
/* room for the glow inside the bars and the sidebar list */
.chips { overflow: visible; }
@media (min-width: 900px) { .catalogue-tools .chips { padding: 10px; gap: 4px; } }

/* ---------- Favourites page: two clearly separate boxes (1 Your favourites, 2 Your details) ---------- */
body[data-page="contact"] main { background: var(--tile-bg, #f2f6fb); }
body[data-page="contact"] .box {
  border: 0; border-top: 5px solid var(--blue);
  box-shadow: 0 1px 2px rgba(16,38,58,.06), 0 8px 22px rgba(16,38,58,.09);
}
body[data-page="contact"] .box + .box { margin-top: 28px; }
body[data-page="contact"] .box.box-fav { border-top-color: var(--green); }
.box-step h2 { padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.box-title { display: inline-flex; align-items: center; gap: 10px; }
.step-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--blue); color: var(--white); font-size: .95rem; font-weight: 700;
}
.box-fav .step-num { background: var(--green); }
.box-fav h2 { color: var(--green-dark); }
/* date each favourite was added */
.fav-added { display: block; margin-top: 3px; font-size: .74rem; color: var(--muted); }
.fav-added::before { content: "🕒 "; font-size: .7rem; }
@media (max-width: 560px) { body[data-page="contact"] .box { padding: 18px 16px; } }
.fav-added { white-space: nowrap; }

/* Category bars: change size instantly (an animated size change made them wobble near the switch point),
   and never let the page underneath move when they shrink (space kept with margin-bottom, set in JS) */
.catalogue-tools, .pp-cats, .catalogue-tools .chip, .pp-cats .chip { transition: box-shadow .2s ease !important; }
.catalogue-tools, .pp-cats { overflow-anchor: none; }
/* The browser's scroll anchoring fought the shrinking category bars (page jumped back, bar flickered). Off site-wide. */
html, body { overflow-anchor: none; }

/* ---------- Search tip bubble (under the search box) ---------- */
.search-tip {
  position: fixed; z-index: 70; padding: 12px 38px 12px 14px; border-radius: 14px; cursor: pointer;
  background: var(--ink, #16263a); color: #fff; font-size: .9rem; line-height: 1.45;
  box-shadow: 0 10px 30px rgba(16,38,58,.3); opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .25s ease;
}
.search-tip.is-on { opacity: 1; transform: none; }
.search-tip::before {
  content: ""; position: absolute; top: -7px; left: var(--arrow-x, 28px); width: 14px; height: 14px;
  background: inherit; transform: rotate(45deg); border-radius: 3px;
}
.search-tip strong { color: #9be08a; }
.search-tip-close {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: .8rem; cursor: pointer;
}
.search-tip-wa { margin-top: 10px; }

/* Arriving with …#products (Products button, category buttons from other pages): the browser's own jump
   puts the products just below the sticky header, even before/without the page script */
#products { scroll-margin-top: var(--header-h, 118px); }
@media (min-width: 900px) { #products { scroll-margin-top: var(--header-h, 84px); } }

/* ---------- Favourites page, empty list: how to add favourites, with a small looping demo of tapping + ---------- */
.fav-empty { text-align: center; padding: 8px 4px 4px; }
.fav-empty-title { margin: 0 0 10px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.fav-empty-steps { text-align: left; max-width: 440px; margin: 0 auto 16px; padding-left: 1.3em; color: #2b3b4d; line-height: 1.6; font-size: .93rem; }
.fav-empty-steps li + li { margin-top: 6px; }
.fav-empty-plus, .fav-empty-heart { display: inline-grid; place-items: center; vertical-align: -5px; }
.fav-empty-plus { width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; }
.fav-empty-heart { color: var(--green); }
.fav-empty-cta { margin-top: 18px; }
.fav-empty-or { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }

.fav-demo { position: relative; width: 170px; margin: 0 auto; }
.fav-demo-card {
  position: relative; background: #fff; border-radius: 14px; padding: 8px 8px 10px; text-align: left;
  box-shadow: 0 1px 2px rgba(16,38,58,.06), 0 6px 16px rgba(16,38,58,.1);
  animation: fav-demo-card 4s ease-in-out infinite;
}
.fav-demo-img { background: var(--tile-bg, #f2f6fb); border-radius: 10px; display: grid; place-items: center; height: 96px; }
.fav-demo-img img { max-height: 84px; width: auto; object-fit: contain; }
.fav-demo-name { margin: 8px 2px 4px; font-weight: 600; font-size: .85rem; color: var(--ink); }
.fav-demo-foot { display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
.fav-demo-price { font-weight: 700; color: var(--blue); font-size: .9rem; }
.fav-demo-btn {
  position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; box-shadow: 0 4px 10px rgba(90,181,69,.35);
  animation: fav-demo-btn 4s ease-in-out infinite;
}
.fav-demo-plus, .fav-demo-heart { grid-area: 1 / 1; display: grid; place-items: center; }
.fav-demo-plus { animation: fav-demo-plus 4s step-end infinite; }
.fav-demo-heart { color: var(--green); opacity: 0; animation: fav-demo-heart 4s step-end infinite; }
.fav-demo-heart svg { width: 22px; height: 22px; }
.fav-demo-saved {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px;
  background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; opacity: 0; animation: fav-demo-saved 4s ease infinite;
}
/* the "finger": a soft grey dot that moves in, taps the button, and leaves */
.fav-demo-finger {
  position: absolute; width: 30px; height: 30px; border-radius: 50%; background: rgba(22,38,58,.28);
  border: 2px solid rgba(255,255,255,.9); box-shadow: 0 2px 6px rgba(16,38,58,.25);
  right: -4px; bottom: -2px; opacity: 0; animation: fav-demo-finger 4s ease-in-out infinite;
}
.fav-demo-ripple { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: fav-demo-ripple 4s ease-out infinite; }
@keyframes fav-demo-finger {
  0%   { opacity: 0; transform: translate(40px, 40px); }
  12%  { opacity: 1; transform: translate(40px, 40px); }
  30%  { opacity: 1; transform: translate(-13px, -13px) scale(1); }
  36%  { transform: translate(-13px, -13px) scale(.82); }
  42%  { transform: translate(-13px, -13px) scale(1); opacity: 1; }
  58%  { opacity: 0; transform: translate(40px, 40px); }
  100% { opacity: 0; transform: translate(40px, 40px); }
}
@keyframes fav-demo-ripple { 0%, 35% { opacity: 0; transform: scale(1); } 37% { opacity: .9; transform: scale(1); } 55% { opacity: 0; transform: scale(2.4); } 100% { opacity: 0; } }
@keyframes fav-demo-btn {
  0%, 34% { background: var(--green); box-shadow: 0 4px 10px rgba(90,181,69,.35); transform: scale(1); }
  37%     { transform: scale(.85); }
  42%, 92% { background: transparent; box-shadow: none; transform: scale(1.1); }
  100%    { background: var(--green); box-shadow: 0 4px 10px rgba(90,181,69,.35); transform: scale(1); }
}
@keyframes fav-demo-plus  { 0% { opacity: 1; } 38% { opacity: 0; } 96% { opacity: 1; } }
@keyframes fav-demo-heart { 0% { opacity: 0; } 38% { opacity: 1; } 96% { opacity: 0; } }
@keyframes fav-demo-card  { 0%, 37% { box-shadow: 0 1px 2px rgba(16,38,58,.06), 0 6px 16px rgba(16,38,58,.1); } 42%, 92% { box-shadow: 0 0 0 2.5px var(--green), 0 6px 16px rgba(90,181,69,.25); } 100% { box-shadow: 0 1px 2px rgba(16,38,58,.06), 0 6px 16px rgba(16,38,58,.1); } }
@keyframes fav-demo-saved { 0%, 38% { opacity: 0; transform: translate(-50%, 6px); } 44%, 86% { opacity: 1; transform: translate(-50%, 0); } 94%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .fav-demo-card, .fav-demo-btn, .fav-demo-plus, .fav-demo-heart, .fav-demo-finger, .fav-demo-ripple, .fav-demo-saved { animation: none; }
  .fav-demo-finger { display: none; }
}
/* Product descriptions: line breaks typed in the admin show on the page */
.pp-desc p:not(.pp-aka) { white-space: pre-line; }

/* Product descriptions with formatting (headings, bullet points, bold, links) */
.pp-desc-body p { margin: 0 0 10px; color: #2b3b4d; line-height: 1.6; white-space: normal; }
.pp-desc-body p:last-child { margin-bottom: 0; }
.pp-desc-body h3 { margin: 14px 0 6px; font-size: .98rem; color: var(--blue); }
.pp-desc-body h3:first-child { margin-top: 2px; }
.pp-desc-body ul { margin: 0 0 10px; padding-left: 1.2em; color: #2b3b4d; line-height: 1.6; }
.pp-desc-body li + li { margin-top: 2px; }
.pp-desc-body li::marker { color: var(--green); }
.pp-desc-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.pp-desc-body strong { color: var(--ink); }

/* ---------- Price lists: button (hidden until there is at least one image), panel and full-screen view ---------- */
.pl-open { display: none !important; }
body.has-pricelists .pl-open { display: inline-flex !important; }
.pl-hero-btn {
  align-items: center; gap: 8px; margin-top: 14px; padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: #fff; color: var(--blue); font: inherit; font-weight: 700; font-size: .95rem;
  box-shadow: 0 4px 14px rgba(8,34,62,.25);
}
.pl-hero-btn:hover { background: var(--blue-soft); }
.page-hero:not(.contact-hero) .pl-hero-btn { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(24,117,193,.3); }

.pl-dialog, .pl-viewer { border: 0; padding: 0; color: var(--ink); background: var(--white); }
.pl-dialog::backdrop, .pl-viewer::backdrop { background: rgba(10,25,41,.6); }
.pl-dialog { width: min(980px, calc(100% - 24px)); max-height: calc(100% - 24px); border-radius: 18px; padding: 18px 18px 14px; overflow-y: auto; }
.pl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pl-head h2 { margin: 0 0 4px; font-size: 1.35rem; color: var(--blue); }
.pl-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.pl-close { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg-alt); font-size: 1rem; cursor: pointer; }
.pl-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .pl-grid { grid-template-columns: 1fr; } }
.pl-card { border-radius: 14px; background: var(--tile-bg, #f2f6fb); overflow: hidden; display: flex; flex-direction: column; }
.pl-thumb { display: block; padding: 0; border: 0; background: #fff; cursor: zoom-in; aspect-ratio: 4 / 5; overflow: hidden; }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.pl-card-body { padding: 10px; display: grid; gap: 6px; }
.pl-card-body h3 { margin: 0; font-size: .98rem; color: var(--ink); }
.pl-date { margin: -2px 0 2px; font-size: .75rem; color: var(--muted); }
.pl-card-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pl-btn { justify-content: center; gap: 6px; padding: 8px 6px; font-size: .85rem; display: inline-flex; align-items: center; }
.pl-note { margin: 12px 0 0; font-size: .78rem; color: var(--muted); text-align: center; }

.pl-viewer { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; display: flex; flex-direction: column; background: #0d1b2a; }
.pl-viewer:not([open]) { display: none; }
.pl-viewer-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--white); flex: none; }
.pl-viewer-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-back { border: 0; background: none; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; padding: 6px 4px; white-space: nowrap; }
.pl-viewer-img { flex: 1; overflow: auto; padding: 12px; text-align: center; }
.pl-viewer-img img { max-width: min(100%, 900px); height: auto; border-radius: 8px; background: #fff; }
.pl-viewer-nav { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; background: var(--white); flex: none; }
@media (max-width: 560px) { .pl-back { font-size: .85rem; } .pl-viewer-title { font-size: .9rem; } }
/* Phones: View / Download stacked so the words fit */
@media (max-width: 560px) {
  .pl-card-btns { grid-template-columns: 1fr; }
  .pl-dialog { padding: 14px 12px 12px; }
  .pl-grid { gap: 10px; }
}

/* Price lists panel: small, a simple list (no image previews) */
.pl-dialog { width: min(460px, calc(100% - 24px)); padding: 16px 16px 12px; border-radius: 16px; }
.pl-head { margin-bottom: 10px; }
.pl-head h2 { font-size: 1.15rem; margin-bottom: 2px; }
.pl-head p { font-size: .85rem; }
.pl-close { width: 34px; height: 34px; }
.pl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.pl-row-text { min-width: 0; display: grid; }
.pl-row-text strong { font-size: .93rem; color: var(--ink); }
.pl-row .pl-date { margin: 0; font-size: .72rem; }
.pl-row-btns { display: flex; gap: 6px; flex: none; }
.pl-row .pl-btn { padding: 6px 11px; font-size: .8rem; gap: 5px; }
.pl-row .pl-btn svg { width: 15px; height: 15px; }
.pl-note { margin-top: 10px; font-size: .74rem; }
@media (max-width: 380px) { .pl-row .pl-btn { padding: 6px 8px; } }

/* "Download" label inside the Price lists button, so people know what it is for */
.pl-dl-tag {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 3px 9px 3px 7px; border-radius: 999px;
  background: var(--green); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .02em;
}
.page-hero:not(.contact-hero) .pl-hero-btn .pl-dl-tag { background: #fff; color: var(--green-dark); }
.pp-actions .pl-open .pl-dl-tag { font-size: .7rem; padding: 2px 8px 2px 6px; }

/* ---------- Light / dark switch button (header and admin) ---------- */
.theme-toggle {
  flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; display: inline-grid; place-items: center;
  background: var(--bg-alt); color: var(--blue);
}
.theme-toggle:hover { box-shadow: 0 0 0 2px var(--blue); }
.theme-toggle .ti-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ti-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ti-moon { display: none; }
@media (max-width: 420px) { .theme-toggle { width: 34px; height: 34px; } .theme-toggle svg { width: 17px; height: 17px; } }
/* Product page photo: always fits inside its frame, whatever the photo's shape (tall photos were cut off) */
.pp-media img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }

/* ---------- Product photo zoom ---------- */
.pp-media img { cursor: zoom-in; }
.pp-zoom {
  position: absolute; z-index: 1; pointer-events: none; opacity: 0; border-radius: 6px;
  background-repeat: no-repeat; background-color: #fff; box-shadow: 0 0 0 1px rgba(16,38,58,.08);
  transition: opacity .12s ease;
}
.pp-media .pp-heart { z-index: 2; }
.pp-viewer { border: 0; padding: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; background: rgba(10,20,30,.94); }
.pp-viewer:not([open]) { display: none; }
.pp-viewer[open] { display: flex; flex-direction: column; }
.pp-viewer::backdrop { background: rgba(10,20,30,.94); }
.pp-viewer-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #fff; color: #16263a; font-size: 1.1rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.pp-viewer-stage { flex: 1; overflow: auto; display: grid; place-items: center; padding: 56px 12px 12px; -webkit-overflow-scrolling: touch; }
.pp-viewer-stage img { max-width: min(100%, 1100px); max-height: calc(100vh - 120px); object-fit: contain; background: #fff; border-radius: 10px; cursor: zoom-in; }
.pp-viewer-stage.is-zoomed { display: block; }
.pp-viewer-stage.is-zoomed img { max-width: none; max-height: none; width: 250%; cursor: zoom-out; }
@media (min-width: 900px) { .pp-viewer-stage.is-zoomed img { width: 200%; } }
.pp-viewer-hint { margin: 0; padding: 10px; text-align: center; color: #c9d6e3; font-size: .85rem; }
/* Phone header: logo + Products + Favourites + switch + menu always on one line */
@media (max-width: 820px) {
  .header-inner { column-gap: 8px; }
  .header-actions { gap: 5px; flex-wrap: nowrap; }
  .header-actions .theme-toggle { width: 32px; height: 32px; }
  .header-actions .theme-toggle svg { width: 17px; height: 17px; }
  #site-header .logo { flex: none; }
}
@media (max-width: 380px) {
  .header-actions { gap: 4px; }
  .nav-products-mobile { padding: 6px 8px; font-size: .68rem; }
  .quote-btn { padding: 5px 8px; gap: 5px; }
  .quote-btn .badge { min-width: 17px; height: 17px; font-size: .62rem; }
  .header-actions .theme-toggle { width: 30px; height: 30px; }
  .menu-toggle { padding: 2px; }
}
@media (max-width: 340px) {
  .logo-text span { display: none; }
  .logo-text strong { font-size: .88rem; }
}
/* Larger phones (421–480 px): compact Favourites button too, so the header stays on one line */
@media (min-width: 421px) and (max-width: 480px) {
  .quote-btn .icon { display: none; }
  .quote-btn { padding: 6px 12px; gap: 6px; }
  .quote-btn-label { display: inline-flex; font-size: .8rem; }
}
@media (min-width: 421px) and (max-width: 480px) {
  .logo { gap: 7px; }
  .logo-img { width: 34px; height: 34px; }
  .logo-text strong { font-size: .95rem; }
  .logo-text span { font-size: .62rem; letter-spacing: .1em; }
}
