/*
Theme Name:   ToolPoint Solutions
Theme URI:    https://github.com/LT-Mhuggett/LT-ToolPointSolutions
Description:  Child theme of Storefront for the ToolPoint Solutions WooCommerce store. Dark industrial workshop styling built to docs/source/toolpoint-homepage-mockup.html.
Author:       Leading Talent
Author URI:   https://leadingtalent.co.uk
Template:     storefront
Version:      0.4.8
Requires PHP: 8.1
License:      Proprietary
Text Domain:  toolpoint
*/

/* ==========================================================================
   Fonts — self-hosted.

   The mockup loaded Oswald and Inter from fonts.googleapis.com. That is not
   carried over: requesting fonts from Google's CDN discloses every visitor's
   IP address to a third country, which has been held to breach GDPR, and it
   adds a render-blocking request to another origin. Variable woff2 subsets
   (latin) are served from this theme instead — 70 KB for both families.
   ========================================================================== */

@font-face {
	font-family: 'Inter';
	src: url('assets/fonts/inter-var-latin.woff2') format('woff2-variations'),
	     url('assets/fonts/inter-var-latin.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Oswald';
	src: url('assets/fonts/oswald-var-latin.woff2') format('woff2-variations'),
	     url('assets/fonts/oswald-var-latin.woff2') format('woff2');
	font-weight: 200 700;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   Brand tokens — design document §2.
   ========================================================================== */

:root {
	--tp-blue:        #1B5FAA;
	--tp-blue-dark:   #134577;
	--tp-charcoal:    #1E2126;
	--tp-gunmetal:    #2B2E33;
	--tp-orange:      #F5A623;
	--tp-orange-dark: #D98E12;
	--tp-offwhite:    #F4F5F7;
	--tp-green:       #2E9E5B;
	--tp-muted:       #9AA1AB;
	--tp-border:      #3A3E45;
	--tp-ink:         #1A1A1A;

	/* Footer body text and links. The footer sits on #15181C, darker than the
	   page, so it gets its own token rather than reusing --tp-muted: 10.4:1
	   there, and bright enough that the links read as links. */
	--tp-foot-text:   #C3C9D2;

	--tp-head: 'Oswald', 'Arial Narrow', sans-serif;
	--tp-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	/* ---------------------------------------------------------------------
	   CONTENT WIDTH.

	   Fluid, not fixed. The width is a percentage of the viewport so the
	   layout keeps breathing as the window is resized, with a ceiling so
	   that on a very wide monitor a line of text does not run to 2,500px.

	   Both wrappers read these: .tp-wrap (the header bars and the homepage
	   sections) and .col-full (Storefront's wrapper, which is what the shop,
	   product, cart and checkout pages sit in). They have to move together —
	   change one alone and the logo and menu no longer line up with the
	   product grid beneath them.

	   The percentage widens on smaller screens: 80% of a phone is a column
	   with nothing in it, so the gutters shrink as the screen does.
	   --------------------------------------------------------------------- */
	--tp-wrap:     1800px;  /* the ceiling on a wide monitor */
	--tp-wrap-pct: 80%;     /* the everyday width            */

	/* ---------------------------------------------------------------------
	   HEADER TYPE SIZES — change these four values, nothing else.
	   Every rule that sizes the logo lock-up or the primary menu reads from
	   here, so there is one place to adjust and no hunting through the file.
	   --------------------------------------------------------------------- */
	--tp-logo-size:         22px;  /* the "ToolPoint" wordmark            */
	--tp-logo-tagline-size: 11px;  /* "Solutions · Est. 2024" underneath  */
	--tp-logo-badge-size:   52px;  /* the round logo image                */
	--tp-menu-size:         17px;  /* Shop / Finance / Van Visits / ...   */
}

/* ==========================================================================
   Base
   ========================================================================== */

body,
body.woocommerce,
body.woocommerce-page {
	font-family: var(--tp-body);
	background-color: var(--tp-charcoal);
	color: var(--tp-offwhite);
	line-height: 1.6;
	font-size: 16px;
}

body a { color: var(--tp-offwhite); }
body a:hover { color: var(--tp-orange); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--tp-head);
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--tp-offwhite);
	font-weight: 600;
}

.tp-wrap,
.col-full {
	width: var(--tp-wrap-pct);
	max-width: var(--tp-wrap);
	margin-left: auto;
	margin-right: auto;
	/*
	 * Storefront gives .col-full a 2.6em side padding on top of a fixed
	 * max-width, with box-sizing: content-box, so the real width is the cap
	 * plus 84px. The percentage is the gutter now, so the padding goes and
	 * the box sizes the way the number says it does.
	 */
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
}

/* Narrower screens get proportionally more of themselves. */
@media (max-width: 1024px) { :root { --tp-wrap-pct: 90%; } }
@media (max-width: 600px)  { :root { --tp-wrap-pct: 92%; } }

/* Storefront constrains everything to .col-full. The homepage is full-bleed,
   so header.php omits that wrapper on the front page — see its comment. The
   width has to be unset here as well as the cap, or the rule above would pull
   the front page back in to 80%. */
.site-content { padding-top: 0; }
.tp-front .site-content .col-full { width: 100%; max-width: none; padding: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.tp-btn {
	display: inline-block;
	font-family: var(--tp-head);
	text-transform: uppercase;
	letter-spacing: .03em;
	padding: 14px 28px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	border: 2px solid transparent;
	transition: background-color .2s, color .2s, border-color .2s;
	cursor: pointer;
}

.tp-btn--orange { background: var(--tp-orange); color: var(--tp-ink); }
.tp-btn--orange:hover,
.tp-btn--orange:focus { background: var(--tp-orange-dark); color: var(--tp-ink); }

.tp-btn--outline { border-color: var(--tp-offwhite); color: var(--tp-offwhite); }
.tp-btn--outline:hover,
.tp-btn--outline:focus { background: var(--tp-offwhite); color: var(--tp-charcoal); }

.tp-btn--blue { background: var(--tp-blue); color: #fff; }
.tp-btn--blue:hover,
.tp-btn--blue:focus { background: var(--tp-blue-dark); color: #fff; }

/* Visible keyboard focus. The mockup had none; on a dark palette an outline
   is the only affordance keyboard users get. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.tp-btn:focus-visible {
	outline: 3px solid var(--tp-orange);
	outline-offset: 2px;
}

.tp-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--tp-orange);
	color: var(--tp-ink);
	padding: 12px 20px;
	z-index: 200;
	font-weight: 700;
}
.tp-skip-link:focus {
	left: 0;
	color: var(--tp-ink);
}

/* ==========================================================================
   Top strip + header
   ========================================================================== */

.tp-topstrip {
	background: var(--tp-blue);
	font-size: 13px;
	padding: 7px 0;
	text-align: center;
	font-weight: 500;
	color: #fff;
}

.tp-header {
	background: var(--tp-charcoal);
	border-bottom: 1px solid #383C42;
	position: sticky;
	top: 0;
	z-index: 50;
}

.tp-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
}

.tp-logo { display: flex; align-items: center; gap: 12px; }
.tp-logo:hover { color: var(--tp-offwhite); }

.tp-logo__badge {
	width: var(--tp-logo-badge-size);
	height: var(--tp-logo-badge-size);
	flex: none;
	border-radius: 50%;
	/* Light stop was #2F7FD4, which put the white "TP" at 4.11:1 — just under
	   the 4.5:1 this size needs. #2A74C6 is 4.76:1 at the same hue. Only shows
	   until a logo image is uploaded; see .tp-logo__badge--img below. */
	background: radial-gradient(circle at 35% 35%, #2A74C6, var(--tp-blue-dark));
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--tp-head);
	font-weight: 700;
	font-size: 15px;
	border: 3px solid #3A86D8;
	color: #fff;
}
/* With a real logo uploaded, the placeholder's gradient fill and blue ring
   would sit *behind* and *around* the artwork, reading as a second border.
   The badge becomes a plain circular mask instead. */
.tp-logo__badge--img {
	background: none;
	border: none;
	overflow: hidden;
	padding: 0;
}
.tp-logo__badge--img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

.tp-logo--footer { margin-bottom: 16px; }

.tp-logo__text {
	font-family: var(--tp-head);
	font-size: var(--tp-logo-size);
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.1;
}
.tp-logo__text span {
	display: block;
	font-size: var(--tp-logo-tagline-size);
	color: var(--tp-orange);
	letter-spacing: .25em;
}

.tp-menu ul {
	display: flex;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-weight: 600;
	font-size: var(--tp-menu-size);
}
.tp-menu li { margin: 0; }

/* Specificity note: Storefront ships `ul.menu li.current-menu-item > a
   { color:#43454b }` — dark grey, near-invisible on charcoal — and
   `.site-header { color:#9aa0a7 }`, which the links inherit. Both are
   matched or beaten below rather than overridden with !important, so
   these rules stay easy to adjust later. */
.tp-menu ul.menu li a,
.tp-menu ul li a {
	color: #FFFFFF;
	font-size: var(--tp-menu-size);
	font-weight: 600;
	line-height: 1.2;
	display: inline-block;
	padding: 4px 0;
	border-bottom: 2px solid transparent;
}
.tp-menu ul.menu li a:hover,
.tp-menu ul.menu li a:focus,
.tp-menu ul li a:hover,
.tp-menu ul li a:focus {
	color: var(--tp-orange);
}

/* Current page: stays white as asked, with an orange rule underneath so
   there is still an active-state affordance. */
.tp-menu ul.menu li.current-menu-item > a,
.tp-menu ul.menu li.current_page_item > a,
.tp-menu ul.menu li.current-menu-ancestor > a {
	color: #FFFFFF;
	border-bottom-color: var(--tp-orange);
}

.tp-nav__actions { display: flex; align-items: center; gap: 16px; }

.tp-cart { position: relative; font-size: 22px; line-height: 1; }
.tp-cart__count {
	position: absolute;
	top: -6px;
	right: -10px;
	background: var(--tp-orange);
	color: var(--tp-ink);
	font-style: normal;
	font-size: 11px;
	font-weight: 700;
	border-radius: 50%;
	min-width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

.tp-call {
	background: var(--tp-orange);
	color: var(--tp-ink);
	padding: 10px 18px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 14px;
	font-family: var(--tp-head);
	white-space: nowrap;
}
.tp-call:hover { background: var(--tp-orange-dark); color: var(--tp-ink); }

/* Mobile menu toggle — the mockup simply hid the nav under 900px, which
   leaves phone users with no navigation at all. */
.tp-menu-toggle {
	display: none;
	background: transparent;
	border: 2px solid var(--tp-border);
	color: var(--tp-offwhite);
	border-radius: 6px;
	padding: 8px 12px;
	font-family: var(--tp-head);
	text-transform: uppercase;
	font-size: 14px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.tp-hero {
	background:
		linear-gradient(rgba(20,23,28,.72), rgba(20,23,28,.88)),
		repeating-linear-gradient(45deg, #22262C 0 24px, #1D2127 24px 48px);
	background-size: cover;
	background-position: center;
	padding: 110px 0 90px;
	position: relative;
	overflow: hidden;
}
.tp-hero::after {
	content: "";
	position: absolute;
	right: -120px;
	top: -120px;
	width: 420px;
	height: 420px;
	border: 38px solid rgba(27,95,170,.25);
	border-radius: 50%;
	pointer-events: none;
}
.tp-hero__inner { position: relative; z-index: 1; }
.tp-hero h1 {
	font-size: clamp(34px, 6vw, 56px);
	line-height: 1.05;
	max-width: 640px;
	margin: 0;
}
.tp-hero h1 em { color: var(--tp-orange); font-style: normal; }
.tp-hero p {
	margin: 22px 0 34px;
	font-size: clamp(16px, 2.2vw, 19px);
	color: #C9CFD7;
	max-width: 560px;
}
.tp-hero__btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   Trust bar
   ========================================================================== */

.tp-trust { background: var(--tp-blue); padding: 18px 0; }
.tp-trust .tp-wrap {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}
.tp-trust div {
	font-weight: 600;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #fff;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.tp-section { padding: 72px 0; }
.tp-section--tight { padding-top: 0; }

.tp-sec-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 36px;
}
.tp-sec-head h2 { font-size: clamp(26px, 4vw, 34px); margin: 0; }
.tp-sec-head h2::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	background: var(--tp-orange);
	margin-top: 10px;
}
.tp-sec-head a { color: var(--tp-orange); font-weight: 600; font-size: 14px; }

/* Categories */
.tp-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.tp-cat {
	background: var(--tp-gunmetal);
	border-radius: 10px;
	padding: 28px 18px;
	text-align: center;
	border: 1px solid var(--tp-border);
	transition: border-color .2s, transform .2s;
	display: block;
	color: var(--tp-offwhite);
}
.tp-cat:hover { border-color: var(--tp-blue); transform: translateY(-4px); color: var(--tp-offwhite); }
.tp-cat__ic { font-size: 36px; margin-bottom: 12px; line-height: 1; }
.tp-cat__ic img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.tp-cat h3 { font-size: 16px; font-weight: 600; margin: 0; }
.tp-cat p { font-size: 12px; color: var(--tp-muted); margin-top: 4px; margin-bottom: 0; }

/* Product cards */
.tp-prods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tp-prod {
	background: var(--tp-gunmetal);
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--tp-border);
	transition: border-color .2s;
	display: flex;
	flex-direction: column;
}
.tp-prod:hover { border-color: var(--tp-orange); }
.tp-prod__img {
	height: 170px;
	background: linear-gradient(160deg, #33383F, #24282E);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 52px;
	position: relative;
	overflow: hidden;
}
.tp-prod__img img { width: 100%; height: 100%; object-fit: cover; }
.tp-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--tp-orange);
	color: var(--tp-ink);
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 4px;
	text-transform: uppercase;
	font-family: var(--tp-head);
	letter-spacing: .04em;
	z-index: 2;
}
/* Dark text, not white: white on this green is 3.4:1, and the badge is 11px
   bold, which needs 4.5:1. Ink on the same green is 5.1:1, keeps the brand
   token untouched, and matches how the orange Sale badge above is treated. */
.tp-badge--stock { background: var(--tp-green); color: var(--tp-ink); }
.tp-prod__info { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.tp-prod__info h3 {
	font-family: var(--tp-body);
	text-transform: none;
	letter-spacing: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	min-height: 42px;
	margin: 0;
}
.tp-price { margin-top: 10px; font-size: 22px; font-weight: 700; }
.tp-price del, .tp-price s {
	color: var(--tp-muted);
	font-size: 15px;
	font-weight: 400;
	margin-right: 8px;
	text-decoration: line-through;
}
.tp-price ins { text-decoration: none; }
.tp-weekly { color: var(--tp-orange); font-size: 13px; font-weight: 600; margin-top: 2px; }
.tp-prod .tp-btn { width: 100%; text-align: center; margin-top: 14px; padding: 11px; }
.tp-prod__spacer { flex: 1; }

.tp-empty {
	background: var(--tp-gunmetal);
	border: 1px dashed var(--tp-border);
	border-radius: 10px;
	padding: 40px 24px;
	text-align: center;
	color: var(--tp-muted);
}

/* Finance banner */
.tp-finance {
	background: linear-gradient(100deg, var(--tp-blue) 55%, var(--tp-blue-dark));
	padding: 56px 0;
}
.tp-finance .tp-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.tp-finance h2 { font-size: clamp(24px, 3.6vw, 32px); max-width: 560px; margin: 0; color: #fff; }
.tp-finance h2 em { color: var(--tp-orange); font-style: normal; }
.tp-finance p { color: #CFE0F2; margin: 8px 0 0; max-width: 520px; }
/* The disclaimer is 11px on the blue gradient, where the mockup's #9DBEDE was
   3.3:1 — below the 4.5:1 small text needs, and this is the one line on the
   page a reader must be able to read. #D6E6F5 is 5.1:1. */
.tp-finance small { display: block; margin-top: 10px; font-size: 11px; color: #D6E6F5; max-width: 620px; }

/* Van section */
.tp-van .tp-wrap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

/* The van strip also runs on the Van Visits page (page-van-visits.php), where
   header.php has already opened .col-full. Both .col-full and .tp-wrap are 80%
   of their parent in this theme, so nesting them would show the section at 64%
   — visibly narrower than the same section on the homepage, which is outside
   .col-full entirely. Let the inner wrap fill the outer one instead. */
.col-full .tp-van .tp-wrap {
	width: 100%;
	max-width: none;
}
.tp-van__img {
	background:
		linear-gradient(rgba(27,95,170,.25), rgba(27,95,170,.25)),
		repeating-linear-gradient(-45deg, #2B2F36 0 20px, #252930 20px 40px);
	border-radius: 12px;
	height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 80px;
	border: 1px solid var(--tp-border);
	overflow: hidden;
}
.tp-van__img img { width: 100%; height: 100%; object-fit: cover; }

/*
 * Delivery-area map. The SVG has no background of its own, so the striped
 * panel above shows through it -- that is deliberate, not an oversight.
 */
.tp-map { display: block; width: 100%; height: 100%; }
.tp-map__svg { display: block; width: 100%; height: 100%; }
.tp-map--van { padding: 10px; box-sizing: border-box; }
.tp-van h2 { font-size: clamp(24px, 3.6vw, 32px); margin: 0 0 16px; }
.tp-van h2::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	background: var(--tp-orange);
	margin-top: 10px;
}
.tp-van p { color: var(--tp-muted); }
.tp-towns { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 28px; }
.tp-towns span {
	background: var(--tp-gunmetal);
	border: 1px solid var(--tp-blue);
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
}

/* Reviews */
.tp-reviews { background: var(--tp-gunmetal); }
.tp-revs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tp-rev {
	background: var(--tp-charcoal);
	border-radius: 10px;
	padding: 26px;
	border: 1px solid var(--tp-border);
}
.tp-stars { color: var(--tp-orange); letter-spacing: 3px; margin-bottom: 12px; }
.tp-rev p { font-size: 14.5px; color: #CFD3D9; margin: 0; }
.tp-rev cite {
	display: block;
	margin-top: 16px;
	font-size: 13px;
	color: var(--tp-muted);
	font-weight: 600;
	font-style: normal;
	font-family: var(--tp-head);
	text-transform: uppercase;
}

/* Social */
.tp-social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tp-post {
	aspect-ratio: 1;
	background: linear-gradient(150deg, #31363D, #23272D);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 38px;
	border: 1px solid var(--tp-border);
	position: relative;
	transition: border-color .2s;
	overflow: hidden;
}
.tp-post:hover { border-color: var(--tp-blue); }
.tp-post span { position: absolute; bottom: 10px; left: 12px; font-size: 12px; color: var(--tp-muted); }

/* ==========================================================================
   Footer

   Two Storefront specificity traps live in here — see the notes on the
   individual rules. Both are beaten on specificity rather than with
   !important, so the values stay easy to change later.
   ========================================================================== */

/* `.site-footer { background-color: transparent }` further down this file
   (the Storefront override block) is a later rule of equal weight, so it was
   winning and the footer rendered on the body charcoal instead of this
   near-black. Matching both classes settles it. */
/* The `color` here matters as much as the background: Storefront's
   `.site-footer { color: #6d6d6d }` beats the body colour on specificity, so
   anything in the footer without a colour of its own — the wordmark included —
   inherited a mid grey that reads at 3.4:1 on this background. */
.tp-footer,
.tp-footer.site-footer {
	background: #15181C;
	color: var(--tp-foot-text);
	padding: 60px 0 30px;
	border-top: 3px solid var(--tp-blue);
}
/* The wordmark is the one piece of footer text that should hold full weight. */
.tp-logo--footer .tp-logo__text { color: var(--tp-offwhite); }
.tp-foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.tp-foot h4 {
	font-family: var(--tp-head);
	text-transform: uppercase;
	font-size: 15px;
	margin: 0 0 16px;
	color: var(--tp-orange);
}
.tp-foot ul { list-style: none; font-size: 14px; color: var(--tp-foot-text); margin: 0; padding: 0; }
.tp-foot li { margin-bottom: 10px; }
.tp-foot p { font-size: 14px; color: var(--tp-foot-text); }

/* Storefront ships `.site-footer a:not(.button) { color: #2c2d33 }` — two
   classes plus an element, which outweighed the plain `.tp-foot a` this rule
   replaces. Every footer link (Shop, Info, phone, WhatsApp, email) was being
   painted near-black on the near-black footer: about 1.4:1, effectively
   invisible, while the plain text beside it stayed legible. Reported 12 Aug
   2026. #C3C9D2 on #15181C is 10.4:1. */
.tp-footer .tp-foot a,
.tp-footer .tp-foot a:not(.button) {
	color: var(--tp-foot-text);
}
.tp-footer .tp-foot a:hover,
.tp-footer .tp-foot a:focus,
.tp-footer .tp-foot a:not(.button):hover,
.tp-footer .tp-foot a:not(.button):focus {
	color: var(--tp-orange);
}

/* Was #5C636D — 3.0:1 on this background, under the 4.5:1 needed at 12px.
   #7F8794 is 5.1:1 and still recedes from the columns above it. */
.tp-copy {
	text-align: center;
	color: #7F8794;
	font-size: 12px;
	margin-top: 44px;
	padding-top: 22px;
	border-top: 1px solid #2A2E34;
}

/* WhatsApp float */
.tp-wa {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 58px;
	height: 58px;
	background: #25D366;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0,0,0,.4);
	z-index: 60;
}
.tp-wa svg { width: 30px; height: 30px; fill: #fff; }

/* ==========================================================================
   Storefront / WooCommerce overrides
   Storefront ships a light palette; these pull the shop, cart, checkout and
   product templates onto the dark brand.
   ========================================================================== */

/* Clears Storefront's light customizer backgrounds. `.site-footer` is excluded
   from the reset: our footer.php always carries .tp-footer, which paints its
   own near-black, and a blanket transparent here used to override it (equal
   weight, later in the file). Anything else that lands with .site-footer but
   not .tp-footer still gets the reset. */
.site-header,
.storefront-primary-navigation,
.site-footer:not(.tp-footer) { background-color: transparent; }

.site-content,
#content.site-content { background-color: var(--tp-charcoal); }

.woocommerce-breadcrumb,
.woocommerce-breadcrumb a { color: var(--tp-muted); }

/*
 * The "Back" button, inserted into the breadcrumb by toolpoint.js when there
 * is somewhere on this site to go back to. Styled as a control rather than a
 * link so it reads as an action: the crumbs beside it go to fixed places,
 * this one goes wherever you came from.
 */
.woocommerce-breadcrumb .tp-back {
	display: inline-block;
	margin-right: 14px;
	padding: 3px 12px;
	font-family: var(--tp-body);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.7;
	text-transform: none;
	letter-spacing: 0;
	color: var(--tp-offwhite);
	background: var(--tp-gunmetal);
	border: 1px solid var(--tp-border);
	border-radius: 5px;
	cursor: pointer;
	transition: border-color .2s, color .2s;
}
.woocommerce-breadcrumb .tp-back:hover,
.woocommerce-breadcrumb .tp-back:focus {
	border-color: var(--tp-orange);
	color: var(--tp-orange);
}

.storefront-sorting,
.woocommerce-result-count,
.woocommerce-ordering select {
	color: var(--tp-offwhite);
}

ul.products li.product,
.woocommerce ul.products li.product {
	background: var(--tp-gunmetal);
	border: 1px solid var(--tp-border);
	border-radius: 10px;
	padding: 14px;
	transition: border-color .2s;
}
ul.products li.product:hover { border-color: var(--tp-orange); }

/* --------------------------------------------------------------------------
   Category tiles on the shop and category archives.

   The photo on each tile is borrowed from a product inside the category
   (tools/set-category-images.php), so the shapes are whatever the supplier
   shot: a boxed socket set is square, an air hose is wide, a jump pack is
   tall. Left alone the tiles end up different heights and the grid staggers.

   A fixed square with object-fit: contain gives every tile the same footprint.
   `contain` rather than `cover` because these are product photographs — a
   crop takes the end off a long tool. The white ground is the photographs'
   own background, so the letterboxing reads as part of the picture rather
   than as a gap.
   Scoped to a body class so the Customizer can turn it off — see
   "Make category tile images the same size" under ToolPoint: Shop &
   Categories. Without the class the photos render at their own proportions,
   which is WooCommerce's own behaviour.
   -------------------------------------------------------------------------- */

.tp-uniform-cat-tiles .woocommerce ul.products li.product-category img,
.tp-uniform-cat-tiles ul.products li.product-category img {
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: contain;
	background: #fff;
	border-radius: 6px;
	margin-bottom: 12px;
}

/*
 * The product count beside the category name.
 *
 * Storefront styles it as a <mark>, and its rule is `mark { color: #000 }`
 * with `.count { opacity: .5 }` — black at half strength, which on this
 * theme's dark tile is invisible. Both have to be answered, not just the
 * colour: at .5 opacity even white disappears.
 */
.woocommerce ul.products li.product-category mark.count,
ul.products li.product-category mark.count {
	color: var(--tp-offwhite);
	background: transparent;
	opacity: .8;
	font-weight: 400;
}
ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
	font-family: var(--tp-body);
	text-transform: none;
	letter-spacing: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--tp-offwhite);
}
ul.products li.product .price,
.woocommerce ul.products li.product .price {
	color: var(--tp-offwhite);
	font-weight: 700;
	font-size: 18px;
}
ul.products li.product .price del { color: var(--tp-muted); font-weight: 400; }
ul.products li.product .price ins { text-decoration: none; }

/* --------------------------------------------------------------------------
   Block product grids (.wc-block-grid).

   WooCommerce has two sets of product markup and this theme only answered one.
   The classic loop is `ul.products li.product`, styled above; blocks render
   `.wc-block-grid__product` instead, and nothing here matched it.

   Where that shows: the Cart page's empty state is a WooCommerce block
   template carrying a "New in store" heading and a product-new block. Two
   rules in Storefront's Customizer CSS land on it —

       h1, h2, h3, h4, h5, h6, .wc-block-grid__product-title { color: #333333; }
       ul.products li.product .price, ...                    { color: #6d6d6d; }

   The first is the one that bites: #333333 on this theme's #1E2126 page is
   1.4:1, effectively invisible. Our own heading rule never reached it because
   a block product title is a div with its own class, not an h-tag.

   No !important is needed. Storefront prints that CSS inline against
   storefront-woocommerce-style, which is enqueued before the child stylesheet,
   so equal specificity resolves our way on load order alone — the same reason
   the note in functions.php insists the parent do the enqueueing.
   -------------------------------------------------------------------------- */

.wc-block-grid__product-title {
	font-family: var(--tp-body);
	text-transform: none;
	letter-spacing: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--tp-offwhite);
}

.wc-block-grid__product-price,
.wc-block-grid__product-price.price {
	color: var(--tp-offwhite);
	font-weight: 700;
	font-size: 18px;
}

/* The "was" price. Muted on purpose, but muted against this background rather
   than against Storefront's light-theme assumption: #9AA1AB on #1E2126 is
   6.9:1, which stays legible where #6d6d6d (2.6:1) does not. */
.wc-block-grid__product-price del {
	color: var(--tp-muted);
	font-weight: 400;
}

/* WooCommerce wraps the current price in <ins>, which browsers underline. */
.wc-block-grid__product-price ins {
	text-decoration: none;
	color: var(--tp-offwhite);
}

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
	background: var(--tp-orange);
	color: var(--tp-ink);
	font-family: var(--tp-head);
	text-transform: uppercase;
	font-weight: 700;
}

/* Buttons across Woo + Storefront */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
button.button,
input[type="submit"] {
	background-color: var(--tp-blue);
	color: #fff;
	font-family: var(--tp-head);
	text-transform: uppercase;
	letter-spacing: .03em;
	font-weight: 600;
	border-radius: 6px;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
button.button:hover,
input[type="submit"]:hover {
	background-color: var(--tp-blue-dark);
	color: #fff;
}

/* Single product */
.woocommerce div.product .product_title { color: var(--tp-offwhite); }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--tp-offwhite); font-weight: 700; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: var(--tp-gunmetal);
	border-color: var(--tp-border);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--tp-offwhite); }
.woocommerce div.product .woocommerce-tabs .panel {
	background: var(--tp-gunmetal);
	border-radius: 10px;
	padding: 24px;
}

/* Forms, tables, notices */
.woocommerce table.shop_table,
.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
	background: var(--tp-gunmetal);
	border-color: var(--tp-border);
	color: var(--tp-offwhite);
}
.woocommerce-cart .cart-collaterals .cart_totals table td,
.woocommerce-cart .cart-collaterals .cart_totals table th { background: var(--tp-gunmetal); }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="password"], input[type="search"], input[type="url"], textarea, select {
	background: var(--tp-charcoal);
	border: 1px solid var(--tp-border);
	color: var(--tp-offwhite);
	border-radius: 6px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	background: var(--tp-gunmetal);
	color: var(--tp-offwhite);
	border-top-color: var(--tp-orange);
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--tp-orange); }

/* Storefront's own footer/credit is replaced by our footer.php */
.site-footer .site-info { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
	.tp-menu { display: none; }
	.tp-menu.is-open {
		display: block;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--tp-charcoal);
		border-bottom: 1px solid var(--tp-border);
		padding: 12px 24px 20px;
	}
	.tp-menu.is-open ul { flex-direction: column; gap: 0; }
	.tp-menu.is-open li { border-bottom: 1px solid var(--tp-border); }
	.tp-menu.is-open a { display: block; padding: 14px 0; }
	.tp-menu-toggle { display: inline-block; }
	.tp-header .tp-wrap { position: relative; }

	.tp-hero { padding: 70px 0 60px; }
	.tp-cats { grid-template-columns: repeat(2, 1fr); }
	.tp-prods { grid-template-columns: repeat(2, 1fr); }
	.tp-van .tp-wrap { grid-template-columns: 1fr; gap: 28px; }
	.tp-revs { grid-template-columns: 1fr; }
	.tp-social-grid { grid-template-columns: repeat(2, 1fr); }
	.tp-foot { grid-template-columns: 1fr 1fr; }
	.tp-trust .tp-wrap { justify-content: flex-start; }
	.tp-section { padding: 48px 0; }
}

@media (max-width: 560px) {
	.tp-logo__text { font-size: 18px; }
	.tp-logo__badge { width: 44px; height: 44px; font-size: 13px; }
	.tp-call span { display: none; }
	.tp-cats { grid-template-columns: 1fr 1fr; }
	.tp-prods { grid-template-columns: 1fr; }
	.tp-foot { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
	.tp-cat:hover { transform: none; }
}
