/* aws 2026-10-27: cd2 new look for cabledepot.co.uk
   Layout: full-width bands (top bar, header, department menu, footer) around a 1280px content column; one responsive design for phone and desktop.
   Identity: the Cable Depot logo red on charcoal, warm neutral paper, green only for stock and add-to-basket. Type: Barlow Condensed (display) + Barlow. */
:root {
	--ink: #17191d;
	--char: #24272d;
	--red: #d42a1f;
	--red-d: #b21f16;
	--paper: #f6f4f0;
	--panel: #ffffff;
	--line: #e3dfd8;
	--line2: #efebe5;
	--muted: #5c626b;
	--body: #2c3036;
	--ok: #1d7f45;
	--ok-d: #166536;
	--tint: #fbefe9;
	--head: "Barlow", "Segoe UI", Arial, sans-serif;
	--text: "Barlow", "Segoe UI", Arial, sans-serif;
	--r: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.cd2 { margin: 0; background: var(--paper); color: var(--body); font: 16px/1.55 var(--text); }
.cd2 img { max-width: 100%; height: auto; }
.cd2 a { color: var(--red-d); }
.cd2 a:hover { color: var(--red); }
.cd2 :focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.cd2 h1, .cd2 h2, .cd2 h3 { font-family: var(--head); color: var(--ink); line-height: 1.15; text-wrap: balance; letter-spacing: .2px; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff !important; padding: 8px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 12px; }

/* top bar */
.topbar { background: var(--ink); color: #d9dce1; font-size: 13.5px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 6px 24px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar strong { color: #fff; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }

/* header */
.hdr { background: var(--panel); border-bottom: 1px solid var(--line); }
.hdr-row { display: flex; align-items: center; gap: 18px 28px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: inline-flex; align-items: stretch; text-decoration: none; font: 800 30px/1 var(--head); text-transform: uppercase; letter-spacing: .5px; flex: none; }
.logo .lw-a { color: var(--ink); padding: 7px 8px 6px 0; }
.logo .lw-b { color: #fff; background: var(--red); padding: 7px 11px 6px; border-radius: 8px; }
.logo:hover .lw-b { background: var(--red-d); }
.search { flex: 1 1 auto; display: flex; max-width: 640px; margin: 0; border: 2px solid var(--char); border-radius: 999px; background: #fff; overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; padding: 12px 18px; font: 500 16px var(--text); color: var(--ink); background: transparent; }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(212, 42, 31, .15); }
.search button { border: 0; background: var(--char); color: #fff; width: 58px; cursor: pointer; display: grid; place-items: center; }
.search button:hover { background: var(--red); }
.hdr-acts { display: flex; gap: 6px; margin-left: auto; }
.hdr-acts a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; border-radius: 8px; }
.hdr-acts a:hover { background: var(--line2); color: var(--ink); }
.hdr-acts .count { position: absolute; top: 0; right: 6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font: 700 12px/20px var(--text); text-align: center; }

/* department menu */
.nav { background: var(--char); }
.nav-row { display: flex; align-items: stretch; gap: 4px; }
.alldepts { position: relative; }
.alldepts summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; height: 100%; padding: 12px 16px; background: var(--red); color: #fff; font: 700 17px var(--head); letter-spacing: .4px; }
.alldepts summary::-webkit-details-marker { display: none; }
.alldepts[open] summary, .alldepts summary:hover { background: var(--red-d); }
.alldepts .dd { position: absolute; left: 0; top: 100%; z-index: 30; width: min(620px, 92vw); background: var(--panel); border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); box-shadow: 0 18px 40px rgba(0, 0, 0, .18); padding: 14px 18px; }
.alldepts .dd ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.alldepts .dd li { break-inside: avoid; }
.alldepts .dd a { display: block; padding: 7px 4px; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line2); }
.alldepts .dd a:hover { color: var(--red-d); }
.nav-main { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-main a { display: block; padding: 12px 14px; color: #eef0f3; text-decoration: none; font: 600 17px var(--head); letter-spacing: .4px; }
.nav-main a:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* breadcrumb */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 14px; padding-bottom: 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red-d); text-decoration: underline; }
.crumbs span { margin: 0 4px; }

.cd-main { min-height: 40vh; padding-bottom: 48px; }

/* footer */
.ftr { background: var(--ink); color: #c9cdd3; font-size: 15px; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-top: 40px; padding-bottom: 32px; }
.ftr h2 { color: #fff; font-size: 19px; letter-spacing: .5px; margin: 4px 0 10px; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin: 0 0 7px; }
.ftr a { color: #e6e8eb; text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr p { margin: 12px 0 0; max-width: 34ch; }
.ftr .logo-ftr .lw-a { color: #fff; }
.ftr-phone a { font-weight: 600; }
.ftr-base { border-top: 1px solid #30343b; font-size: 13px; color: #9aa1aa; }
.ftr-base .wrap { padding-top: 14px; padding-bottom: 18px; }

/* older page content (basket, checkout, account, info pages) inside the new frame */
.legacy { padding-top: 18px; }
.legacy table { max-width: 100%; border-collapse: collapse; }
.legacy > table, .legacy table[width="100%"], .legacy .w100pc { width: 100% !important; }
.legacy td, .legacy th { font-family: var(--text) !important; font-size: 15px !important; color: var(--body); padding: 5px 6px; vertical-align: top; }
.legacy .pageHeading, .legacy h1 { font: 700 30px/1.15 var(--head) !important; color: var(--ink) !important; margin: 6px 0 12px; }
.legacy .infoBoxHeading, .legacy .main b, .legacy b { color: var(--ink); }
.legacy .infoBox, .legacy .infoBoxContents { background: var(--panel); border-color: var(--line); }
.legacy input[type="text"], .legacy input[type="email"], .legacy input[type="password"], .legacy input[type="tel"], .legacy select, .legacy textarea {
	font: 16px var(--text); padding: 9px 11px; border: 1px solid #cfc9c0; border-radius: 8px; background: #fff; color: var(--ink); max-width: 100%; }
.legacy input:focus, .legacy select:focus, .legacy textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(212, 42, 31, .15); }
.legacy input[type="submit"], .legacy button, .btn {
	display: inline-block; font: 700 16px var(--text); padding: 11px 20px; border: 0; border-radius: 999px; background: var(--ok); color: #fff; cursor: pointer; text-decoration: none; }
.legacy input[type="submit"]:hover, .legacy button:hover, .btn:hover { background: var(--ok-d); color: #fff; }
.legacy img { max-width: 100%; height: auto; }
.legacy .messageStackError, .legacy .messageStackWarning { background: var(--tint); color: var(--red-d); border-radius: 8px; padding: 10px 12px; }

@media (max-width: 1080px) {
	.ftr-grid { grid-template-columns: 1fr 1fr; }
	.tb-mid { display: none; }
}
@media (max-width: 760px) {
	.hdr-row { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
	.logo { font-size: 26px; }
	.search { order: 3; flex-basis: 100%; max-width: none; }
	.nav-main { display: none; }
	.alldepts { flex: 1; }
	.alldepts summary { justify-content: center; }
	.alldepts .dd { width: 100%; border-radius: 0 0 var(--r) var(--r); }
	.alldepts .dd ul { columns: 1; }
	.topbar .wrap { justify-content: center; text-align: center; }
	.topbar .wrap > span:last-child { display: none; }
	.legacy table, .legacy tbody, .legacy tr { max-width: 100%; }
	.legacy td { word-break: break-word; }
}
@media (max-width: 520px) {
	.ftr-grid { grid-template-columns: 1fr; }
	.hdr-acts a span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- homepage ---------- */
.btn-red { background: var(--red); }
.btn-red:hover { background: var(--red-d); }
.btn-line { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 2px var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff !important; }
.hero { background: var(--panel); border-bottom: 1px solid var(--line); }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.eyebrow { margin: 0 0 8px; color: var(--red-d); font: 700 15px var(--text); letter-spacing: 1px; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); margin: 0 0 14px; letter-spacing: .3px; }
.lead { font-size: 18px; color: var(--muted); max-width: 58ch; margin: 0 0 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-facts li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 14px; }
.hero-facts strong { display: block; font: 800 34px/1 var(--head); color: var(--red); }
.hero-facts span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--body); }
.sec { padding-top: 40px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-size: 30px; margin: 0; }
.sec-head a { font-weight: 600; text-decoration: none; }
.depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.dept { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink) !important; text-decoration: none; }
.dept:hover { border-color: var(--red); box-shadow: 0 6px 18px rgba(0, 0, 0, .07); }
.dept img, .dept-ph { width: 56px; height: 56px; object-fit: contain; flex: none; background: #fff; border-radius: 8px; }
.dept-ph { background: var(--line2); }
.dept strong { display: block; font: 700 19px/1.15 var(--head); }
.dept small { color: var(--muted); font-size: 13.5px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, .08); }
.card-img { display: block; aspect-ratio: 1; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; border-top: 1px solid var(--line2); flex: 1; }
.card-name { color: var(--ink) !important; text-decoration: none; font-weight: 600; line-height: 1.35; }
.card-name:hover { color: var(--red-d) !important; text-decoration: underline; }
.card-price { margin: auto 0 0; font: 700 22px var(--head); color: var(--ink); }
.card-price small { font: 500 12.5px var(--text); color: var(--muted); }
.about-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.about h2 { font-size: 28px; margin: 0 0 10px; }
.about p { max-width: 70ch; }
.about-help { background: var(--char); color: #dfe2e6; border-radius: var(--r); padding: 20px 22px; }
.about-help h3 { color: #fff; font-size: 22px; margin: 0 0 8px; }
.about-help a { color: #fff; font-weight: 600; }
@media (max-width: 900px) {
	.hero-row, .about-row { grid-template-columns: 1fr; }
	.hero-row { padding-top: 28px; padding-bottom: 28px; }
}
@media (max-width: 520px) {
	.grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.card-price { font-size: 19px; }
	.hero-facts strong { font-size: 28px; }
}

/* cookie notice from the site script (cd-4-05.js cookieBar) */
#cookie-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); font-size: 14.5px; max-width: 760px; margin: 0 auto; }
#cookie-bar a { color: #fff; font-weight: 600; }
#cookie-bar .cb-enable { background: var(--ok); padding: 7px 14px; border-radius: 999px; text-decoration: none; }
#cookie-bar .cb-policy { text-decoration: underline; }
#cookie-bar p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.cd2 a.btn, .cd2 a.btn:hover { color: #fff; text-decoration: none; }
.cd2 a.btn-line { color: var(--ink); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
	.depts { grid-template-columns: 1fr 1fr; gap: 8px; }
	.dept { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; }
	.dept img, .dept-ph { width: 44px; height: 44px; }
	.dept strong { font-size: 17px; }
	.hero-cta .btn { flex: 1 1 auto; text-align: center; }
}

/* ---------- category and listing pages ---------- */
.catpage { padding-top: 6px; }
.cat-head { padding: 10px 0 18px; }
.cat-head h1 { font-size: clamp(30px, 3.6vw, 44px); margin: 0 0 6px; }
.cat-count { margin: 0 0 8px; color: var(--muted); font-weight: 600; }
.cat-intro { max-width: 80ch; color: var(--body); }
.cat-intro p { margin: 0 0 10px; }
.cat-sub { font-size: 24px; margin: 0 0 12px; }
.subcats { margin-bottom: 22px; }
.cat-layout { display: block; }
.cat-layout.has-filters { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.cat-main { min-width: 0; }
.cat-main .sec { padding-top: 26px; }
.filters details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.filters summary { list-style: none; cursor: pointer; padding: 12px 16px; font: 700 19px var(--head); color: var(--ink); border-bottom: 1px solid var(--line2); }
.filters summary::-webkit-details-marker { display: none; }
.filter-box { padding: 6px 14px 14px; }
.filter-box table, .filter-box tbody, .filter-box tr, .filter-box td { display: block; width: auto !important; border: 0; background: none !important; padding: 0; }
.filter-box .contentBoxHeading, .filter-box .contentBoxHeadingCenter, .filter-box .infoBoxHeading, .filter-box img[src*="corner"], .filter-box img[src*="pixel"] { display: none; }
.filter-box td { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.filter-box b { display: block; color: var(--ink); font: 700 15px var(--text); margin-bottom: 4px; }
.filter-box select { width: 100%; font: 15px var(--text); padding: 9px 10px; border: 1px solid #cfc9c0; border-radius: 8px; background: #fff; color: var(--ink); }
.filter-box select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(212, 42, 31, .15); }
.filter-box form { margin: 0; }
.filter-box a { font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 0 0 12px; font-size: 14.5px; color: var(--muted); }
.sorts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sorts a, .sorts b { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: var(--ink); font-weight: 500; }
.sorts b { background: var(--ink); color: #fff; border-color: var(--ink); }
.sorts a:hover { border-color: var(--red); color: var(--red-d); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cat-layout:not(.has-filters) .grid-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stock { margin: 0; font-size: 13.5px; font-weight: 600; }
.stock.in { color: var(--ok); }
.stock.in::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.stock.out { color: var(--muted); }
.card-price s { color: var(--muted); font: 500 15px var(--text); }
.btn-sm { padding: 9px 14px; font-size: 14.5px; text-align: center; margin-top: 4px; }
.card .btn-line { box-shadow: inset 0 0 0 2px var(--line); }
.pager { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 15px; }
.pager a, .pager b, .pager strong { min-width: 38px; text-align: center; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: var(--ink); }
.pager b, .pager strong { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager a:hover { border-color: var(--red); color: var(--red-d); }
.empty { background: var(--panel); border: 1px dashed var(--line); border-radius: var(--r); padding: 22px; }
.guide { margin-top: 34px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 26px; max-width: 100%; }
.guide h2, .guide h3 { margin: 18px 0 8px; }
.guide h2:first-child, .guide h3:first-child { margin-top: 0; }
.guide p, .guide li { max-width: 80ch; }
.guide table { border-collapse: collapse; margin: 10px 0; display: block; overflow-x: auto; }
.guide th, .guide td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
@media (max-width: 1080px) {
	.grid-3, .cat-layout:not(.has-filters) .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cat-layout.has-filters .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
	.cat-layout.has-filters { grid-template-columns: 1fr; gap: 14px; }
	.filters details:not([open]) summary { border-bottom: 0; }
}
@media (max-width: 640px) {
	.grid-3, .cat-layout:not(.has-filters) .grid-3, .cat-layout.has-filters .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.guide { padding: 16px; }
}
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.crumbs li { display: inline; }
.crumbs meta { display: none; }
.cat-intro .more summary { cursor: pointer; color: var(--red-d); font-weight: 600; display: inline-block; margin: 2px 0 8px; }
.cat-intro .more[open] summary { margin-bottom: 10px; }
.filter-box br { display: none; }
.filter-box td { margin-top: 12px; }
.filter-box td:first-child { margin-top: 4px; }
.filters summary { display: flex; justify-content: space-between; align-items: center; }
.filters summary::after { content: ""; width: 9px; height: 9px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s; }
.filters details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }

/* ---------- product page ---------- */
.pdp { padding-top: 8px; }
.pdp-msg { margin: 6px 0 14px; }
.pdp-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.pdp-gallery { position: sticky; top: 14px; }
.pdp-photo { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); aspect-ratio: 1; }
.pdp-photo img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.pdp-more-images { margin-top: 10px; }
.pdp-more-images table, .pdp-more-images tbody, .pdp-more-images tr { display: flex; flex-wrap: wrap; gap: 8px; width: auto !important; }
.pdp-more-images td { display: block; padding: 0; width: auto !important; }
.pdp-more-images img { width: 84px; height: 84px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.pdp-buy h1 { font-size: clamp(28px, 3vw, 38px); margin: 0 0 6px; }
.pdp-model { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.pdp-model span { font-weight: 600; color: var(--ink); }
.pdp-keys { margin: 0 0 14px; padding-left: 20px; }
.pdp-keys li { margin: 2px 0; }
.pdp-price { font: 800 40px/1 var(--head); color: var(--ink); margin: 6px 0 4px; }
.pdp-price small { font: 500 14px var(--text); color: var(--muted); }
.pdp-price .exp { display: block; margin-top: 6px; font: 500 15px var(--text); color: var(--muted); }
.pdp-each { margin: 4px 0 0; font-weight: 600; color: var(--ink); }
.pdp-buy .stock { margin: 10px 0 14px; font-size: 15px; }
.pdp-options { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin: 0 0 14px; }
.pdp-label { margin: 0 0 6px; font-weight: 700; color: var(--ink); }
.pdp-opt { display: grid; gap: 4px; margin: 6px 0; }
.pdp-opt select, .pdp-opt input[type="text"] { font: 15px var(--text); padding: 9px 10px; border: 1px solid #cfc9c0; border-radius: 8px; background: #fff; max-width: 100%; }
.pdp-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 0 0 16px; }
.qty { display: inline-flex; border: 2px solid var(--char); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 42px; border: 0; background: transparent; font: 600 22px var(--text); color: var(--ink); cursor: pointer; }
.qty button:hover { background: var(--line2); }
.qty input { width: 58px; border: 0; text-align: center; font: 700 18px var(--text); color: var(--ink); background: transparent; }
.qty input:focus { outline: none; }
.btn-add { flex: 1 1 180px; padding: 14px 22px; font-size: 17px; }
.pdp-oos { margin: 0; background: var(--tint); border-radius: var(--r); padding: 12px 14px; font-weight: 600; color: var(--red-d); }
.pdp-qp table { border-collapse: collapse; width: 100% !important; background: var(--panel); border: 1px solid var(--line) !important; border-radius: var(--r); overflow: hidden; }
.pdp-qp table table { border: 0 !important; }
.pdp-qp td { padding: 7px 10px !important; font-size: 14.5px; text-align: center; border-bottom: 1px solid var(--line2); width: auto !important; }
.pdp-qp tr:first-child td { background: var(--paper); font-weight: 700; color: var(--ink); }
.pdp-qp td.qp:first-child { text-align: left; font-weight: 700; color: var(--ink); }
.pdp-qp br { display: none; }
.pdp-delivery { margin: 16px 0 6px; }
.pdp-del { margin: 0 0 10px; padding: 12px 14px; background: #eaf6ee; border-radius: var(--r); color: #164a2b; font-weight: 600; }
.pdp-del small { font-weight: 400; color: #2f5a40; }
.cd2 .cd-trust { border-left-color: var(--red) !important; background: var(--panel) !important; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 0 var(--r) var(--r) 0; font-size: 14.5px !important; padding: 12px 16px !important; }
.cd2 .cd-trust li::before { color: var(--red) !important; }
.pdp-links { display: flex; gap: 16px; font-size: 14.5px; font-weight: 600; }
.pdp-details { margin-top: 34px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 26px; }
.pdp-details h2 { font-size: 26px; margin: 0 0 12px; }
.pdp-desc { max-width: 90ch; }
.pdp-desc table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
.pdp-desc td, .pdp-desc th { border: 1px solid var(--line); padding: 6px 10px; }
.pdp-desc img { max-width: 100%; height: auto; }
.pdp-related { margin-top: 30px; }
.pdp-related table { width: 100% !important; border-collapse: collapse; }
.pdp-related .contentBoxHeading, .pdp-related .contentBoxHeadingCenter { background: none !important; padding: 0 0 10px !important; text-align: left; }
.pdp-related h3, .pdp-related .ap { font: 700 24px var(--head) !important; color: var(--ink); margin: 0; text-align: left; }
.pdp-related .contentBoxContents > tbody > tr, .pdp-related .contentBoxContents > tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pdp-related .contentBoxContents td { display: block; width: auto !important; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px !important; text-align: center; }
.pdp-related .contentBoxContents td img { width: 120px; height: 120px; object-fit: contain; }
.pdp-related h4 { font: 600 14.5px/1.35 var(--text); margin: 8px 0 0; color: var(--ink); }
.pdp-related a { text-decoration: none; }
@media (max-width: 860px) {
	.pdp-top { grid-template-columns: 1fr; gap: 18px; }
	.pdp-gallery { position: static; }
	.pdp-photo { max-width: 460px; margin: 0 auto; }
	.pdp-price { font-size: 34px; }
	.pdp-details { padding: 16px; }
}
@media (max-width: 860px) { .pdp-top { grid-template-columns: minmax(0, 1fr); } }
.pdp-qp { overflow-x: auto; max-width: 100%; }
.pdp-desc, .pdp-desc p, .pdp-desc li, .pdp-desc td, .pdp-desc span, .pdp-desc font, .pdp-desc div { font-family: var(--text) !important; font-size: 16px !important; line-height: 1.6; }
.pdp-desc b, .pdp-desc strong { color: var(--ink); }
.pdp-desc h2, .pdp-desc h3, .pdp-desc h4 { font-family: var(--head) !important; margin: 18px 0 8px; }
@media (max-width: 520px) {
	.pdp-qp td { padding: 6px 4px !important; font-size: 13px; }
	.pdp-qp td.qp:first-child { white-space: normal; }
}
/* the old templates space things with 1px spacer GIFs; with height:auto they grew to full width, so hide them */
.cd2 img[src*="pixel_trans"], .cd2 img[src*="pixel_black"], .cd2 img[src*="pixel_silver"] { display: none !important; }

/* ---------- older pages: basket, checkout, account, contact, info ---------- */
.legacy { max-width: 1100px; }
.cd2 .legacy a.lg_green_button, .cd2 .legacy input.lg_green_button, .cd2 .legacy #lg_green_button, .cd2 .legacy a.sm_grey_button, .cd2 .legacy input.sm_grey_button, .cd2 .legacy .red_button {
	display: inline-block; font: 700 15.5px var(--text); padding: 11px 20px; border: 0; border-radius: 999px; text-decoration: none; cursor: pointer; line-height: 1.2; }
.cd2 .legacy a.lg_green_button, .cd2 .legacy input.lg_green_button, .cd2 .legacy #lg_green_button { background: var(--ok); color: #fff; }
.cd2 .legacy a.lg_green_button:hover, .cd2 .legacy input.lg_green_button:hover { background: var(--ok-d); color: #fff; }
.cd2 .legacy a.sm_grey_button, .cd2 .legacy input.sm_grey_button { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.cd2 .legacy a.sm_grey_button:hover, .cd2 .legacy input.sm_grey_button:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.cd2 .legacy .red_button { background: var(--tint); color: var(--red-d); cursor: default; }
.cd2 .legacy a.lg_green_button[href*="checkout_shipping"] { background: var(--red); font-size: 17px; padding: 14px 30px; }
.cd2 .legacy a.lg_green_button[href*="checkout_shipping"]:hover { background: var(--red-d); }
.cd2 .legacy a.lg_green_button:not([href*="checkout"]) { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.cd2 .legacy a.lg_green_button:not([href*="checkout"]):hover { box-shadow: inset 0 0 0 2px var(--ink); }
.legacy .productListing { width: 100% !important; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.legacy .productListing td { border-bottom: 1px solid var(--line2); padding: 10px 12px; vertical-align: middle; }
.legacy .productListing-heading, .legacy .productListing-heading a { background: var(--paper); font-weight: 700 !important; color: var(--ink) !important; text-decoration: none; }
.legacy .productListing img { max-width: 90px; border-radius: 6px; }
.legacy .contentBoxHeading, .legacy .infoBoxHeading { background: none !important; }
.legacy .contentBoxHeadingCenter, .legacy .infoBoxHeading td, .legacy td.infoBoxHeading { font: 700 21px var(--head) !important; color: var(--ink) !important; padding: 18px 0 8px !important; text-align: left !important; background: none !important; }
.legacy .contentBox, .legacy table.infoBox { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); border-collapse: separate; }
.legacy .contentBoxContents, .legacy .infoBoxContents, .legacy .infoBox .infoBoxContents { background: transparent !important; }
.legacy .main_table_heading_inner, .legacy .main_table_heading { background: none !important; }
.legacy td.main, .legacy td.smallText, .legacy .smallText { font-size: 15px !important; }
.legacy label { font-weight: 600; color: var(--ink); }
.legacy .inputRequirement { color: var(--red-d); font-size: 13px !important; }
.legacy fieldset { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 14px 16px; margin: 0 0 16px; }
.legacy legend { font: 700 19px var(--head); color: var(--ink); padding: 0 6px; }
.legacy .messageStackSuccess { background: #eaf6ee; color: #164a2b; border-radius: 8px; padding: 10px 12px; }
.legacy .checkoutBarFrom, .legacy .checkoutBarTo, .legacy .checkoutBarCurrent { font-size: 13.5px !important; }
.legacy .checkoutBarCurrent { color: var(--red-d) !important; font-weight: 700; }
.legacy .moduleRow, .legacy .moduleRowOver, .legacy .moduleRowSelected { border-radius: 8px; }
.legacy .moduleRowSelected { background: var(--tint) !important; }
.legacy .moduleRowOver { background: var(--line2) !important; cursor: pointer; }
@media (max-width: 760px) {
	.legacy .productListing td { padding: 8px 6px; font-size: 14px !important; }
	.legacy .productListing img { max-width: 60px; }
	.legacy table[width] { width: 100% !important; }
}
.cat-layout.has-filters .cd2-listing .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .cat-layout.has-filters .cd2-listing .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.legacy .cd2-listing { margin-top: 10px; }
/* old page tables that hold the new product grid (search results, new products) use the full width */
.legacy table:has(.cd2-listing), .legacy td:has(> .cd2-listing), .legacy td:has(.cd2-listing) { width: 100% !important; max-width: none !important; }
.legacy:has(.cd2-listing) { max-width: 1280px; }
@media (max-width: 760px) {
	.legacy td, .legacy th { white-space: normal !important; }
	.legacy input[type="text"], .legacy input[type="email"], .legacy input[type="password"], .legacy input[type="tel"], .legacy select, .legacy textarea { width: 100% !important; max-width: 100%; min-width: 0; }
	.legacy textarea { min-height: 110px; }
	.legacy table:not(.productListing) td { display: block; width: auto !important; }
	.legacy table:not(.productListing) td[align="right"], .legacy table:not(.productListing) td.tdright { text-align: left !important; }
	.legacy .productListing { display: block; overflow-x: auto; }
}
@media (max-width: 760px) {
	.legacy table:not(.productListing), .legacy table:not(.productListing) > tbody, .legacy table:not(.productListing) > tbody > tr, .legacy table:not(.productListing) > tr { display: block; width: 100% !important; border-spacing: 0; }
	.legacy table:not(.productListing) td { padding: 4px 0 !important; }
}
@media (max-width: 760px) {
	/* basket and other product tables: one compact card per line instead of stacked cells */
	.legacy .productListing { display: block; overflow: visible; }
	.legacy .productListing > tbody { display: block; }
	.legacy .productListing tr { display: grid !important; grid-template-columns: 30px repeat(3, minmax(0, 1fr)); gap: 8px 10px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line2); }
	.legacy .productListing tr:has(.productListing-heading) { display: none !important; }
	.legacy .productListing td { display: block !important; border: 0 !important; padding: 0 !important; }
	.legacy .productListing > tbody > tr > td:nth-child(1) { grid-column: 1; grid-row: 1; }
	.legacy .productListing > tbody > tr > td:nth-child(2) { grid-column: 2 / -1; grid-row: 1; }
	.legacy .productListing > tbody > tr > td:nth-child(3) { grid-column: 2; }
	.legacy .productListing > tbody > tr > td:nth-child(4) { grid-column: 3; text-align: right !important; }
	.legacy .productListing > tbody > tr > td:nth-child(5) { grid-column: 4; text-align: right !important; font-weight: 700; }
	.legacy .productListing > tbody > tr > td:nth-child(4)::before { content: "Each "; font-weight: 400; color: var(--muted); font-size: 13px; }
	.legacy .productListing > tbody > tr > td:nth-child(5)::before { content: "Total "; font-weight: 400; color: var(--muted); font-size: 13px; }
	.legacy .productListing td table, .legacy .productListing td table > tbody, .legacy .productListing td table > tbody > tr { display: flex !important; align-items: center; gap: 10px; width: auto !important; padding: 0 !important; border: 0 !important; }
	.legacy .productListing td input[type="text"] { width: 70px !important; }
}
@media (max-width: 760px) {
	/* white panels on old pages: keep text off the panel edge once their tables are stacked */
	.legacy .contentBox, .legacy table.infoBox, .legacy fieldset { padding: 12px 14px !important; }
	.legacy .contentBox .contentBox, .legacy table.infoBox table.infoBox { padding: 0 !important; border: 0; }
}

/* ---------- Nimbus Cable Depot identity, clean version (aws 2026-10-27) ----------
   The old logo (Nimbus script, outlined CABLE, red DEPOT pill) drawn flat on a white header; one text family in sentence
   case; red is the brand colour, green only for stock/add to basket, the old orange as a small accent on dark areas. */
:root { --orange: #f39800; --logo-wide: "Michroma", "Eurostile", "Arial Black", Arial, sans-serif; --logo-script: "Kaushan Script", "Brush Script MT", cursive; }
.cd2 h1, .cd2 h2, .cd2 h3 { font-weight: 700; letter-spacing: -.2px; }

/* header: white, one row - logo, search, account, basket */
.topbar { font-size: 13px; }
.topbar .tb-help b { color: var(--orange); }
.hdr { background: var(--panel); border-bottom: 0; }
.hdr-row { padding-top: 14px; padding-bottom: 14px; }
.logo { position: relative; align-items: center; gap: 9px; font: 400 27px/1 var(--logo-wide); letter-spacing: .5px; padding-top: 13px; }
.logo .lg-nimbus { position: absolute; left: 1px; top: -3px; font: 400 17px/1 var(--logo-script); color: var(--red); text-transform: none; letter-spacing: 0; transform: rotate(-4deg); }
.logo .lg-cable { color: transparent; -webkit-text-stroke: 1.4px var(--red); }
.logo .lg-depot { color: #fff; -webkit-text-stroke: .6px #fff; background: var(--red); padding: 7px 14px 6px; border-radius: 11px; }
.logo:hover .lg-depot { background: var(--red-d); }
.search { border: 1.5px solid #b9bcc2; border-radius: 10px; max-width: 680px; }
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 25, 29, .08); }
.search input { padding: 12px 16px; font-weight: 400; }
.search button { background: var(--ink); width: 54px; }
.search button:hover { background: var(--red); }
.hdr-acts { align-items: center; gap: 8px; }
.hdr-acts a { flex-direction: row; gap: 7px; padding: 10px 12px; font-size: 15px; }
.hdr-acts a.basket { background: var(--red); color: #fff; border-radius: 10px; padding: 10px 16px; }
.hdr-acts a.basket:hover { background: var(--red-d); color: #fff; }
.hdr-acts .count { position: static; min-width: 22px; height: 22px; line-height: 22px; background: #fff; color: var(--red-d); }

/* department menu: a quiet row of text links under the header */
.nav { background: var(--panel); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line); }
.nav-row { gap: 0; }
.alldepts summary { background: none; color: var(--ink); font: 600 15px var(--text); letter-spacing: 0; padding: 12px 16px 12px 0; }
.alldepts[open] summary, .alldepts summary:hover { background: none; color: var(--red-d); }
.nav-main a { color: var(--ink); font: 500 15px var(--text); letter-spacing: 0; padding: 12px 13px; }
.nav-main a:hover { color: var(--red-d); background: none; }

/* headings and sections */
.sec-head h2 { font-size: 27px; }
.cat-head h1 { font-size: clamp(27px, 3vw, 36px); }
.dept strong, .eth-tile strong, .filters summary { font-weight: 600; }
.card-price, .pdp-price { font-family: var(--text); font-weight: 700; }
.card-price { font-size: 20px; }
.hero-facts strong { font-family: var(--text); font-weight: 700; font-size: 26px; }

/* homepage hero: the slogan once, the old welcome line as the h1, popular links beside it */
.hero { background: var(--panel); }
.hero-row { padding-top: 40px; padding-bottom: 40px; gap: 40px; }
.hero-slogan { margin: 0 0 14px; font: 700 clamp(32px, 4.2vw, 52px)/1.05 var(--text); letter-spacing: -1px; color: var(--ink); }
.hero-slogan em { font-style: normal; color: var(--red); }
.hero h1 { font-size: clamp(18px, 1.6vw, 21px) !important; font-weight: 600; margin: 0 0 10px !important; color: var(--body); letter-spacing: 0; }
.hero .lead { font-size: 17px; color: var(--muted); margin: 0 0 22px; max-width: 56ch; }
.popular { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.popular h2 { font-size: 19px; margin: 0 0 12px; }
.popular ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.popular a { display: block; padding: 8px 14px; border: 1px solid #cfd2d7; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.popular a:hover { border-color: var(--red); color: var(--red-d); }
.facts { background: var(--panel); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0 auto; padding-top: 14px; padding-bottom: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 20px; }
.facts li { font-size: 14.5px; color: var(--muted); }
.facts b { color: var(--ink); }

/* ethernet colour strip */
.eth-sub { margin: 4px 0 16px; color: var(--muted); }
.eth-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.eth-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 16px 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink) !important; }
.eth-tile:hover { border-color: var(--ink); }
.eth-tile img { height: 76px; width: auto; object-fit: contain; margin-bottom: 6px; }
.eth-tile strong { font-size: 16px; }
.eth-tile small { color: var(--muted); font-size: 13.5px; }

/* trust row: the old payment logos + Help & Advice (footer and basket) */
.trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 18px; padding-bottom: 18px; }
.trust p, .ftr .trust p { margin: 0; max-width: none; }
.trust-cards { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.trust-cards img { background: #fff; border-radius: 5px; padding: 2px 3px; height: 32px; width: auto; }
.trust-label { font-weight: 600; color: var(--ink); margin-right: 4px; }
.trust-help b { color: var(--ink); }
.legacy .trust { margin-top: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.trust-dark { border-top: 1px solid #30343b; }
.trust-dark .trust-label { color: #fff; }
.trust-dark .trust-help b { color: var(--orange); }
.trust-dark .trust-help a { color: #fff; font-weight: 600; }
.ftr h2 { color: var(--orange); font-size: 16px; font-weight: 600; }
.ftr .logo-ftr { font-size: 22px; }
.ftr .logo-ftr .lg-nimbus { font-size: 15px; }

@media (max-width: 1000px) {
	.facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) { .eth-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
	.logo { font-size: 20px; gap: 6px; padding-top: 11px; }
	.logo .lg-nimbus { font-size: 13px; top: -2px; }
	.logo .lg-depot { padding: 5px 10px 4px; border-radius: 8px; }
	.hdr-acts a { padding: 8px; }
	.hdr-acts a.basket { padding: 8px 11px; }
	.hdr-acts a span { display: none; }
	.nav-main { display: none; }
	.alldepts summary { padding: 11px 0; }
	.eth-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.eth-tile img { height: 60px; }
	.popular { padding: 18px; }
	.sec-head { flex-wrap: wrap; }
}
@media (max-width: 400px) {
	.logo { font-size: 17.5px; }
	.logo .lg-nimbus { font-size: 12px; }
}
.hero-slogan span, .hero-slogan em { white-space: nowrap; }
.dept strong { font-size: 16.5px; font-weight: 600; line-height: 1.25; }
.legacy .pageHeading, .legacy h1 { font-size: 28px !important; font-weight: 700 !important; }

/* aws 2026-10-29: product code + stock count line on product cards */
.card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; margin: 0; font-size: 12.5px; line-height: 1.4; }
.card-meta .card-code { color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .01em; overflow-wrap: anywhere; }
.card-meta .stock { margin: 0; font-size: 12.5px; white-space: nowrap; }
.card-meta .stock.in::before { width: 7px; height: 7px; margin-right: 5px; }

/* aws 2026-10-29 basket ex VAT prices */
.legacy .exvat { display: inline-block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.topbar a.tb-terms { font-weight: 400; color: #d9dce1; text-decoration: underline; } /* aws 2026-10-29 */
