/*
Theme Name:   Wiltech
Theme URI:    https://wiltechdigital.co.ke
Description:  Custom Storefront child theme for Wiltech Digital: header with live search, category navigation, Customizer-driven homepage, product cards and product page with WhatsApp ordering, classic cart/checkout and order received page, Contact page template and footer. Self-hosted Bai Jamjuree font, no page builder, no icon font.
Author:       Wiltech Digital
Template:     storefront
Version:      1.0.0
Text Domain:  wiltech
*/

/*
 * HOW THIS FILE IS ORGANISED
 * 1. Fonts       – @font-face rules for the self-hosted Bai Jamjuree files
 * 2. Tokens      – CSS variables (colours, type, spacing, radius, shadows).
 *                  Change the design here, in one place.
 * 3. Base        – body text, headings, links
 * 4. Buttons     – primary (amber) and secondary (blue), with hover/focus
 * 5. Helpers     – page container, show/hide at different screen sizes
 * 6. Header      – white logo/search row, blue menu row with "All
 *                  Categories", category image strip, mobile drawer,
 *                  compact sticky bar on scroll, live search dropdown (6d-2)
 * 7. Icons       – CSS replacements for every Font Awesome icon Storefront used
 * 8. Products    – product cards, product grid, shop page title row, pagination
 * 9. Homepage    – hero, trust strip, product tabs/carousels, deals,
 *                  brands, job tiles, promo banner, "need help" band
 * 10. Footer     – blue footer: logo/about/social, Shop, Customer care,
 *                  Contact us, bottom bar (copyright, Progmark credit)
 * 11. Back to top – floating amber button, bottom-right
 * 12. Product page – gallery + details, price/pill, stock, quantity −/+,
 *                  WhatsApp button, help line, trust box, tabs
 * 13. Forms, cart, checkout – form fields (all forms), classic cart and
 *                  checkout layouts
 * 14. Contact page – cards, form / WhatsApp button, map
 *
 * Mobile-first: base rules are for phones, and @media (min-width) adds
 * changes for bigger screens.
 * Breakpoints: 768px = tablet/desktop layout, 1024px = wide desktop,
 * 1280px = full-width desktop (5 product columns).
 * (CSS variables can't be used inside @media, so these are written out.)
 */


/* ==========================================================================
   1. FONTS
   Bai Jamjuree, latin subset, served from /fonts in this theme.
   font-display: swap shows text immediately in a fallback font, then swaps
   to Bai Jamjuree once it arrives, so text is never invisible while loading.
   ========================================================================== */

@font-face {
	font-family: "Bai Jamjuree";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/bai-jamjuree-latin-400.woff2") format("woff2");
}

@font-face {
	font-family: "Bai Jamjuree";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/bai-jamjuree-latin-500.woff2") format("woff2");
}

@font-face {
	font-family: "Bai Jamjuree";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/bai-jamjuree-latin-600.woff2") format("woff2");
}

@font-face {
	font-family: "Bai Jamjuree";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/bai-jamjuree-latin-700.woff2") format("woff2");
}


/* ==========================================================================
   2. DESIGN TOKENS
   ========================================================================== */

:root {
	/* --- Brand colours ---------------------------------------------------- */
	--color-primary:        #034C8C; /* Wiltech blue */
	--color-primary-dark:   #023A6B; /* blue hover / pressed */
	--color-primary-light:  #E6EEF6; /* pale blue tint for backgrounds */
	--color-accent:         #FFAA01; /* Wiltech amber. Background only, never text on white (too low contrast) */
	--color-accent-dark:    #E69500; /* amber hover / pressed */
	--color-accent-soft:    rgba(255, 170, 1, 0.35); /* see-through amber: search-word marker */

	/* --- Neutrals --------------------------------------------------------- */
	--color-dark:           #14202E; /* near-black with a blue tint: headings, footer */
	--color-text:           #2B3440; /* body text */
	--color-text-muted:     #5F6B7A; /* secondary text, meta info (passes contrast on white) */
	--color-border:         #DDE2E8; /* lines, input borders, card edges */
	--color-surface:        #F4F6F8; /* light grey section background */
	--color-white:          #FFFFFF;

	/* --- Status colours --------------------------------------------------- */
	--color-success:        #1E7E34; /* in stock, success messages */
	--color-sale:           #D32F2F; /* sale badges, out of stock, errors */

	/* --- Roles: what each colour is used for. Components use these ---------- */
	--color-link:           var(--color-primary);
	--color-link-hover:     var(--color-primary-dark);
	--color-focus:          var(--color-primary); /* keyboard focus ring */

	/* --- Typography ------------------------------------------------------- */
	/* System fonts after Bai Jamjuree are the fallback shown while it loads. */
	--font-family-base: "Bai Jamjuree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	/* Size scale in rem (1rem = the browser default, usually 16px). Using rem
	   means sizes respect a visitor's own text-size setting. */
	--font-size-xs:   0.75rem;   /* 12px – tiny labels */
	--font-size-sm:   0.875rem;  /* 14px – meta, captions */
	--font-size-base: 1rem;      /* 16px – body text (never smaller on mobile) */
	--font-size-md:   1.125rem;  /* 18px – lead text, h5 */
	--font-size-card-title: 0.9375rem; /* 15px – product card title (tablet/desktop) */
	--font-size-card-price: 1.0625rem; /* 17px – product card price (tablet/desktop) */
	--card-button-height:   2.5rem;    /* 40px – product card buttons */

	/* Banner overlay text (homepage hero slides and side banners). The slider
	   is 2/3 of the page width, so it's much smaller on tablets: the heading
	   steps down with it (see style.css 9c). */
	--hero-heading-size:        2.75rem;   /* 44px, from 1280px */
	--hero-heading-size-md:     2rem;      /* 32px, 1024–1279px */
	--hero-heading-size-sm:     1.5rem;    /* 24px, 768–1023px */
	--hero-heading-size-mobile: 1.75rem;   /* 28px, phones */
	--hero-sub-size:            1.125rem;  /* 18px */
	--promo-heading-size:       1.375rem;  /* 22px */
	--promo-sub-size:           0.9375rem; /* 15px */
	--overlay-text-shadow:      0 2px 12px rgba(0, 0, 0, 0.25);
	--font-size-lg:   1.25rem;   /* 20px – h4 */
	--font-size-xl:   1.5rem;    /* 24px – h3 */
	/* clamp(min, preferred, max) grows smoothly with screen width, so big
	   headings shrink on phones without extra media queries. */
	--font-size-2xl:  clamp(1.5rem, 1.25rem + 1vw, 1.875rem);  /* 24→30px – h2 */
	--font-size-3xl:  clamp(1.75rem, 1.35rem + 1.75vw, 2.5rem); /* 28→40px – h1 */

	--font-weight-regular:  400;
	--font-weight-medium:   500;
	--font-weight-semibold: 600;
	--font-weight-bold:     700;

	--line-height-tight: 1.2;  /* headings */
	--line-height-base:  1.6;  /* body text */

	/* --- Spacing scale (based on 4px steps) ------------------------------- */
	--space-1: 0.25rem;  /*  4px */
	--space-2: 0.5rem;   /*  8px */
	--space-3: 0.75rem;  /* 12px */
	--space-4: 1rem;     /* 16px */
	--space-5: 1.5rem;   /* 24px */
	--space-6: 2rem;     /* 32px */
	--space-7: 3rem;     /* 48px */
	--space-8: 4rem;     /* 64px */

	/* --- Corners ---------------------------------------------------------- */
	--radius-sm:   4px;
	--radius-md:   8px;
	--radius-lg:   12px;
	--radius-pill: 999px;

	/* --- Shadows (blue-tinted so they look natural next to brand blue) ----- */
	--shadow-sm: 0 1px 2px rgba(20, 32, 46, 0.08);
	--shadow-md: 0 4px 12px rgba(20, 32, 46, 0.10);
	--shadow-lg: 0 12px 28px rgba(20, 32, 46, 0.14);

	/* --- Motion ----------------------------------------------------------- */
	--transition-fast: 150ms ease;
	--transition-drawer: 250ms ease;

	/* --- Other colours ---------------------------------------------------- */
	--color-overlay:        rgba(20, 32, 46, 0.55); /* dark see-through layer behind the drawer */
	--color-on-dark-hover:  rgba(255, 255, 255, 0.12); /* hover tint on blue backgrounds */
	/* WhatsApp green: the ONLY place green is allowed, and only for WhatsApp
	   buttons (cards, product page, cart, contact page, search, homepage
	   "Need help" band). Always with white text. */
	--color-whatsapp:       #25D366; /* WhatsApp's own green */
	--color-whatsapp-dark:  #1DA851; /* hover */
	/* Text on the white banner button (deals banner). Approved exception to
	   the brand colours. About 4.2:1 on white: fine for the bold button text. */
	--color-deals-red:      #E63946;

	/* --- Layout ----------------------------------------------------------- */
	/* Site width: at most 1280px INCLUDING the side gaps. Used by our
	   .wt-container AND Storefront's .col-full (section 5), so header,
	   content and footer all line up. (Storefront's own limit was 1064px.) */
	--container-max: 80rem;
	--container-pad: 1.41575em;
	--header-bar-height: 3.5rem;  /* the sticky bar on mobile (56px) */
	--topbar-height: 2.25rem;     /* the thin amber top bar (36px) */
	--search-height: 3rem;        /* the pill search box (48px) */
	--catstrip-circle: 4.5rem;    /* category strip image circles (72px) */
	--wt-admin-offset: 0px;       /* space for the WordPress admin bar (only when logged in) */

	/* --- Layers (z-index) inside the header. Higher sits on top. ---------- */
	--z-header-bar: 20;
	--z-dropdown:   25;
	--z-overlay:    30;
	--z-drawer:     40;
}

@media (min-width: 569px) {
	:root {
		--container-pad: 2.617924em;
	}
}


/* ==========================================================================
   3. BASE: body text, headings, links
   ========================================================================== */

/* Storefront sets Source Sans Pro on all of these, so we replace it on all of them. */
body,
button,
input,
select,
optgroup,
textarea {
	font-family: var(--font-family-base);
}

body {
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
	color: var(--color-text);
	background-color: var(--color-white);
	-webkit-font-smoothing: antialiased;
}

/* Headings. Storefront makes big headings thin (weight 300) with tight
   letter-spacing. Bai Jamjuree looks stronger and more "industrial" bold.
   .alpha/.beta/.gamma/.delta are Storefront's heading-size classes. */
h1, h2, h3, h4, h5, h6,
.alpha, .beta, .gamma, .delta {
	font-family: var(--font-family-base);
	color: var(--color-dark);
	line-height: var(--line-height-tight);
	letter-spacing: normal;
	margin: 0 0 var(--space-4);
}

h1, .alpha { font-size: var(--font-size-3xl); font-weight: var(--font-weight-bold); }
h2, .beta  { font-size: var(--font-size-2xl); font-weight: var(--font-weight-bold); }
h3, .gamma { font-size: var(--font-size-xl);  font-weight: var(--font-weight-semibold); }
h4, .delta { font-size: var(--font-size-lg);  font-weight: var(--font-weight-semibold); }
h5         { font-size: var(--font-size-md);  font-weight: var(--font-weight-semibold); }
h6         { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); }

/* Links: brand blue. Underline on hover so it's clear they are clickable. */
a {
	color: var(--color-link);
	text-decoration: none;
	transition: color var(--transition-fast);
}

a:hover {
	color: var(--color-link-hover);
	text-decoration: underline;
}

/* Links inside written content (product descriptions, pages) stay underlined,
   because colour alone isn't enough for colour-blind visitors. */
.entry-content a:not(.button),
.woocommerce-product-details__short-description a:not(.button) {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* Keyboard focus ring. :focus-visible shows it for keyboard users
   but not on every mouse click or tap. */
:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: 2px;
}


/* ==========================================================================
   4. BUTTONS
   WooCommerce/Storefront convention:
     - ".alt" buttons are the main call to action (Add to cart on the product
       page, Proceed to checkout, Place order) → PRIMARY: amber, dark text.
     - all other buttons → SECONDARY: blue, white text.
   For our own markup later, use .wt-btn--primary / .wt-btn--secondary.
   The selector lists repeat Storefront's own, so ours win over the colours
   Storefront prints from the Customizer.
   ========================================================================== */

/* --- Shared button shape (all buttons) ----------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.widget a.button,
.added_to_cart,
.wt-btn--primary,
.wt-btn--secondary {
	display: inline-block;
	padding: var(--space-3) var(--space-5);
	min-height: 44px; /* comfortable tap target on phones */
	border: 2px solid transparent;
	border-radius: var(--radius-md);
	font-family: var(--font-family-base);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-semibold);
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

/* --- Secondary: blue background, white text ------------------------------ */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.widget a.button,
.wt-btn--secondary {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-white);
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.button:hover,
.widget a.button:hover,
.wt-btn--secondary:hover {
	background-color: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
	color: var(--color-white);
	text-decoration: none;
}

/* --- Primary: amber background, dark text -------------------------------- */
.button.alt,
button.alt,
input[type="button"].alt,
input[type="reset"].alt,
input[type="submit"].alt,
.added_to_cart,
.widget-area .widget a.button.alt,
.wt-btn--primary {
	background-color: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-dark);
}

.button.alt:hover,
button.alt:hover,
input[type="button"].alt:hover,
input[type="reset"].alt:hover,
input[type="submit"].alt:hover,
.added_to_cart:hover,
.widget-area .widget a.button.alt:hover,
.wt-btn--primary:hover {
	background-color: var(--color-accent-dark);
	border-color: var(--color-accent-dark);
	color: var(--color-dark);
	text-decoration: none;
}

/* --- Focus (keyboard): a dark ring outside the button, visible on both
       blue and amber buttons and on white or grey backgrounds. */
button:focus-visible,
input[type="button"]:focus-visible,
input[type="reset"]:focus-visible,
input[type="submit"]:focus-visible,
.button:focus-visible,
.added_to_cart:focus-visible,
.wt-btn--primary:focus-visible,
.wt-btn--secondary:focus-visible {
	outline: 3px solid var(--color-dark);
	outline-offset: 2px;
}

/* --- Disabled (e.g. Add to cart before choosing a variation) -------------- */
button:disabled,
button.disabled,
.button:disabled,
.button.disabled,
input[type="submit"]:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}


/* ==========================================================================
   5. HELPERS
   ========================================================================== */

/* Centred page-width box with side gaps. Storefront's .col-full (used for
   page content, breadcrumbs and footer) gets exactly the same rules, which
   replaces Storefront's narrower 1064px limit everywhere.
   border-box = the 1280px maximum includes the side gaps. */
.wt-container,
.col-full {
	max-width: var(--container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-pad);
	padding-right: var(--container-pad);
	box-sizing: border-box;
}

/* Invisible 1px markers that header.js watches to know how far you've scrolled. */
.wt-sentinel {
	height: 1px;
	margin-top: -1px;
	pointer-events: none;
}

/* Show/hide by screen size.
   - wt-hide-mobile: hidden on phones
   - wt-sr-mobile:   on phones it's invisible but still read by screen readers */
@media (max-width: 767px) {
	.wt-hide-mobile {
		display: none !important;
	}

	.wt-sr-mobile {
		position: absolute !important;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
		clip-path: inset(50%);
		border: 0;
		white-space: nowrap;
	}
}


/* ==========================================================================
   6. HEADER
   Markup: inc/header.php + inc/categories.php. Behaviour: assets/js/header.js.
   Written mobile-first; desktop changes are in 6h (768px+) and 6i (1024px+).
   ========================================================================== */

/* --- 6a. Shell: replace Storefront's dark header ------------------------- */
.site-header {
	padding: 0;
	background-color: var(--color-white);
	color: var(--color-text);
	border-bottom: 0;
}

/* Storefront adds a big gap under the header on pages without breadcrumbs. */
.no-wc-breadcrumb .site-header {
	margin-bottom: var(--space-6);
}

.wt-header a:hover {
	text-decoration: none;
}

/* Icons printed by wiltech_icon(). */
.wt-icon {
	display: block;
	width: 1.5rem;
	height: 1.5rem;
	flex-shrink: 0;
}

/* Round icon-only buttons (menu, close, submenu arrows). This undoes the
   general button style from section 4 (blue background, padding). */
.wt-header .wt-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;  /* 44px: comfortable tap target */
	height: 2.75rem;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: var(--radius-pill);
	background: transparent;
	color: inherit;
	flex-shrink: 0;
}

.wt-header .wt-icon-btn:hover {
	background-color: var(--color-surface);
	color: inherit;
}

/* --- 6a2. Top bar: thin amber strip above everything (not sticky) -------- */
.wt-topbar {
	background-color: var(--color-accent);
	color: var(--color-dark);
	font-size: var(--font-size-sm);
	line-height: 1.3;
}

/* Phones: hidden when there's no message (the links are desktop-only). */
.wt-topbar--no-message {
	display: none;
}

.wt-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: center; /* phones: message centred */
	gap: var(--space-4);
	height: var(--topbar-height);
}

.wt-topbar__message {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	min-width: 0; /* allows the text to be cut off with "…" */
	margin: 0;
	font-weight: var(--font-weight-medium);
}

.wt-topbar__message .wt-icon {
	width: 1.125rem;
	height: 1.125rem;
}

.wt-topbar__text {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.wt-topbar__links {
	flex-shrink: 0;
	margin-left: auto; /* stays on the right even if there's no message */
}

.wt-topbar__menu {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wt-topbar__menu li {
	display: flex;
	align-items: center;
	margin: 0;
}

/* Thin divider line between links. */
.wt-topbar__menu li + li::before {
	content: "";
	width: 1px;
	height: 0.875rem;
	margin: 0 var(--space-3);
	background-color: currentColor;
	opacity: 0.35;
}

.wt-topbar__menu a {
	color: var(--color-dark);
	font-weight: var(--font-weight-medium);
	white-space: nowrap;
}

.wt-topbar__menu a:hover {
	color: var(--color-dark);
	text-decoration: underline;
}

.wt-topbar :focus-visible {
	outline-color: var(--color-dark);
}

/* --- 6b. Row 1: white bar ------------------------------------------------ */
/* On mobile the top bar is fixed to the screen (6c), so this padding keeps
   an empty space the same height where the bar sits. */
.wt-header__main {
	padding-top: var(--header-bar-height);
	background-color: var(--color-white);
}

/* --- 6c. Mobile sticky bar: menu button · logo · account · cart ---------- */
/* position: fixed keeps the bar on screen while the search and category
   strip below it scroll away. (position: sticky can't do that here: a
   sticky element only sticks while its parent, the header, is on screen.) */
.wt-header__top {
	position: fixed;
	top: var(--wt-admin-offset);
	left: 0;
	right: 0;
	z-index: var(--z-header-bar);
	display: flex;
	align-items: center;
	gap: var(--space-1);
	height: var(--header-bar-height);
	/* 10px less than the page gap, so the icons themselves (not their
	   invisible tap area) line up with the page content. */
	padding: 0 calc(var(--container-pad) - 10px);
	background-color: var(--color-white);
	transition: box-shadow var(--transition-fast);
}

/* With the top bar showing, the fixed bar starts just below it. As you
   scroll, header.js moves it up with the top bar until it reaches the top
   of the screen. (This line is the starting position before the script runs.) */
.wt-header--topbar .wt-header__top {
	top: calc(var(--wt-admin-offset) + var(--topbar-height));
}

/* Soft shadow appears once the page is scrolled (header.js adds is-scrolled). */
.wt-header.is-scrolled .wt-header__top {
	box-shadow: var(--shadow-md);
}

/* Logo / site name. */
.wt-header__brand {
	flex: 1 1 auto;
	min-width: 0; /* lets a wide logo shrink instead of pushing icons off screen */
	display: flex;
	align-items: center;
}

.wt-header__brand .custom-logo-link {
	display: block;
}

/* max-height + max-width (instead of a fixed height) means that if space is
   tight the logo shrinks in proportion instead of being squashed. */
.wt-header__brand .custom-logo-link img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 2.25rem; /* 36px on phones */
	border-radius: 0;
}

.wt-header__site-name,
.wt-header__site-name:hover {
	display: block;
	overflow: hidden;
	color: var(--color-primary);
	font-size: var(--font-size-lg);
	font-weight: var(--font-weight-bold);
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Right-hand side: contact (desktop), account, cart. */
.wt-header__actions {
	display: flex;
	align-items: center;
	gap: var(--space-1);
	flex-shrink: 0;
}

.wt-header__action {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 10px;
	box-sizing: border-box;
	border-radius: var(--radius-pill);
	color: var(--color-dark);
	font-weight: var(--font-weight-semibold);
	line-height: 1.2;
	transition: background-color var(--transition-fast), color var(--transition-fast);
}

.wt-header__action:hover {
	background-color: var(--color-surface);
	color: var(--color-primary);
}

/* "Call / WhatsApp" block (desktop): round WhatsApp icon + label + number. */
.wt-header__contact {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin-right: var(--space-3);
}

.wt-header__contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	flex-shrink: 0;
	border-radius: 50%;
	background-color: var(--color-primary-light);
	color: var(--color-primary);
	transition: background-color var(--transition-fast), color var(--transition-fast);
}

.wt-header__contact-icon:hover {
	background-color: var(--color-primary);
	color: var(--color-white);
}

.wt-header__contact-text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.wt-header__contact-label {
	color: var(--color-text-muted);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-medium);
}

.wt-header__contact-number {
	color: var(--color-primary);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-bold);
	white-space: nowrap;
}

.wt-header__contact-number:hover {
	color: var(--color-primary-dark);
}

/* Cart: icon with the amber count badge on its top-right corner, then "My Cart". */
.wt-header__cart-icon {
	position: relative;
	display: block;
}

.wt-header__cart-count {
	position: absolute;
	top: -0.45rem;
	right: -0.6rem;
	min-width: 1rem;  /* + 2px white ring each side = 20px badge */
	height: 1rem;
	padding: 0 0.25rem;
	border: 2px solid var(--color-white); /* white ring separates badge from icon */
	border-radius: var(--radius-pill);
	background-color: var(--color-accent);
	color: var(--color-dark);
	font-size: 0.6875rem;
	font-weight: var(--font-weight-bold);
	line-height: 1rem;
	text-align: center;
	box-sizing: content-box;
}

.wt-header__cart.is-empty .wt-header__cart-count {
	display: none; /* no "0" badge on an empty cart */
}

.wt-header__cart-label {
	margin-left: var(--space-1);
	font-size: var(--font-size-sm);
	white-space: nowrap;
}

/* --- 6d. Pill search ----------------------------------------------------- */
/* min-width: 0 lets the search area shrink to the space it's given, instead
   of pushing into the Call/WhatsApp block next to it. */
.wt-header__search {
	min-width: 0;
}

/* Phones: the search sits on a full-width blue band below the white bar.
   (Negative side margins stretch the band to the screen edges.) */
@media (max-width: 767px) {
	.wt-header__search {
		margin: 0 calc(-1 * var(--container-pad));
		padding: var(--space-4) var(--container-pad);
		background-color: var(--color-primary);
	}

	.wt-search,
	.wt-search:hover {
		border-color: var(--color-white);
	}

	/* Blue focus edge wouldn't show on blue: use an amber ring instead. */
	.wt-search:focus-within {
		border-color: var(--color-white);
		box-shadow: 0 0 0 3px var(--color-accent);
	}
}

/* The form is the pill: rounded white box with a light grey border.
   Its parts sit in a row: [category] [input] [button].
   How the row shares space:
    - the button never shrinks (flex: 0 0 auto), so it always stays inside
    - the input takes whatever is left, and is the first thing to give way
    - the category only shrinks below its normal size if it really must */
.wt-search {
	position: relative; /* live search results will be placed under it */
	display: flex;
	align-items: center;
	min-width: 0;
	height: var(--search-height);
	margin: 0;
	padding: 0.25rem;
	box-sizing: border-box;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
	background-color: var(--color-white);
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.wt-search:hover {
	border-color: var(--color-text-muted);
}

/* While anything inside is focused, the whole pill gets a 2px blue edge. */
.wt-search:focus-within {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 1px var(--color-primary);
}

/* Category dropdown (desktop only; hidden on phones). */
.wt-search__cat {
	position: relative;
	display: none;
	flex: 0 1 auto;
	min-width: 0;
	height: 100%;
	color: var(--color-text-muted);
}

/* At most 160px wide; a long category name is cut off with "…" so the
   search input keeps the space. */
.wt-search__cat select {
	width: 100%;
	height: 100%;
	min-height: 0; /* not the general form-field size (section 13a) */
	max-width: 10rem;
	margin: 0;
	padding: 0 2.25rem 0 var(--space-4);
	border: 0;
	border-radius: var(--radius-pill);
	background-color: var(--color-surface);
	color: var(--color-dark);
	font-family: var(--font-family-base);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semibold);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.wt-search .wt-search__cat select:focus {
	border: 0;
	box-shadow: none; /* not the general field focus ring (section 13a) */
}

.wt-search__cat select:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: -2px;
}

/* Our own arrow for the dropdown (the browser's one is removed above). */
.wt-search__cat::after {
	content: "";
	position: absolute;
	top: 50%;
	right: var(--space-3);
	width: 1rem;
	height: 1rem;
	margin-top: -0.5rem;
	background-color: currentColor;
	-webkit-mask: var(--wt-icon-chevron-down) center / contain no-repeat;
	mask: var(--wt-icon-chevron-down) center / contain no-repeat;
	pointer-events: none;
}

/* "input.wt-search__input" is more specific than Storefront's
   input[type="search"] rules, so ours win without !important. */
.wt-search input.wt-search__input {
	flex: 1 1 0%; /* starts from 0 and takes all the space that's left */
	min-width: 0;
	width: auto;
	height: 100%;
	min-height: 0; /* the general form-field size (section 13a) doesn't apply here */
	border-radius: 0;
	margin: 0;
	padding: 0 var(--space-3) 0 var(--space-4);
	border: 0;
	background-color: transparent;
	color: var(--color-text);
	font-size: var(--font-size-base); /* 16px: stops iPhones zooming in when tapped */
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.wt-search input.wt-search__input::placeholder {
	color: var(--color-text-muted);
	opacity: 1;
}

/* The pill's blue edge (above) shows focus, so the input needs no outline of its own. */
.wt-search input.wt-search__input:focus {
	border: 0;
	outline: none;
	background-color: transparent;
	box-shadow: none; /* not the general field focus ring (section 13a) */
}

.wt-search button.wt-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	flex: 0 0 auto;
	width: 2.5rem; /* round icon button on phones */
	height: 100%;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: var(--radius-pill);
	background-color: var(--color-accent);
	color: var(--color-dark);
	font-weight: var(--font-weight-bold);
}

.wt-search button.wt-search__submit:hover {
	background-color: var(--color-accent-dark);
	color: var(--color-dark);
}

.wt-search__submit .wt-icon {
	width: 1.25rem;
	height: 1.25rem;
}

/* --- 6d-2. Live search dropdown (assets/js/search.js) -------------------- */
/* Small spinning circle inside the pill, only while a search is running. */
.wt-search__spinner {
	display: none;
	flex: 0 0 auto;
	width: 1.125rem;
	height: 1.125rem;
	margin-right: var(--space-3);
	border: 2px solid var(--color-border);
	border-top-color: var(--color-primary);
	border-radius: 50%;
	animation: wt-spin 0.7s linear infinite;
}

.wt-search.is-loading .wt-search__spinner {
	display: block;
}

/* The white panel under the pill. It scrolls inside itself if it's taller
   than the screen, and "overscroll-behavior" stops the page scrolling
   behind it when the end is reached. */
.wt-search__results {
	position: absolute;
	top: calc(100% + var(--space-2));
	left: 0;
	right: 0;
	z-index: var(--z-dropdown);
	max-height: min(70vh, 36rem);
	padding: var(--space-2) 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: var(--radius-lg);
	background-color: var(--color-white);
	box-shadow: var(--shadow-lg);
	text-align: left;
}

.wt-search__results[hidden] {
	display: none;
}

.wt-search__group + .wt-search__group {
	margin-top: var(--space-2);
	padding-top: var(--space-2);
	border-top: 1px solid var(--color-surface);
}

/* Small grey label: "Categories", "Products", "Popular searches". */
.wt-search__heading {
	padding: var(--space-2) var(--space-4) var(--space-1);
	color: var(--color-text-muted);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-semibold);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* One row. Hover (mouse) and .is-active (arrow keys) look the same. */
.wt-search .wt-search__option {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-2) var(--space-4);
	color: var(--color-text);
	text-decoration: none;
	transition: background-color var(--transition-fast);
}

.wt-search .wt-search__option:hover,
.wt-search .wt-search__option.is-active {
	background-color: var(--color-primary-light);
	color: var(--color-text);
}

.wt-search__name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-medium);
	line-height: 1.35;
}

/* The typed words, picked out in the name: bold on a soft amber marker. */
.wt-search__name mark {
	padding: 0;
	border-radius: 2px;
	background-color: transparent;
	box-shadow: inset 0 -0.45em 0 var(--color-accent-soft); /* marker-pen stripe */
	color: inherit;
	font-weight: var(--font-weight-bold);
}

/* Category rows: name + product count on the right. */
.wt-search__count {
	flex: 0 0 auto;
	color: var(--color-text-muted);
	font-size: var(--font-size-xs);
}

/* Product rows: 48px picture, then name over price + stock. */
.wt-search__thumb {
	flex: 0 0 auto;
	width: 3rem;
	height: 3rem;
	overflow: hidden;
	border-radius: var(--radius-md);
	background-color: var(--color-surface);
}

.wt-search__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background-color: var(--color-white);
}

.wt-search__body {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	flex: 1 1 auto;
	min-width: 0;
}

/* Long names: at most 2 lines, then "…". */
.wt-search__option--product .wt-search__name {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.wt-search__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: var(--space-3);
	row-gap: 0;
}

.wt-search__price {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: var(--space-2);
}

.wt-search__price-now {
	color: var(--color-primary);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-bold);
}

.wt-search__price-old {
	color: var(--color-text-muted);
	font-size: var(--font-size-xs);
}

/* Stock: coloured dot + short text. */
.wt-search__stock {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--color-text-muted);
	font-size: var(--font-size-xs);
}

.wt-search__dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background-color: var(--color-success);
}

.wt-search__stock--out .wt-search__dot {
	background-color: var(--color-sale);
}

.wt-search__stock--backorder .wt-search__dot {
	background-color: var(--color-accent);
}

/* "See all results for '…'" – blue link row at the bottom. */
.wt-search .wt-search__option--all {
	justify-content: center;
	margin-top: var(--space-2);
	padding-top: var(--space-3);
	padding-bottom: var(--space-3);
	border-top: 1px solid var(--color-surface);
	color: var(--color-primary);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semibold);
}

.wt-search .wt-search__option--all::after {
	content: "";
	width: 1rem;
	height: 1rem;
	background-color: currentColor;
	-webkit-mask: var(--wt-icon-arrow-right) center / contain no-repeat;
	mask: var(--wt-icon-arrow-right) center / contain no-repeat;
}

.wt-search .wt-search__option--all:hover,
.wt-search .wt-search__option--all.is-active {
	color: var(--color-primary-dark);
}

/* No results: message + green WhatsApp button. */
.wt-search__empty-text {
	margin: 0;
	padding: var(--space-3) var(--space-4) var(--space-1);
	color: var(--color-text);
	font-size: var(--font-size-sm);
}

/* "Can't find it? Ask us on WhatsApp": a green pill button. */
.wt-search .wt-search__option--whatsapp {
	justify-content: center;
	margin: var(--space-2) var(--space-4) var(--space-2);
	border-radius: var(--radius-pill);
	background-color: var(--color-whatsapp);
	color: var(--color-white);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semibold);
}

.wt-search .wt-search__option--whatsapp:hover,
.wt-search .wt-search__option--whatsapp.is-active {
	background-color: var(--color-whatsapp-dark);
	color: var(--color-white);
}

.wt-search .wt-search__option--whatsapp.is-active {
	outline: 2px solid var(--color-dark); /* arrow-key focus stays visible */
	outline-offset: 2px;
}

.wt-search__option--whatsapp .wt-icon {
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
}

/* Popular searches: round grey chips that wrap onto several lines. */
.wt-search__group--chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	padding: 0 var(--space-4) var(--space-2);
}

.wt-search__group--chips .wt-search__heading {
	flex: 0 0 100%;
	padding-left: 0;
	padding-right: 0;
}

.wt-search .wt-search__chip {
	padding: var(--space-2) var(--space-4);
	border-radius: var(--radius-pill);
	background-color: var(--color-surface);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-medium);
}

.wt-search .wt-search__chip:hover,
.wt-search .wt-search__chip.is-active {
	background-color: var(--color-accent);
	color: var(--color-dark);
}

/* Phones: the panel is as wide as the screen and hangs straight under the
   blue search band (the band, not the pill, is its reference point). */
@media (max-width: 767px) {
	.wt-header__search {
		position: relative;
	}

	.wt-search {
		position: static;
	}

	.wt-search__results {
		top: 100%;
		max-height: min(70vh, 32rem);
		border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wt-search__spinner {
		animation-duration: 2s;
	}
}

/* --- 6e. Row 3: category strip ------------------------------------------- */
.wt-catstrip {
	background-color: var(--color-surface);
}

.wt-catstrip__inner {
	position: relative;
}

/* Scrolls sideways: swipe on phones, arrow buttons on desktop.
   The scrollbar is hidden; scroll-snap makes circles stop neatly. */
.wt-catstrip__list {
	display: flex;
	gap: var(--space-4);
	margin: 0;
	padding: var(--space-4) 0;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.wt-catstrip__list::-webkit-scrollbar {
	display: none;
}

.wt-catstrip__list > li {
	flex: 0 0 auto;
	margin: 0;
	scroll-snap-align: start;
}

.wt-catstrip__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2);
	width: 5.5rem;
	color: var(--color-dark);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semibold);
	line-height: 1.25;
	text-align: center;
}

.wt-catstrip__item:hover {
	color: var(--color-primary);
}

.wt-catstrip__circle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--catstrip-circle);
	height: var(--catstrip-circle);
	overflow: hidden;
	border-radius: 50%;
	background-color: var(--color-white);
	box-shadow: var(--shadow-md);
	color: var(--color-text-muted); /* placeholder icon colour */
	transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.wt-catstrip__item:hover .wt-catstrip__circle {
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}

/* "contain" + padding: product photos sit fully inside the circle, not cropped. */
.wt-catstrip__img {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0.625rem;
	box-sizing: border-box;
	background-color: var(--color-white); /* transparent product photos sit on white too */
	object-fit: contain;
	border-radius: 0;
}

/* Long names wrap onto at most 2 lines. */
.wt-catstrip__label {
	display: -webkit-box;
	max-width: 100%;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow-wrap: anywhere;
}

/* Shown to logged-in admins only when no menu is assigned to "Category strip". */
.wt-catstrip-hint {
	margin-top: 0;
	margin-bottom: 0;
	padding-top: var(--space-2);
	padding-bottom: var(--space-2);
	font-size: var(--font-size-sm);
}

/* Arrow buttons (desktop only; header.js shows them and disables one at each end). */
.wt-catstrip button.wt-catstrip__arrow {
	display: none;
}

/* Phones: the strip runs edge to edge of the screen, so it's obvious it scrolls. */
@media (max-width: 767px) {
	.wt-catstrip__list {
		margin: 0 calc(-1 * var(--container-pad));
		padding-left: var(--container-pad);
		padding-right: var(--container-pad);
		scroll-padding-left: var(--container-pad);
	}
}

/* --- 6f. Row 2 on mobile = the menu drawer ------------------------------- */
/* Closed: pushed off-screen to the left AND visibility: hidden, so its
   links can't be reached with Tab while you can't see them. */
.wt-drawer {
	position: fixed;
	top: var(--wt-admin-offset);
	bottom: 0;
	left: 0;
	z-index: var(--z-drawer);
	display: flex;
	flex-direction: column;
	width: 85vw;
	max-width: 22rem;
	overflow-y: auto;
	overscroll-behavior: contain; /* scrolling the drawer doesn't scroll the page */
	background-color: var(--color-white);
	color: var(--color-text);
	box-shadow: var(--shadow-lg);
	transform: translateX(-100%);
	visibility: hidden;
	transition: transform var(--transition-drawer), visibility 0s linear 250ms;
}

.wt-drawer.is-open {
	transform: none;
	visibility: visible;
	transition: transform var(--transition-drawer);
}

/* Dark layer over the page behind the open drawer; tapping it closes the drawer. */
.wt-drawer-overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: var(--z-overlay);
	background-color: var(--color-overlay);
}

/* Stops the page behind the drawer from scrolling. */
html.wt-drawer-open {
	overflow: hidden;
}

/* Drawer top: blue, with the white logo and the close button. */
.wt-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	flex-shrink: 0;
	min-height: var(--header-bar-height);
	padding: 0 calc(var(--container-pad) - 10px) 0 var(--container-pad);
	background-color: var(--color-primary);
	color: var(--color-white);
}

.wt-drawer__head :focus-visible {
	outline-color: var(--color-white);
}

.wt-header .wt-drawer__head .wt-icon-btn:hover {
	background-color: var(--color-on-dark-hover);
}

.wt-dark-logo,
.wt-dark-logo:hover {
	display: block;
	min-width: 0;
	color: var(--color-white);
}

/* max-height + max-width: the logo shrinks in proportion, never squashed. */
.wt-dark-logo__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 11rem;
	max-height: 2rem;
	border-radius: 0;
}

.wt-dark-logo__text {
	font-size: var(--font-size-lg);
	font-weight: var(--font-weight-bold);
}

/* The menus fill the drawer edge to edge. */
.wt-drawer .wt-navbar {
	max-width: none;
	padding: 0;
}

.wt-header .wt-allcats__toggle {
	display: none; /* the desktop "All Categories" button */
}

/* Small grey headings above each menu in the drawer. */
.wt-drawer__label {
	margin: 0;
	padding: var(--space-5) var(--container-pad) var(--space-2);
	color: var(--color-text-muted);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-bold);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wt-nav__hint {
	margin: 0;
	padding: var(--space-4) var(--container-pad);
}

/* Menu lists in the drawer: one row per item; submenus open underneath (accordion). */
.wt-menu,
.wt-menu .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wt-menu li {
	display: flex;
	flex-wrap: wrap; /* the submenu wraps onto its own full-width line */
	align-items: center;
	margin: 0;
	border-bottom: 1px solid var(--color-border);
}

.wt-menu a {
	flex: 1 1 0;
	min-width: 0;
	display: block;
	padding: var(--space-3) var(--container-pad);
	color: var(--color-dark);
	font-weight: var(--font-weight-semibold);
	text-decoration: none;
}

.wt-menu a:hover,
.wt-menu .current-menu-item > a {
	color: var(--color-primary);
}

.wt-header .wt-submenu-toggle {
	width: 3rem;
	height: 3rem;
}

.wt-submenu-toggle .wt-icon {
	width: 1.25rem;
	height: 1.25rem;
	transition: transform var(--transition-fast);
}

.wt-menu li.is-open > .wt-submenu-toggle .wt-icon {
	transform: rotate(180deg);
}

.wt-menu .sub-menu {
	display: none;
	flex-basis: 100%;
	background-color: var(--color-surface);
}

.wt-menu li.is-open > .sub-menu {
	display: block;
}

.wt-menu .sub-menu li:last-child {
	border-bottom: 0;
}

.wt-menu .sub-menu a {
	padding-left: calc(var(--container-pad) + var(--space-4));
	font-weight: var(--font-weight-medium);
}

.wt-menu .sub-menu .sub-menu a {
	padding-left: calc(var(--container-pad) + var(--space-6));
}

/* Call / WhatsApp buttons at the bottom of the drawer (colours from section 4). */
.wt-drawer__foot {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	margin-top: auto; /* pushes this block to the bottom of the drawer */
	padding: var(--space-5) var(--container-pad);
	background-color: var(--color-surface);
}

.wt-drawer__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	width: 100%;
	box-sizing: border-box;
}

.wt-drawer__btn .wt-icon {
	width: 1.25rem;
	height: 1.25rem;
}

/* --- 6g. Logged-in admin bar, motion preferences ------------------------- */
/* WordPress's admin bar (only when logged in) is fixed at the top: 46px tall
   on small screens, 32px on large ones. Our fixed bars move down below it.
   Under 601px WordPress lets it scroll away, so we fix it in place too. */
.admin-bar {
	--wt-admin-offset: 46px;
}

@media (min-width: 783px) {
	.admin-bar {
		--wt-admin-offset: 32px;
	}
}

@media (max-width: 600px) {
	.admin-bar #wpadminbar {
		position: fixed;
	}
}

@media (max-width: 767px) {
	/* Jump links (#section) stop below the fixed bar instead of under it. */
	html {
		scroll-padding-top: calc(var(--header-bar-height) + var(--space-2));
	}
}

/* Respect the phone/computer setting for reduced motion. */
@media (prefers-reduced-motion: reduce) {
	.wt-drawer,
	.wt-drawer.is-open,
	.wt-submenu-toggle .wt-icon,
	.wt-catstrip__circle {
		transition: none;
	}

	.wt-header.is-condensed .wt-header__main {
		animation: none;
	}
}

/* --- 6h. Desktop and tablet (768px and up) ------------------------------- */
@media (min-width: 768px) {

	/* Row 1: white, generous padding, subtle bottom line. No fixed bar on
	   desktop, so no empty space is needed for it. */
	.wt-header__main {
		padding-top: 0;
		border-bottom: 1px solid var(--color-border);
	}

	/* 768–1279px: logo and links on the first line, the search full width
	   underneath. One line from 1280px (see 6i): below that there isn't room
	   for the category dropdown, the full placeholder, the Search button AND
	   the Call/WhatsApp, account and cart links side by side. */
	.wt-header__grid {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas:
			"brand  .      actions"
			"search search search";
		align-items: center;
		column-gap: var(--space-6);
		row-gap: var(--space-4);
		padding-top: var(--space-5);
		padding-bottom: var(--space-5);
	}

	/* "display: contents" makes this wrapper disappear from the layout, so the
	   logo and links inside it become direct items of the grid above. That's
	   how the search (outside this wrapper) can sit between them. */
	.wt-header__top {
		display: contents;
	}

	.wt-header .wt-header__menu-toggle {
		display: none;
	}

	.wt-header__brand {
		grid-area: brand;
	}

	.wt-header__brand .custom-logo-link img {
		max-height: 3rem; /* 48px */
	}

	.wt-header__search {
		grid-area: search;
		padding: 0;
	}

	.wt-header__actions {
		grid-area: actions;
		gap: var(--space-2);
	}

	.wt-header__cart {
		padding-right: var(--space-4);
	}

	/* Search: category dropdown shows; button gets its "Search" word back. */
	.wt-search__cat {
		display: block;
	}

	.wt-search button.wt-search__submit {
		width: auto;
		padding: 0 var(--space-5);
	}

	/* Category strip arrows. */
	.wt-catstrip button.wt-catstrip__arrow {
		position: absolute;
		top: calc(var(--space-4) + var(--catstrip-circle) / 2);
		z-index: 1;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2.5rem;
		height: 2.5rem;
		min-height: 0;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background-color: var(--color-white);
		color: var(--color-dark);
		box-shadow: var(--shadow-md);
		transform: translateY(-50%);
		transition: opacity var(--transition-fast), background-color var(--transition-fast);
	}

	.wt-catstrip button.wt-catstrip__arrow:hover {
		background-color: var(--color-primary);
		color: var(--color-white);
	}

	.wt-catstrip button.wt-catstrip__arrow[hidden] {
		display: none;
	}

	/* At either end of the strip, that arrow fades out. */
	/* At either end of the strip, that arrow is hidden. (visibility, not
	   opacity: Storefront forces disabled buttons to half opacity.) */
	.wt-catstrip button.wt-catstrip__arrow:disabled {
		visibility: hidden;
	}

	/* The arrows sit in the side gap, outside the row of circles. */
	.wt-catstrip__arrow--prev {
		left: 0;
	}

	.wt-catstrip__arrow--next {
		right: 0;
	}

	.wt-catstrip__arrow .wt-icon {
		width: 1.25rem;
		height: 1.25rem;
	}

	/* ---- Row 2: the drawer becomes the blue menu bar ---- */
	.wt-drawer {
		position: static;
		display: block;
		width: auto;
		max-width: none;
		overflow: visible;
		background-color: var(--color-primary);
		color: var(--color-white);
		box-shadow: none;
		transform: none;
		visibility: visible;
		transition: none;
	}

	.wt-drawer__head,
	.wt-drawer__foot,
	.wt-drawer__label,
	.wt-drawer-overlay {
		display: none;
	}

	.wt-drawer :focus-visible {
		outline-color: var(--color-white);
	}

	.wt-drawer .wt-navbar {
		display: flex;
		align-items: center;
		gap: var(--space-5);
		min-height: 3.5rem;
		max-width: var(--container-max);
		padding-left: var(--container-pad);
		padding-right: var(--container-pad);
	}

	/* "All Categories" button: amber, dark text. */
	.wt-allcats {
		position: relative;
		flex-shrink: 0;
	}

	.wt-header button.wt-allcats__toggle {
		display: inline-flex;
		align-items: center;
		gap: var(--space-2);
		height: 2.75rem;
		min-height: 0;
		padding: 0 var(--space-4);
		border: 0;
		border-radius: var(--radius-md);
		background-color: var(--color-accent);
		color: var(--color-dark);
		font-weight: var(--font-weight-bold);
	}

	.wt-header button.wt-allcats__toggle:hover {
		background-color: var(--color-accent-dark);
		color: var(--color-dark);
	}

	.wt-allcats__toggle .wt-icon {
		width: 1.25rem;
		height: 1.25rem;
		transition: transform var(--transition-fast);
	}

	.wt-allcats.is-open .wt-allcats__toggle .wt-icon--chevron-down {
		transform: rotate(180deg);
	}

	/* The white categories panel under the button. */
	.wt-allcats__panel {
		display: none;
		position: absolute;
		top: calc(100% + var(--space-2));
		left: 0;
		z-index: var(--z-dropdown);
		width: 17rem;
		padding: var(--space-2) 0;
		border-radius: var(--radius-lg);
		background-color: var(--color-white);
		color: var(--color-text);
		box-shadow: var(--shadow-lg);
	}

	.wt-allcats.is-open .wt-allcats__panel {
		display: block;
	}

	.wt-allcats__panel :focus-visible,
	.wt-menu--primary .sub-menu :focus-visible {
		outline-color: var(--color-primary);
	}

	/* Items are "static" so each flyout lines up with the top of the panel. */
	.wt-menu.wt-menu--cats li {
		position: static;
		flex-wrap: nowrap;
		border-bottom: 0;
	}

	.wt-menu.wt-menu--cats a,
	.wt-menu.wt-menu--cats .sub-menu a,
	.wt-menu.wt-menu--cats .sub-menu .sub-menu a {
		padding: var(--space-2) var(--space-4);
		color: var(--color-text);
		font-weight: var(--font-weight-medium);
	}

	.wt-menu.wt-menu--cats li:hover,
	.wt-menu.wt-menu--cats li:focus-within,
	.wt-menu.wt-menu--cats li.is-open {
		background-color: var(--color-surface);
	}

	.wt-menu.wt-menu--cats li:hover > a,
	.wt-menu.wt-menu--cats li.is-open > a {
		color: var(--color-primary);
	}

	.wt-header .wt-menu--cats .wt-submenu-toggle {
		width: 2.25rem;
		height: 2.25rem;
		margin-right: var(--space-2);
	}

	/* Arrows point right: subcategories fly out to the side. */
	.wt-menu.wt-menu--cats li .wt-submenu-toggle .wt-icon,
	.wt-menu.wt-menu--cats li.is-open > .wt-submenu-toggle .wt-icon {
		transform: rotate(-90deg);
	}

	/* Subcategory flyout: right of the panel, at least as tall as it. */
	.wt-menu.wt-menu--cats .sub-menu {
		position: absolute;
		top: 0;
		left: 100%;
		display: none;
		min-width: 15rem;
		min-height: 100%;
		padding: var(--space-2) 0;
		box-sizing: border-box;
		border-radius: var(--radius-lg);
		background-color: var(--color-white);
		box-shadow: var(--shadow-lg);
	}

	.wt-menu.wt-menu--cats .sub-menu li {
		position: relative;
	}

	.wt-menu.wt-menu--cats .sub-menu .sub-menu {
		top: calc(-1 * var(--space-2));
		min-height: 0;
	}

	.wt-menu.wt-menu--cats li:hover > .sub-menu,
	.wt-menu.wt-menu--cats li:focus-within > .sub-menu,
	.wt-menu.wt-menu--cats li.is-open > .sub-menu {
		display: block;
	}

	/* ---- Primary menu: white links, amber underline on hover / current page ---- */
	.wt-nav {
		flex: 1 1 auto;
		min-width: 0;
	}

	/* Always one line, vertically centred with the All Categories button. */
	.wt-menu.wt-menu--primary {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
	}

	.wt-menu.wt-menu--primary > li {
		position: relative;
		flex: 0 0 auto;
		flex-wrap: nowrap;
		border-bottom: 0;
	}

	.wt-menu.wt-menu--primary > li > a {
		position: relative;
		padding: 1rem var(--space-3);
		color: var(--color-white);
		font-weight: var(--font-weight-semibold);
		white-space: nowrap; /* "Contact us" never breaks onto two lines */
	}

	/* The underline: an amber bar that grows from the centre. */
	.wt-menu.wt-menu--primary > li > a::after {
		content: "";
		position: absolute;
		left: var(--space-3);
		right: var(--space-3);
		bottom: 0.625rem;
		height: 3px;
		border-radius: var(--radius-pill);
		background-color: var(--color-accent);
		transform: scaleX(0);
		transition: transform var(--transition-fast);
	}

	.wt-menu.wt-menu--primary > li > a:hover,
	.wt-menu.wt-menu--primary > .current-menu-item > a {
		color: var(--color-white);
	}

	.wt-menu.wt-menu--primary > li > a:hover::after,
	.wt-menu.wt-menu--primary > li > a:focus-visible::after,
	.wt-menu.wt-menu--primary > .current-menu-item > a::after,
	.wt-menu.wt-menu--primary > .current-menu-ancestor > a::after,
	.wt-menu.wt-menu--primary > .current_page_item > a::after {
		transform: scaleX(1);
	}

	.wt-header .wt-menu--primary > li > .wt-submenu-toggle {
		width: 1.75rem;
		height: 2.75rem;
		margin-left: calc(-1 * var(--space-2));
		color: var(--color-white);
	}

	.wt-header .wt-menu--primary > li > .wt-submenu-toggle:hover {
		background-color: var(--color-on-dark-hover);
	}

	/* Primary menu dropdowns (if any items have children). */
	.wt-menu.wt-menu--primary .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: var(--z-dropdown);
		display: none;
		min-width: 14rem;
		padding: var(--space-2) 0;
		border-radius: var(--radius-lg);
		background-color: var(--color-white);
		box-shadow: var(--shadow-lg);
	}

	.wt-menu.wt-menu--primary .sub-menu li {
		position: relative;
		border-bottom: 0;
	}

	.wt-menu.wt-menu--primary .sub-menu a,
	.wt-menu.wt-menu--primary .sub-menu .sub-menu a {
		padding: var(--space-2) var(--space-4);
		color: var(--color-text);
		font-weight: var(--font-weight-medium);
	}

	.wt-menu.wt-menu--primary .sub-menu a:hover {
		background-color: var(--color-surface);
		color: var(--color-primary);
	}

	.wt-menu.wt-menu--primary .sub-menu .sub-menu {
		top: calc(-1 * var(--space-2));
		left: 100%;
	}

	.wt-menu.wt-menu--primary li:hover > .sub-menu,
	.wt-menu.wt-menu--primary li:focus-within > .sub-menu,
	.wt-menu.wt-menu--primary li.is-open > .sub-menu {
		display: block;
	}

	/* ---- Compact sticky bar: after scrolling past rows 1–2, row 1 is fixed
	        to the top with only logo, search and cart. (header.js keeps its
	        old space in the page so nothing jumps.) ---- */
	.wt-header.is-condensed .wt-header__main {
		position: fixed;
		top: var(--wt-admin-offset);
		left: 0;
		right: 0;
		z-index: var(--z-header-bar);
		border-bottom: 0;
		box-shadow: var(--shadow-md);
		animation: wt-slide-down var(--transition-drawer);
	}

	/* Logo column may shrink (minmax(0, …)) if space is tight; the search takes the rest. */
	.wt-header.is-condensed .wt-header__grid {
		grid-template-columns: minmax(0, max-content) minmax(0, 1fr) auto;
		grid-template-areas: "brand search actions";
		row-gap: 0;
		padding-top: var(--space-2);
		padding-bottom: var(--space-2);
	}

	.wt-header.is-condensed .wt-header__contact,
	.wt-header.is-condensed .wt-header__account,
	.wt-header.is-condensed .wt-header__cart-label {
		display: none;
	}

	.wt-header.is-condensed .wt-header__cart {
		padding-right: 10px;
	}

	.wt-header.is-condensed .wt-header__brand .custom-logo-link img {
		max-height: 2.25rem;
	}

	/* Top bar: message on the left, links on the right. */
	.wt-topbar__inner {
		justify-content: space-between;
	}

	.wt-topbar--no-message {
		display: block;
	}
}

@keyframes wt-slide-down {
	from {
		transform: translateY(-100%);
	}
	to {
		transform: none;
	}
}

/* --- 6i. 1280px and up: row 1 on one line --------------------------------- */
/* Columns: logo (its natural width, max 15rem) | search (all the space
   left, may shrink: minmax(0, 1fr)) | links (their natural width).
   Nothing can overflow into a neighbour: the search column shrinks first. */
@media (min-width: 1280px) {
	.wt-header__grid {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "brand search actions";
		column-gap: var(--space-5);
		row-gap: 0;
	}

	.wt-header__brand {
		max-width: 15rem;
	}

	.wt-header__search {
		justify-self: center;
		width: 100%;
		max-width: 44rem;
	}
}


/* ==========================================================================
   7. ICONS THAT REPLACE FONT AWESOME
   Storefront draws ~70 small icons with the Font Awesome font (breadcrumbs,
   pagination, stars, notices, spinners…). Font Awesome is switched off in
   functions.php, so each one is replaced here:
     7a/7b  shown icons → a tiny SVG used as a CSS "mask". The mask cuts the
            icon shape out of a block filled with currentColor, so the icon
            takes the text colour, just like a font icon did.
     7c     loading spinners → a spinning CSS circle
     7d     star ratings → star masks
     7e     decorative icons or features this shop doesn't use → hidden
   The selectors below copy Storefront's own selectors exactly, so they
   override them without !important.
   ========================================================================== */

/* The icon shapes (24×24 SVGs, written into the CSS so there's no extra download). */
:root {
	--wt-icon-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
	--wt-icon-chevron-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
	--wt-icon-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	--wt-icon-chevron-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");
	--wt-icon-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E");
	--wt-icon-arrow-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 19l-7-7 7-7'/%3E%3C/svg%3E");
	--wt-icon-zoom-in: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E");
	--wt-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
	--wt-icon-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
	--wt-icon-x-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m15 9-6 6M9 9l6 6'/%3E%3C/svg%3E");
	--wt-icon-check-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E");
	--wt-icon-alert-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E");
	--wt-icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 11v6M12 7h.01'/%3E%3C/svg%3E");
	--wt-icon-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
	--wt-icon-eye-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 5.1A10 10 0 0 1 12 5c6.5 0 10 7 10 7a17 17 0 0 1-2.2 3.2M6.6 6.6C3.6 8.5 2 12 2 12s3.5 7 10 7a10 10 0 0 0 5.4-1.6M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E");
	--wt-icon-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon fill='black' points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26'/%3E%3C/svg%3E");
	--wt-icon-square: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3C/svg%3E");
	--wt-icon-check-square: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E");
	--wt-icon-radio: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E");
	--wt-icon-radio-checked: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='4.5' fill='black' stroke='none'/%3E%3C/svg%3E");
}

/* --- 7a. Shared look for every replaced icon ----------------------------- */
/* Each selector also gets its shape (--wt-mask) in 7b. */
.woocommerce-breadcrumb a:first-of-type::before,
.woocommerce-breadcrumb .breadcrumb-separator::after,
.woocommerce-pagination .prev::after,
.woocommerce-pagination .next::after,
.storefront-product-pagination a[rel=prev]::after,
.storefront-product-pagination a[rel=next]::after,
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger::before,
.stock.in-stock::before,
.stock.out-of-stock::before,
.widget_search form:not(.wp-block-search)::before,
.widget_product_search form:not(.wp-block-search)::before,
.widget_layered_nav li::before,
.widget_layered_nav .chosen::before,
.widget_layered_nav_filters ul li.chosen::before,
a.remove::before,
#payment .payment_methods > .woocommerce-PaymentMethod > label::before,
#payment .payment_methods > .wc_payment_method > label::before,
#payment .payment_methods li.woocommerce-PaymentMethod > input[type=radio]:first-child:checked + label::before,
#payment .payment_methods li.wc_payment_method > input[type=radio]:first-child:checked + label::before,
.wc-forward::after,
.woocommerce-Button--next::after,
.woocommerce-Button--previous::before,
#reviews .commentlist li p.meta .verified::before,
.show-password-input::after,
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce-noreviews::before,
p.no-comments::before,
.demo_store::before,
.demo_store a.woocommerce-store-notice__dismiss-link::before,
p.stars a::before {
	content: "";
	font-family: inherit;
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
	background-color: currentColor;
	-webkit-mask: var(--wt-mask) center / contain no-repeat;
	mask: var(--wt-mask) center / contain no-repeat;
}

/* --- 7b. Which shape each icon uses (+ small layout fixes) --------------- */

/* Breadcrumbs: home icon on the first link, chevrons between items. */
.woocommerce-breadcrumb a:first-of-type::before          { --wt-mask: var(--wt-icon-home); }
.woocommerce-breadcrumb .breadcrumb-separator::after     { --wt-mask: var(--wt-icon-chevron-right); }

/* Shop page numbers: previous / next. */
.woocommerce-pagination .prev::after                     { --wt-mask: var(--wt-icon-chevron-left); }
.woocommerce-pagination .next::after                     { --wt-mask: var(--wt-icon-chevron-right); }

/* Previous / next product tabs at the screen edges on product pages (desktop). */
.storefront-product-pagination a[rel=prev]::after {
	--wt-mask: var(--wt-icon-chevron-left);
	padding: 0;
	margin-right: 1.41575em;
}

.storefront-product-pagination a[rel=next]::after {
	--wt-mask: var(--wt-icon-chevron-right);
	padding: 0;
	margin-left: 1.41575em;
}

/* Product gallery: magnifying glass that opens the full-size image. */
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger::before {
	--wt-mask: var(--wt-icon-zoom-in);
	margin: 0.5em auto;
}

/* Stock status on product pages. */
.stock.in-stock::before                                  { --wt-mask: var(--wt-icon-check-circle); }
.stock.out-of-stock::before                              { --wt-mask: var(--wt-icon-x-circle); }

/* Search widget (if one is ever added to a sidebar). */
.widget_search form:not(.wp-block-search)::before,
.widget_product_search form:not(.wp-block-search)::before { --wt-mask: var(--wt-icon-search); }

/* "Filter products" widget: tick boxes. */
.widget_layered_nav li::before {
	--wt-mask: var(--wt-icon-square);
	margin-top: 0.3em;
}

.widget_layered_nav .chosen::before {
	--wt-mask: var(--wt-icon-check-square);
	color: var(--color-primary);
	opacity: 1;
}

.widget_layered_nav_filters ul li.chosen::before {
	--wt-mask: var(--wt-icon-x);
	color: var(--color-sale);
}

/* Cart: the "remove item" ×. */
a.remove::before {
	--wt-mask: var(--wt-icon-x-circle);
	margin: auto; /* centres the icon inside its square */
	color: var(--color-text-muted);
}

a.remove:hover::before {
	color: var(--color-sale);
}

/* Checkout: payment method choices (M-Pesa, Pay on Delivery) drawn as radio circles. */
#payment .payment_methods > .woocommerce-PaymentMethod > label::before,
#payment .payment_methods > .wc_payment_method > label::before {
	--wt-mask: var(--wt-icon-radio);
}

#payment .payment_methods li.woocommerce-PaymentMethod > input[type=radio]:first-child:checked + label::before,
#payment .payment_methods li.wc_payment_method > input[type=radio]:first-child:checked + label::before {
	--wt-mask: var(--wt-icon-radio-checked);
	color: var(--color-primary);
}

/* Arrows on "View cart" / "Continue" style buttons and account pagination. */
.wc-forward::after,
.woocommerce-Button--next::after                         { --wt-mask: var(--wt-icon-arrow-right); }
.woocommerce-Button--previous::before                    { --wt-mask: var(--wt-icon-arrow-left); }

/* Reviews: "verified owner" tick. */
#reviews .commentlist li p.meta .verified::before        { --wt-mask: var(--wt-icon-check-circle); }

/* Login / register: show-password eye. */
.show-password-input::after                              { --wt-mask: var(--wt-icon-eye); }
.show-password-input.display-password::after             { --wt-mask: var(--wt-icon-eye-off); }

/* Notices ("Added to cart", info, errors). */
.woocommerce-message::before                             { --wt-mask: var(--wt-icon-check-circle); }
.woocommerce-info::before,
.woocommerce-noreviews::before,
p.no-comments::before                                    { --wt-mask: var(--wt-icon-info); }
.woocommerce-error::before                               { --wt-mask: var(--wt-icon-alert-circle); }

/* Store-wide notice bar (WooCommerce → Settings, if switched on). */
.demo_store::before                                      { --wt-mask: var(--wt-icon-info); }
.demo_store a.woocommerce-store-notice__dismiss-link::before { --wt-mask: var(--wt-icon-x); }

/* Review form: clickable stars. Colours replace Storefront's purple. */
p.stars a::before {
	--wt-mask: var(--wt-icon-star);
}

p.stars a:hover ~ a::before {
	color: var(--color-border);
	opacity: 1;
}

p.stars:hover a::before,
p.stars.selected a.active::before,
p.stars.selected a:not(.active)::before {
	color: var(--color-accent);
	opacity: 1;
}

p.stars.selected a.active ~ a::before {
	color: var(--color-border);
	opacity: 1;
}

/* --- 7c. Loading spinners (buttons and the "please wait" overlay) -------- */
button.loading::after,
input[type=button].loading::after,
input[type=reset].loading::after,
input[type=submit].loading::after,
.button.loading::after,
.wc-block-grid__products .wc-block-grid__product .wp-block-button__link.loading::after,
.added_to_cart.loading::after,
.blockUI::before {
	content: "";
	font-family: inherit;
	box-sizing: border-box;
	border: 2px solid currentColor;
	border-right-color: transparent; /* the gap that makes the spin visible */
	border-radius: 50%;
	animation: wt-spin 0.75s linear infinite;
}

.blockUI::before {
	border-width: 3px;
	color: var(--color-primary);
}

@keyframes wt-spin {
	to {
		transform: rotate(360deg);
	}
}

/* --- 7d. Star ratings (product cards, product page, reviews) ------------- */
/* A row of 5 grey stars, with a row of amber stars on top cut to the
   rating's width (WooCommerce sets that width, e.g. 80% for 4 stars). */
.star-rating {
	font-family: inherit;
}

.star-rating::before,
.star-rating span::before {
	content: "";
	width: 5.5em;
	height: 1.618em;
	background-color: currentColor;
	-webkit-mask: var(--wt-icon-star) left center / 1.1em 1em repeat-x;
	mask: var(--wt-icon-star) left center / 1.1em 1em repeat-x;
}

.star-rating::before {
	color: var(--color-border);
	opacity: 1;
}

.star-rating span::before {
	color: var(--color-accent);
}

/* --- 7e. Hidden: decorative icons and features this shop doesn't use ------ */
/* Blog/comment icons (no blog), plugin icons for extensions that aren't
   installed, and purely decorative extras like folder icons in the category
   widget or smiley faces on the password strength meter. */
#comments .comment-list .bypostauthor > .comment-body cite a::after,
#comments .comment-list .reply a::after,
#respond #cancel-comment-reply-link::before,
.sticky .entry-title::before,
.site-main nav.navigation .nav-previous a::before,
.site-main nav.navigation .nav-next a::after,
a.reset_variations::before,
a#variations_clear::before,
.single-product div.product .component_selections .clear_component_options::before,
.widget_recent_entries ul li::before,
.widget_pages ul li::before,
.widget_categories ul li::before,
.widget_archive ul li::before,
.widget_recent_comments ul li::before,
.widget_nav_menu ul li::before,
.widget_links ul li::before,
.widget_product_categories ul li::before,
.woocommerce-shipping-calculator > p:first-child a::before,
.woocommerce-password-strength::after,
.woocommerce-MyAccount-navigation ul li a::before,
.my_account_orders .button.view::after,
p.order-again .button::after,
.woocommerce-MyAccount-downloads .button::after,
.woocommerce-tabs ul.tabs li::after,
.addresses header.title a::before,
.cart .mnm_table_item .mnm_table_item_indent::before,
.shop_table .mnm_table_item .mnm_table_item_indent::before,
.quick-view-button::before,
.woocommerce-page .ship_address .gift-form label::after,
.woocommerce-page .no_shipping_address .gift-form label::after,
.woocommerce-page .ship_address .modify-address-button::before,
.woocommerce-page .no_shipping_address .modify-address-button::before,
.wl-add-link::before,
.button.wl-create-new::before,
#wl-wrapper .wl-tabs > li.active::after,
.site-header-cart .cart-contents::after,
.storefront-handheld-footer-bar ul li > a::before,
.handheld-navigation ul.menu li button::after {
	display: none;
}

/* Those list widgets left a gap for their (now hidden) icon. Remove it. */
.widget_recent_entries ul li,
.widget_pages ul li,
.widget_categories ul li,
.widget_archive ul li,
.widget_recent_comments ul li,
.widget_nav_menu ul li,
.widget_links ul li,
.widget_product_categories ul li {
	padding-left: 0;
}

/* --- 7f. Layout that used to come with Font Awesome ---------------------- */
/* Storefront's icons.css (switched off with Font Awesome) also held LAYOUT
   for the elements around its icons: hiding text the icon replaces, sizing
   boxes, positioning spinners. Without these rules the cart "remove" link
   shows a "×" next to its icon, checkout shows two radio circles, etc.
   Values copied from Storefront 4.6. */

/* Loading spinners: centred on the button / "please wait" overlay. */
button.loading,
input[type=button].loading,
input[type=reset].loading,
input[type=submit].loading,
.button.loading,
.added_to_cart.loading {
	position: relative;
}

button.loading::after,
input[type=button].loading::after,
input[type=reset].loading::after,
input[type=submit].loading::after,
.button.loading::after,
.wc-block-grid__products .wc-block-grid__product .wp-block-button__link.loading::after,
.added_to_cart.loading::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
}

.blockUI::before {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 30px;
	height: 30px;
	margin: -15px 0 0 -15px;
}

/* Cart: the "remove item" link is a small square showing only the icon. */
a.remove {
	position: relative;
	width: 1.618em;
	height: 1.618em;
	overflow: hidden;
	text-indent: -9999px;
}

a.remove::before {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	text-indent: 0;
}

/* Checkout: hide the real radio button; the drawn circle replaces it
   (the radio still works for keyboard and screen readers). */
#payment .payment_methods li.woocommerce-PaymentMethod > input[type=radio]:first-child,
#payment .payment_methods li.wc_payment_method > input[type=radio]:first-child {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
}

#payment .payment_methods > .woocommerce-PaymentMethod > label::before,
#payment .payment_methods > .wc_payment_method > label::before {
	margin-right: 0.5407911001em;
	transition: color 0.2s ease;
}

/* Pagination: previous/next show only their arrow. */
.woocommerce-pagination .next,
.woocommerce-pagination .prev {
	position: relative;
	overflow: hidden;
	text-indent: -9999px;
}

.woocommerce-pagination .next::after,
.woocommerce-pagination .prev::after {
	position: absolute;
	top: 50%;
	left: 50%;
	text-indent: 0;
	transform: translate(-50%, -50%);
}

/* Breadcrumbs: a small chevron instead of the "/" text. */
.woocommerce-breadcrumb .breadcrumb-separator {
	position: relative;
	display: inline-block;
	width: 1em;
	padding: 0 0.5em;
	text-indent: -9999px;
	vertical-align: middle;
}

.woocommerce-breadcrumb .breadcrumb-separator::after {
	position: absolute;
	top: 50%;
	left: 50%;
	text-indent: 0;
	opacity: 0.4;
	transform: translate(-50%, -50%);
}

/* Product gallery: the zoom button shows only its magnifying glass. */
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	overflow: hidden;
	text-indent: -999px;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger::before {
	text-indent: 0;
}

/* Reviews: the "verified owner" tick replaces its text. */
#reviews .commentlist li p.meta .verified {
	position: relative;
	display: inline-block;
	width: 1.41575em;
	height: 1.41575em;
	text-indent: -9999px;
}

#reviews .commentlist li p.meta .verified::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 1.41575em;
	height: 1.41575em;
	text-indent: 0;
}

/* Search widget: room for the magnifying glass inside the box. */
.widget_search form:not(.wp-block-search)::before,
.widget_product_search form:not(.wp-block-search)::before {
	position: absolute;
	top: 1em;
	left: 1em;
}

.widget_search form:not(.wp-block-search) input[type=search],
.widget_product_search form:not(.wp-block-search) input[type=search] {
	padding-left: 2.617924em;
}

/* Small gaps between an icon and its text. */
.stock::before,
a.reset_variations::before,
.woocommerce-breadcrumb a:first-of-type::before,
.woocommerce-Button--previous::before,
.demo_store::before {
	margin-right: 0.5407911001em;
}

.wc-forward::after,
.woocommerce-Button--next::after {
	margin-left: 0.5407911001em;
}


/* ==========================================================================
   8. PRODUCT CARDS AND SHOP PAGES
   Markup: inc/product-card.php (WooCommerce loop hooks).
   Used by shop, category and search pages, [products] shortcodes,
   related products, upsells and cross-sells.
   ========================================================================== */

/* --- 8a. The grid: 2 columns on phones, 3 on tablets, 4 on desktop ------- */
/* CSS grid instead of Storefront's floats. The grid decides the columns
   (Storefront's "columns-3" etc. classes are ignored), and every card in a
   row gets the same height. */
ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3);
	margin: 0 0 var(--space-6);
	padding: 0;
}

/* Storefront's float "clearfix" pseudo-elements would become empty grid cells. */
ul.products::before,
ul.products::after {
	display: none;
}

@media (min-width: 768px) {
	ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--space-4);
	}
}

@media (min-width: 1024px) {
	ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--space-4);
	}
}

/* 5 columns from 1280px. Pages with a sidebar (Storefront shows one when it
   has widgets) have a narrower product area, so they stay at 4: five cards
   there would be too narrow for the two buttons side by side. */
@media (min-width: 1280px) {
	ul.products {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	body:not(.storefront-full-width-content) .content-area ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* --- 8b. The card -------------------------------------------------------- */
/* width/margin need !important: Storefront sets them in 15+ column rules,
   some 5 classes deep. The grid now controls both, so we neutralise them. */
ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	float: none;
	width: auto !important;
	margin: 0 !important;
	padding: var(--space-2);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background-color: var(--color-white);
	text-align: left;
	transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

@media (min-width: 768px) {
	ul.products li.product {
		padding: var(--space-3);
	}
}

ul.products li.product:hover {
	border-color: transparent;
	box-shadow: var(--shadow-lg);
}

/* The link around image, title and price fills the card, so the stock line
   and buttons always sit at the bottom, level across the row. */
ul.products li.product .woocommerce-loop-product__link {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

/* Image area: a white square; the photo is fitted inside (not cropped). */
.wt-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	margin-bottom: var(--space-3);
	overflow: hidden; /* keeps the zoom-on-hover inside the square */
	border-radius: var(--radius-md);
	background-color: var(--color-white);
}

ul.products li.product .wt-card__img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: var(--space-1);
	box-sizing: border-box;
	border-radius: 0;
	object-fit: contain;
	transition: transform 300ms ease;
}

ul.products li.product:hover .wt-card__img {
	transform: scale(1.05);
}

/* Badges: amber "-20%" or grey "Out of stock", top-left of the image. */
.wt-badge {
	position: absolute;
	top: var(--space-2);
	left: var(--space-2);
	z-index: 1;
	padding: 0.125rem var(--space-2);
	border-radius: var(--radius-pill);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-bold);
	line-height: 1.5;
	white-space: nowrap;
}

.wt-badge--sale {
	background-color: var(--color-accent);
	color: var(--color-dark);
}

.wt-badge--muted {
	background-color: var(--color-text-muted);
	color: var(--color-white);
}

/* Title: at most 2 lines, then "…". Always 2 lines tall so prices line up. */
ul.products li.product .woocommerce-loop-product__title {
	display: -webkit-box;
	min-height: calc(2em * 1.35);
	margin: 0 0 var(--space-2);
	padding: 0;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	color: var(--color-dark);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semibold);
	line-height: 1.35;
}

ul.products li.product .woocommerce-loop-product__link:hover .woocommerce-loop-product__title {
	color: var(--color-primary);
}

/* Price: current price bold blue; old price smaller, grey, crossed out.
   Variable products show WooCommerce's range ("KSh 3,000 – KSh 5,500"). */
ul.products li.product .price {
	display: block;
	margin: 0 0 var(--space-2);
	color: var(--color-primary);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-bold);
	line-height: 1.3;
}

ul.products li.product .price del {
	margin-right: var(--space-1);
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-regular);
	opacity: 1;
}

ul.products li.product .price ins {
	margin-left: 0;
	background: none;
	color: var(--color-primary);
	font-weight: var(--font-weight-bold);
	text-decoration: none;
}

@media (min-width: 768px) {
	ul.products li.product .woocommerce-loop-product__title {
		font-size: var(--font-size-card-title);
	}

	ul.products li.product .price {
		font-size: var(--font-size-card-price);
	}
}

/* --- 8c. Stock line and buttons ------------------------------------------ */
.wt-card__footer {
	margin-top: auto;
}

/* Small coloured dot + text. */
.wt-card__stock {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	margin: 0 0 var(--space-3);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-semibold);
	line-height: 1.3;
}

.wt-card__stock::before {
	content: "";
	flex-shrink: 0;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background-color: currentColor;
}

.wt-card__stock--in {
	color: var(--color-success);
}

.wt-card__stock--out {
	color: var(--color-sale);
}

.wt-card__stock--backorder {
	color: var(--color-text-muted);
}

.wt-card__stock--backorder::before {
	background-color: var(--color-accent);
}

/* Buttons row: main button takes the space, WhatsApp square on the right. */
.wt-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

/* Main button (Add to cart / Select options / Ask on WhatsApp): amber,
   dark text. The long selector beats Storefront's and section 4's button rules. */
ul.products li.product .wt-card__actions .button {
	position: relative;
	display: inline-flex;
	flex: 1 1 0%;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-width: 0;
	min-height: var(--card-button-height);
	margin: 0;
	padding: 0 var(--space-2);
	border: 0;
	border-radius: var(--radius-md);
	background-color: var(--color-accent);
	color: var(--color-dark);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-bold);
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

ul.products li.product .wt-card__actions .button:hover {
	background-color: var(--color-accent-dark);
	color: var(--color-dark);
	text-decoration: none;
}

@media (min-width: 768px) {
	ul.products li.product .wt-card__actions .button {
		padding: 0 var(--space-3);
		font-size: var(--font-size-sm);
	}
}

.wt-card__actions .button .wt-icon {
	width: 1.125rem;
	height: 1.125rem;
}

/* While adding to cart, hide the text so only the spinner shows. */
ul.products li.product .wt-card__actions .button.loading {
	color: transparent;
}

ul.products li.product .wt-card__actions .button.loading::after {
	color: var(--color-dark);
}

/* WhatsApp: square green icon button. */
.wt-card__whatsapp {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: var(--card-button-height); /* square: as wide as it is tall */
	min-height: var(--card-button-height);
	border-radius: var(--radius-md);
	background-color: var(--color-whatsapp);
	color: var(--color-white);
	transition: background-color var(--transition-fast);
}

.wt-card__whatsapp:hover,
.wt-card__whatsapp:focus {
	background-color: var(--color-whatsapp-dark);
	color: var(--color-white);
}

.wt-card__whatsapp .wt-icon {
	width: 1.25rem;
	height: 1.25rem;
}

/* Out of stock: the full-width "Ask on WhatsApp" button is green too. */
ul.products li.product .wt-card__actions .button.wt-card__ask {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	border-color: var(--color-whatsapp);
	background-color: var(--color-whatsapp);
	color: var(--color-white);
}

ul.products li.product .wt-card__actions .button.wt-card__ask:hover {
	border-color: var(--color-whatsapp-dark);
	background-color: var(--color-whatsapp-dark);
	color: var(--color-white);
}

.wt-card__ask .wt-icon {
	flex-shrink: 0;
	width: 1.125rem;
	height: 1.125rem;
}

/* After "Add to cart", WooCommerce adds a "View cart" link next to the
   button. Show it as a small link on its own line underneath. */
ul.products li.product .wt-card__actions .added_to_cart {
	flex-basis: 100%;
	order: 3;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-primary);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-semibold);
	text-align: center;
}

ul.products li.product .wt-card__actions .added_to_cart:hover {
	background: none;
	color: var(--color-primary-dark);
	text-decoration: underline;
}

/* Category tiles (when a shop page shows subcategories): same card look. */
ul.products li.product-category img {
	width: 100%;
	aspect-ratio: 1 / 1;
	margin: 0 0 var(--space-2);
	object-fit: contain;
	border-radius: var(--radius-md);
}

ul.products li.product-category .woocommerce-loop-category__title {
	margin: 0;
	color: var(--color-dark);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-semibold);
}

ul.products li.product-category .woocommerce-loop-category__title .count {
	background: none;
	color: var(--color-text-muted);
	font-weight: var(--font-weight-regular);
}

/* --- 8d. Shop/category/search pages: compact title row ------------------- */
/* inc/product-card.php moves the title into Storefront's sorting row:
   [Title ............ Showing 1–12 of 48 results  (Sort by ▾)]
   Phones: title on its own line, count and sorting underneath. */
.wt-archive-compact .woocommerce-products-header {
	display: none; /* the old, big title area (now empty) */
}

/* Less space between the breadcrumb and the title row (Storefront: ~60px). */
.wt-archive-compact .storefront-breadcrumb {
	margin-bottom: var(--space-2);
}

/* Storefront's float "clearfix" pseudo-elements would become invisible
   flex items before the title, pushing it 32px to the right. */
.storefront-sorting::before,
.storefront-sorting::after {
	display: none;
}

/* WooCommerce prints its notices box ("Added to cart" etc.) in this row too.
   Empty: hide it (it would push the title right). With a notice: its own
   full-width line above the title. */
.storefront-sorting .woocommerce-notices-wrapper {
	flex: 1 1 100%;
	order: 0;
}

.storefront-sorting .woocommerce-notices-wrapper:empty {
	display: none;
}

.storefront-sorting {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center; /* the bottom row (pagination only) is centred */
	gap: var(--space-2) var(--space-4);
	margin-bottom: var(--space-5);
	font-size: var(--font-size-sm);
}

.wt-archive-title {
	flex: 1 1 100%;
	order: 1;
	margin: 0;
	font-size: var(--font-size-xl);
}

/* Phones: the count shares a line with the sorting dropdown and wraps if
   needed. From 768px it only takes the space its text needs. */
.storefront-sorting .woocommerce-result-count {
	flex: 1 1 0%;
	order: 2;
	min-width: 0;
	float: none;
	margin: 0;
	padding: 0;
	color: var(--color-text-muted);
	font-size: var(--font-size-xs);
	line-height: 1.3;
}

@media (min-width: 768px) {
	.storefront-sorting .woocommerce-result-count {
		flex: 0 1 auto;
		font-size: var(--font-size-sm);
	}
}

.storefront-sorting .woocommerce-ordering {
	order: 3;
	float: none;
	margin: 0 0 0 auto;
	padding: 0;
}

.storefront-sorting .woocommerce-ordering select {
	min-height: 2.5rem;
	padding: 0 var(--space-6) 0 var(--space-4);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
	background-color: var(--color-white);
	/* Chevron drawn by the browser is removed; ours sits in the padding. */
	background-image: var(--wt-icon-chevron-down);
	background-position: right var(--space-3) center;
	background-repeat: no-repeat;
	background-size: 1rem;
	color: var(--color-dark);
	font-family: var(--font-family-base);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semibold);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

@media (min-width: 768px) {
	.wt-archive-title {
		flex: 1 1 auto;
		font-size: var(--font-size-2xl);
	}
}

/* --- 8e. Pagination: round number buttons -------------------------------- */
.woocommerce-pagination {
	float: none;
	margin: 0;
	padding: 0;
	border: 0;
	text-align: center;
}

.woocommerce-pagination ul.page-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	border: 0;
}

.woocommerce-pagination ul.page-numbers::before,
.woocommerce-pagination ul.page-numbers::after {
	display: none;
}

.woocommerce-pagination .page-numbers li {
	display: block;
	margin: 0;
	border: 0;
}

.woocommerce-pagination .page-numbers li .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 var(--space-3);
	box-sizing: border-box;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
	background-color: var(--color-white);
	color: var(--color-dark);
	font-weight: var(--font-weight-semibold);
	text-decoration: none;
}

.woocommerce-pagination .page-numbers li a.page-numbers:hover {
	border-color: var(--color-primary);
	background-color: var(--color-white);
	color: var(--color-primary);
}

.woocommerce-pagination .page-numbers li .page-numbers.current {
	border-color: var(--color-primary);
	background-color: var(--color-primary);
	color: var(--color-white);
}

.woocommerce-pagination .page-numbers li .page-numbers.dots {
	border-color: transparent;
	background-color: transparent;
}

.woocommerce-pagination .page-numbers li .page-numbers.prev,
.woocommerce-pagination .page-numbers li .page-numbers.next {
	width: 2.5rem;
	padding: 0;
}


/* ==========================================================================
   9. HOMEPAGE
   Markup: front-page.php + inc/homepage.php. Behaviour: assets/js/homepage.js.
   ========================================================================== */

/* --- 9a. Page frame ------------------------------------------------------ */
/* Storefront puts all page content in one centred .col-full box. On the
   homepage each section needs a full-width background (white / grey / blue),
   so that box is opened up and every section has its own .wt-container. */
/* Storefront adds a 68px gap under the header on home pages with rules like
   ".home.page:not(.page-template-template-homepage) .site-header"; these
   selectors are just as specific and come later, so they win. */
.wt-front .site-header,
.home.page.wt-front .site-header,
.home.blog.wt-front .site-header {
	margin-bottom: 0;
}

.wt-front .site-content > .col-full {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.wt-home {
	margin: 0;
}

/* Anything the script hides with the "hidden" attribute stays hidden, even
   if a rule below gives it a display value. */
.wt-home [hidden] {
	display: none !important;
}

/* --- 9b. Sections and headings ------------------------------------------- */
.wt-hs {
	padding: var(--space-6) 0;
	background-color: var(--color-white);
}

.wt-hs--grey {
	background-color: var(--color-surface);
}

.wt-hs--hero {
	padding-top: var(--space-4);
}

@media (min-width: 768px) {
	.wt-hs {
		padding: var(--space-7) 0;
	}

	.wt-hs--hero {
		padding-top: var(--space-5);
	}
}

/* Heading row: title (short amber line underneath) · tabs/countdown · View all → */
.wt-hs__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3) var(--space-5);
	margin-bottom: var(--space-5);
}

.wt-hs__title {
	position: relative;
	margin: 0;
	padding-bottom: var(--space-2);
	font-size: var(--font-size-xl);
}

.wt-hs__title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 3rem;
	height: 4px;
	border-radius: var(--radius-pill);
	background-color: var(--color-accent);
}

.wt-hs__more {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	margin-left: auto; /* pushes it to the right end */
	color: var(--color-primary);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semibold);
	white-space: nowrap;
}

.wt-hs__more .wt-icon {
	width: 1rem;
	height: 1rem;
	transition: transform var(--transition-fast);
}

.wt-hs__more:hover .wt-icon {
	transform: translateX(3px);
}

@media (min-width: 768px) {
	.wt-hs__title {
		font-size: var(--font-size-2xl);
	}
}

/* --- 9c. Hero: slider + two side banners ---------------------------------- */
.wt-hero {
	display: grid;
	gap: var(--space-3);
}

/* Slider: a row of slides that scrolls sideways and snaps to each slide.
   Its shape comes from slide 1's image (--wt-hero-ratio, set in the HTML),
   so the space is reserved before the images arrive. */
.wt-hero__slider {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background-color: var(--color-surface);
}

.wt-hero__track {
	display: flex;
	aspect-ratio: var(--wt-hero-ratio-mobile, 2 / 1);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

.wt-hero__track::-webkit-scrollbar {
	display: none;
}

.wt-hero__slide {
	position: relative;
	flex: 0 0 100%;
	scroll-snap-align: start;
}

.wt-hero__link,
.wt-banner {
	position: relative;
	display: block;
	height: 100%;
	color: var(--color-white);
	text-decoration: none;
}

.wt-hero__slide img,
.wt-banner img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 0;
	object-fit: cover;
}

/* --- Overlay text (wiltech_home_overlay in inc/homepage.php) ---------------
   The banner images keep their LEFT half clear (TOP half on phone crops), so
   the text sits there. No dark fade: the banners' own colours give the
   contrast, and a soft text-shadow helps headings over busier spots. */
.wt-overlay {
	position: absolute;
	z-index: 1;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	color: var(--color-white);
}

/* Side banners can switch to dark text (Customizer "text colour"). */
.wt-overlay--dark {
	color: var(--color-dark);
}

.wt-overlay__heading {
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
	text-shadow: var(--overlay-text-shadow);
}

.wt-overlay--dark .wt-overlay__heading {
	text-shadow: none;
}

.wt-overlay__sub {
	line-height: 1.4;
	opacity: 0.9;
}

/* The button look-alike (a <span>: the whole banner is already the link). */
.wt-overlay__button {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: var(--space-2);
	padding: 0.75rem 1.25rem;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-bold);
	line-height: 1.2;
	text-shadow: none;
	transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.wt-overlay__button .wt-icon {
	width: 1.125rem;
	height: 1.125rem;
	transition: transform var(--transition-fast);
}

.wt-overlay__button--amber {
	background-color: var(--color-accent);
	color: var(--color-dark);
}

.wt-overlay__button--white {
	background-color: var(--color-white);
	color: var(--color-deals-red);
}

/* Hovering anywhere on the banner (it's one big link) highlights the button. */
a:hover .wt-overlay__button--amber {
	background-color: var(--color-accent-dark);
}

a:hover .wt-overlay__button--white {
	box-shadow: var(--shadow-md);
}

a:hover .wt-overlay__button .wt-icon {
	transform: translateX(3px);
}

/* Slides on phones: text in the TOP part, centred. The phone images keep
   the top clear; their products start at about 58% of the height, so the
   text area is the top 56%. */
.wt-overlay--slide {
	top: 0;
	right: 0;
	left: 0;
	height: 56%;
	align-items: center;
	justify-content: center;
	gap: var(--space-1);
	padding: var(--space-3) var(--space-4);
	text-align: center;
}

.wt-overlay--slide .wt-overlay__heading {
	font-size: var(--hero-heading-size-mobile);
}

.wt-overlay--slide .wt-overlay__sub {
	max-width: 26rem;
	font-size: var(--font-size-sm);
}

.wt-overlay--slide .wt-overlay__button {
	align-self: center;
	margin-top: var(--space-2);
	padding: 0.625rem 1.125rem;
	font-size: var(--font-size-sm);
}

/* Side banners on phones (two small banners side by side): heading only;
   the whole banner is tappable. */
.wt-overlay--promo {
	top: 0;
	bottom: 0;
	left: 0;
	width: 55%;
	justify-content: center;
	gap: var(--space-1);
	padding: var(--space-2) var(--space-3);
}

.wt-overlay--promo .wt-overlay__heading {
	font-size: var(--font-size-sm);
}

.wt-overlay--promo .wt-overlay__sub,
.wt-overlay--promo .wt-overlay__button {
	display: none;
}

/* Slider arrows: small, see-through white, at the far left/right edges.
   Desktop only, and only while the pointer is over the slider (or an arrow
   has keyboard focus). Phones use swipe and the dots. */
.wt-home button.wt-hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.55);
	color: var(--color-dark);
	box-shadow: none;
	opacity: 0;
	transform: translateY(-50%);
	transition: opacity var(--transition-fast), background-color var(--transition-fast);
}

.wt-home button.wt-hero__arrow:hover {
	background-color: rgba(255, 255, 255, 0.9);
	color: var(--color-dark);
}

.wt-hero__slider:hover .wt-hero__arrow,
.wt-home button.wt-hero__arrow:focus-visible {
	opacity: 1;
}

.wt-hero__arrow .wt-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.wt-hero__arrow--prev {
	left: 0.75rem;
}

.wt-hero__arrow--next {
	right: 0.75rem;
}

.wt-hero__dots {
	position: absolute;
	bottom: var(--space-3);
	left: 50%;
	z-index: 1;
	display: flex;
	gap: var(--space-1);
	transform: translateX(-50%);
}

/* Each dot is a 24px tap target with a small visible dot inside. */
.wt-home button.wt-hero__dot {
	position: relative;
	width: 1.5rem;
	height: 1.5rem;
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.wt-home button.wt-hero__dot::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.625rem;
	height: 0.625rem;
	border-radius: var(--radius-pill);
	background-color: rgba(255, 255, 255, 0.7);
	box-shadow: 0 0 0 1px rgba(20, 32, 46, 0.3);
	transform: translate(-50%, -50%);
	transition: width var(--transition-fast), background-color var(--transition-fast);
}

.wt-home button.wt-hero__dot[aria-current="true"]::before {
	width: 1.25rem;
	background-color: var(--color-accent);
}

/* Side banners: side by side under the slider on phones. */
.wt-hero__promos {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-3);
}

.wt-hero__promos .wt-banner {
	aspect-ratio: 2 / 1;
	overflow: hidden;
	border-radius: var(--radius-md);
}

@media (min-width: 768px) {
	/* Slider 2/3, banners 1/3, stacked and exactly as tall as the slider. */
	.wt-hero {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		gap: var(--space-4);
	}

	.wt-hero--no-promos {
		grid-template-columns: minmax(0, 1fr);
	}

	.wt-hero__track {
		aspect-ratio: var(--wt-hero-ratio, 2 / 1);
	}

	.wt-home button.wt-hero__arrow {
		display: inline-flex;
	}

	.wt-hero__promos {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: 1fr 1fr;
		gap: var(--space-4);
	}

	/* The banners take their height FROM the slider (the row's height), so
	   their images are placed absolutely and don't push the row taller. */
	.wt-hero__promos .wt-banner {
		aspect-ratio: auto;
		min-height: 0;
		border-radius: var(--radius-lg);
	}

	.wt-hero__promos .wt-banner img {
		position: absolute;
		top: 0;
		left: 0;
	}

	/* Slides (tablet, 768–1023px: the slider is only ~450px wide here):
	   text block in the left half, vertically centred, left-aligned. Heading
	   and button only; the subheading returns from 1024px. The bottom
	   padding keeps the text clear of the dots. */
	.wt-overlay--slide {
		top: 0;
		right: auto;
		bottom: 0;
		left: 0;
		width: 50%;
		height: auto;
		align-items: flex-start;
		gap: var(--space-2);
		padding: var(--space-4) var(--space-3) var(--space-7) var(--space-5);
		text-align: left;
	}

	.wt-overlay--slide .wt-overlay__heading {
		font-size: var(--hero-heading-size-sm);
	}

	.wt-overlay--slide .wt-overlay__sub {
		display: none;
	}

	.wt-overlay--slide .wt-overlay__button {
		align-self: flex-start;
		margin-top: var(--space-2);
	}

	.wt-home button.wt-hero__arrow {
		display: inline-flex;
	}

	/* Side banners: text block in the left 55%, vertically centred.
	   768–1023px they're only ~230 × 110px: heading + small button only. */
	.wt-overlay--promo {
		gap: var(--space-1);
		padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
	}

	.wt-overlay--promo .wt-overlay__heading {
		font-size: var(--font-size-base);
	}

	.wt-overlay--promo .wt-overlay__button {
		display: inline-flex;
		margin-top: var(--space-1);
		padding: 0.375rem 0.75rem;
		font-size: var(--font-size-xs);
	}

	.wt-overlay--promo .wt-overlay__button .wt-icon {
		width: 1rem;
		height: 1rem;
	}
}

/* Slides, 1024–1279px: subheading back, heading 32px. */
@media (min-width: 1024px) {
	.wt-overlay--slide {
		gap: var(--space-3);
	}

	.wt-overlay--slide .wt-overlay__heading {
		font-size: var(--hero-heading-size-md);
	}

	.wt-overlay--slide .wt-overlay__sub {
		display: block;
		max-width: 26.25rem; /* 420px */
		font-size: var(--font-size-base);
	}

	.wt-overlay--slide .wt-overlay__button {
		padding: 0.75rem 1.25rem;
		font-size: var(--font-size-base);
	}

	/* Side banners ~310 × 145px: slightly bigger heading and button. */
	.wt-overlay--promo {
		padding-left: var(--space-5);
	}

	.wt-overlay--promo .wt-overlay__heading {
		font-size: var(--font-size-lg);
	}

	.wt-overlay--promo .wt-overlay__button {
		margin-top: var(--space-2);
		padding: 0.5rem 0.875rem;
		font-size: var(--font-size-sm);
	}
}

/* Slides, 1280px+: the full design. Left 45%, 56px from the edge, heading
   44px, subheading 18px, button 24px below the text (12px gap + 12px
   margin). The 64px bottom padding keeps text well clear of the dots. */
@media (min-width: 1280px) {
	.wt-overlay--slide {
		width: 45%;
		padding: var(--space-6) var(--space-4) var(--space-8) 3.5rem;
	}

	.wt-overlay--slide .wt-overlay__heading {
		font-size: var(--hero-heading-size);
	}

	.wt-overlay--slide .wt-overlay__sub {
		font-size: var(--hero-sub-size);
	}

	.wt-overlay--slide .wt-overlay__button {
		margin-top: var(--space-3);
	}

	/* Side banners at full size (~395 × 190px): heading 22px, subheading
	   15px, then the button. */
	.wt-overlay--promo .wt-overlay__heading {
		font-size: var(--promo-heading-size);
	}

	.wt-overlay--promo .wt-overlay__sub {
		display: block;
		font-size: var(--promo-sub-size);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wt-overlay__button,
	.wt-overlay__button .wt-icon,
	.wt-home button.wt-hero__arrow {
		transition: none;
	}
}

/* --- 9d. Trust strip ------------------------------------------------------ */
.wt-trust {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-4) var(--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wt-trust__item {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin: 0;
}

.wt-trust__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background-color: var(--color-primary-light);
	color: var(--color-primary);
}

.wt-trust__icon .wt-icon {
	width: 1.375rem;
	height: 1.375rem;
}

.wt-trust__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.wt-trust__text strong {
	color: var(--color-dark);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-bold);
}

.wt-trust__text span {
	color: var(--color-text-muted);
	font-size: var(--font-size-xs);
}

@media (min-width: 1024px) {
	.wt-trust {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--space-5);
	}

	.wt-trust__icon {
		width: 3.25rem;
		height: 3.25rem;
	}

	.wt-trust__text strong {
		font-size: var(--font-size-base);
	}

	.wt-trust__text span {
		font-size: var(--font-size-sm);
	}
}

/* --- 9e. Carousels (product tabs, deals, showcase, brands) ---------------- */
/* A row that scrolls sideways and snaps to each card: 2.2 cards visible on
   phones (the peek shows there's more), 3 on tablets, 4 on desktop.
   Cards are the same product cards as on shop pages (section 8). */
.wt-carousel {
	position: relative;
}

.wt-carousel .wt-carousel__track {
	display: flex;
	gap: var(--space-3);
	margin: 0;
	/* room for the cards' hover shadow, which would otherwise be cut off */
	padding: var(--space-2) var(--space-1) var(--space-4);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-left: var(--space-1);
	scrollbar-width: none;
	list-style: none;
}

.wt-carousel .wt-carousel__track::-webkit-scrollbar {
	display: none;
}

.wt-carousel ul.products li.product {
	flex: 0 0 calc((100% - var(--space-3)) / 2.2);
	scroll-snap-align: start;
}

@media (min-width: 768px) {
	.wt-carousel .wt-carousel__track {
		gap: var(--space-4);
	}

	.wt-carousel ul.products li.product {
		flex-basis: calc((100% - 2 * var(--space-4)) / 3);
	}
}

@media (min-width: 1024px) {
	.wt-carousel .wt-carousel__track {
		gap: var(--space-4);
	}

	.wt-carousel ul.products li.product {
		flex-basis: calc((100% - 3 * var(--space-4)) / 4);
	}
}

/* 5 cards per view from 1280px, like the shop grid. */
@media (min-width: 1280px) {
	.wt-carousel ul.products li.product {
		flex-basis: calc((100% - 4 * var(--space-4)) / 5);
	}
}

/* Arrows (desktop only), half outside the row's edges. */
.wt-home button.wt-carousel__arrow {
	display: none;
}

@media (min-width: 768px) {
	.wt-home button.wt-carousel__arrow {
		position: absolute;
		top: 40%;
		z-index: 2;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2.75rem;
		height: 2.75rem;
		min-height: 0;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background-color: var(--color-white);
		color: var(--color-dark);
		box-shadow: var(--shadow-md);
		transform: translateY(-50%);
	}

	.wt-home button.wt-carousel__arrow:hover {
		background-color: var(--color-primary);
		color: var(--color-white);
	}

	/* At the start/end of the row, that arrow disappears. */
	.wt-home button.wt-carousel__arrow:disabled {
		visibility: hidden;
	}

	.wt-carousel__arrow--prev {
		left: -1.375rem;
	}

	.wt-carousel__arrow--next {
		right: -1.375rem;
	}
}

.wt-carousel__arrow .wt-icon {
	width: 1.25rem;
	height: 1.25rem;
}

/* --- 9f. Tabs ------------------------------------------------------------- */
/* Phones: the tab buttons get their own scrollable line under the title. */
.wt-tabs__list {
	display: flex;
	flex: 1 1 100%;
	order: 3;
	gap: var(--space-2);
	overflow-x: auto;
	scrollbar-width: none;
}

.wt-tabs__list::-webkit-scrollbar {
	display: none;
}

.wt-home button.wt-tabs__tab {
	flex: 0 0 auto;
	min-height: 2.5rem;
	padding: 0 var(--space-4);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
	background-color: var(--color-white);
	color: var(--color-dark);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semibold);
	white-space: nowrap;
}

.wt-home button.wt-tabs__tab:hover {
	border-color: var(--color-primary);
	background-color: var(--color-white);
	color: var(--color-primary);
}

.wt-home button.wt-tabs__tab[aria-selected="true"] {
	border-color: var(--color-primary);
	background-color: var(--color-primary);
	color: var(--color-white);
}

@media (min-width: 1024px) {
	/* Desktop: title · tabs · View all → on one line. */
	.wt-tabs__list {
		flex: 0 1 auto;
		order: 0;
	}
}

/* --- 9g. Deals countdown -------------------------------------------------- */
/* Phones: on its own line under "Title … View all deals"; desktop: between them. */
.wt-countdown {
	display: inline-flex;
	flex: 1 1 100%;
	order: 3;
	align-items: center;
	gap: var(--space-1);
}

@media (min-width: 768px) {
	.wt-countdown {
		flex: 0 1 auto;
		order: 0;
	}
}

.wt-countdown__label {
	margin-right: var(--space-1);
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semibold);
}

.wt-countdown__box {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	min-width: 2.75rem;
	padding: var(--space-1) var(--space-2);
	border-radius: var(--radius-md);
	background-color: var(--color-dark);
	color: var(--color-white);
	line-height: 1.1;
}

.wt-countdown__num {
	font-size: var(--font-size-md);
	font-weight: var(--font-weight-bold);
	font-variant-numeric: tabular-nums; /* digits don't jiggle as they change */
}

.wt-countdown__unit {
	font-size: 0.625rem;
	text-transform: uppercase;
	opacity: 0.8;
}

/* --- 9h. Shop by brand ---------------------------------------------------- */
.wt-carousel .wt-brands {
	align-items: center;
	padding-top: var(--space-1);
	padding-bottom: var(--space-2);
}

.wt-brands > li {
	flex: 0 0 auto;
	margin: 0;
	scroll-snap-align: start;
}

/* Logo tile: logos shown in grey, full colour on hover/focus. */
.wt-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 8.5rem;
	height: 4.5rem;
	padding: var(--space-3);
	box-sizing: border-box;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background-color: var(--color-white);
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.wt-brand:hover,
.wt-brand:focus {
	border-color: transparent;
	box-shadow: var(--shadow-md);
	text-decoration: none;
}

.wt-brand__logo {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	border-radius: 0;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.7;
	transition: filter var(--transition-fast), opacity var(--transition-fast);
}

.wt-brand:hover .wt-brand__logo,
.wt-brand:focus .wt-brand__logo {
	filter: none;
	opacity: 1;
}

/* No logo: a clean pill with the brand name. */
.wt-brand--text {
	width: auto;
	height: 2.75rem;
	padding: 0 var(--space-5);
	border-radius: var(--radius-pill);
	color: var(--color-dark);
	font-weight: var(--font-weight-semibold);
	white-space: nowrap;
}

.wt-brand--text:hover {
	color: var(--color-primary);
}

/* --- 9i. Shop by job ------------------------------------------------------ */
.wt-jobs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wt-jobs > li {
	margin: 0;
}

.wt-job {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background-color: var(--color-dark);
	color: var(--color-white);
	text-decoration: none;
}

.wt-job:hover {
	color: var(--color-white);
	text-decoration: none;
}

.wt-job__img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 0;
	object-fit: cover;
	transition: transform 300ms ease;
}

.wt-job:hover .wt-job__img {
	transform: scale(1.05);
}

/* Title on a dark fade at the bottom of the photo. */
.wt-job__title {
	position: relative;
	padding: var(--space-6) var(--space-3) var(--space-3);
	background: linear-gradient(to top, rgba(20, 32, 46, 0.85), rgba(20, 32, 46, 0));
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-bold);
	line-height: 1.25;
}

/* No photo: a compact brand blue tile (about 120px tall) with a white icon
   above the title. If a photo tile shares its row, it stretches to the same
   height so the row stays even (height: 100% of its grid cell). */
.wt-job--plain {
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	height: 100%;
	min-height: 7.5rem;
	padding: var(--space-4) var(--space-3);
	box-sizing: border-box;
	aspect-ratio: auto;
	background-color: var(--color-primary);
	text-align: center;
	transition: background-color var(--transition-fast);
}

.wt-job--plain:hover {
	background-color: var(--color-primary-dark);
}

.wt-job--plain .wt-job__title {
	padding: 0;
	background: none;
}

.wt-job__icon {
	display: block;
	color: var(--color-white);
}

.wt-job__icon .wt-icon {
	width: 2rem;
	height: 2rem;
}

@media (min-width: 768px) {
	.wt-jobs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--space-5);
	}

	.wt-job__title {
		padding: var(--space-7) var(--space-5) var(--space-4);
		font-size: var(--font-size-lg);
	}

	.wt-job--plain .wt-job__title {
		font-size: var(--font-size-base);
	}

	.wt-job__icon .wt-icon {
		width: 2.5rem;
		height: 2.5rem;
	}
}

/* --- 9j. Wide promo banner ------------------------------------------------ */
.wt-banner--wide {
	overflow: hidden;
	border-radius: var(--radius-lg);
}

.wt-banner--wide img {
	height: auto; /* keeps the uploaded image's own shape */
}

/* --- 9j-2. Discover more: product grid + "Show more" ----------------------- */
/* 3 rows at every width: 6 cards on phones, 9 on tablets, 12 at 4 columns,
   15 at 5 columns. Before homepage.js starts, CSS does this with
   nth-child; afterwards homepage.js marks hidden cards with .is-off.
   Hidden cards' lazy images aren't downloaded. */
@media (max-width: 767px) {
	.wt-discover:not(.is-ready) ul.wt-discover__grid > li.product:nth-child(n+7) {
		display: none;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.wt-discover:not(.is-ready) ul.wt-discover__grid > li.product:nth-child(n+10) {
		display: none;
	}
}

@media (min-width: 1024px) and (max-width: 1279px) {
	.wt-discover:not(.is-ready) ul.wt-discover__grid > li.product:nth-child(n+13) {
		display: none;
	}
}

ul.products.wt-discover__grid > li.product.is-off {
	display: none;
}

.wt-discover__more {
	display: flex;
	justify-content: center;
}

.wt-discover__more [hidden] {
	display: none;
}

.wt-discover__button,
.wt-discover__shop {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-width: 13rem;
	min-height: 3rem;
	border-radius: var(--radius-pill);
}

.wt-discover__shop .wt-icon {
	width: 1.125rem;
	height: 1.125rem;
}

/* Loading: the text fades out and a small white spinner turns in its place. */
.wt-discover__button {
	position: relative;
}

.wt-discover__button.is-loading,
.wt-discover__button.is-loading:disabled {
	color: transparent;
	opacity: 1;
	cursor: progress;
}

.wt-discover__button.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.25rem;
	height: 1.25rem;
	margin: -0.625rem 0 0 -0.625rem;
	border: 2px solid var(--color-white);
	border-top-color: transparent;
	border-radius: 50%;
	animation: wt-spin 0.7s linear infinite;
}

/* --- 9k. Need help choosing? (brand blue band) ----------------------------- */
.wt-hs--help {
	background-color: var(--color-primary);
	color: var(--color-white);
}

.wt-help {
	max-width: 44rem;
	margin: 0 auto;
	text-align: center;
}

.wt-help__title {
	margin: 0 0 var(--space-3);
	color: var(--color-white);
	font-size: var(--font-size-2xl);
}

.wt-help__text {
	margin: 0 0 var(--space-5);
	opacity: 0.9;
}

.wt-help__buttons {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.wt-help__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-height: 3.5rem;
	padding: 0 var(--space-6);
	border-radius: var(--radius-pill);
	font-size: var(--font-size-md);
	font-weight: var(--font-weight-bold);
	text-decoration: none;
	transition: background-color var(--transition-fast), color var(--transition-fast);
}

.wt-help__btn:hover {
	text-decoration: none;
}

.wt-help__btn--call {
	background-color: var(--color-white);
	color: var(--color-primary);
}

.wt-help__btn--call:hover {
	background-color: var(--color-primary-light);
	color: var(--color-primary-dark);
}

.wt-help__btn--whatsapp {
	background-color: var(--color-whatsapp);
	color: var(--color-white);
}

.wt-help__btn--whatsapp:hover {
	background-color: var(--color-whatsapp-dark);
	color: var(--color-white);
}

.wt-hs--help :focus-visible {
	outline-color: var(--color-white);
}

@media (min-width: 768px) {
	.wt-help__buttons {
		flex-direction: row;
		justify-content: center;
	}
}


/* ==========================================================================
   10. FOOTER
   Markup: inc/footer.php. Accordions: assets/js/header.js (section 7).
   Phones: columns stacked; Shop and Customer care fold up.
   768px+: 2 × 2 columns. 1024px+: 4 columns side by side.
   ========================================================================== */

/* Storefront's footer box: brand blue, full width (our .wt-container
   blocks inside set the width), no padding of its own. */
.site-footer {
	margin: 0;
	padding: 0;
	background-color: var(--color-primary);
	color: var(--color-white);
}

.site-footer > .col-full {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.wt-footer {
	font-size: var(--font-size-sm);
	line-height: 1.6;
}

/* White links, amber on hover. The selectors match the strength of the
   footer colours Storefront prints from its Customizer, so ours win. */
.site-footer .wt-footer a:not(.button) {
	color: var(--color-white);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.site-footer .wt-footer a:not(.button):hover,
.site-footer .wt-footer a:not(.button):focus {
	color: var(--color-accent);
	text-decoration: none;
}

.wt-footer :focus-visible {
	outline-color: var(--color-white);
}

.wt-footer__grid {
	display: grid;
	padding-top: var(--space-6);
	padding-bottom: var(--space-3);
}

/* --- Column 1: white logo, About text, social icons ---------------------- */
.wt-footer__col--about {
	padding-bottom: var(--space-5);
}

/* Footer logo: up to 200px wide, height follows the logo's own shape. */
.wt-footer .wt-dark-logo {
	display: inline-block;
}

.wt-footer .wt-dark-logo__img {
	width: 100%;
	max-width: 200px;
	height: auto;
}

/* Fallback when there's no white logo: the normal logo on a small white
   rounded badge, so its dark parts stay readable on blue. */
.wt-footer .wt-dark-logo--badge {
	padding: var(--space-2) var(--space-3);
	border-radius: var(--radius-md);
	background-color: var(--color-white);
}

.wt-footer .wt-dark-logo--badge .wt-dark-logo__img {
	max-width: 176px; /* 200px badge minus its padding */
}

.wt-footer__about {
	max-width: 22rem;
	margin: var(--space-3) 0 var(--space-4);
	opacity: 0.85;
}

.wt-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wt-footer__social li {
	margin: 0;
}

.site-footer .wt-footer .wt-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background-color: var(--color-on-dark-hover);
	transition: background-color var(--transition-fast), color var(--transition-fast);
}

.site-footer .wt-footer .wt-footer__social a:hover,
.site-footer .wt-footer .wt-footer__social a:focus {
	background-color: var(--color-accent);
	color: var(--color-dark);
}

.wt-footer__social .wt-icon {
	width: 1.25rem;
	height: 1.25rem;
}

/* --- Column headings ------------------------------------------------------ */
.site-footer .wt-footer__title {
	margin: 0;
	color: var(--color-white);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-bold);
}

/* Phones: each link column has a thin line on top, and its heading is a
   full-width button that opens/closes the list. */
.wt-footer__col--links,
.wt-footer__col--contact {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.wt-footer .wt-footer__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 3rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
}

.wt-footer .wt-footer__toggle:hover {
	background: none;
	color: var(--color-accent);
}

.wt-footer__toggle .wt-icon {
	width: 1.25rem;
	height: 1.25rem;
}

/* Animate the arrow only after header.js has set the starting state
   (otherwise every page load would show the arrows swivelling). */
.wt-footer--ready .wt-footer__toggle .wt-icon {
	transition: transform var(--transition-fast);
}

.wt-footer__toggle[aria-expanded="true"] .wt-icon {
	transform: rotate(180deg);
}

/* --- Link lists ------------------------------------------------------------ */
.wt-footer__links {
	margin: 0;
	padding: 0 0 var(--space-4);
	list-style: none;
}

.wt-footer__links li {
	margin: 0;
	padding: var(--space-1) 0;
}

.wt-footer__links a {
	opacity: 0.9;
}

/* --- Contact us -------------------------------------------------------------- */
.wt-footer__col--contact .wt-footer__title {
	padding: var(--space-4) 0 var(--space-3);
}

.wt-footer__contact {
	margin: 0;
	padding: 0 0 var(--space-4);
	list-style: none;
}

.wt-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	margin: 0 0 var(--space-3);
}

/* Small amber icons (decoration only, on blue). */
.wt-footer__contact .wt-icon {
	width: 1.125rem;
	height: 1.125rem;
	margin-top: 0.2em;
	color: var(--color-accent);
}

/* --- Bottom bar: copyright left, "Website by Progmark Creatives" right ------ */
.wt-footer__bottom {
	background-color: var(--color-primary-dark);
}

.wt-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3) var(--space-5);
	padding-top: var(--space-4);
	padding-bottom: var(--space-4);
}

.wt-footer__copyright {
	margin: 0;
	font-size: var(--font-size-xs);
	opacity: 0.85;
}

/* "Website by Progmark Creatives": small and subtle. */
.wt-footer__credit {
	margin: 0;
	font-size: var(--font-size-xs);
	opacity: 0.7;
}

.site-footer .wt-footer .wt-footer__credit a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

@media (prefers-reduced-motion: reduce) {
	.wt-footer--ready .wt-footer__toggle .wt-icon {
		transition: none;
	}
}

/* --- Tablet and desktop ------------------------------------------------------- */
@media (min-width: 768px) {
	.wt-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-6) var(--space-6);
		padding-top: var(--space-7);
		padding-bottom: var(--space-6);
	}

	.wt-footer__col--about {
		padding-bottom: 0;
	}

	/* Columns sit side by side: no lines, the headings are just headings. */
	.wt-footer__col--links,
	.wt-footer__col--contact {
		border-top: 0;
	}

	.wt-footer .wt-footer__toggle {
		min-height: 0;
		padding: 0 0 var(--space-3);
		cursor: default;
	}

	.wt-footer .wt-footer__toggle:hover {
		color: inherit;
	}

	.wt-footer__toggle .wt-icon {
		display: none;
	}

	.wt-footer__col--contact .wt-footer__title {
		padding: 0 0 var(--space-3);
	}
}

@media (min-width: 1024px) {
	/* Four columns: About and Contact (longer lines) wider than the two link lists. */
	.wt-footer__grid {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
		gap: var(--space-6);
	}
}


/* ==========================================================================
   11. BACK-TO-TOP BUTTON
   Markup: inc/footer.php (wiltech_back_to_top). Behaviour: header.js section 8.
   Bottom-right, appears after ~600px of scrolling. --wt-btt-lift is set by
   the script when another floating button (e.g. WhatsApp) is in that corner,
   so this one sits above it.
   ========================================================================== */
button.wt-back-to-top {
	position: fixed;
	right: var(--space-4);
	bottom: calc(var(--space-4) + var(--wt-btt-lift, 0px) + env(safe-area-inset-bottom, 0px));
	z-index: 998; /* under the header (999), so the open mobile menu covers it */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: var(--color-accent);
	/* White arrow as requested. Note: white on amber is low contrast
	   (about 1.9:1). For an easier-to-see arrow, use var(--color-dark). */
	color: var(--color-white);
	box-shadow: var(--shadow-lg);
	cursor: pointer;
	/* Hidden: faded out, slightly lower, and not reachable with Tab. */
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.75rem);
	transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms, bottom 200ms ease;
}

button.wt-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 200ms ease, transform 200ms ease, bottom 200ms ease;
}

button.wt-back-to-top:hover {
	background-color: var(--color-accent-dark);
	color: var(--color-white);
}

button.wt-back-to-top:focus-visible {
	outline: 3px solid var(--color-dark);
	outline-offset: 3px;
}

.wt-back-to-top .wt-icon {
	width: 1.5rem;
	height: 1.5rem;
	stroke-width: 2.5;
}

@media (prefers-reduced-motion: reduce) {
	button.wt-back-to-top,
	button.wt-back-to-top.is-visible {
		transition: none;
	}
}


/* ==========================================================================
   12. SINGLE PRODUCT PAGE (inc/product-page.php)
   No sidebar. Phones: gallery, then details. From 768px: gallery left,
   details right; description tabs and related products underneath.
   ========================================================================== */

/* --- 12a. Two-column layout ------------------------------------------------ */
/* Storefront's clearfix ::before/::after would become empty grid cells. */
.wt-full-width.single-product div.product::before,
.wt-full-width.single-product div.product::after {
	display: none;
}

.wt-full-width.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	row-gap: var(--space-5);
	margin-bottom: var(--space-7);
}

.wt-full-width.single-product div.product .images,
.wt-full-width.single-product div.product .summary {
	float: none;
	width: auto;
	margin: 0;
}

@media (min-width: 768px) {
	.wt-full-width.single-product div.product {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: var(--space-6);
		row-gap: var(--space-6);
	}

	/* Everything spans both columns, except the gallery and the details. */
	.wt-full-width.single-product div.product > * {
		grid-column: 1 / -1;
	}

	.wt-full-width.single-product div.product > .woocommerce-product-gallery {
		grid-column: 1;
	}

	.wt-full-width.single-product div.product > .summary {
		grid-column: 2;
	}
}

@media (min-width: 1024px) {
	.wt-full-width.single-product div.product {
		column-gap: var(--space-7);
	}
}

/* --- 12b. Gallery: picture contained in a white square, thumbnails below.
   WooCommerce's zoom, lightbox and swipe slider are untouched. ----------- */
.single-product div.product .woocommerce-product-gallery {
	position: relative;
	margin: 0;
}

.single-product div.product .woocommerce-product-gallery__image {
	box-sizing: border-box; /* the border stays inside the slider's slide width */
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background-color: var(--color-white);
}

/* "> a > img" = the picture itself, not the big zoom copy WooCommerce adds. */
.single-product div.product .woocommerce-product-gallery__image > a > img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	padding: var(--space-4);
	box-sizing: border-box;
	object-fit: contain;
	background-color: var(--color-white);
}

.wt-full-width.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--space-2);
	margin: var(--space-3) 0 0;
	padding: 0;
}

.wt-full-width.single-product div.product .woocommerce-product-gallery .flex-control-thumbs::before,
.wt-full-width.single-product div.product .woocommerce-product-gallery .flex-control-thumbs::after {
	display: none;
}

/* ".images" is repeated on purpose: it makes this as specific as
   Storefront's "--columns-4" width rule, and ours comes later, so it wins. */
.wt-full-width.single-product div.product .woocommerce-product-gallery.images .flex-control-thumbs li {
	float: none;
	width: auto;
	margin: 0;
}

/* Zoom / full-screen button: white circle with a magnifier, top right. */
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	position: absolute;
	top: var(--space-3);
	right: var(--space-3);
	z-index: 9;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	overflow: hidden;
	border-radius: 50%;
	background-color: var(--color-white);
	box-shadow: var(--shadow-md);
	color: var(--color-dark);
	font-size: 0; /* hides WooCommerce's own emoji/text inside */
	text-indent: 0;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger > * {
	display: none;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger::before {
	content: "";
	position: static;
	display: block;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	border: 0;
	background-color: currentColor;
	-webkit-mask: var(--wt-icon-zoom-in) center / contain no-repeat;
	mask: var(--wt-icon-zoom-in) center / contain no-repeat;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger::after {
	display: none;
}

.wt-full-width.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 3px;
	box-sizing: border-box;
	object-fit: contain;
	border: 2px solid var(--color-border);
	border-radius: var(--radius-md);
	background-color: var(--color-white);
	opacity: 0.7;
}

.wt-full-width.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.wt-full-width.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li:hover img {
	border-color: var(--color-primary);
	opacity: 1;
}

/* --- 12c. Details column ---------------------------------------------------- */
.single-product div.product .summary .product_title {
	margin-bottom: var(--space-2);
	font-size: var(--font-size-2xl);
	line-height: 1.2;
}

.single-product div.product .summary .woocommerce-product-rating {
	margin-bottom: var(--space-3);
}

/* Price row: big blue price, old price struck through, amber pill. */
.wt-pdp__price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2) var(--space-3);
	margin-bottom: var(--space-2);
}

.single-product div.product .summary .wt-pdp__price .price,
.single-product div.product .woocommerce-variation-price .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--space-1) var(--space-3);
	margin: 0;
	color: var(--color-primary);
	font-size: var(--font-size-2xl);
	font-weight: var(--font-weight-bold);
	line-height: 1.2;
}

.single-product div.product .summary .price ins {
	order: -1; /* new price first, then the old one */
	background: none;
	color: var(--color-primary);
	font-weight: var(--font-weight-bold);
	text-decoration: none;
}

.single-product div.product .summary .price del {
	color: var(--color-text-muted);
	font-size: var(--font-size-md);
	font-weight: var(--font-weight-medium);
	opacity: 1;
}

.wt-pill {
	display: inline-flex;
	align-items: center;
	padding: var(--space-1) var(--space-3);
	border-radius: var(--radius-pill);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-bold);
	line-height: 1.2;
}

.wt-pill--sale {
	background-color: var(--color-accent);
	color: var(--color-dark);
}

/* Stock line: dot + text (same colours as the product card). */
.wt-pdp__stock {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin: 0 0 var(--space-4);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semibold);
}

.wt-pdp__stock::before {
	content: "";
	flex-shrink: 0;
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 50%;
	background-color: currentColor;
}

.wt-pdp__stock--in {
	color: var(--color-success);
}

.wt-pdp__stock--out {
	color: var(--color-sale);
}

.wt-pdp__stock--backorder {
	color: var(--color-text-muted);
}

.wt-pdp__stock--backorder::before {
	background-color: var(--color-accent);
}

.single-product div.product .woocommerce-product-details__short-description {
	margin-bottom: var(--space-5);
	color: var(--color-text);
}

.single-product div.product .woocommerce-product-details__short-description p:last-child {
	margin-bottom: 0;
}

.wt-pdp__more {
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semibold);
}

/* --- 12d. Quantity + Add to cart ------------------------------------------- */
.single-product div.product form.cart {
	margin-bottom: var(--space-3);
	padding: 0;
}

/* Simple products: [quantity][Add to cart] on one row.
   Variable products: the same row appears after choosing options. */
.single-product div.product form.cart:not(.variations_form),
.single-product div.product .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
}

.single-product div.product form.cart .quantity {
	float: none;
	margin: 0;
}

.single-product div.product form.cart .single_add_to_cart_button {
	flex: 1 1 9rem; /* stays next to the quantity box, even on small phones */
	min-height: 3rem;
	float: none;
	font-size: var(--font-size-md);
	font-weight: var(--font-weight-bold);
}

/* Variation dropdowns (e.g. size, voltage). */
.single-product div.product table.variations {
	margin-bottom: var(--space-3);
}

.single-product div.product table.variations th,
.single-product div.product table.variations td {
	display: block;
	padding: 0;
	background: none;
	text-align: left;
}

.single-product div.product table.variations th {
	padding-bottom: var(--space-1);
	font-weight: var(--font-weight-semibold);
}

.single-product div.product table.variations td {
	padding-bottom: var(--space-3);
}

.single-product div.product .woocommerce-variation {
	margin-bottom: var(--space-3);
}

/* Quantity box with − / + buttons (assets/js/quantity.js). */
.quantity.wt-qty {
	display: inline-flex;
	align-items: stretch;
	height: 3rem;
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
	background-color: var(--color-white);
}

.quantity.wt-qty .qty {
	width: 3rem;
	height: 100%;
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--color-dark);
	font-weight: var(--font-weight-bold);
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.quantity.wt-qty .qty::-webkit-inner-spin-button,
.quantity.wt-qty .qty::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.quantity.wt-qty .qty:focus {
	outline: none;
	box-shadow: none;
}

.quantity.wt-qty:focus-within {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 1px var(--color-primary);
}

.quantity.wt-qty button.wt-qty__btn {
	width: 2.75rem;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	color: var(--color-dark);
	font-size: var(--font-size-lg);
	font-weight: var(--font-weight-bold);
	line-height: 1;
}

.quantity.wt-qty button.wt-qty__btn:hover {
	background-color: var(--color-surface);
	color: var(--color-dark);
}

.quantity.wt-qty button.wt-qty__btn:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: -2px;
}

/* --- 12e. WhatsApp button, help line, trust box ---------------------------- */
/* Full width, WhatsApp green with white text. */
.single-product div.product .wt-pdp__whatsapp {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	width: 100%;
	min-height: 3rem;
	margin: 0 0 var(--space-4);
	box-sizing: border-box;
	border-color: var(--color-whatsapp);
	background-color: var(--color-whatsapp);
	color: var(--color-white);
}

.single-product div.product .wt-pdp__whatsapp:hover {
	border-color: var(--color-whatsapp-dark);
	background-color: var(--color-whatsapp-dark);
	color: var(--color-white);
}

.wt-pdp__whatsapp .wt-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.wt-pdp__help {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin: 0 0 var(--space-4);
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
}

.wt-pdp__help .wt-icon {
	flex-shrink: 0;
	width: 1.125rem;
	height: 1.125rem;
	color: var(--color-primary);
}

.wt-pdp__help a {
	color: var(--color-primary);
	font-weight: var(--font-weight-bold);
	white-space: nowrap;
}

.wt-trustbox {
	display: grid;
	gap: var(--space-3);
	margin: 0 0 var(--space-5);
	padding: var(--space-4);
	border-radius: var(--radius-lg);
	background-color: var(--color-surface);
	list-style: none;
}

.wt-trustbox__item {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
	line-height: 1.4;
}

.wt-trustbox__item strong {
	display: block;
	color: var(--color-dark);
	font-weight: var(--font-weight-semibold);
}

.wt-trustbox__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background-color: var(--color-white);
	color: var(--color-primary);
	box-shadow: var(--shadow-sm);
}

.wt-trustbox__icon .wt-icon {
	width: 1.125rem;
	height: 1.125rem;
}

/* SKU / categories line. */
.single-product div.product .product_meta {
	padding-top: var(--space-3);
	border-top: 1px solid var(--color-border);
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
}

.single-product div.product .product_meta > span {
	display: block;
	margin-bottom: var(--space-1);
}

/* --- 12f. Description / reviews tabs: a row of pill tabs, panel below ---- */
.wt-full-width.single-product div.product .woocommerce-tabs {
	padding: 0;
	overflow: visible;
}

.wt-full-width.single-product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	float: none;
	width: auto;
	margin: 0 0 var(--space-5);
	padding: 0 0 var(--space-3);
	border-top: 0;
	border-bottom: 1px solid var(--color-border);
}

.wt-full-width.single-product .woocommerce-tabs ul.tabs li {
	border: 0;
}

.wt-full-width.single-product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.wt-full-width.single-product .woocommerce-tabs ul.tabs li a {
	padding: var(--space-2) var(--space-4);
	border-radius: var(--radius-pill);
	background-color: var(--color-surface);
	color: var(--color-dark);
	font-weight: var(--font-weight-semibold);
	text-decoration: none;
}

.wt-full-width.single-product .woocommerce-tabs ul.tabs li.active a {
	background-color: var(--color-primary);
	color: var(--color-white);
}

.wt-full-width.single-product .woocommerce-tabs .panel {
	float: none;
	width: auto;
	max-width: 50rem; /* comfortable reading width */
	margin: 0;
}

.wt-full-width.single-product .woocommerce-tabs .panel h2:first-of-type {
	font-size: var(--font-size-xl);
}

/* Related products / "You may also like": section titles. */
.single-product div.product .related > h2,
.single-product div.product .up-sells > h2 {
	margin-bottom: var(--space-4);
	font-size: var(--font-size-xl);
}


/* ==========================================================================
   13. FORMS, CART AND CHECKOUT (inc/cart-checkout.php)
   The classic [woocommerce_cart] / [woocommerce_checkout] pages.
   ========================================================================== */

/* --- 13a. Form fields (every form: checkout, account, contact) ------------- */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select,
.input-text {
	min-height: 3rem;
	padding: var(--space-3) var(--space-4);
	box-sizing: border-box;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background-color: var(--color-white);
	box-shadow: none;
	color: var(--color-text);
	font-family: var(--font-family-base);
	font-size: var(--font-size-base); /* 16px: no zoom-in on iPhones */
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

textarea {
	min-height: 7rem;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus,
.input-text:focus {
	border-color: var(--color-primary);
	outline: none;
	background-color: var(--color-white);
	box-shadow: 0 0 0 1px var(--color-primary);
}

.woocommerce form .form-row {
	margin-bottom: var(--space-4);
	padding: 0;
}

.woocommerce form .form-row label,
.woocommerce-page form .form-row label {
	display: block;
	margin-bottom: var(--space-1);
	color: var(--color-dark);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semibold);
	line-height: 1.4;
}

.woocommerce form .form-row .required {
	color: var(--color-sale);
	text-decoration: none;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	width: 100%;
}

.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select {
	border-color: var(--color-sale);
}

/* Country / county dropdowns (WooCommerce's searchable "select2" boxes). */
.select2-container .select2-selection--single {
	height: 3rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background-color: var(--color-white);
}

.select2-container .select2-selection--single .select2-selection__rendered {
	padding-left: var(--space-4);
	color: var(--color-text);
	line-height: calc(3rem - 2px);
}

.select2-container .select2-selection--single .select2-selection__arrow {
	height: calc(3rem - 2px);
	right: var(--space-2);
}

.select2-container--open .select2-selection--single,
.select2-container--focus .select2-selection--single {
	border-color: var(--color-primary);
}

.select2-dropdown {
	overflow: hidden;
	border-color: var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-md);
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
	background-color: var(--color-primary);
}

/* WooCommerce notices ("Added to cart", "Have a coupon?", errors):
   pale blue strip with a coloured left edge instead of Storefront's bright
   blue / green / red boxes. The icon (section 7) takes the text colour. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
	border-left: 4px solid var(--color-primary);
	border-radius: var(--radius-md);
	background-color: var(--color-primary-light);
	color: var(--color-dark);
}

.woocommerce-message {
	border-left-color: var(--color-success);
}

.woocommerce-error {
	border-left-color: var(--color-sale);
}

/* The icon takes the edge colour. */
.woocommerce-info::before,
.woocommerce-noreviews::before,
p.no-comments::before {
	color: var(--color-primary);
}

.woocommerce-message::before {
	color: var(--color-success);
}

.woocommerce-error::before {
	color: var(--color-sale);
}

.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button),
.woocommerce-error a:not(.button),
.woocommerce-noreviews a:not(.button),
p.no-comments a:not(.button) {
	color: var(--color-primary);
	font-weight: var(--font-weight-semibold);
}

.woocommerce-message a:not(.button):hover,
.woocommerce-info a:not(.button):hover,
.woocommerce-error a:not(.button):hover {
	color: var(--color-primary-dark);
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	min-height: 0;
	padding: var(--space-2) var(--space-4);
	border-radius: var(--radius-pill);
	font-size: var(--font-size-sm);
}

/* --- 13b. Shared: white rounded panels, clean tables ----------------------- */
.woocommerce-cart .entry-header,
.woocommerce-checkout .entry-header {
	margin-bottom: var(--space-5);
	padding-bottom: 0;
	border: 0;
}

.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table {
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

/* "tbody tr" makes these as specific as Storefront's striped-row rule
   (table:not(.has-background) tbody tr:nth-child(2n) td), so ours win. */
.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td,
.woocommerce-cart table.shop_table tbody tr th,
.woocommerce-cart table.shop_table tbody tr td,
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td,
.woocommerce-checkout table.shop_table tbody tr th,
.woocommerce-checkout table.shop_table tbody tr td {
	padding: var(--space-3) var(--space-4);
	border-bottom: 1px solid var(--color-surface);
	background: none;
	vertical-align: middle;
}

.woocommerce-cart table.shop_table thead th,
.woocommerce-checkout table.shop_table thead th {
	color: var(--color-text-muted);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-semibold);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.woocommerce-cart table.shop_table tfoot th,
.woocommerce-checkout table.shop_table tfoot th {
	color: var(--color-text);
	font-weight: var(--font-weight-medium);
}

.woocommerce-cart .order-total th,
.woocommerce-cart .order-total td,
.woocommerce-checkout .order-total th,
.woocommerce-checkout .order-total td {
	border-bottom: 0;
	color: var(--color-dark);
	font-size: var(--font-size-md);
	font-weight: var(--font-weight-bold);
}

.woocommerce-cart .order-total .amount,
.woocommerce-checkout .order-total .amount {
	color: var(--color-primary);
}

/* Small note: "Pay on Delivery or M-Pesa · Countrywide delivery". */
.wt-paynote {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	margin: var(--space-3) 0 0;
	color: var(--color-text-muted);
	font-size: var(--font-size-xs);
	text-align: center;
}

.wt-paynote .wt-icon {
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	color: var(--color-success);
}

/* --- 13c. Cart -------------------------------------------------------------- */
/* Desktop: products left, totals right (a sticky panel); "You may also
   like" across the full width underneath. :has() = only when the cart has
   items (the empty cart keeps its simple message). Older browsers without
   :has() simply stack everything, which still works. */
@media (min-width: 1024px) {
	.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 22rem;
		column-gap: var(--space-6);
		align-items: start;
	}

	.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) > * {
		grid-column: 1 / -1;
	}

	.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) > .woocommerce-cart-form {
		grid-column: 1;
	}

	.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) > .cart-collaterals {
		grid-column: 2;
		position: sticky;
		top: var(--space-8); /* below the compact sticky header */
	}
}

.woocommerce-cart .woocommerce-cart-form {
	margin-bottom: var(--space-5);
	overflow: hidden;
	border-radius: var(--radius-lg);
	background-color: var(--color-white);
	box-shadow: var(--shadow-md);
}

.woocommerce-cart table.cart .product-thumbnail img {
	width: 4rem;
	max-width: none;
	height: 4rem;
	padding: 2px;
	box-sizing: border-box;
	object-fit: contain;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background-color: var(--color-white);
}

.woocommerce-cart table.cart .product-name a {
	color: var(--color-dark);
	font-weight: var(--font-weight-semibold);
	text-decoration: none;
}

.woocommerce-cart table.cart .product-name a:hover {
	color: var(--color-primary);
}

.woocommerce-cart table.cart .product-subtotal {
	color: var(--color-dark);
	font-weight: var(--font-weight-bold);
}

/* Remove (×): a small round grey button. */
.woocommerce-cart table.cart td.product-remove a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background-color: var(--color-surface);
	color: var(--color-text-muted);
	text-decoration: none;
}

.woocommerce-cart table.cart td.product-remove a.remove:hover {
	background-color: var(--color-sale);
	color: var(--color-white);
}

/* Inside our round button, a plain × (not the circled one from section 7). */
.woocommerce-cart table.cart td.product-remove a.remove::before {
	--wt-mask: var(--wt-icon-x);
}

.woocommerce-cart table.cart .quantity.wt-qty {
	height: 2.5rem;
}

/* Bottom row: coupon (pill input + button) and "Update cart". */
.woocommerce-cart table.cart td.actions {
	padding: var(--space-4);
	border-bottom: 0;
	background-color: var(--color-surface);
}

.woocommerce-cart table.cart td.actions .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-bottom: var(--space-3);
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
	flex: 1 1 10rem;
	width: auto;
	min-height: 2.75rem;
	margin: 0;
	border-radius: var(--radius-pill);
}

.woocommerce-cart table.cart td.actions .coupon .button,
.woocommerce-cart table.cart td.actions > .button {
	min-height: 2.75rem;
	border-radius: var(--radius-pill);
}

/* "Update cart" only matters after a change: quiet outline style. */
.woocommerce-cart table.cart td.actions > .button {
	border-color: var(--color-primary);
	background-color: transparent;
	color: var(--color-primary);
}

.woocommerce-cart table.cart td.actions > .button:not(:disabled):hover {
	background-color: var(--color-primary);
	color: var(--color-white);
}

@media (min-width: 768px) {
	.woocommerce-cart table.cart td.actions {
		text-align: right;
	}

	.woocommerce-cart table.cart td.actions .coupon {
		float: left;
		max-width: 26rem;
		margin-bottom: 0;
	}
}

/* Phones: Storefront turns each row into a stacked block with labels.
   Give each product its own clear block. */
@media (max-width: 767px) {
	.woocommerce-cart table.cart tr.cart_item {
		display: block;
		position: relative;
		padding: var(--space-3) 0;
		border-bottom: 1px solid var(--color-border);
	}

	.woocommerce-cart table.cart tr.cart_item td {
		border-bottom: 0;
		padding-top: var(--space-1);
		padding-bottom: var(--space-1);
	}

	.woocommerce-cart table.cart td.product-remove,
	.woocommerce-cart table.cart tbody tr td.product-remove {
		position: absolute;
		top: var(--space-3);
		right: var(--space-3);
		left: auto;
		z-index: 1;
		width: auto;
		padding: 0;
	}

	.woocommerce-cart table.cart td.product-remove::before {
		display: none; /* no "Remove item:" label */
	}

	.woocommerce-cart table.cart td.product-thumbnail {
		display: block;
		text-align: left;
	}

	.woocommerce-cart table.cart td.product-thumbnail::before {
		display: none;
	}
}

/* Cart totals panel. */
.woocommerce-cart .cart-collaterals .cart_totals {
	float: none;
	width: auto;
	margin: 0 0 var(--space-6);
	padding: var(--space-5);
	border-radius: var(--radius-lg);
	background-color: var(--color-white);
	box-shadow: var(--shadow-md);
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
	margin-bottom: var(--space-3);
	font-size: var(--font-size-lg);
}

.woocommerce-cart .cart-collaterals .cart_totals table th,
.woocommerce-cart .cart-collaterals .cart_totals table td {
	padding-left: 0;
	padding-right: 0;
}

.woocommerce-cart .cart-collaterals .cart_totals table td {
	text-align: right;
}

.woocommerce-cart .wc-proceed-to-checkout {
	padding: var(--space-4) 0 0;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
	display: block;
	width: 100%;
	min-height: 3.25rem;
	margin-bottom: var(--space-3);
	padding: var(--space-3) var(--space-4);
	box-sizing: border-box;
	font-size: var(--font-size-md);
	font-weight: var(--font-weight-bold);
}

/* "Order on WhatsApp instead": WhatsApp green. */
.wt-cart__whatsapp.button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	width: 100%;
	box-sizing: border-box;
	border-color: var(--color-whatsapp);
	background-color: var(--color-whatsapp);
	color: var(--color-white);
}

.wt-cart__whatsapp.button:hover {
	border-color: var(--color-whatsapp-dark);
	background-color: var(--color-whatsapp-dark);
	color: var(--color-white);
}

.wt-cart__whatsapp .wt-icon {
	width: 1.25rem;
	height: 1.25rem;
}

/* "You may also like" under the cart. */
.woocommerce-cart .cross-sells {
	float: none;
	width: auto;
	margin: var(--space-6) 0 0;
}

.woocommerce-cart .cross-sells > h2 {
	margin-bottom: var(--space-4);
	font-size: var(--font-size-xl);
}

/* Empty cart. */
.woocommerce-cart .wc-empty-cart-message .cart-empty {
	margin-bottom: var(--space-4);
}

.woocommerce-cart .return-to-shop .button {
	min-height: 3rem;
	border-radius: var(--radius-pill);
}

/* --- 13d. Checkout ---------------------------------------------------------- */
/* Desktop: your details left; order summary + payment right (sticky).
   Phones: everything stacked, summary after the details. */
@media (min-width: 1024px) {
	.woocommerce-checkout form.checkout {
		display: grid;
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		grid-template-areas:
			"notices notices"
			"details heading"
			"details review";
		grid-template-rows: auto auto 1fr;
		column-gap: var(--space-7);
		align-items: start;
	}

	.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup {
		grid-area: notices;
	}

	.woocommerce-checkout form.checkout > #customer_details {
		grid-area: details;
	}

	.woocommerce-checkout form.checkout > #order_review_heading {
		grid-area: heading;
	}

	.woocommerce-checkout form.checkout > #order_review {
		grid-area: review;
		position: sticky;
		top: var(--space-8);
	}
}

.woocommerce-checkout form.checkout::before,
.woocommerce-checkout form.checkout::after {
	display: none;
}

.woocommerce-checkout .col2-set,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
	float: none;
	width: auto;
	margin-right: 0;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
	float: none;
	width: auto;
	margin-bottom: var(--space-5);
}

.woocommerce-checkout h3,
.woocommerce-checkout #order_review_heading {
	margin-bottom: var(--space-4);
	font-size: var(--font-size-lg);
}

/* First/last name side by side from tablet width; stacked on phones. */
.woocommerce-checkout .col2-set .form-row-first,
.woocommerce-checkout .col2-set .form-row-last {
	float: none;
	width: auto;
	margin-right: 0;
}

@media (min-width: 768px) {
	.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
	.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: var(--space-4);
	}

	.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row,
	.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row {
		grid-column: 1 / -1;
	}

	.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-first,
	.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row-first {
		grid-column: 1;
	}

	.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-last,
	.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row-last {
		grid-column: 2;
	}
}

/* Order summary panel. */
.woocommerce-checkout #order_review {
	padding: var(--space-5);
	border-radius: var(--radius-lg);
	background-color: var(--color-white);
	box-shadow: var(--shadow-md);
}

.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td {
	padding-left: 0;
	padding-right: 0;
}

.woocommerce-checkout #order_review table.shop_table td:last-child,
.woocommerce-checkout #order_review table.shop_table th:last-child {
	text-align: right;
}

/* --- Payment methods (Pay on Delivery, M-Pesa…) as selectable cards ------
   Each method: a rounded card; our own radio circle on the left, bold
   title. The chosen card: blue border + pale blue background, with its
   instructions box inside it. Pure CSS (WooCommerce redraws this whole
   block by AJAX whenever the order updates, so nothing to re-attach).
   :has() picks the card whose radio is checked; browsers without :has()
   still get the filled circle. */
.woocommerce-checkout #payment {
	margin-top: var(--space-4);
	border-radius: 0;
	background: none;
}

.woocommerce-checkout #payment ul.payment_methods {
	display: grid;
	gap: var(--space-3);
	margin: 0 !important; /* Storefront uses !important here */
	padding: 0 !important;
	border: 0;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background-color: var(--color-white);
	list-style: none;
	transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:hover {
	border-color: var(--color-text-muted);
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:has(> input:checked) {
	border-color: var(--color-primary);
	background-color: var(--color-primary-light);
	box-shadow: 0 0 0 1px var(--color-primary);
}

/* The whole top row is the click area. */
.woocommerce-checkout #payment .payment_methods > .wc_payment_method > label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3);
	margin: 0;
	padding: var(--space-4);
	color: var(--color-dark);
	font-weight: var(--font-weight-bold);
	line-height: 1.3;
	cursor: pointer;
}

/* Gateway logos (if any) to the right. */
.woocommerce-checkout #payment .payment_methods > .wc_payment_method > label img {
	float: none;
	max-height: 1.5rem;
	margin: 0 0 0 auto;
}

/* Our radio circle (replaces section 7's icon). */
.woocommerce-checkout #payment .payment_methods > .wc_payment_method > label::before {
	content: "";
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	box-sizing: border-box;
	border: 2px solid var(--color-text-muted);
	border-radius: 50%;
	background-color: var(--color-white);
	-webkit-mask: none;
	mask: none;
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.woocommerce-checkout #payment .payment_methods li.wc_payment_method > input[type=radio]:first-child:checked + label::before {
	border-color: var(--color-primary);
	background-color: var(--color-primary);
	box-shadow: inset 0 0 0 3px var(--color-white); /* white ring + blue dot */
	-webkit-mask: none;
	mask: none;
}

/* Keyboard: the hidden radio has focus → ring around our circle. */
.woocommerce-checkout #payment .payment_methods li.wc_payment_method > input[type=radio]:first-child:focus-visible + label::before {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* Instructions / extra fields, inside the chosen card. WooCommerce slides
   it open and closed itself. */
.woocommerce-checkout #payment .payment_methods li .payment_box {
	margin: 0 var(--space-4) var(--space-4);
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius-md);
	background-color: var(--color-white);
	color: var(--color-text);
	font-size: var(--font-size-sm);
	line-height: 1.5;
}

.woocommerce-checkout #payment .payment_methods li .payment_box::before {
	display: none; /* Storefront's little arrow */
}

.woocommerce-checkout #payment .payment_methods li .payment_box p:last-child {
	margin-bottom: 0;
}

.woocommerce-checkout #payment .place-order {
	margin: var(--space-4) 0 0;
	padding: 0;
	background: none; /* Storefront's grey strip */
}

.woocommerce-checkout #payment #place_order {
	display: block;
	float: none;
	width: 100%;
	min-height: 3.25rem;
	font-size: var(--font-size-md);
	font-weight: var(--font-weight-bold);
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
	margin-bottom: var(--space-3);
	font-size: var(--font-size-sm);
}

/* "Have a coupon? Click here": the coupon form opens as a grey box. */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
	border-radius: var(--radius-md);
}

.woocommerce-checkout form.checkout_coupon {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-bottom: var(--space-5);
	padding: var(--space-4);
	border: 0;
	border-radius: var(--radius-md);
	background-color: var(--color-surface);
}

.woocommerce-checkout form.checkout_coupon p {
	margin: 0;
}

.woocommerce-checkout form.checkout_coupon .form-row-first {
	flex: 1 1 12rem;
	width: auto;
	float: none;
}

.woocommerce-checkout form.checkout_coupon .form-row-last {
	float: none;
	width: auto;
}


/* --- 13e. Order received ("thank you") page --------------------------------
   Our block (inc/cart-checkout.php → wiltech_thankyou_top) on top; then
   WooCommerce's order details table, styled like the cart. */
.woocommerce-order-received .woocommerce-order {
	max-width: 50rem;
	margin: 0 auto var(--space-8);
}

/* Our block replaces WooCommerce's one-line message and overview list. */
.wt-thankyou ~ .woocommerce-thankyou-order-received,
.wt-thankyou ~ .woocommerce-order-overview {
	display: none;
}

.wt-thankyou {
	display: grid;
	gap: var(--space-5);
	margin-bottom: var(--space-7);
}

.wt-thankyou__hero {
	text-align: center;
}

.wt-thankyou__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4.5rem;
	height: 4.5rem;
	margin-bottom: var(--space-4);
	border-radius: 50%;
	background-color: var(--color-success);
	box-shadow: 0 0 0 8px var(--color-surface);
	color: var(--color-white);
}

.wt-thankyou__check .wt-icon {
	width: 2.25rem;
	height: 2.25rem;
	stroke-width: 3;
}

.wt-thankyou__title {
	margin: 0 0 var(--space-2);
	font-size: var(--font-size-2xl);
}

.wt-thankyou__meta {
	margin: 0;
	color: var(--color-text-muted);
}

/* Summary card: label above value, 2 columns from tablet width. */
.wt-thankyou__summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-4) var(--space-5);
	margin: 0;
	padding: var(--space-5);
	border-radius: var(--radius-lg);
	background-color: var(--color-white);
	box-shadow: var(--shadow-md);
}

@media (min-width: 600px) {
	.wt-thankyou__summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.wt-thankyou__item dt {
	margin: 0 0 var(--space-1);
	color: var(--color-text-muted);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-semibold);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wt-thankyou__item dd {
	margin: 0;
	color: var(--color-dark);
	font-weight: var(--font-weight-semibold);
	line-height: 1.5;
}

.wt-thankyou__item dd .amount {
	color: var(--color-primary);
	font-weight: var(--font-weight-bold);
}

/* What happens next: pale blue box; payment instructions in a white panel. */
.wt-thankyou__next {
	padding: var(--space-5);
	border-left: 4px solid var(--color-primary);
	border-radius: var(--radius-lg);
	background-color: var(--color-primary-light);
	color: var(--color-text);
}

.wt-thankyou__subtitle {
	margin: 0 0 var(--space-2);
	font-size: var(--font-size-lg);
}

.wt-thankyou__next p:last-child {
	margin-bottom: 0;
}

.wt-thankyou__instructions {
	margin-top: var(--space-4);
	padding: var(--space-4);
	border-radius: var(--radius-md);
	background-color: var(--color-white);
	font-size: var(--font-size-sm);
}

.wt-thankyou__instructions-title {
	margin: 0 0 var(--space-1);
	color: var(--color-dark);
	font-weight: var(--font-weight-bold);
}

/* Bank details etc. that some payment methods print. */
.wt-thankyou__instructions h2,
.wt-thankyou__instructions h3 {
	margin: var(--space-3) 0 var(--space-2);
	font-size: var(--font-size-md);
}

.wt-thankyou__instructions ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Buttons: green WhatsApp + outline "Continue shopping". */
.wt-thankyou__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-3);
}

.wt-thankyou__actions .button {
	display: inline-flex;
	flex: 1 1 16rem;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-height: 3rem;
	border-radius: var(--radius-pill);
}

@media (min-width: 600px) {
	.wt-thankyou__actions .button {
		flex: 0 1 auto;
		padding-left: var(--space-6);
		padding-right: var(--space-6);
	}
}

.wt-thankyou__actions .wt-thankyou__whatsapp {
	border-color: var(--color-whatsapp);
	background-color: var(--color-whatsapp);
	color: var(--color-white);
}

.wt-thankyou__actions .wt-thankyou__whatsapp:hover {
	border-color: var(--color-whatsapp-dark);
	background-color: var(--color-whatsapp-dark);
	color: var(--color-white);
}

.wt-thankyou__whatsapp .wt-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.wt-thankyou__actions .wt-thankyou__shop {
	border-color: var(--color-primary);
	background-color: transparent;
	color: var(--color-primary);
}

.wt-thankyou__actions .wt-thankyou__shop:hover {
	background-color: var(--color-primary);
	color: var(--color-white);
}

/* Order details table + addresses: white rounded panels like the cart. */
.woocommerce-order-received .woocommerce-order-details > h2,
.woocommerce-order-received .woocommerce-customer-details h2 {
	margin-bottom: var(--space-3);
	font-size: var(--font-size-lg);
}

.woocommerce-order-received table.woocommerce-table--order-details {
	overflow: hidden;
	border-collapse: separate; /* lets the rounded corners show */
	border-spacing: 0;
	border-radius: var(--radius-lg);
	background-color: var(--color-white);
	box-shadow: var(--shadow-md);
}

.woocommerce-order-received table.woocommerce-table--order-details td:last-child,
.woocommerce-order-received table.woocommerce-table--order-details th:last-child {
	text-align: right;
}

.woocommerce-order-received table.woocommerce-table--order-details .product-name a {
	color: var(--color-dark);
	font-weight: var(--font-weight-semibold);
	text-decoration: none;
}

.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child td {
	border-bottom: 0;
	color: var(--color-dark);
	font-weight: var(--font-weight-bold);
}

.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child .amount {
	color: var(--color-primary);
}

.woocommerce-order-received .woocommerce-customer-details {
	margin-top: var(--space-6);
}

.woocommerce-order-received .woocommerce-customer-details .col2-set {
	display: grid;
	gap: var(--space-4);
	float: none;
	width: auto;
	margin: 0;
}

@media (min-width: 600px) {
	.woocommerce-order-received .woocommerce-customer-details .col2-set {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.woocommerce-order-received .woocommerce-customer-details .col2-set::before,
.woocommerce-order-received .woocommerce-customer-details .col2-set::after {
	display: none;
}

.woocommerce-order-received .woocommerce-customer-details .col2-set .col-1,
.woocommerce-order-received .woocommerce-customer-details .col2-set .col-2 {
	float: none;
	width: auto;
	margin: 0;
}

.woocommerce-order-received .woocommerce-customer-details address {
	margin: 0;
	padding: var(--space-4) var(--space-5);
	border: 0;
	border-radius: var(--radius-lg);
	background-color: var(--color-white);
	box-shadow: var(--shadow-md);
	font-style: normal;
	line-height: 1.6;
}


/* ==========================================================================
   14. CONTACT PAGE (page-contact.php, inc/contact.php)
   Phones: heading, cards, form, map stacked.
   From 1024px with a map: cards + form left, map right.
   ========================================================================== */

.wt-contact {
	padding-bottom: var(--space-8);
}

.wt-contact__header {
	max-width: 42rem;
	margin-bottom: var(--space-6);
}

.wt-contact__title {
	margin-bottom: var(--space-3);
	font-size: var(--font-size-3xl);
}

.wt-contact__intro {
	margin: 0;
	color: var(--color-text-muted);
	font-size: var(--font-size-md);
}

.wt-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-6);
}

@media (min-width: 1024px) {
	.wt-contact--has-map .wt-contact__grid {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		gap: var(--space-7);
	}
}

/* --- Cards: 1 column on small phones, 2 from 600px ------------------------ */
.wt-contact__cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 600px) {
	.wt-contact__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* An odd card out at the end (e.g. Opening hours) takes the full row. */
	.wt-contact__cards li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

.wt-contact__cards li {
	display: flex; /* cards in a row share the same height */
	margin: 0;
}

.wt-contact-card {
	display: flex;
	flex: 1;
	align-items: flex-start;
	gap: var(--space-3);
	padding: var(--space-4);
	border-radius: var(--radius-lg);
	background-color: var(--color-white);
	box-shadow: var(--shadow-md);
	color: var(--color-text);
	text-decoration: none;
	transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

a.wt-contact-card:hover,
a.wt-contact-card:focus-visible {
	box-shadow: var(--shadow-lg);
	color: var(--color-text);
	transform: translateY(-2px);
}

a.wt-contact-card:focus-visible {
	outline: 3px solid var(--color-primary);
	outline-offset: 2px;
}

.wt-contact-card__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background-color: var(--color-primary-light);
	color: var(--color-primary);
}

.wt-contact-card__icon .wt-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.wt-contact-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 0;
}

.wt-contact-card__title {
	color: var(--color-dark);
	font-weight: var(--font-weight-bold);
}

.wt-contact-card__text {
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
	line-height: 1.5;
	overflow-wrap: anywhere; /* long email addresses wrap instead of overflowing */
}

a.wt-contact-card .wt-contact-card__text {
	color: var(--color-primary);
	font-weight: var(--font-weight-semibold);
}

/* Address and hours are plain information, not the link text. */
a.wt-contact-card[href*="google.com/maps"] .wt-contact-card__text {
	color: var(--color-text-muted);
	font-weight: var(--font-weight-regular);
}

/* --- Form area (WPForms form, or the WhatsApp button) ---------------------- */
.wt-contact__form {
	margin-top: var(--space-6);
	padding: var(--space-5);
	border-radius: var(--radius-lg);
	background-color: var(--color-surface);
}

.wt-contact__subtitle {
	margin-bottom: var(--space-3);
	font-size: var(--font-size-xl);
}

.wt-contact__lead {
	margin-bottom: var(--space-4);
	color: var(--color-text-muted);
}

.wt-contact__whatsapp.button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	width: 100%;
	min-height: 3.5rem;
	padding-left: var(--space-4);
	padding-right: var(--space-4);
	box-sizing: border-box;
	border-radius: var(--radius-pill);
	border-color: var(--color-whatsapp);
	background-color: var(--color-whatsapp);
	color: var(--color-white);
	font-size: var(--font-size-base); /* fits on one line on small phones */
	font-weight: var(--font-weight-bold);
	white-space: nowrap;
}

.wt-contact__whatsapp.button:hover {
	border-color: var(--color-whatsapp-dark);
	background-color: var(--color-whatsapp-dark);
	color: var(--color-white);
}

@media (min-width: 600px) {
	.wt-contact__whatsapp.button {
		display: inline-flex;
		width: auto;
		font-size: var(--font-size-md);
		padding-left: var(--space-7);
		padding-right: var(--space-7);
	}
}

.wt-contact__whatsapp .wt-icon {
	width: 1.5rem;
	height: 1.5rem;
}

/* WPForms: full-width fields and our amber submit button. */
.wt-contact__form .wpforms-container {
	margin: 0;
}

.wt-contact__form .wpforms-field input,
.wt-contact__form .wpforms-field textarea,
.wt-contact__form .wpforms-field select {
	width: 100%;
	max-width: none;
}

.wt-contact__form .wpforms-submit-container button[type="submit"] {
	min-height: 3rem;
	padding: var(--space-3) var(--space-6);
	border-color: var(--color-accent);
	border-radius: var(--radius-pill);
	background-color: var(--color-accent);
	color: var(--color-dark);
	font-weight: var(--font-weight-bold);
}

.wt-contact__form .wpforms-submit-container button[type="submit"]:hover {
	border-color: var(--color-accent-dark);
	background-color: var(--color-accent-dark);
}

/* --- Map --------------------------------------------------------------------- */
.wt-contact__map {
	min-height: 20rem;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background-color: var(--color-surface); /* shows while the map loads */
	box-shadow: var(--shadow-md);
}

.wt-contact__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 20rem;
	border: 0;
}

@media (min-width: 1024px) {
	.wt-contact__map,
	.wt-contact__map iframe {
		min-height: 32rem;
	}
}
