/* Storefront — the QTP 2.0 trade store's look, copied from its styles.css (tokens, header, nav, buttons, breadcrumb,
   catalogue sidebar, grid and cards) so the shop matches qtponline.net. Loaded after styles.css on the shop page only. */
:root {
  --blue: #214292; --blue-dark: #19336f; --blue-tint: #e9ecf4; --orange: #f9a94b; --on-orange: #1d2433; --orange-dark: #f89c1b;
  --text: #333333; --text-strong: #000000; --nav-text: #211e1a; --muted: #666666; --line: #e2e2e2; --page: #f8f8f8; --surface: #ffffff; --input: #e8e8e8;
  --ok: #1f7a3d; --ok-bg: #e6f4ea; --warn: #9a5b00; --warn-bg: #fff3e0; --bad: #d0021b; --bad-bg: #fdecee;
  --heading: "Source Sans 3", "Open Sans", sans-serif; --body: "Open Sans", Arial, sans-serif;
  --bg: var(--page); --ink: var(--text); --sans: var(--body); --display: var(--heading); --radius: 0;
  --page-max: 1560px; --gutter: clamp(16px, 2.5vw, 40px);
}
body { background: var(--page); color: var(--text); font: 15px/1.5 var(--body); }
h1, h2, h3, h4 { font-family: var(--heading); color: var(--blue); margin: 0 0 .5rem; line-height: 1.2; }
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-strong); }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 var(--line); }
.utility { background: var(--blue); color: #fff; font-size: .8rem; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; min-height: 32px; gap: 16px; }
.utility a { color: #fff; text-decoration: none; }
.utility-contact { display: flex; gap: 22px; }
.utility-contact a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.utility-contact svg { font-size: 1.15rem; }
.utility-account { display: flex; gap: 16px; align-items: center; }
.utility-account a { font-weight: 600; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkish { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0; text-decoration: underline; text-underline-offset: 2px; }

.header-main { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 34px; width: auto; margin-right: 8px; }
.wordmark { display: flex; align-items: center; gap: 8px; }
.wordmark .qtp { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 2rem; letter-spacing: -.02em; color: var(--orange); line-height: 1; }
.logo.has-img .wordmark .qtp { display: none; }
.wm-text { display: flex; flex-direction: column; line-height: 1.15; }
.wm-text strong { color: var(--blue); font-size: 1rem; font-weight: 700; }
.wm-text small { color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .02em; }

.search { flex: 1; display: flex; max-width: 480px; margin-left: auto; }
.search input { flex: 1; min-width: 0; border: 0; background: var(--input); border-radius: 3px 0 0 3px; padding: 9px 12px; font: inherit; font-size: .85rem; color: var(--text); }
.search input:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
.search button { border: 0; background: var(--orange); color: var(--on-orange, #fff); width: 42px; display: grid; place-items: center; cursor: pointer; font-size: 1.2rem; }
.search button:hover { background: var(--orange-dark); }

.header-icons { display: flex; align-items: center; gap: 18px; }
.icon-btn { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-size: 1.6rem; position: relative; }
.icon-btn:hover { color: var(--blue); }
.basket-count { position: absolute; top: -6px; left: 16px; background: var(--orange); color: var(--on-orange, #fff); font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.basket-total { font-size: .85rem; font-weight: 600; margin-left: 6px; color: var(--blue); }

.main-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 8px; padding-bottom: 8px; }
.nav-links { display: flex; overflow-x: auto; scrollbar-width: none; }
.nav-links a { color: var(--nav-text); text-decoration: none; padding: 2px 12px; border-right: 1px solid #cfcfcf; white-space: nowrap; }
.nav-links a:first-child { padding-left: 0; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links a.active { font-weight: 600; }
.nav-cta { flex: none; }

/* ---------- Buttons & forms ---------- */
.btn-orange, .btn-blue, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 0; padding: 9px 16px; font: inherit; font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .02em; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-orange { background: var(--orange); color: var(--on-orange, #fff); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-line { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.btn-line:hover { background: var(--blue-tint); }
.block { width: 100%; padding: 12px 16px; font-size: .9rem; }
button:disabled, .disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
input, select, textarea { font: inherit; color: inherit; border: 1px solid #d5d5d5; border-radius: 0; padding: 9px 10px; background: #fff; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: .88rem; color: var(--text-strong); }
label .hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
input.qty { width: 64px; text-align: center; padding: 8px 4px; }

.box { background: var(--surface); border: 1px solid #ececec; padding: 20px; }
.box + .box { margin-top: 16px; }
.error { background: var(--bad-bg); color: var(--bad); padding: 10px 12px; font-size: .9rem; border-left: 3px solid var(--bad); }
.notice { background: var(--warn-bg); color: var(--warn); padding: 10px 12px; font-size: .9rem; border-left: 3px solid var(--orange); }
.success { background: var(--ok-bg); color: var(--ok); padding: 12px 14px; border-left: 3px solid var(--ok); }
.gap { height: 14px; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .8rem; color: var(--text); margin: 0 0 14px; }
.crumbs a { color: var(--text); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs span.sep { color: #666666; margin: 0 5px; }

/* ---------- Catalogue ---------- */
.page-title { font-size: 1.6rem; margin: 0; }
.shop { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.sidebar .applied { margin-bottom: 14px; }
.sidebar .applied h4, .sidebar .applied .h4 { font-family: var(--body); font-weight: 400; color: var(--blue); font-size: 1rem; margin-bottom: 6px; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-tint); color: var(--text); padding: 3px 8px; margin: 0 4px 6px 0; text-decoration: none; font-size: .88rem; }
.chip-x::before { content: "✕"; color: var(--bad); font-weight: 700; font-size: .8rem; }
.cat-box { background: #fff; border: 1px solid #ececec; padding: 16px 14px; }
.cat-box h3 { font-size: 1.25rem; margin-bottom: 8px; }
.cats { list-style: none; padding: 0; margin: 0; }
.cats li + li { border-top: 1px solid #eee; }
.cats a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 2px; color: var(--blue); text-decoration: none; font-size: .9rem; }
.cats a::after { content: "›"; color: #777; font-size: 1.2rem; line-height: 1; }
.cats a:hover { text-decoration: underline; }
.cats a.active { font-weight: 700; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin-top: 14px; color: var(--text); }
.check input { width: auto; accent-color: var(--blue); }
.cat-select { display: none; margin-bottom: 12px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .count { font-size: .85rem; color: var(--muted); }
.toolbar-right { display: flex; gap: 8px; align-items: center; }
.toolbar select { width: auto; padding: 7px 10px; font-size: .88rem; }
.view-toggle { display: flex; gap: 4px; }
.view-toggle button { width: 36px; height: 34px; background: #fff; border: 1px solid #d5d5d5; color: #444; display: grid; place-items: center; cursor: pointer; font-size: 1.1rem; }
.view-toggle button.on { border-color: var(--blue); color: var(--blue); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.card { min-width: 0; background: #fff; border: 1px solid #ececec; display: flex; flex-direction: column; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.card .img, .list .thumb, .tile { text-decoration: none; }
.card .img { display: block; aspect-ratio: 4 / 3; }
.card .body { padding: 12px 14px 10px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card .title { color: var(--text-strong); font-weight: 700; font-size: .98rem; text-decoration: none; line-height: 1.3; }
.card .title:hover { color: var(--blue); }
.card .sub { color: var(--muted); font-size: .82rem; }
.card .code { color: var(--text); font-size: .8rem; font-family: var(--body); }
.card .price-line { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 6px; }
.card .price { color: var(--blue); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.card form.add { display: flex; }
.card form.add .qty { border-right: 0; border-color: #ececec; border-bottom: 0; border-left: 0; width: 62px; }
.card form.add button { flex: 1; }

/* Image placeholder with the QTP watermark pattern */
.ph { width: 100%; height: 100%; background: #fff; position: relative; overflow: hidden; display: grid; place-items: center; }
.ph { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' viewBox='0 0 120 80'%3E%3Ctext x='0' y='50' transform='rotate(-28 60 40)' font-family='Georgia,serif' font-weight='700' font-size='30' fill='%23000' fill-opacity='.045'%3EQTP%3C/text%3E%3C/svg%3E"); background-size: 120px 80px; }
.ph span { position: relative; font-weight: 700; color: #8a93a8; font-size: .95rem; letter-spacing: .03em; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }

.stock { font-size: .78rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--ok); } .stock.low { color: var(--warn); } .stock.out { color: var(--bad); }
.stock small { font-weight: 400; color: var(--muted); }
.unit { font-size: .75rem; color: var(--muted); font-weight: 400; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 22px; align-items: center; }
.pager a, .pager span { min-width: 36px; height: 34px; display: grid; place-items: center; padding: 0 10px; background: #fff; border: 1px solid #ddd; text-decoration: none; color: var(--blue); font-size: .88rem; }
.pager span.cur { background: var(--blue); color: #fff; border-color: var(--blue); }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); background: #fff; border: 1px solid #ececec; }

.nav-level select, .cat-select { max-width: 100%; text-overflow: ellipsis; }
.nav-box { background: #fff; border: 1px solid #ececec; padding: 14px; margin-bottom: 14px; }
.nav-box h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--blue); }
.nav-level { display: grid; gap: 3px; margin-bottom: 10px; font-weight: 600; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.nav-level select { font-size: .92rem; text-transform: none; letter-spacing: 0; color: var(--text); font-weight: 400; padding: 8px; }
.nav-level select:has(option:checked:not([value=""])) { border-color: var(--blue); background: #fbfcff; }
.stock-check { background: #fff; border: 1px solid #ececec; padding: 12px 14px; margin-top: 0; }
.nav-toggle { display: none; width: 100%; margin-bottom: 12px; }
.fits { font-size: .8rem; color: var(--blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.skeleton { height: 280px; background: linear-gradient(90deg, #f1f1f1, #e8e8e8, #f1f1f1); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

.seo-intro { color: var(--muted); font-size: .9rem; margin: -4px 0 14px; max-width: 70ch; }
.guest-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--blue-tint, #eef1f9); border-left: 3px solid var(--blue); padding: 10px 14px; margin-bottom: 14px; font-size: .9rem; }


/* ---------- Where the webshop differs from the trade store ---------- */
main.layout { flex: 1; width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 18px var(--gutter) 56px; display: block; }
.site-header .search { position: relative; overflow: visible; }
.site-header .search button { font-size: 1.2rem; }
.search input::placeholder { color: #6d766f; }
.icon-btn { background: none; border: 0; cursor: pointer; font-family: inherit; font-size: 1.6rem; padding: 0; }
.icon-btn { white-space: nowrap; }
.icon-btn .lbl { display: none; }
.header-icons .icon-btn svg { width: 1em; height: 1em; }
.icon-btn svg { width: 1em; height: 1em; }
.nav-links a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.sidebar .nav-box p.muted { margin: 0; font-size: .85rem; }
.cat-box h3 { color: var(--text-strong); }

.cats button { all: unset; display: flex; width: 100%; box-sizing: border-box; align-items: center; gap: 5px; padding: 10px 2px; color: var(--blue); font-size: .9rem; cursor: pointer; }
.cats button .n { margin-right: auto; color: inherit; font-size: inherit; }
.cats button .n::before { content: "("; }
.cats button .n::after { content: ")"; }
.cats button::after { content: "›"; color: #777; font-size: 1.2rem; line-height: 1; }
.cats button:hover { text-decoration: underline; }
.cats button[aria-current="true"] { font-weight: 700; }
.cats > ul { list-style: none; margin: 0; padding: 0; }
.cats > ul > li + li { border-top: 1px solid #eee; }
.cats ul ul { list-style: none; margin: 0 0 0 10px; padding: 0; border-left: 2px solid #eee; }
.cats ul ul li { border-top: 1px solid #eee; }
.cats ul ul button { padding-left: 8px; }
.toolbar .tb-title { flex: 1 1 220px; min-width: 0; }
.toolbar .count { font-size: .85rem; color: var(--muted); }
.card .fits a { color: inherit; text-decoration: none; }
.card .fits .fits-l { color: inherit; font-weight: 400; }
.card .fits-more { all: unset; cursor: pointer; color: var(--blue); font-weight: 600; margin-left: 4px; }
.card .stock { margin-top: 2px; }
.card .price-line .unit { margin-left: 6px; }
.card .price s { color: var(--muted); font-weight: 400; font-size: .85rem; margin-right: 6px; }
.card .price.por { font-size: .9rem; color: var(--muted); font-weight: 600; }
.card form.add .qty { width: 62px; text-align: center; padding: 8px 4px; border: 1px solid #ececec; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 0; }
.card form.add button { flex: 1; }
.card form.add button.added { background: var(--ok); color: #fff; }
.search-note { background: var(--blue-tint, #eef2fa); border-left: 4px solid var(--orange); padding: 10px 14px; margin: 0 0 14px; font-size: .92rem; line-height: 1.5; }
.search-note a { font-weight: 600; }
.suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(0,0,0,.16); z-index: 40; max-height: min(70vh, 560px); overflow-y: auto; }
.sg-sec { padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.sg-sec h5 { margin: 4px 12px 4px; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.sg-item { display: flex; align-items: center; gap: 10px; padding: 7px 12px; color: var(--text); text-decoration: none; font-size: .86rem; line-height: 1.3; }
.sg-item:hover, .sg-item.on { background: var(--blue-tint, #eef1f9); }
.sg-node small { margin-left: auto; color: var(--muted); white-space: nowrap; font-size: .76rem; }
.sg-img { width: 40px; height: 40px; flex: none; }
.sg-img .ph { width: 40px; height: 40px; font-size: .5rem; }
.sg-txt { flex: 1; min-width: 0; }
.sg-txt small { display: block; color: var(--blue); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-price { font-weight: 700; color: var(--blue); white-space: nowrap; }
.sg-all { justify-content: center; font-weight: 700; color: var(--blue); padding: 10px 12px; }
.sg-none { padding: 14px 12px; color: var(--muted); font-size: .88rem; }
.suggest mark { background: none; color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.sg-img .ph span { display: none; } .sg-img .ph { background: #f3f4f8; }
.search-note strong { font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chips:empty { display: none; }
.more { text-align: center; margin-top: 22px; }
.more .btn-line { padding: 10px 22px; }
.demo, .loading { max-width: var(--page-max); margin: 10px auto 0; padding: 8px var(--gutter); font-size: .85rem; }
.only-mobile { display: none; }
.foot { border-top: 1px solid var(--line); padding: 18px 16px; text-align: center; color: var(--muted); font-size: .85rem; background: #fff; }
.foot a { color: var(--blue); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 4px; font-size: .9rem; z-index: 40; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
@media (max-width: 860px) {
  .site-header { position: static; }
  .shop { grid-template-columns: 1fr; }
  .cat-box, .sidebar .nav-box, .sidebar [data-clear] { display: none; }
  .header-main { flex-wrap: wrap; gap: 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header-icons { margin-left: auto; }
  .hide-sm { display: none !important; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card .body { padding: 10px; }
  .card form.add button { font-size: .72rem; padding: 9px 6px; }
  .main-nav { flex-wrap: nowrap; }
  .only-mobile { display: inline-flex; }
  .icon-btn .lbl { display: none; }
}
@media (max-width: 480px) {
  .utility-inner { font-size: .75rem; gap: 10px; }
  .wm-text small { display: none; }
}

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 460px 1fr; gap: 28px; align-items: start; }
.gallery { background: #fff; border: 1px solid #ececec; aspect-ratio: 1 / 1; }
.gallery .ph span { font-size: 1.5rem; }
.gallery .ph { background-size: 170px 113px; }
.pinfo h1 { font-size: 2rem; margin-bottom: 6px; }
.pinfo .price-block { margin: 6px 0 12px; }
.pinfo .big { font-size: 1.9rem; color: var(--blue); font-weight: 700; font-variant-numeric: tabular-nums; font-family: var(--heading); }
.pinfo .taxnote { font-size: .85rem; color: var(--muted); }
.facts { border-top: 1px solid #ddd; margin: 0 0 16px; }
.facts div { display: flex; gap: 12px; padding: 9px 14px; border-bottom: 1px solid #ddd; font-size: .92rem; }
.facts dt { width: 150px; color: var(--muted); flex: none; }
.facts dd { margin: 0; color: var(--text-strong); font-weight: 600; }
.buy { display: flex; gap: 0; margin-bottom: 14px; }
.buy .qty { width: 70px; border-right: 0; }
.buy button { padding: 10px 22px; }
.pinfo .desc { margin: 0 0 6px; color: var(--text); }

.tabs { margin-top: 28px; }
.tabbar { display: flex; flex-wrap: wrap; gap: 2px; }
.tabbar button { background: transparent; border: 0; padding: 12px 14px; font: inherit; font-size: .92rem; color: #585858; cursor: pointer; }
.tabbar button[aria-selected="true"] { background: #fff; color: var(--text-strong); }
.tabbar button:hover { color: var(--blue); }
.tabpanel { background: #fff; padding: 16px; min-height: 60px; }
.linklist { list-style: none; padding: 0; margin: 0; }
.linklist li { padding: 8px 0; border-top: 1px solid #eee; }
.linklist li:first-child { border-top: 0; }
.linklist a { text-decoration: none; }
.linklist a:hover { text-decoration: underline; }

/* Specifications tab: two columns of label/value rows on wide screens */
.facts.specs { border: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.facts.specs div { padding-left: 0; padding-right: 0; }
@media (max-width: 760px) { .facts.specs { grid-template-columns: 1fr; } }

.shop > *, .two-col > *, .product > * { min-width: 0; }
.gallery-wrap { min-width: 0; }
.fits-lg { color: var(--blue); font-size: .92rem; margin: 0 0 8px; }
.compat { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 24px; }
.compat-make h4 { font-family: var(--body); font-size: .95rem; margin: 0 0 6px; border-bottom: 2px solid var(--orange); padding-bottom: 4px; }
.compat-make h4 a { color: var(--blue); text-decoration: none; }
.compat-make ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 12px; font-size: .88rem; }
.compat-make li { padding: 2px 0; break-inside: avoid; }
.compat-make li a { color: var(--text); text-decoration: none; }
.compat-make li a:hover { color: var(--blue); text-decoration: underline; }
/* ---------- Related products carousel ---------- */
.related { margin-top: 28px; }
.rel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.rel-head h2 { margin: 0; font-size: 1.4rem; }
.rel-nav { display: flex; gap: 6px; }
.rel-btn { width: 38px; height: 38px; border: 1px solid #d5d5d5; background: #fff; color: var(--blue); font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.rel-btn:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-tint); }
.rel-btn:disabled { opacity: .35; cursor: default; }
.rel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: #c9d2ea transparent;
}
.rel-track:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.rel-track > .rcard { scroll-snap-align: start; min-width: 0; }
.rcard .img { aspect-ratio: 4 / 3; }
.rcard .title { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 980px) { .rel-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 640px) { .rel-track { grid-auto-columns: 62%; gap: 10px; } .rel-head h2 { font-size: 1.2rem; } }


/* Product page (server-rendered) — webshop additions */
.compat-make h3 { font-family: var(--body); font-size: .95rem; margin: 0 0 6px; border-bottom: 2px solid var(--orange); padding-bottom: 4px; color: var(--text-strong); }
.compat-make h3 a { color: var(--blue); text-decoration: none; }
.pinfo .buy .qty { width: 70px; text-align: center; border-right: 0; }
.pinfo .buy .btn-orange { padding: 10px 22px; }
.pinfo .was-line s { color: var(--muted); margin-right: 8px; }
.offer-tag { display: inline-block; background: #d0021b; color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.tabpanel p { margin: 0; }
.seo-pager { display: flex; justify-content: center; gap: 6px; margin-top: 22px; align-items: center; }
.seo-pager a, .seo-pager span { min-width: 36px; height: 34px; display: grid; place-items: center; padding: 0 10px; background: #fff; border: 1px solid #ddd; text-decoration: none; color: var(--blue); font-size: .88rem; }
.seo-sub { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seo-sub li { background: #fff; border: 1px solid #ececec; padding: 6px 12px; }
.seo-sub a { color: var(--blue); font-weight: 600; text-decoration: none; }
.seo-index { list-style: none; padding: 0; margin: 0; columns: 3 260px; column-gap: 24px; }
.seo-index > li { break-inside: avoid; margin-bottom: 12px; }
.seo-index ul { list-style: none; padding: 0 0 0 12px; margin: 4px 0 0; font-size: .9rem; }
.seo-index a { color: var(--blue); text-decoration: none; }
.seo-az { margin: 0 0 14px; font-size: .9rem; }
.seo-main h2 { font-size: 1.3rem; text-transform: none; letter-spacing: 0; margin: 0; }
.seo-main .related { border: 0; padding: 0; background: none; }
.seo-main .rel-head h2 { font-size: 1.4rem; }
/* Footer — as the trade store (qtponline.net): Get in Touch, link columns, Social Media, Payments, base strip. */
.site-footer { background: var(--blue); color: #fff; margin-top: 40px; }
.footer-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 28px; padding-top: 36px; padding-bottom: 32px; }
.site-footer h2, .site-footer h4 { color: #fff; font-family: var(--body); font-weight: 700; font-size: 1rem; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.f-contact li { display: flex; gap: 12px; margin-bottom: 12px; font-size: .9rem; line-height: 1.45; }
.f-contact svg { width: 18px; height: 18px; flex: none; fill: currentColor; margin-top: 2px; }
.f-social li { margin-bottom: 10px; }
.f-social a { display: inline-flex; align-items: center; gap: 12px; font-size: .9rem; }
.f-social svg { width: 18px; height: 18px; fill: #fff; flex: none; }
.f-links li { margin-bottom: 6px; font-size: .9rem; }
.pay-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pay { height: 26px; min-width: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; flex: none; white-space: nowrap; background: #fff; border-radius: 3px; padding: 0 6px; font-size: .72rem; font-weight: 800; color: #111; }
.pay.visa { color: #1a1f71; font-style: italic; letter-spacing: .02em; }
.pay.mc { position: relative; width: 42px; }
.pay.mc i { position: absolute; width: 16px; height: 16px; border-radius: 50%; top: 5px; }
.pay.mc i:first-child { background: #eb001b; left: 7px; } .pay.mc i:last-child { background: #f79e1b; left: 17px; mix-blend-mode: multiply; }
.pay.apple svg { width: 12px; height: 12px; fill: #111; margin-top: -2px; }
.pay.gpay b { color: #4285f4; margin-right: 1px; }
.pay.acct { color: var(--blue); font-weight: 700; }
.site-footer .vat { margin: 14px 0 0; font-size: .85rem; color: rgba(255, 255, 255, .82); }
.footer-base { background: var(--blue-dark); font-size: .78rem; color: rgba(255, 255, 255, .78); padding: 10px 0; }
.footer-base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; }
.footer-base a { color: inherit; }
@media (max-width: 1180px) and (min-width: 981px) { .footer-grid { gap: 18px; } .f-contact li, .f-social a { font-size: .85rem; } }
@media (max-width: 980px) { .footer-grid { grid-auto-flow: row; grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 28px; padding-bottom: 24px; } .footer-base .wrap { flex-direction: column; } }

/* Info pages (/info/…): About us, Contact us, policies */
.info-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; margin: 8px 0 24px; }
.info-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius, 0); padding: 16px; }
.info-nav h2 { font-size: .95rem; margin: 0 0 10px; color: var(--text-strong, var(--text)); }
.info-nav ul { list-style: none; margin: 0; padding: 0; }
.info-nav li a { display: block; padding: 6px 0; color: var(--text); text-decoration: none; font-size: .92rem; }
.info-nav li a[aria-current="page"], .info-nav li a:hover { color: var(--blue); font-weight: 600; }
.info-page { background: #fff; border: 1px solid var(--line); border-radius: var(--radius, 0); padding: 24px 28px; max-width: 820px; line-height: 1.65; }
.info-page h1 { margin: 0 0 14px; color: var(--blue); }
.info-page h2 { font-size: 1.15rem; margin: 22px 0 8px; color: var(--text-strong, var(--text)); }
.info-page p { margin: 0 0 12px; }
.info-page ul { margin: 0 0 14px; padding-left: 20px; }
.info-page li { margin-bottom: 4px; }
@media (max-width: 760px) { .info-wrap { grid-template-columns: 1fr; gap: 14px; } .info-nav { order: 2; } .info-page { padding: 18px 16px; } }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } .product.gal-right { grid-template-columns: 1fr; } }

/* ---------- Cart / checkout drawer (the shop's drawer in the trade store's look) ---------- */
.drawer { width: min(460px, 100vw); border: 0; border-left: 1px solid var(--line); box-shadow: -8px 0 24px rgba(0, 0, 0, .12); }
.drawer-head { padding: 14px 18px; }
.drawer-head h2 { font-family: var(--heading); font-size: 1.3rem; color: var(--blue); margin: 0; }
.drawer-body { padding: 14px 18px; }
.drawer-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: #fff; }
.drawer .icon-btn { font-size: 1.4rem; }
.cl { display: grid; grid-template-columns: 64px minmax(0, 1fr) 28px; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eee; align-items: start; }
.cl:first-child { padding-top: 2px; }
.cl-img { display: block; width: 64px; height: 64px; border: 1px solid #ececec; background: #fff; text-decoration: none; }
.cl-img .ph { background-size: 48px 32px; }
.cl-img .ph span { font-size: .6rem; }
.cl-info { min-width: 0; display: grid; gap: 4px; }
.cl-name { color: var(--text-strong); font-weight: 700; font-size: .95rem; line-height: 1.3; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-name:hover { color: var(--blue); }
.cl-meta { font-size: .8rem; color: var(--muted); }
.cl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.cl-total { font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl-remove { width: 28px; height: 28px; border: 0; background: none; color: #666666; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0; border-radius: 0; }
.cl-remove:hover { color: var(--bad); }
.stepper { border-radius: 0; height: 36px; grid-template-columns: 32px 44px 32px; border-color: #d5d5d5; }
.stepper button { background: #fff; color: var(--blue); font-weight: 700; }
.stepper button:hover { background: var(--blue-tint); }
.stepper input { padding: 0; border: 0; width: 100%; }
.drawer .btn { border-radius: 0; }
.drawer .btn.primary { background: var(--orange); color: var(--on-orange); text-transform: uppercase; letter-spacing: .02em; font-size: .85rem; font-weight: 700; min-height: 44px; }
.drawer .btn.primary:hover { background: var(--orange-dark); }
.drawer .btn.link { color: var(--blue); font-weight: 600; text-decoration: none; }
.drawer .btn.link:hover { text-decoration: underline; }
.drawer .total { font-size: 1rem; }
.drawer .total strong { font-size: 1.25rem; color: var(--blue); font-family: var(--heading); }
.drawer .f label { font-size: .85rem; }
.drawer fieldset legend { font-size: .72rem; letter-spacing: .08em; }
.drawer input, .drawer textarea, .drawer select { border-radius: 0; }
.drawer .seg { border-radius: 0; }
.drawer .seg button.on { background: var(--blue); }
.cart-empty { padding: 40px 12px; }
.cart-empty p:first-child { font-weight: 700; color: var(--text-strong); font-size: 1.05rem; }
/* Finder drawer on phones */
.drawer.left .side-h { font-family: var(--heading); font-size: 1.1rem; font-weight: 700; color: var(--blue); text-transform: none; letter-spacing: 0; }
.drawer.left .side-box { border: 1px solid #ececec; border-radius: 0; }
.drawer.left .cascade-col label { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.drawer.left .tree button { color: var(--blue); border-radius: 0; }
.drawer.left .tree button[aria-current="true"] { background: var(--blue); color: #fff; }
@media (max-width: 860px) {
  .basket-total { display: none; }
  .gallery { max-height: 62vw; }
  .gallery .ph { background-size: 110px 73px; }
  .pinfo h1 { font-size: 1.5rem; }
  .pinfo .big { font-size: 1.6rem; }
  .facts dt { width: 110px; }
  .tabbar button { padding: 10px 12px; font-size: .88rem; }
  .product { gap: 16px; }
  .related { margin-top: 20px; }
  .toolbar .tb-title h1 { font-size: 1.4rem; }
  .guest-bar { font-size: .85rem; padding: 9px 12px; }
  .main-nav { padding-top: 6px; padding-bottom: 6px; }
  .nav-links a { padding: 6px 10px; font-size: .92rem; }
  .only-mobile.btn-blue { padding: 9px 12px; font-size: .74rem; }
  .toolbar { gap: 8px; }
  .toolbar-right { width: 100%; justify-content: space-between; min-width: 0; }
  /* The sort box takes the room left beside the finder button and never pushes the page wider (templates with
     capitals and wide letter-spacing, e.g. Industrial, made it stick out on phones). */
  .toolbar-right > * { min-width: 0; }
  .toolbar .sort { flex: 1 1 0; display: flex; }
  .toolbar select { flex: 1; width: 100%; min-width: 0; text-overflow: ellipsis; }
  main.layout { padding-top: 12px; }
  .crumbs { margin-bottom: 10px; }
  .wm-text strong { font-size: .95rem; }
}
@media (max-width: 420px) {
  .cl { grid-template-columns: 56px minmax(0, 1fr) 24px; gap: 10px; }
  .cl-img { width: 56px; height: 56px; }
  .stepper { grid-template-columns: 30px 40px 30px; height: 34px; }
  .f2 { grid-template-columns: 1fr; }
  .drawer-body, .drawer-head, .drawer-foot { padding-left: 14px; padding-right: 14px; }
}

/* Minimum sales quantity (the trade store's rules and look) */
form.add:has(.minq) { flex-wrap: wrap; }
form.add .minq { flex-basis: 100%; order: -1; font-size: .72rem; font-weight: 600; color: #8a4b00; background: #fff4e5; padding: 3px 8px; margin-bottom: 4px; border-radius: 3px; }
.buy .minq { margin-bottom: 6px; }
input.qty.bad, input[data-mult].bad { border-color: #b3261e !important; box-shadow: 0 0 0 2px rgba(179, 38, 30, .18); }
.mult-msg { flex-basis: 100%; order: 5; margin-top: 4px; font-size: .78rem; font-weight: 600; color: #b3261e; line-height: 1.3; }
.mult-msg[hidden] { display: none; }
form.add button:disabled { opacity: .55; cursor: not-allowed; }
.minq-fact dd strong { color: #8a4b00; }
.cl-info .mult-msg { margin-top: 2px; }
.qo-row .minq { display: inline-block; font-size: .72rem; font-weight: 600; color: #8a4b00; background: #fff4e5; padding: 2px 6px; margin-left: 6px; border-radius: 3px; }
.qo-row .minq.bad { color: #b3261e; background: #fdecee; }

/* ---------------- The featured / discount corner on every product picture ---------------- */
.ph .corner, .pos-pic .corner { position: absolute; padding: 0; top: 0; left: 0; width: 84px; height: 84px; overflow: hidden; z-index: 2; pointer-events: none; }
.ph .corner > span { position: absolute; top: 18px; left: -34px; width: 140px; transform: rotate(-45deg); background: var(--badge, #214292); color: var(--badge-fg, #fff); text-align: center; font-weight: 800; font-size: .62rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .03em; padding: 4px 0; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-blue { --badge: #214292; } .c-red { --badge: #d0021b; } .c-orange { --badge: #f89c1b; --badge-fg: #1d2433; } .c-green { --badge: #1f7a3d; } .c-black { --badge: #222; }
.gallery .ph .corner { width: 130px; height: 130px; }
.gallery .ph .corner > span { top: 30px; left: -42px; width: 190px; font-size: .82rem; padding: 6px 0; }
/* small pictures: a coloured corner flash; the words go in a tag beside the part code */
.list .thumb .ph .corner, .sg-img .ph .corner, .pos-pic .corner { display: block; width: 0; height: 0; border-style: solid; border-width: 18px 18px 0 0; border-color: var(--badge) transparent transparent transparent; overflow: visible; }
.list .thumb .ph .corner > span, .sg-img .ph .corner > span, .pos-pic .corner > span { display: none; }
.ctag { display: inline-block; vertical-align: middle; background: var(--badge, #214292); color: var(--badge-fg, #fff); font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; line-height: 1; padding: 3px 6px; border-radius: 3px; margin: 0 6px 2px 0; white-space: nowrap; }
.sg-txt .ctag { margin-left: 2px; }
.cl-img .ph .corner { display: block; width: 0; height: 0; border-style: solid; border-width: 18px 18px 0 0; border-color: var(--badge) transparent transparent transparent; overflow: visible; }
.cl-img .ph .corner > span { display: none; }
.cl-name .ctag { margin-right: 4px; }
.f-top { display: none; }

/* First install: "Getting the shop ready" with progress and time left */
#loadBanner.setup { max-width: var(--page-max); box-sizing: border-box; width: calc(100% - 2 * var(--gutter)); text-align: left; margin: 12px auto 0; padding: 12px var(--gutter) 10px; background: var(--blue-tint, #e9ecf4); border-left: 4px solid var(--orange); font-size: .88rem; color: var(--text); }
#loadBanner.setup .su-top { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; align-items: baseline; }
#loadBanner.setup .su-top strong { color: var(--blue); font-size: .98rem; }
#loadBanner.setup .su-bar { height: 8px; background: rgba(0, 0, 0, .08); border-radius: 999px; overflow: hidden; margin: 8px 0 6px; }
#loadBanner.setup .su-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--orange)); transition: width .5s; }
#loadBanner.setup .su-step { color: var(--muted); font-size: .82rem; }

/* "Set up admin" — top right of the shop, only for the browser that installed it, until the admin user exists */
.utility-setup { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: var(--orange); color: var(--on-orange, #1d2433) !important; font-weight: 700; font-size: .8rem; padding: 3px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; animation: setupPulse 2.4s ease-in-out 3; }
.utility-setup svg { width: 14px; height: 14px; }
.utility-setup:hover { filter: brightness(1.05); text-decoration: none; }
.utility-setup[hidden] { display: none; }
@keyframes setupPulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--orange) 35%, transparent); } }

/* Currency picker beside the basket, and the "prices are a guide" note */
.header-icons .cur-pick { display: inline-flex; align-items: center; align-self: center; }
.cur-pick[hidden] { display: none !important; }
.cur-pick select { background: var(--surface, #fff); color: var(--ink, #1d2433); border: 1px solid var(--line, #d7dbe3); border-radius: 6px; font: inherit; font-size: .85rem; font-weight: 700; padding: 6px 8px; cursor: pointer; min-height: 36px; }
.cur-pick select:focus { outline: 2px solid var(--orange, #f9a94b); outline-offset: 1px; }
.cur-note { font-size: .8rem; color: var(--muted, #5d6675); margin: 6px 0 0; }
.cur-note[hidden] { display: none; }
@media (max-width: 480px) { .cur-pick select { font-size: .78rem; padding: 4px 4px; min-height: 32px; } }
.header-main .search { min-width: 0; }
.header-main .header-icons { flex: none; }
.header-icons .icon-btn.basket { width: auto; min-width: 40px; }

/* The basket total takes the header's text colour, so it reads on every template's header (dark or light). */
.header-icons .basket-total { color: inherit; }
html[data-template="classic"] .header-icons .basket-total, html:not([data-template]) .header-icons .basket-total { color: var(--blue); }
