/* ==========================================================================
   WooCommerce bridge for the Ducting UK design.
   Maps WooCommerce markup onto the storefront's existing class names.
   ========================================================================== */

/* ---------- Layout ---------- */
/* The base stylesheet already sizes .master-wrapper-content and .master-column-wrapper. */
.woocommerce-products-header {
	display: none;
}
.product-grid,
.product-list {
	margin: 0 0 50px;
}
.product-grid .item-grid {
	display: block;
}

/* ---------- Product cards ---------- */
.product-grid .item-box {
	float: left;
}
.item-box .picture img {
	display: block;
}
/* WooCommerce prints width/height attributes on product images; the base CSS only
   sets max-width/max-height, which clamps one axis and squashes the picture.
   Fill the square frame and letterbox the image inside it instead. */
/* Overriding both attributes lets the browser fall back to the image's own
   aspect ratio, exactly as the live storefront's images (which carry no
   width/height attributes) behave. */
.item-box .picture a img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
}

/* Anchors used as buttons need the button geometry the base CSS applies to <button>. */
.item-box a.product-box-add-to-cart-button {
	display: inline-block;
	height: 40px;
	line-height: 40px;
	width: 60%;
	background-color: var(--steel-dark);
	text-align: center;
	font-size: 15px;
	color: #fff;
	text-transform: uppercase;
	border: 0;
	vertical-align: middle;
	transition: background-color var(--transition-fast);
}
.item-box a.product-box-add-to-cart-button:hover,
.item-box a.product-box-add-to-cart-button:focus {
	background-color: var(--accent-blue-active-color);
	color: #fff;
}
.item-box a.product-box-add-to-cart-button.loading {
	opacity: .65;
}
.item-box a.added_to_cart {
	display: inline-block;
	margin-inline-start: 8px;
	font-size: 13px;
	text-decoration: underline;
	color: var(--brand-red);
}

/* Prices */
.item-box .prices,
.product-details-page .prices {
	color: var(--text-primary);
}
.item-box .prices .price,
.product-details-page .prices .price {
	display: block;
	font-size: 16px;
	color: var(--gray-color);
}
.prices del {
	color: #aaa;
	text-decoration: line-through;
	font-weight: 400;
}
.prices ins {
	text-decoration: none;
	color: var(--brand-red);
	font-weight: 600;
}
.prices .woocommerce-Price-currencySymbol {
	font-size: .9em;
}

/* Sale badge */
.woocommerce span.onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	min-height: 0;
	min-width: 0;
	padding: 4px 10px;
	border-radius: var(--radius-sm);
	background: var(--brand-red);
	color: #fff;
	font-family: var(--font-display);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.6;
}

/* Category cards without an image */
.category-placeholder {
	display: block;
	padding-top: 58%;
	background: linear-gradient(135deg, var(--silver-200), var(--silver-300));
}

/* ---------- Archive toolbar ---------- */
.category-page .page-title {
	margin-top: 0;
}
/* ---------- Category description: the copy above the grid --------------
 * PROGRESS.md §58. Two things made this read as a wall of text:
 *
 * 1. STRUCTURE. The descriptions are authored one paragraph per line with no
 *    markup, and wpautop() renders a *single* newline as <br />, so three
 *    paragraphs arrived as one <p> with line breaks in it and no space between
 *    them. functions.php now promotes those newlines to real paragraphs
 *    (ductinguk_term_description_html()); the rules below space them.
 * 2. TYPE. The base sheet has `.category-description p{margin:10px 0;
 *    text-align:justify}` (ductinguk.css line 40). Justified text on a 715px
 *    column at 14px opens rivers between words, which is the other half of
 *    "the formatting is broken".
 *
 * Scoped with `.page-body` so these win on specificity (0-2-1) rather than on
 * file order alone — ductinguk.css loads before this file, but the base rules
 * are 0-1-1 and a later prune could reorder them. */
.page-body .category-description {
	margin: 0 0 32px;
	color: var(--text-secondary);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.65;
}
.page-body .category-description > p {
	margin: 0 0 14px;
	text-align: left;
}
.page-body .category-description > ul,
.page-body .category-description > ol {
	margin: 0 0 14px;
	padding-left: 22px;
}
.page-body .category-description > ul {
	list-style: disc;
}
.page-body .category-description > ol {
	list-style: decimal;
}
.page-body .category-description > ul > li,
.page-body .category-description > ol > li {
	margin: 0 0 6px;
}
.page-body .category-description > h2,
.page-body .category-description > h3 {
	margin: 22px 0 8px;
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--steel-dark);
}
/* Nothing above and below the block itself. */
.page-body .category-description > :first-child {
	margin-top: 0;
}
.page-body .category-description > :last-child {
	margin-bottom: 0;
}
/* The toolbar (.product-selectors) is laid out by the base stylesheet;
   only the select controls need a small amount of tuning here. */
.product-selectors select {
	height: 32px;
	border: 1px solid var(--silver-300);
	background: #fff;
	color: var(--text-secondary);
}
.product-selectors .woocommerce-ordering {
	margin: 0;
	display: inline-block;
	vertical-align: middle;
}

/* ---------- Pagination, both markups (PROGRESS.md §55) ----------
   Two pagers exist and this one block styles both:
     /shop/ and the category archives — woocommerce_pagination():
       nav.woocommerce-pagination > ul.page-numbers > li > a|span.page-numbers
     the search results (search.php) — paginate_links() inside:
       .pager > ul > li > a|span.page-numbers
   Both put .page-numbers on the <a>/<span> itself, so the cells share one rule
   and the two pages cannot drift apart.

   WHY THE SELECTORS ARE SO DEEP. This block used to read
   `.woocommerce-pagination .page-numbers` (0-2-0) and lost every declaration to
   WooCommerce's own `.woocommerce nav.woocommerce-pagination ul li a` (0-2-4)
   and `...li a:hover, ...li span.current{background:#e9e6ed;color:#816f98}`
   (0-3-4): equal class count, more type selectors, so the pager rendered as
   WooCommerce's small square grey/purple buttons with float:left cells.
   The rules below are 0-3-4 and 0-4-4 and win outright rather than on source
   order — do not "simplify" them back.
   The old `.pager li.previous-page *` PNG-sprite rules lived in ductinguk.css
   and never matched anything: paginate_links() puts prev/next on the <a>, not
   on the <li>. Deleted with that block. */

/* the row: no boxed border, no floats, wraps on a narrow screen */
.woocommerce nav.woocommerce-pagination,
.pager {
	margin: 0 0 50px;
	text-align: center;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers,
.pager ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	float: none;
	clear: none;
	white-space: normal;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 0;
	overflow: visible;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li,
.pager li {
	float: none;
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: visible;
	vertical-align: top;
}

/* the cell */
.woocommerce nav.woocommerce-pagination ul li a.page-numbers,
.woocommerce nav.woocommerce-pagination ul li span.page-numbers,
.pager li a.page-numbers,
.pager li span.page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	background-color: var(--white);
	border: 1px solid var(--silver-300);
	border-radius: var(--radius-sm);
	color: var(--text-secondary);
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

/* hover / focus — the same silver wash and red as the header links (§24) */
.woocommerce nav.woocommerce-pagination ul li a.page-numbers:hover,
.woocommerce nav.woocommerce-pagination ul li a.page-numbers:focus,
.pager li a.page-numbers:hover,
.pager li a.page-numbers:focus {
	background-color: var(--silver-100);
	border-color: var(--brand-red);
	color: var(--brand-red);
}
.woocommerce nav.woocommerce-pagination ul li a.page-numbers:focus-visible,
.pager li a.page-numbers:focus-visible {
	outline: 2px solid var(--brand-red);
	outline-offset: 2px;
}

/* the page you are on */
.woocommerce nav.woocommerce-pagination ul li span.page-numbers.current,
.pager li span.page-numbers.current {
	background-color: var(--brand-red);
	border-color: var(--brand-red);
	color: #fff;
	font-weight: 700;
}

/* the "…" between distant pages is punctuation, not a control */
.woocommerce nav.woocommerce-pagination ul li span.page-numbers.dots,
.pager li span.page-numbers.dots {
	min-width: 20px;
	padding: 0;
	background-color: transparent;
	border-color: transparent;
	color: var(--silver-500);
	cursor: default;
}

/* prev / next: a glyph in the same box, nudged up in weight and size */
.woocommerce nav.woocommerce-pagination ul li a.page-numbers.prev,
.woocommerce nav.woocommerce-pagination ul li a.page-numbers.next,
.pager li a.page-numbers.prev,
.pager li a.page-numbers.next {
	padding: 0;
	font-size: 17px;
	font-weight: 500;
}

/* One row on a phone. /shop/ paginates to 17 pages and renders nine cells:
   9 x 38 + 8 x 6 = 390px in the 351px column, so they shrink rather than
   wrap into a ragged second row. */
@media (max-width: 480px) {
	.woocommerce nav.woocommerce-pagination ul.page-numbers,
	.pager ul {
		gap: 4px;
	}
	.woocommerce nav.woocommerce-pagination ul li a.page-numbers,
	.woocommerce nav.woocommerce-pagination ul li span.page-numbers,
	.pager li a.page-numbers,
	.pager li span.page-numbers {
		min-width: 32px;
		height: 32px;
		padding: 0 7px;
		font-size: 13px;
	}
	.woocommerce nav.woocommerce-pagination ul li a.page-numbers.prev,
	.woocommerce nav.woocommerce-pagination ul li a.page-numbers.next,
	.pager li a.page-numbers.prev,
	.pager li a.page-numbers.next {
		font-size: 15px;
	}
}

/* ---------- Single product ---------- */
.product-essential:after {
	content: "";
	display: block;
	clear: both;
}
.product-essential {
	margin: 0 0 50px;
}
.product-essential .gallery .picture {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	background: var(--white);
	border: 1px solid var(--silver-200);
	border-radius: var(--radius-md);
	padding: 20px;
	text-align: center;
}
.product-essential .gallery .picture img {
	max-width: 100%;
	height: auto;
	display: inline-block;
}
.picture-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}
.picture-thumbs li {
	margin: 0;
}
.picture-thumbs img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border: 1px solid var(--silver-300);
	background: #fff;
	cursor: pointer;
}
.picture-thumbs a:hover img,
.picture-thumbs a.active img {
	border-color: var(--brand-red);
}

.product-details-page .product-name {
	margin: 0 0 15px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--silver-200);
}
.product-details-page .product-name h1 {
	margin: 0;
	font-size: 28px;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--steel-dark);
}
.product-details-page .short-description {
	margin: 0 0 20px;
	color: var(--text-secondary);
	line-height: 1.6;
}
.product-details-page .short-description p {
	margin: 0 0 10px;
}
.product-details-page .short-description ul {
	list-style: disc;
	padding-inline-start: 20px;
	margin: 0 0 10px;
}
.product-reviews-overview {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 15px;
}
.product-reviews-overview .product-review-box {
	margin: 0;
}
.product-reviews-link {
	font-size: 13px;
	color: var(--accent-blue);
	text-decoration: underline;
}
.product-details-page .sku {
	margin: 0 0 15px;
	font-size: 13px;
	color: var(--text-secondary);
}
.product-details-page .sku .label {
	font-weight: 600;
	color: var(--steel-dark);
}
/* Scoped to .product-essential, not .product-details-page: the related-products
   grid at the foot of the page is inside .product-details-page, so the page-wide
   selector was drawing this bordered box round every related card's price too. */
.product-essential .prices {
	margin: 0 0 20px;
	padding: 15px 0;
	border-top: 1px solid var(--silver-200);
	border-bottom: 1px solid var(--silver-200);
}
.product-details-page .prices .price {
	font-family: var(--font-display);
	font-size: 28px;
	color: var(--brand-red);
	font-weight: 700;
}
.product-details-page .prices .price del {
	font-size: 18px;
	color: #aaa;
	font-weight: 400;
}

/* Add to cart form */
.product-details-page form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 15px;
	font-size: 0;
}
/*
 * The quantity box and the Add to cart button are siblings inside
 * .woocommerce-variation-add-to-cart, separated by source whitespace. they are
 * two adjacent controls, not two words, so that space reads as an unintended
 * gap once .quantity sets its own font-size (a rule on the element itself beats
 * the inherited font-size:0 that used to collapse the space). Laying the row out
 * as flex takes the whitespace node out of the layout entirely — flex only
 * places element children. gap is 0 so the controls sit flush; change it here
 * if a deliberate separation is ever wanted.
 */
.product-details-page .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	font-size: 0;
}
.product-details-page .woocommerce-variation-add-to-cart > .quantity {
	margin: 0;
}
.product-details-page .woocommerce-variation-add-to-cart > .single_add_to_cart_button {
	margin: 0;
}
.product-details-page form.cart .quantity {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
}
.product-details-page form.cart .qty-label {
	margin-inline-end: 8px;
	text-transform: uppercase;
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: .05em;
	color: var(--steel-dark);
}
.product-details-page .qty {
	width: 70px;
	height: var(--control-height);
	padding: 6px 8px;
	border: 1px solid var(--silver-300);
	text-align: center;
	font-size: 15px;
	vertical-align: middle;
}
/*
 * Add-to-cart button: three states, one specificity ladder.
 *
 * All three used to lose to WooCommerce's own button rules, which is where the
 * purple came from. WooCommerce ships:
 *
 *   .woocommerce button.button.alt          (0-3-1)  #7f54b3  purple
 *   .woocommerce button.button.alt:hover    (0-4-1)  #7249a4  dark purple
 *   .woocommerce button.button.alt.disabled (0-4-1)  #7f54b3  purple
 *
 * while the theme declared 0-3-1 for the base, 0-3-1 for hover and 0-3-0 for
 * disabled — so the hover state and the "no variation chosen" state were purple
 * whatever the theme said. add-to-cart-variation.js only adds the `disabled`
 * class (never the attribute), so WooCommerce's .disabled rule is the one that
 * applies there, not the :disabled ones.
 *
 * Each rule below therefore names the real ancestors (`.product-essential` and
 * `form.cart`, per single-product.php) plus `.woocommerce` from <body>, giving
 * 0-5-1 / 0-6-1 / 0-7-1 — strictly above WooCommerce at every state rather than
 * tied and settled by stylesheet order.
 *
 * Disabled = light red with a brand-red label. opacity is forced back to 1
 * because WooCommerce fades disabled buttons and a light red at 50% is invisible.
 */
.woocommerce .product-details-page .product-essential form.cart .single_add_to_cart_button {
	height: var(--control-height);
	padding: 0 20px;
	background: var(--brand-red);
	border: 0;
	color: #fff;
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background var(--transition-fast);
}
.woocommerce .product-details-page .product-essential form.cart .single_add_to_cart_button:hover,
.woocommerce .product-details-page .product-essential form.cart .single_add_to_cart_button:focus {
	background: #a50d25;
	color: #fff;
}
.woocommerce .product-details-page .product-essential form.cart .single_add_to_cart_button.disabled,
.woocommerce .product-details-page .product-essential form.cart .single_add_to_cart_button[disabled],
.woocommerce .product-details-page .product-essential form.cart .single_add_to_cart_button.disabled:hover,
.woocommerce .product-details-page .product-essential form.cart .single_add_to_cart_button.disabled:focus,
.woocommerce .product-details-page .product-essential form.cart .single_add_to_cart_button[disabled]:hover,
.woocommerce .product-details-page .product-essential form.cart .single_add_to_cart_button[disabled]:focus {
	background: var(--brand-red-light);
	color: var(--brand-red);
	opacity: 1;
	cursor: not-allowed;
}
.product-details-page .stock {
	display: inline-block;
	padding: 4px 0;
	font-size: 13px;
	font-weight: 600;
}
.product-details-page .stock.in-stock {
	color: var(--success-green-color);
}
.product-details-page .stock.out-of-stock {
	color: var(--error-red-color);
}

/* Variations */
.product-details-page table.variations {
	width: 100%;
	margin: 0 0 15px;
	border: 0;
}
.product-details-page table.variations th,
.product-details-page table.variations td {
	padding: 6px 0;
	border: 0;
	vertical-align: middle;
	text-align: left;
	font-size: 13px;
	/* The base stylesheet paints .cart td (form.cart wraps this table) white,
	   which showed as a pale box against the page's #f7f8fa background. */
	background-color: transparent;
}
.product-details-page table.variations th label {
	font-family: var(--font-display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--steel-dark);
}
/*
 * WooCommerce ships its own rule for this exact select:
 *   .woocommerce div.product form.cart .variations select   (specificity 0-4-3)
 * which sets appearance:none, a `background:` shorthand (killing any
 * background-color through the reset), padding-right:3em and min-width:75%.
 * A shallower selector silently loses the cascade. Both selectors below are
 * 0-5-1, so every declaration applies.
 *
 * The FIRST selector is the one that matters. The theme's single-product.php
 * renders the gallery and summary under `.product-essential`, not under
 * WooCommerce's `div.product`, so `.product-details-page div.product …` matched
 * nothing on the real page and the control silently kept WooCommerce's default
 * look and its min-width:75%. The `div.product` variant is kept only for
 * WooCommerce's own template markup; don't rely on it alone.
 *
 * Width is 100% of the cell. WooCommerce's own min-width:75% is left in place
 * (it is smaller, so it never fights this), and there is deliberately no
 * max-width cap — an earlier revision capped the control at 520px, which
 * left it stranded short of the column edge.
 */
.woocommerce .product-details-page .product-essential form.cart .variations select,
.woocommerce .product-details-page div.product form.cart .variations select {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	display: block;
	width: 100%;
	height: var(--control-height);
	margin: 0;
	padding: 0 38px 0 12px;
	border: 1px solid var(--silver-300);
	border-radius: var(--radius-sm);
	/* background-color (not the shorthand) so nothing resets it to transparent. */
	background-color: #fff;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a5568' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px 8px;
	color: var(--text-primary);
	font-family: var(--font-body), Arial, Helvetica, sans-serif;
	font-size: 14px;
	/* One pixel of border top and bottom, inside the border-box height. */
	line-height: calc(var(--control-height) - 2px);
	cursor: pointer;
}
/*
 * WooCommerce's "Clear" (reset_variations) link is removed in the markup via
 * the woocommerce_reset_variations_link filter in functions.php, so there is
 * deliberately no styling for it here.
 */
.product-details-page .single_variation_wrap .woocommerce-variation-price {
	margin: 0 0 10px;
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 700;
	color: var(--brand-red);
}

/* ---------- Product tabs ---------- */
.product-collateral {
	margin: 0 0 60px;
	background: var(--white);
	border: 1px solid var(--silver-200);
	border-radius: var(--radius-md);
	overflow: hidden;
}
.product-tabs {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	background: var(--silver-100);
	border-bottom: 1px solid var(--silver-200);
}
.product-tabs li {
	margin: 0;
}
.product-tabs .tab-link {
	display: block;
	padding: 14px 22px;
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--text-secondary);
	border-bottom: 3px solid transparent;
	transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.product-tabs .tab-link:hover {
	color: var(--brand-red);
}
.product-tabs .tab-link.active {
	background: var(--white);
	border-bottom-color: var(--brand-red);
	color: var(--steel-dark);
}
.tab-panel {
	display: none;
	padding: 25px;
	color: var(--text-secondary);
	line-height: 1.7;
}
.tab-panel.active {
	display: block;
}
.tab-panel > *:first-child {
	margin-top: 0;
}
.tab-panel > *:last-child {
	margin-bottom: 0;
}

/* Reviews inside the tab */
.tab-panel #reviews h2 {
	font-size: 20px;
}
.tab-panel ol.commentlist {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}
.tab-panel ol.commentlist li {
	margin: 0 0 20px;
	padding: 0 0 20px;
	border-bottom: 1px solid var(--silver-200);
}
.tab-panel .comment-form label {
	display: block;
	margin: 0 0 5px;
	font-weight: 600;
	color: var(--steel-dark);
}
.tab-panel .comment-form input[type="text"],
.tab-panel .comment-form input[type="email"],
.tab-panel .comment-form textarea {
	width: 100%;
	margin: 0 0 15px;
}
.tab-panel .comment-form .form-submit input {
	background: var(--brand-red);
	border: 0;
	padding: 12px 24px;
	color: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
}

/* ---------- Notices ---------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	position: relative;
	margin: 0 0 25px;
	padding: 14px 18px 14px 46px;
	list-style: none;
	background: var(--white);
	border-left: 4px solid var(--accent-blue);
	box-shadow: var(--shadow-sm);
	color: var(--text-secondary);
	font-size: 14px;
}
.woocommerce-message {
	border-left-color: var(--success-green-color);
}
.woocommerce-error {
	border-left-color: var(--error-red-color);
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	position: absolute;
	top: 14px;
	left: 16px;
	font-family: var(--font-display);
	font-weight: 700;
}
.woocommerce-message::before {
	content: "\2713";
	color: var(--success-green-color);
}
.woocommerce-info::before {
	content: "i";
	color: var(--accent-blue);
}
.woocommerce-error::before {
	content: "!";
	color: var(--error-red-color);
}
.woocommerce-message .button,
.woocommerce-info .button {
	float: right;
	margin-inline-start: 15px;
	padding: 8px 16px;
	background: var(--brand-red);
	color: #fff;
	text-transform: uppercase;
	font-size: 12px;
}

/* ---------- Forms (cart, account, checkout) ---------- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	height: 40px;
	border: 1px solid var(--silver-300);
	padding: 8px 10px;
	background: #fff;
	color: var(--text-secondary);
}
.woocommerce form .form-row textarea {
	height: auto;
	min-height: 120px;
}
.woocommerce form .form-row label {
	display: block;
	margin: 0 0 5px;
	font-size: 13px;
	font-weight: 600;
	color: var(--steel-dark);
}
.woocommerce form .form-row {
	margin: 0 0 15px;
	padding: 0;
}
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button {
	background: var(--brand-red);
	color: #fff;
	border: 0;
	border-radius: 0;
	padding: 12px 24px;
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background var(--transition-fast);
}
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background: #a50d25;
	color: #fff;
}
/* Alt buttons keep the same red primary treatment as the storefront. */

/* Cart table */
.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--silver-200);
	background: #fff;
	margin: 0 0 25px;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--silver-200);
	text-align: left;
	vertical-align: middle;
	font-size: 14px;
}
.woocommerce table.shop_table thead th {
	background: var(--silver-100);
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--steel-dark);
}
.woocommerce table.shop_table img {
	max-width: 60px;
	height: auto;
}
.woocommerce table.shop_table td.product-name a {
	color: var(--steel-dark);
	font-weight: 600;
}
.woocommerce .cart-collaterals {
	display: flex;
	justify-content: flex-end;
}
.woocommerce .cart-collaterals .cart_totals {
	width: 100%;
	max-width: 420px;
	background: var(--white);
	border: 1px solid var(--silver-200);
	padding: 20px;
}
.woocommerce .cart_totals h2 {
	font-size: 20px;
	margin: 0 0 15px;
	text-transform: uppercase;
}

/* Quantity inputs inside cart */
.woocommerce .quantity .qty {
	width: 70px;
	/* Was 36px, which beat .product-details-page .qty (0-3-0 vs 0-2-0) and left
	   the quantity box 2px shorter than the add-to-cart button beside it. */
	height: var(--control-height);
	text-align: center;
}

/* ---------- Product page: ex-VAT and inc-VAT prices -------------------- */
/* WordPress/WooCommerce's visually-hidden text had no rule anywhere in this
   theme, so "Price range: …" was being read (and, on a product page, shown)
   as ordinary text. This is the standard rule. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background-color: var(--silver-100);
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);
	clip: auto !important;
	clip-path: none;
	color: var(--steel-dark);
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 5px;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}
/* Variable products hide the price *range* until a size is chosen; the chosen
   variation's two figures are printed under the dropdowns by theme.js. */
.product-details-page .prices.is-variable {
	display: none;
}
.product-details-page .price-tax-label {
	display: inline-block;
	margin-left: 4px;
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .02em;
	color: var(--steel-light);
	text-transform: uppercase;
	vertical-align: middle;
}
.product-details-page .product-price-inc-vat {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 600;
	color: var(--steel-light);
}
.product-details-page .product-price-inc-vat .woocommerce-Price-currencySymbol {
	font-size: .9em;
}
.woocommerce-variation-price .duk-variation-price-inc {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 500;
	color: var(--steel-light);
}

/* Account / login */
.woocommerce-account .woocommerce {
	background: var(--white);
	border: 1px solid var(--silver-200);
	padding: 25px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0 0 25px;
	padding: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid var(--silver-200);
}
.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 10px 0;
	color: var(--steel-dark);
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	color: var(--brand-red);
	font-weight: 600;
}

/* Star ratings (Woo's .star-rating) */
.woocommerce .star-rating {
	position: relative;
	overflow: hidden;
	height: 1em;
	line-height: 1;
	width: 5.4em;
	font-family: star;
	color: #f39c12;
}
.woocommerce .star-rating::before {
	content: "\73\73\73\73\73";
	float: left;
	top: 0;
	left: 0;
	position: absolute;
}
.woocommerce .star-rating span {
	overflow: hidden;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
	padding-top: 1.5em;
}
.woocommerce .star-rating span::before {
	content: "\53\53\53\53\53";
	top: 0;
	position: absolute;
	left: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.master-column-wrapper {
		width: 100%;
	}
	.product-details-page .gallery,
	.product-details-page .overview {
		float: none;
		width: 100%;
	}
	.product-details-page .gallery {
		margin: 0 0 25px;
	}
	.product-details-page .overview {
		margin: 0;
	}
	.product-selectors {
		flex-direction: column;
		align-items: flex-start;
	}
	.product-sorting {
		margin-inline-start: 0;
	}
	.woocommerce .cart-collaterals .cart_totals {
		max-width: none;
	}
	.woocommerce table.shop_table_responsive tr td {
		text-align: right;
	}
	.woocommerce table.shop_table_responsive tr td::before {
		float: left;
		font-weight: 600;
	}
}

@media (max-width: 768px) {
	.product-tabs .tab-link {
		padding: 12px 14px;
		font-size: 12px;
	}
	.tab-panel {
		padding: 18px;
	}
	.product-details-page form.cart {
		flex-wrap: wrap;
	}
	.product-details-page .qty {
		width: 60px;
	}
	.product-details-page .single_add_to_cart_button {
		flex: 1 1 auto;
		padding: 0 16px;
	}
	.item-box a.product-box-add-to-cart-button {
		width: 100%;
	}
	.woocommerce table.shop_table thead {
		display: none;
	}
}

@media (max-width: 480px) {
	.product-details-page .product-name h1 {
		font-size: 21px;
	}
	.product-details-page .prices .price {
		font-size: 24px;
	}
	.picture-thumbs img {
		width: 58px;
		height: 58px;
	}
}

/* ---------- "All categories" mega panel ---------- */
/*
 * The reference design has a single-row navigation with no dropdowns. This
 * panel exposes the product families that would otherwise be bar-less; it is
 * a deliberate difference from the live site. Hidden by default so it costs
 * nothing until opened, and rendered in-flow on mobile where the whole menu is
 * already an accordion.
 */
.duk-mega {
	display: none;
}

.duk-mega__grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(6, 1fr);
}

.duk-mega__tile {
	display: block;
	padding: 0;
	background: #fff;
	border: 1px solid var(--silver-300);
	border-radius: var(--radius-sm);
	overflow: hidden;
	text-decoration: none;
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.duk-mega__tile:hover,
.duk-mega__tile:focus-visible {
	border-color: var(--brand-red);
	box-shadow: var(--shadow-sm);
}

.duk-mega__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 450 / 261;
	object-fit: contain;
	background: #fff;
}

.duk-mega__name {
	display: block;
	padding: 8px 10px;
	border-top: 3px solid var(--brand-red);
	color: var(--text-primary);
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.25;
	text-transform: uppercase;
	text-align: center;
}

/* Mobile / tablet: the nav is an accordion, so list the families in flow. */
@media (max-width: 1000px) {
	.duk-mega {
		display: block;
		background: rgba(0, 0, 0, .18);
	}

	.duk-mega__grid {
		display: block;
		padding: 4px 18px 12px;
		gap: 0;
	}

	.duk-mega__tile {
		display: block;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.duk-mega__img {
		display: none;
	}

	.duk-mega__name {
		padding: 10px 0;
		border-top: 0;
		color: rgba(255, 255, 255, .85);
		font-size: 13px;
		text-align: left;
	}

	.duk-mega__name::before {
		content: "";
		display: inline-block;
		width: 5px;
		height: 5px;
		margin-right: 8px;
		background: #ddd;
		vertical-align: middle;
	}
}

/* Desktop: full-width drop panel anchored to the nav. */
@media (min-width: 1001px) {
	.duk-mega {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 50;
		display: block;
		padding: 20px;
		background: #fff;
		border-top: 3px solid var(--brand-red);
		box-shadow: var(--shadow-lg);
		text-align: left;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transition: opacity .18s ease, transform .18s ease, visibility .18s;
	}

	/* Open on hover, on keyboard focus, or when theme.js marks it open. */
	.menu__item--mega:hover .duk-mega,
	.menu__item--mega:focus-within .duk-mega,
	.menu__item--mega.is-open .duk-mega {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.menu__item--mega > .menu__link {
		white-space: nowrap;
	}

	/*
	 * Call-to-action items: "Sale" is a text accent, "Get a quote" is a filled
	 * button so the quote path stands out in the bar.
	 */
	.menu__item.duk-sale > .menu__link {
		color: #ffd166;
	}

	.menu__item.duk-sale > .menu__link:hover,
	.menu__item.duk-sale > .menu__link:focus-visible {
		color: #fff;
	}

	/*
	 * Spread the items across the whole bar. The base stylesheet centres them
	 * (justify-content: center), which leaves dead space at both ends and reads
	 * as squashed into the middle now the bar is down to six items.
	 *
	 * Growing each item lets the six share the full width: the first starts at
	 * the left edge, the last ends at the right edge, and the slack is divided
	 * in proportion to label length. Unlike space-between this keeps the 1px
	 * dividers flush against their neighbours instead of stranding them in the
	 * middle of a gap.
	 */
	.menu.ductinguk-menu > .menu__item {
		flex: 1 1 auto;
	}

	/* Centre each label within its own click target. */
	.menu.ductinguk-menu > .menu__item > .menu__link {
		justify-content: center;
		text-align: center;
	}
}

@media (min-width: 1001px) and (max-width: 1200px) {
	.duk-mega__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ---------- HTML sitemap ([ductinguk_sitemap]) ---------- */
.duk-sitemap {
	margin: 0 0 20px;
}
.duk-sitemap h2 {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--steel-dark);
	margin: 25px 0 10px;
}
.duk-sitemap h2:first-child {
	margin-top: 0;
}
.duk-sitemap__list {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 2;
	column-gap: 40px;
}
.duk-sitemap__list li {
	padding: 6px 0;
	border-bottom: 1px solid var(--silver-200);
	break-inside: avoid;
}
.duk-sitemap__list a {
	color: var(--steel-dark);
	text-decoration: none;
}
.duk-sitemap__list a:hover,
.duk-sitemap__list a:focus {
	color: var(--brand-red);
	text-decoration: underline;
}
.duk-sitemap__count {
	color: var(--gray-color);
	font-size: 12px;
}
@media (max-width: 768px) {
	.duk-sitemap__list {
		columns: 1;
	}
}

/* ---------- SEO pass: category cross-links ---------- */
.ductinguk-browse-category {
	margin: 10px 0 0;
	font-size: 13px;
}
.ductinguk-browse-category a {
	color: var(--steel-dark);
	text-decoration: underline;
}
.ductinguk-browse-category a:hover,
.ductinguk-browse-category a:focus {
	color: var(--brand-red);
}
/* ---------- Sibling categories at the foot of an archive ------------------
 * PROGRESS.md §64. This was a flex-wrap run of 14px/400 links with a small grey
 * count after each: eleven items broke over five ragged rows at 1280px (eleven
 * rows on a phone) with nothing to scan by, so it read as a paragraph of links
 * rather than as navigation. It is now a grid of tiles — one per category, name
 * over count, the whole tile being a single link. */
.ductinguk-siblings {
	margin: 32px 0 0;
	padding: 24px 0 0;
	border-top: 1px solid var(--silver-200);
}
.ductinguk-siblings__title {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--steel-dark);
	margin: 0 0 14px;
}
.ductinguk-siblings__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ductinguk-siblings__list li {
	display: flex;
	margin: 0;
}
.ductinguk-siblings__list a {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 3px;
	padding: 10px 12px;
	border: 1px solid var(--silver-300);
	border-radius: var(--radius-sm);
	background-color: var(--white);
	color: var(--steel-dark);
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}
.ductinguk-siblings__list a:hover,
.ductinguk-siblings__list a:focus {
	border-color: var(--brand-red);
	background-color: var(--silver-100);
	color: var(--brand-red);
	text-decoration: none;
}
.ductinguk-siblings__list a:focus-visible {
	outline: 2px solid var(--brand-red);
	outline-offset: 2px;
}
.ductinguk-siblings__name {
	display: block;
}
.ductinguk-siblings__count {
	color: var(--steel-light);
	font-size: 12px;
	font-weight: 500;
}

/* tab content typography */
/* ductinguk.css resets every margin (`*{margin:0;padding:0}`) and strips list
   markers (`ol,ul{list-style:none}`). The .tab-panel rules above cover padding,
   .data-table and the reviews list, but not the headings, paragraphs and bullets
   that the product descriptions are made of - so the Description tab rendered as
   one undifferentiated block. Restored here for tab content generally, which also
   tidies the Additional information and Reviews panels. */
.tab-panel p{margin:12px 0;text-align:justify}
.tab-panel h2,.tab-panel h3,.tab-panel h4{margin:22px 0 8px;line-height:1.3}
.tab-panel h2{font-size:22px}
.tab-panel h3{font-size:19px}
.tab-panel h4{font-size:16px}
.tab-panel ul,.tab-panel ol{margin:12px 0;padding:0 0 0 26px}
.tab-panel ul{list-style:disc}
.tab-panel ol{list-style:decimal}
.tab-panel li{margin:0 0 6px;line-height:1.55}
.tab-panel li::marker{color:var(--brand-red)}
.tab-panel strong,.tab-panel b{font-weight:600}
.tab-panel em,.tab-panel i{font-style:italic}
.tab-panel blockquote{margin:16px 0;padding:0 0 0 16px;border-left:3px solid var(--brand-red)}
.tab-panel a{color:var(--brand-red);text-decoration:underline}

/* top bar: strapline + contact details */
/* Strip at the very top of the page (2026-11-10): the first block inside
   .master-wrapper-page, above the header, so it runs the full width of the
   screen.

   One typographic voice: all three items share the display face, weight, size and
   tracking (500 / 14px / .06em, uppercase), so the bar reads as a single line
   rather than a strapline with two links bolted on.

   Arrangement: the strapline holds the left, then the phone and the email run
   together at the right-hand end - phone first, so it sits between the strapline
   and the email. `margin-left:auto` on the phone pushes the pair to the right
   without a wrapper element, and the icons (15px) stay centre-aligned on the
   text baseline. The fixed min-height gives the strip its 30px height whatever
   the label metrics.

   Below 768px the strapline - the least useful item on a phone - is dropped and
   the two contacts are centred as a pair, separated by a hairline. */
.duk-tagline{background:var(--brand-red);padding:0 16px}
.duk-topbar{display:flex;align-items:center;gap:18px;width:95%;margin:0 auto;min-height:30px;text-align:left}
.duk-topbar__item{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-display);font-weight:500;font-size:14px;line-height:1;letter-spacing:.06em;text-transform:uppercase;color:#fff;white-space:nowrap;text-decoration:none}
.duk-topbar__item--phone{margin-left:auto}
/* pipe between the two contact details; it is a flex sibling of both, so the
   row gap spaces it evenly on either side */
.duk-topbar__divider{flex:0 0 auto;font-family:var(--font-display);font-size:16px;line-height:1;color:rgba(255,255,255,.6)}
.duk-topbar__item:hover,.duk-topbar__item:focus-visible,.duk-email:hover,.duk-email:focus-visible{text-decoration:underline;text-underline-offset:3px}
.duk-topbar__icon{flex:0 0 auto;width:15px;height:15px}
.duk-email{color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;text-decoration:none}
.duk-tagline__text{margin:0;font-family:var(--font-display);font-weight:500;font-size:14px;line-height:1;letter-spacing:.06em;text-transform:uppercase;color:#fff}
@media all and (min-width:1001px){.duk-topbar{width:980px}}
@media all and (min-width:1367px){.duk-topbar{width:1200px}}
@media all and (max-width:768px){
	.duk-tagline{padding:0 12px}
	.duk-tagline__text{display:none}
	.duk-topbar{justify-content:center;gap:16px;width:100%;min-height:28px;text-align:center}
	.duk-topbar__item{font-size:12.5px;gap:6px;letter-spacing:.05em}
	.duk-topbar__item--phone{margin-left:0}
	.duk-topbar__divider{font-size:14px}
	.duk-topbar__icon{width:13px;height:13px}
}
@media all and (max-width:380px){
	.duk-topbar{gap:12px}
	.duk-topbar__item{font-size:11.5px;letter-spacing:.04em}
}

/* homepage category sidebar */
/* The homepage now uses .center-2 so it can carry the .side-2 category menu. The
   carried-over rule `.center-1 .title{text-align:center}` no longer matches, so the
   category card titles are re-centred here, scoped to the homepage grid. */
.home-page .category-grid .title{text-align:center}


/* ---------------------------------------------------------------------------
   Sidebar category menu (2026-11-10)

   Was: a bare 20px "Categories" line with a grey rule under it, an unstyled list
   of 16px links and a 5px grey square bullet from the carried-over nopCommerce
   sheet - so the menu read as loose text beside the grid rather than as a panel,
   and its hover colour was the old #4ab2f1 blue.

   Now: a bordered white card with a header cell. The header is a darker band with
   the same 3px brand-red top rule and steel background as the main navigation
   bar, so the panel reads as a continuation of that bar; "Shop By Categories"
   sits in it as a label, not a toggle (cursor, arrow image and the mobile
   accordion behaviour are all neutralised for this block only).

   Rows are full-width click targets separated by hairlines, with a hover state
   that tints the row, turns the label red and slides it 4px right against a 3px
   red edge drawn with an inset box-shadow (an inset shadow rather than a border
   so the row cannot jump by 3px on hover). The current category gets the same
   treatment permanently, plus a heavier label.

   The card is .duk-sidebox, so the "Help & information" box below the category
   menu gets the identical shell, header cell and row behaviour from the same
   rules. Everything is scoped to that class: .block and .block .title are shared
   with other blocks, and .side-2 only lays out as a column above 1001px, so both
   boxes are hidden below it (the category box also keeps
   .duk-sidebox, whose base-sheet display:none still applies).
   --------------------------------------------------------------------------- */
.duk-sidebox{
	background:var(--white);
	border:1px solid var(--silver-300);
	border-radius:var(--radius-md);
	box-shadow:var(--shadow-sm);
	overflow:hidden;
	max-width:none;
	margin:0 0 20px;
	text-align:left;
}

/* header cell, flush against the top of the card */
.duk-sidebox .title{
	margin:0;
	padding:13px 16px;
	background:var(--steel-dark);
	background-image:none;
	border:0;
	border-top:3px solid var(--brand-red);
	border-radius:0;
	color:var(--white);
	font-family:var(--font-display);
	font-size:15px;
	font-weight:700;
	line-height:1.2;
	letter-spacing:.08em;
	text-transform:uppercase;
	cursor:auto;
}

.duk-sidebox .listbox{
	display:block;
	border:0;
	padding:4px 0;
}

.duk-sidebox .list{margin:0;padding:0;list-style:none}

.duk-sidebox .list li{
	margin:0;
	padding:0;
	border-bottom:1px solid var(--silver-200);
}

.duk-sidebox .list li:last-child{border-bottom:0}

.duk-sidebox .list a{
	display:block;
	position:static;
	padding:10px 16px;
	font-size:14px;
	line-height:1.35;
	color:var(--steel-dark);
	text-decoration:none;
	transition:background-color var(--transition-fast),color var(--transition-fast),padding-left var(--transition-fast);
}

/* the nopCommerce grey square bullet */
.duk-sidebox .list a:before{display:none}

/* row hover / keyboard focus */
.duk-sidebox .list a:hover,
.duk-sidebox .list a:focus-visible{
	background:var(--silver-100);
	color:var(--brand-red);
	padding-left:20px;
	box-shadow:inset 3px 0 0 var(--brand-red);
	outline:0;
}

/* the category being viewed */
.duk-sidebox .list .active>a,
.duk-sidebox .list .active>a:hover{
	background:var(--silver-100);
	color:var(--brand-red);
	font-weight:600;
	padding-left:20px;
	box-shadow:inset 3px 0 0 var(--brand-red);
}

/* Both sidebar boxes are desktop-only, like the column they sit in. */
@media all and (max-width:1000px){.duk-sidebox{display:none}}

/* ---------- "Added to cart" toast ----------
 * The band's appearance is INLINE on the element, in
 * ductinguk_added_to_cart_toast() (functions.php) — background, type, z-index,
 * padding, the lot. That is deliberate: assets here are served with a 30-day
 * immutable cache, so a returning visitor can hold an old woocommerce.css against
 * new HTML, and two earlier versions of this toast were invisible for exactly
 * that reason (the first relied on `transform` + a class added from
 * requestAnimationFrame; the second on stylesheet-only appearance).
 *
 * What is left here is the motion, and the stylesheet is allowed to lose it:
 * `.is-in` / `.is-out` only add keyframes. Without them the toast still appears
 * and still disappears, just without the pop.
 */
/* A pop, not a slide. The band used to animate down from above the viewport:
   any browser that held that animation at its first frame (throttled tab,
   reduced frame budget, or a stale copy of a previous stylesheet) showed
   nothing at all. This scales from .96 and 75% opacity, so even frozen at its
   first frame the whole message is on screen and readable. */
@keyframes duk-toast-in{
	from{opacity:.75;transform:scale(.96)}
	to{opacity:1;transform:scale(1)}
}

@keyframes duk-toast-out{
	from{opacity:1;transform:scale(1)}
	to{opacity:0;transform:scale(.96)}
}

.duk-toast.is-in{animation:duk-toast-in .2s cubic-bezier(.2,.9,.3,1.2)}
.duk-toast.is-out{animation:duk-toast-out .2s ease both}

@media (prefers-reduced-motion:reduce){
	.duk-toast.is-in,
	.duk-toast.is-out{animation:none}
}

/* ---------- Card add-to-cart label ----------
 * The card button was a fixed `width:60%` with `height:40px` and
 * `line-height:40px`. On the home page's featured row the cards are ~210px wide
 * (four across a 73% content column), so 60% is ~114px — too narrow for
 * "ADD TO BASKET" at 15px uppercase. The label wrapped onto a second line, which
 * the fixed 40px height then cut off: the card read "ADD TO", with the rest
 * spilling out of the box.
 *
 * Size to the label instead, with the old 60% kept as a floor so short labels
 * keep the original proportions, and step the type down rather than ever wrap.
 */
.item-box a.product-box-add-to-cart-button{
	box-sizing:border-box;
	width:auto;
	/* 140px is the width "ADD TO BASKET" needs at 15px, so every card button in a
	   row comes out the same size — content-sized alone would give "View product"
	   (136px) and "Add to basket" (140px) different widths across one row. */
	min-width:140px;
	max-width:100%;
	padding:0 12px;
	white-space:nowrap;
}

/* The ≤768px rule earlier in this file wants a full-width button; it is beaten by
   the `width:auto` above, so restate it here. */
@media all and (max-width:768px){
	.item-box a.product-box-add-to-cart-button{
		width:100%;
		min-width:0;
	}
}

/* Narrow cards: shrink the type rather than clip the label. */
@media all and (max-width:480px){
	.item-box a.product-box-add-to-cart-button{
		padding:0 8px;
		font-size:13px;
	}
}

@media all and (max-width:380px){
	.item-box a.product-box-add-to-cart-button{
		padding:0 6px;
		font-size:12px;
	}
}

/* --------------------------------------------------------------------------
 * Variation prompts on Type x Size products
 *
 * Two dropdowns with no labels ("Type" / "Size" — names the importer invents,
 * PROGRESS.md 37) give no clue which dimension is which, so products with more
 * than one variation attribute get the source storefront's own prompts above
 * each select. The wording comes from ductinguk_variation_attribute_label() in
 * functions.php; the body class is added by ductinguk_body_classes().
 *
 * Two things make this longer than it looks:
 *
 * 1. `.cart label{display:none}` in the carried-over ductinguk.css (the
 *    min-width:1001px block) matches this form, because WooCommerce renders it
 *    as `<form class="variations_form cart">`. That is the same `.cart` leak
 *    that once painted the variation cells white (PROGRESS.md 3b). The label is
 *    therefore switched back on here with a selector deep enough to win, rather
 *    than by touching the base rule, which other pages rely on.
 * 2. The label is WooCommerce's `<th class="label">` — a table header cell
 *    sitting beside the select, not above it. Display:block on the table, rows
 *    and cells stacks each prompt over its own control; the table carries
 *    role="presentation", so nothing semantic is lost.
 * -------------------------------------------------------------------------- */
.ductinguk-multi-variation .product-essential form.cart table.variations,
.ductinguk-multi-variation .product-essential form.cart table.variations tbody,
.ductinguk-multi-variation .product-essential form.cart table.variations tr,
.ductinguk-multi-variation .product-essential form.cart table.variations th.label,
.ductinguk-multi-variation .product-essential form.cart table.variations td.value {
	display: block;
}
/*
 * The cells need their width reset, the table must NOT have one. `form.cart` is
 * a wrapping flex container, so the table is a flex item: while it keeps
 * `width:100%` it claims the whole line and the quantity/button block wraps
 * underneath it, which is where it belongs. Setting `width:auto` on the table as
 * well shrank it to the two selects and let that block slide up beside them.
 */
.ductinguk-multi-variation .product-essential form.cart table.variations th.label,
.ductinguk-multi-variation .product-essential form.cart table.variations td.value {
	width: auto;
}
.ductinguk-multi-variation .product-essential form.cart table.variations th.label {
	padding: 0;
}
.ductinguk-multi-variation .product-essential form.cart table.variations th.label label {
	display: block;
	/* the base sheet sets white-space:nowrap on th, which would push
	   "Saddle size one (coming off)" out of a phone-width column */
	white-space: normal;
	margin: 0 0 6px;
	line-height: 1.3;
}
.ductinguk-multi-variation .product-essential form.cart table.variations td.value {
	padding: 0 0 14px;
}
