/* Dark theme. GENERATED by tools/make_dark_css.py from styles.css and admin.css — do not edit by hand;
   put hand-made fixes in DARK_EXTRA inside that script. */

:root[data-theme="dark"] {
  color-scheme: dark;
  --white: #121f2d; --ink: #e6edf5; --muted: #9fb0c2; --line: #263749; --bg-alt: #172636;
  --blue-soft: #16324d; --green-soft: #1b3424; --tile-bg: #0c1722;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.35); --shadow-lg: 0 10px 40px rgba(0,0,0,.55);
}
:root[data-theme="dark"] body { background: #0c1722; color: var(--ink); }

:root[data-theme="dark"] .btn-green { color: #ffffff; }
:root[data-theme="dark"] .btn-blue { color: #ffffff; }
:root[data-theme="dark"] .topbar { color: #ffffff; }
:root[data-theme="dark"] .topbar a { color: #ffffff; }
:root[data-theme="dark"] .logo-mark { color: #ffffff; }
:root[data-theme="dark"] .quote-btn { color: #ffffff; }
:root[data-theme="dark"] .hero { color: #ffffff; }
:root[data-theme="dark"] .chip[aria-pressed="true"] { color: #ffffff; }
:root[data-theme="dark"] .panel { color: #ffffff; }
:root[data-theme="dark"] .cta-band { color: #ffffff; }
:root[data-theme="dark"] .article-content p, :root[data-theme="dark"] .article-content li { color: #c3d0de; }
:root[data-theme="dark"] .success { color: #c7e2c2; }
:root[data-theme="dark"] #site-footer .logo-text strong { color: #ffffff; }
:root[data-theme="dark"] #site-footer h3 { color: #ffffff; }
:root[data-theme="dark"] #site-footer a:hover { color: #ffffff; }
:root[data-theme="dark"] .wa-float { color: #ffffff; }
:root[data-theme="dark"] .toast { color: #ffffff; }
:root[data-theme="dark"] .catalogue-tools { border-bottom-color: #2b3d50; }
:root[data-theme="dark"] .add-btn { color: #ffffff; }
:root[data-theme="dark"] .link-btn:hover { color: #ffffff; }
@media (min-width: 900px) { :root[data-theme="dark"] .chip[aria-pressed="true"] .chip-icon { color: #ffffff; } }
@media (min-width: 900px) { :root[data-theme="dark"] .sidebar-help { color: #ffffff; } }
:root[data-theme="dark"] .hero-logo { color: #ffffff; }
:root[data-theme="dark"] .hero-brand .w { color: #ffffff; }
:root[data-theme="dark"] .hero p.hero-pill { color: #ffffff; }
:root[data-theme="dark"] [data-cat-theme] { --cat-bg: #122130; }
:root[data-theme="dark"] [data-cat-theme="equipment"] { --cat-bg: #142436; --cat-soft: #16283a; }
:root[data-theme="dark"] [data-cat-theme="test-kits"] { --cat-bg: #1c3414; --cat-soft: #234219; }
:root[data-theme="dark"] [data-cat-theme="consumables"] { --cat-bg: #163531; --cat-soft: #1b413c; }
:root[data-theme="dark"] [data-cat-theme="student-items"] { --cat-bg: #342914; --cat-soft: #45371a; }
:root[data-theme="dark"] [data-cat-theme="furniture-physiotherapy"] { --cat-bg: #171230; --cat-soft: #1c163a; }
:root[data-theme="dark"] .cat-section[data-cat-theme] .link-btn:hover { color: #ffffff; }
:root[data-theme="dark"] .chip[data-cat-theme]:not([data-cat-theme="all"])[aria-pressed="true"] .chip-icon { color: #ffffff; }
:root[data-theme="dark"] [data-cat-theme="equipment"] { --cat-bg: #152537; --cat-soft: #182b40; }
:root[data-theme="dark"] [data-cat-theme="test-kits"] { --cat-bg: #32131e; --cat-soft: #3c1724; }
:root[data-theme="dark"] [data-cat-theme="consumables"] { --cat-bg: #213a16; --cat-soft: #28481b; }
:root[data-theme="dark"] [data-cat-theme="student-items"] { --cat-bg: #342914; --cat-soft: #45371a; }
:root[data-theme="dark"] [data-cat-theme="furniture-physiotherapy"] { --cat-bg: #191332; --cat-soft: #1e163b; }
:root[data-theme="dark"] [data-cat-theme="equipment"], :root[data-theme="dark"] [data-cat-theme="consumables"], :root[data-theme="dark"] [data-cat-theme="furniture-physiotherapy"] { --cat-bg: #152537; --cat-soft: #182b40; }
:root[data-theme="dark"] [data-cat-theme="test-kits"], :root[data-theme="dark"] [data-cat-theme="student-items"] { --cat-bg: #362a15; --cat-soft: #45371a; }
:root[data-theme="dark"] .reviews-arrow:hover:not(:disabled) { color: #ffffff; }
:root[data-theme="dark"] .review-card blockquote { color: #c3d0de; }
:root[data-theme="dark"] .review-avatar { color: #ffffff; }
:root[data-theme="dark"] .review-sample { background: #372e15; }
:root[data-theme="dark"] .reviews-dots button { background: #23303e; }
:root[data-theme="dark"] .float-actions .float-btn { color: #ffffff; }
:root[data-theme="dark"] .float-label { color: #ffffff; }
:root[data-theme="dark"] .card .stock { background: rgba(19, 27, 35, .92); }
:root[data-theme="dark"] .feature-banner { color: #ffffff; }
:root[data-theme="dark"] .fb-eyebrow { color: #ffffff; }
:root[data-theme="dark"] .feature-banner h2 { color: #ffffff; }
:root[data-theme="dark"] .btn-white-outline { color: #ffffff; }
:root[data-theme="dark"] .fb-offer { color: #ffffff; }
:root[data-theme="dark"] .fb-offer-tag { color: #dbdfe5; }
:root[data-theme="dark"] .hero.hero2 { background: #132331; }
:root[data-theme="dark"] .hero2 p.hero-sub { color: #c2d1e1; }
@media (min-width: 900px) { :root[data-theme="dark"] .hero.hero2 { background: linear-gradient(135deg, #111f2c 0%, #142534 100%); } }
:root[data-theme="dark"] .hero.hero2 p.hero-pill { color: #ffffff; }
:root[data-theme="dark"] .hero.hero2 p.hero-sub { color: #ffffff; }
:root[data-theme="dark"] .about-hero-copy { color: #ffffff; }
:root[data-theme="dark"] .about-hero h1 { color: #ffffff; }
:root[data-theme="dark"] .eye-btn:hover, :root[data-theme="dark"] .card:hover .eye-btn { color: #ffffff; }
:root[data-theme="dark"] .pp-desc p { color: #c3d0de; }
:root[data-theme="dark"] .pp-trust { color: #c3d0de; }
@media (max-width: 820px) { :root[data-theme="dark"] .nav-products-mobile[aria-current] { color: #ffffff; } }
:root[data-theme="dark"] .clear-confirm { background: #2f1212; }
:root[data-theme="dark"] .fav-row:hover td { background: #101e2b; }
:root[data-theme="dark"] .add-btn.added { background: #1c3514; }
:root[data-theme="dark"] .pp-heart.on { color: #ffffff; }
:root[data-theme="dark"] button.pp-added:hover { background: #214018; }
:root[data-theme="dark"] .hero.hero2 p.hero-pill { background: rgba(19, 27, 35, .9); }
@media (max-width: 899px) { :root[data-theme="dark"] .hero.hero2::before { background: radial-gradient(ellipse 75% 70% at 50% 50%, rgba(19, 27, 35, .9) 0%, rgba(255,255,255,.65) 60%, rgba(255,255,255,.2) 100%); } }
@media (max-width: 899px) { :root[data-theme="dark"] .catalogue-tools { background: #111e2e; } }
:root[data-theme="dark"] .pager-btn.is-current { color: #ffffff; }
:root[data-theme="dark"] .pp-cats { background: var(--tile-bg, #111e2e); }
:root[data-theme="dark"] .pp-cats .chip.is-current { color: #ffffff; }
@media (min-width: 900px) { :root[data-theme="dark"] .pp-cats .chip.is-current .chip-icon { color: #ffffff; } }
@media (max-width: 899px) { :root[data-theme="dark"] .catalogue-tools, :root[data-theme="dark"] .pp-cats { background: #142434; border-bottom: 1px solid #304459; } }
:root[data-theme="dark"] .pp-cats { background: #142434; border-bottom: 1px solid #304459; }
@media (max-width: 899px) { :root[data-theme="dark"] .catalogue-tools .chip[data-cat-theme][aria-pressed="true"], :root[data-theme="dark"] .pp-cats .chip[data-cat-theme].is-current { color: #ffffff; } }
@media (min-width: 900px) { :root[data-theme="dark"] .pp-cats .chip[data-cat-theme].is-current { color: #ffffff; } }
:root[data-theme="dark"] body[data-page="contact"] main { background: var(--tile-bg, #111e2e); }
:root[data-theme="dark"] .step-num { color: #ffffff; }
:root[data-theme="dark"] .fav-empty-steps { color: #c3d0de; }
:root[data-theme="dark"] .fav-demo-card { background: #131b23; }
:root[data-theme="dark"] .fav-demo-img { background: var(--tile-bg, #111e2e); }
:root[data-theme="dark"] .fav-demo-finger { border: 2px solid rgba(41, 51, 61, .9); }
:root[data-theme="dark"] .pp-desc-body p { color: #c3d0de; }
:root[data-theme="dark"] .pp-desc-body ul { color: #c3d0de; }
:root[data-theme="dark"] .pl-hero-btn { background: #131b23; }
:root[data-theme="dark"] .pl-card { background: var(--tile-bg, #111e2e); }
:root[data-theme="dark"] .pl-thumb { background: #131b23; }
:root[data-theme="dark"] .pl-viewer-img img { background: #131b23; }
:root[data-theme="dark"] .page-hero:not(.contact-hero) .pl-hero-btn .pl-dl-tag { background: #131b23; }
:root[data-theme="dark"] .pp-zoom { background-color: #131b23; }
:root[data-theme="dark"] .pp-viewer-close { background: #131b23; color: #cad6e5; }
:root[data-theme="dark"] .pp-viewer-stage img { background: #131b23; }
:root[data-theme="dark"] .admin-body { background: var(--tile-bg, #111e2e); }
:root[data-theme="dark"] .form-error { background: #2f1212; }
:root[data-theme="dark"] .admin-table tbody tr:hover { background: #101c29; }
:root[data-theme="dark"] .tag-amber { background: #352a14; }
:root[data-theme="dark"] .tag-grey { background: #1c232a; }
:root[data-theme="dark"] .btn-danger { color: #ffffff; }
:root[data-theme="dark"] .image-check.warn { background: #352a14; }
:root[data-theme="dark"] .photo-q.warn { background: #352a14; }

/* ---------- Hand-made fixes ---------- */
/* Product photos keep a light background so products look as they really are */
:root[data-theme="dark"] .card-media, :root[data-theme="dark"] .pp-media, :root[data-theme="dark"] .quote-thumb,
:root[data-theme="dark"] .fav-demo-img, :root[data-theme="dark"] .cell-product img, :root[data-theme="dark"] .image-preview img,
:root[data-theme="dark"] .pl-admin-thumb img { background: #eef2f6 !important; }
:root[data-theme="dark"] .card-media { --photo-bg: #eef2f6; }
:root[data-theme="dark"] .pl-viewer-img img, :root[data-theme="dark"] .article-content img { background: #fff; }
/* the logo keeps its white tile */
:root[data-theme="dark"] .logo-img, :root[data-theme="dark"] .hero2-logo, :root[data-theme="dark"] .hero-logo { background: #fff; }
/* brand name: "Cello Lab" in a lighter blue so it reads on dark; the green "o" and "Solutions" stay */
/* brand name keeps the exact brand blue #1875C1 and green #5AB545 (no changes) */
/* Price lists button on Blog / About: blue button with a white "Download" pill, as in light mode */
:root[data-theme="dark"] .page-hero:not(.contact-hero) .pl-hero-btn { background: var(--blue); color: #fff; }
:root[data-theme="dark"] .page-hero:not(.contact-hero) .pl-hero-btn .pl-dl-tag { background: #fff; color: var(--green-dark); }
/* Products hero: a soft dark glow behind the name instead of the white one, name keeps its brand colours */
:root[data-theme="dark"] .hero.hero2::before { background: radial-gradient(ellipse 34% 46% at 50% 50%, rgba(8,20,32,.55) 0%, rgba(8,20,32,.25) 60%, rgba(8,20,32,0) 100%), linear-gradient(rgba(10,40,70,.55), rgba(10,40,70,.55)); }
@media (max-width: 899px) { :root[data-theme="dark"] .hero.hero2::before { background: radial-gradient(ellipse 62% 42% at 50% 42%, rgba(8,20,32,.55) 0%, rgba(8,20,32,.2) 60%, rgba(8,20,32,0) 100%), linear-gradient(rgba(10,40,70,.55), rgba(10,40,70,.55)); } }
:root[data-theme="dark"] .hero.hero2 .hero2-name .w, :root[data-theme="dark"] .hero.hero2 .hero2-name .g { text-shadow: 0 0 2px #fff, 0 0 3px #fff, 0 0 16px rgba(255,255,255,.75) !important; }
/* category buttons: lighter text so the names read on dark */
:root[data-theme="dark"] .chip[data-cat-theme]:not([aria-pressed="true"]):not(.is-current) { color: color-mix(in srgb, var(--cat-accent) 45%, #ffffff) !important; }
:root[data-theme="dark"] .nav-products-mobile:not([aria-current="page"]) { color: #8cc4f2; }
/* links and blue text a touch lighter for contrast on dark */
:root[data-theme="dark"] a:not(.btn):not(.chip):not(.card-media):not(.logo):not(.quote-btn):not(.nav-products-mobile):not(.float-btn):not(.add-btn) { color: #6db3ee; }
:root[data-theme="dark"] .card-title a, :root[data-theme="dark"] .fav-link, :root[data-theme="dark"] #main-nav a { color: var(--ink); }
:root[data-theme="dark"] .price, :root[data-theme="dark"] .pp-price, :root[data-theme="dark"] .fav-demo-price { color: #6db3ee; }
/* hero photos a little dimmer */
:root[data-theme="dark"] .hero2-photo, :root[data-theme="dark"] .about-hero-photo, :root[data-theme="dark"] .contact-hero-photo { filter: brightness(.82) saturate(1.1); }
/* white text on coloured buttons and badges stays white */
:root[data-theme="dark"] .btn-green, :root[data-theme="dark"] .btn-blue, :root[data-theme="dark"] .add-btn,
:root[data-theme="dark"] .quote-btn, :root[data-theme="dark"] .float-btn, :root[data-theme="dark"] .pager-btn.is-current,
:root[data-theme="dark"] .step-num, :root[data-theme="dark"] .pl-dl-tag { color: #fff; }
/* the search tip bubble: a lighter card so it stands out on the dark page */
:root[data-theme="dark"] .search-tip { background: #e6edf5; color: #16263a; }
:root[data-theme="dark"] .search-tip strong { color: #2c7a1f; }
:root[data-theme="dark"] .search-tip-close { background: rgba(22,38,58,.12); color: #16263a; }
/* dialogs and pop-ups */
:root[data-theme="dark"] .pl-dialog, :root[data-theme="dark"] .admin-dialog, :root[data-theme="dark"] .pl-viewer-bar,
:root[data-theme="dark"] .pl-viewer-nav { background: #121f2d; color: var(--ink); }
:root[data-theme="dark"] .toast { background: #e6edf5; color: #16263a; }
/* form boxes */
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { background-color: #0f1b28; color: var(--ink); border-color: #2c3e52; }
:root[data-theme="dark"] input::placeholder, :root[data-theme="dark"] textarea::placeholder { color: #7f91a5; }
/* the theme switch button */
:root[data-theme="dark"] .theme-toggle { background: #1d3045; color: #ffd76a; }

