/*
 * Shop styling.
 *
 * Every colour is an Elementor global from the Janitech kit, so Site Settings stays the one place
 * these are changed. The fallbacks exist only so the shop is not unreadable if the kit is missing.
 */
/* Elementor defines its globals on <body>, not :root, so a :root mapping silently
   fell back to these literals instead of reading the kit. */
body{
	--jt-red:var(--e-global-color-primary,#b80024);
	--jt-ink:var(--e-global-color-secondary,#1e1e1e);
	--jt-body:var(--e-global-color-text,#4c4c4c);
	--jt-gold:var(--e-global-color-accent,#fbb040);
	--jt-gray:var(--e-global-color-jt_gray,#f4f4f4);
	--jt-line:var(--e-global-color-jt_line,#e5e5e5);
	--jt-muted:var(--e-global-color-jt_muted,#6b6b6b);
	--jt-white:var(--e-global-color-jt_white,#fff);
}

/* ---- the loop ---- */
.woocommerce ul.products li.product{
	background:var(--jt-white);border:1px solid var(--jt-line);border-radius:18px;
	padding:18px;margin-bottom:24px;display:flex;flex-direction:column;gap:6px;
	transition:box-shadow .18s ease, border-color .18s ease;
}
.woocommerce ul.products li.product:hover{border-color:var(--jt-line);box-shadow:0 18px 45px rgba(0,0,0,.10)}
.woocommerce ul.products li.product img{background:var(--jt-white);border-radius:12px;margin-bottom:10px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
	font-size:15px;line-height:1.35;font-weight:600;color:var(--jt-ink);padding:0;margin:0
}
.woocommerce ul.products li.product .price{color:var(--jt-ink);font-weight:700;font-size:17px;margin:4px 0 0}
.woocommerce .price .jt-price__unit{font-weight:400;font-size:.78em;color:var(--jt-muted)}
.woocommerce .jt-price--on-request{font-weight:600;font-size:15px;color:var(--jt-muted)}
.jt-unit-price{color:var(--jt-body);font-size:.84em}

/* ---- facets ---- */
.widget_product_categories ul,.widget_layered_nav ul,.wc-block-brand-nav ul,.widget_brand_nav ul{list-style:none;margin:0;padding:0}
.widget_product_categories li,.widget_layered_nav li,.widget_brand_nav li{padding:7px 0;border-bottom:1px solid var(--jt-line)}
.widget_product_categories li:last-child,.widget_layered_nav li:last-child,.widget_brand_nav li:last-child{border-bottom:0}
.widget_product_categories a,.widget_layered_nav a,.widget_brand_nav a{text-decoration:none;color:var(--jt-body)}
.widget_product_categories a:hover,.widget_layered_nav a:hover,.widget_brand_nav a:hover{color:var(--jt-red)}
.widget_layered_nav_filters ul li a{color:var(--jt-red)}
.woocommerce-widget-layered-nav-list__item--chosen a{font-weight:600;color:var(--jt-ink)}

/* ---- toolbar ---- */
.woocommerce .woocommerce-result-count{color:var(--jt-muted);font-size:.9em}
.woocommerce .woocommerce-ordering select{border:1px solid var(--jt-line);border-radius:999px;padding:9px 16px;background:var(--jt-white)}

/* ---- single product ---- */
.single-product .jt-specs{margin:0}
.single-product .product_meta{color:var(--jt-muted);font-size:.86em}

/* ---- mobile: the table becomes a list, filters become a drawer ---- */
@media (max-width:782px){
	.woocommerce ul.products{display:flex;flex-direction:column;gap:0;margin:0}
	.woocommerce ul.products li.product{
		width:100%!important;margin:0;border:0;border-bottom:1px solid var(--jt-line);
		border-radius:0;padding:16px 0;display:grid;
		grid-template-columns:76px 1fr;grid-template-areas:"img text" "img price" ". action";
		column-gap:14px;row-gap:4px;
	}
	.woocommerce ul.products li.product img{grid-area:img;width:76px;height:76px;object-fit:contain;margin:0}
	.woocommerce ul.products li.product .woocommerce-loop-product__title{grid-area:text}
	.woocommerce ul.products li.product .price{grid-area:price;margin:0}
	.woocommerce ul.products li.product .button,.woocommerce ul.products li.product .jt-atq{grid-area:action;justify-self:start}

	.jt-facets{position:fixed;inset:0;z-index:9998;background:var(--jt-white);overflow:auto;padding:24px;display:none}
	.jt-facets.is-open{display:block}
	.jt-facets__close{position:sticky;top:0;margin-left:auto;display:block}
	.jt-facets-toggle{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--jt-line);
		background:var(--jt-white);border-radius:999px;padding:11px 18px;font-weight:600;cursor:pointer}
}
@media (min-width:783px){ .jt-facets-toggle{display:none} }

/* ---- the sticky quote bar ---- */
.jt-stickybar{
	position:fixed;left:0;right:0;bottom:0;z-index:9997;display:none;
	align-items:center;gap:14px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));
	background:var(--jt-white);border-top:1px solid var(--jt-line);box-shadow:0 -6px 18px rgba(0,0,0,.10)
}
.jt-stickybar.is-visible{display:flex}
/* The filter drawer is a modal: while it is open it owns the screen.
   Without this the quote bar sits over the drawer's own "Show the results" button on a phone —
   measured at 375x812 the button occupies 744-796 and the bar 736-812, so elementFromPoint at
   the button's centre returned the bar and the tap went to "Review quote" instead, navigating
   away mid-filter. The bar has nothing to offer while filtering and comes straight back on
   close. */
html.jt-facets-shown .jt-stickybar.is-visible{display:none}
.jt-stickybar__text{flex:1;min-width:0;line-height:1.3}
.jt-stickybar__sub{display:block;font-size:.8em;color:var(--jt-muted)}
/* `a.` so this beats the kit's `.elementor-kit-N a`, which otherwise paints the label the same
   red as the pill it sits on and makes it invisible. */

.jt-stickybar a.jt-stickybar__cta{background:var(--jt-red);color:#fff;text-decoration:none;border-radius:999px;
	padding:13px 22px;font-weight:600;white-space:nowrap;min-height:44px;display:inline-flex;
	align-items:center;justify-content:center}
.jt-stickybar a.jt-stickybar__cta:hover{background:var(--e-global-color-jt_red_dark,#8f001c);color:#fff}
@media (min-width:783px){ .jt-stickybar{display:none!important} }

/* Elementor renders the loop inside .elementor-products-grid, which out-specifies the
   plain WooCommerce selectors above — these match that markup. */
.elementor-products-grid ul.products li.product,
.woocommerce .elementor-products-grid ul.products li.product{
	background:var(--jt-white);border:1px solid var(--jt-line);border-radius:18px;
	padding:18px;display:flex;flex-direction:column;gap:6px;
	transition:box-shadow .18s ease
}
.elementor-products-grid ul.products li.product:hover{box-shadow:0 18px 45px rgba(0,0,0,.10)}
.elementor-products-grid ul.products li.product img{border-radius:12px;background:var(--jt-white)}
.elementor-products-grid ul.products li.product .woocommerce-loop-product__title{
	font-size:15px;line-height:1.35;font-weight:600;color:var(--jt-ink)
}
.elementor-products-grid ul.products li.product .price{margin-top:auto}
.jt-atq--loop{display:block;margin-top:10px}
.jt-atq--loop .jt-atq__btn{width:100%;padding:11px 18px;font-size:13px;
	background:var(--jt-white);color:var(--jt-red);border:1.5px solid var(--jt-red)}
.jt-atq--loop .jt-atq__btn:hover{background:var(--jt-red);color:#fff}
.jt-atq--loop .jt-atq__btn.is-added{background:var(--jt-gray);color:var(--jt-muted);border-color:transparent}

/* WooCommerce prints SKU, category and brand with no separators of its own. */
.single-product .product_meta{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:baseline}
.single-product .product_meta > span{display:inline-flex;gap:6px}
.single-product .product_meta a{color:var(--jt-body);text-decoration:none;border-bottom:1px solid var(--jt-line)}
.single-product .product_meta a:hover{color:var(--jt-red)}

/* ===========================================================================
 * Design pass — Janitech kit.
 * These carry enough specificity to beat hello-elementor and Elementor's own
 * widget defaults, which were overriding price colour, button shape and weight.
 * =========================================================================== */

/* ---- price ---- */
.woocommerce div.product .elementor-widget-woocommerce-product-price .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.elementor-widget-woocommerce-product-price .price .woocommerce-Price-amount{
	color:var(--jt-ink);font-weight:700;font-size:38.4px;line-height:1
}
.woocommerce div.product .price .jt-price__unit{
	color:var(--jt-muted);font-weight:400;font-size:16px
}
.woocommerce ul.products li.product .price,
.elementor-products-grid ul.products li.product .price,
.elementor-products-grid ul.products li.product .price .woocommerce-Price-amount{
	color:var(--jt-ink);font-weight:700;font-size:17px;line-height:1.3
}
.woocommerce ul.products li.product .price .jt-price__unit{font-size:13px;font-weight:400;color:var(--jt-muted)}
.woocommerce .jt-price--on-request{color:var(--jt-muted);font-weight:600}

/* ---- buttons: pill, red, white label ---- */
.jt-atq .jt-atq__btn,
.woocommerce .jt-atq .jt-atq__btn,
.elementor .jt-atq .jt-atq__btn{
	background:var(--jt-red);color:#fff;border:0;border-radius:999px;
	padding:14px 26px;font-size:16px;font-weight:600;line-height:1;cursor:pointer;
	transition:background .18s ease
}
.jt-atq .jt-atq__btn:hover{background:var(--e-global-color-jt_red_dark,#8f001c);color:#fff}
.jt-atq .jt-atq__btn.is-added{background:var(--jt-gray);color:var(--jt-muted)}
.jt-atq--loop .jt-atq__btn,
.elementor-products-grid .jt-atq--loop .jt-atq__btn{
	background:#fff;color:var(--jt-red);border:1.5px solid var(--jt-red);
	padding:11px 18px;font-size:13px;width:100%
}
.jt-atq--loop .jt-atq__btn:hover{background:var(--jt-red);color:#fff}

/* ---- headings follow the kit scale, not Elementor's defaults ---- */
.woocommerce div.product .elementor-widget-heading h1.elementor-heading-title,
.elementor-widget-theme-archive-title h1,
.elementor-location-archive .elementor-widget-heading h1.elementor-heading-title{
	font-weight:700;line-height:1.12;letter-spacing:-.01em;color:var(--jt-ink)
}

/* ---- the specification band ---- */
.elementor-widget-jt-product-specs{width:100%}
.jt-specs__head{color:var(--jt-red);font-weight:700}
.jt-specs__row dd{color:var(--jt-ink)}

/* ---- product meta ---- */
.single-product .product_meta,
.single-product .product_meta span{color:var(--jt-muted);font-size:13.8px}

/* ---- loop card title ---- */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.elementor-products-grid ul.products li.product .woocommerce-loop-product__title{
	font-weight:600;color:var(--jt-ink);font-size:15px;line-height:1.35;padding:0
}

/* ---- facet headings ---- */
.elementor-widget-wp-widget-woocommerce_product_categories h5,
.elementor-widget-wp-widget-woocommerce_layered_nav h5,
.elementor-widget-wp-widget-woocommerce_brand_nav h5,
.elementor-widget-wp-widget-woocommerce_product_search h5{
	font-size:11.5px;letter-spacing:.09em;text-transform:uppercase;font-weight:700;
	color:var(--jt-muted);margin:0 0 10px
}

/* ------------------------------------------------------------------ QA fixes, 25 Oct 2026
 * Elementor's widget-woocommerce-products stylesheet loads after this one and sets
 * `display: var(--button-align-display)` on `.elementor-products-grid ul.products.elementor-grid
 * li.product` (0,2,3), which beat the card rules above and left every tile as a block — so the
 * "Add to quote" button floated under variable-height names instead of sitting on one baseline.
 * These selectors are specific enough to win, and cover the archive widget as well as the grid.
 */
.woocommerce .elementor-products-grid ul.products.elementor-grid li.product,
.woocommerce .elementor-widget-woocommerce-archive-products ul.products li.product,
.elementor-widget-woocommerce-archive-products ul.products.elementor-grid li.product{
	display:flex;flex-direction:column;gap:6px;float:none;
	background:var(--jt-white);border:1px solid var(--jt-line);border-radius:18px;padding:18px;
	transition:box-shadow .18s ease, border-color .18s ease;
}
.woocommerce .elementor-products-grid ul.products.elementor-grid li.product:hover,
.elementor-widget-woocommerce-archive-products ul.products li.product:hover{
	box-shadow:0 18px 45px rgba(0,0,0,.10)
}
/* The name runs to two or three lines and a price-on-request product prints a different element
   from a priced one, so the slack is taken by the action itself rather than by the price — that
   is the only child every card has, which is what puts the buttons on one baseline per row. */
.woocommerce ul.products li.product .jt-atq--loop,
.elementor-widget-woocommerce-archive-products ul.products li.product .jt-atq--loop{
	margin-top:auto;padding-top:10px
}

/* ---- pagination ----
 * WooCommerce ships no pagination colours of its own, so the theme's defaults showed through:
 * #816F98 on #E9E6ED, which is 3.65:1 and fails AA as well as being off-palette.
 */
.woocommerce nav.woocommerce-pagination ul.page-numbers{
	display:flex;flex-wrap:wrap;gap:8px;justify-content:center;
	border:0;margin:32px 0 0;padding:0;list-style:none
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li{border:0;margin:0;overflow:visible}
.woocommerce nav.woocommerce-pagination ul.page-numbers li a,
.woocommerce nav.woocommerce-pagination ul.page-numbers li span{
	display:inline-flex;align-items:center;justify-content:center;
	min-width:44px;min-height:44px;padding:0 14px;border-radius:999px;
	border:1px solid var(--jt-line);background:var(--jt-white);color:var(--jt-ink);
	font-weight:600;text-decoration:none;transition:background-color .18s ease,color .18s ease,border-color .18s ease
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li a:hover,
.woocommerce nav.woocommerce-pagination ul.page-numbers li a:focus-visible{
	background:var(--jt-gray);border-color:var(--jt-line);color:var(--jt-red)
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li span.current,
.woocommerce nav.woocommerce-pagination ul.page-numbers li a.current{
	background:var(--jt-red);border-color:var(--jt-red);color:#fff
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li span.dots{
	border-color:transparent;background:none;color:var(--jt-muted);min-width:24px;padding:0
}

/* ---- breadcrumb ---- */
.woocommerce .woocommerce-breadcrumb{color:var(--jt-muted);font-size:14.4px;margin:0}
.woocommerce .woocommerce-breadcrumb a{color:var(--jt-muted);text-decoration:none}
.woocommerce .woocommerce-breadcrumb a:hover{color:var(--jt-red);text-decoration:underline}

/* ---- the shelf search widget ----
 * The submit button was unstyled, so it inherited the browser/theme default (#CC3366).
 */
.widget_product_search .woocommerce-product-search{display:flex;gap:8px;align-items:center}
.widget_product_search .search-field{
	flex:1;min-width:0;min-height:44px;padding:11px 18px;border-radius:999px;
	border:1px solid var(--jt-line);background:var(--jt-white);color:var(--jt-ink);font:inherit
}
.widget_product_search .search-field::placeholder{color:var(--jt-muted);opacity:1}
.widget_product_search button[type=submit]{
	flex:0 0 auto;min-width:44px;min-height:44px;padding:0 18px;border:0;border-radius:999px;
	background:var(--jt-red);color:#fff;font:inherit;font-weight:600;cursor:pointer
}
.widget_product_search button[type=submit]:hover{background:var(--e-global-color-jt_red_dark,#8f001c)}

/* ---- the quantity stepper: a 40px target either side, in ink rather than the browser's
   default button colour (#cc3366 showed through on the product page) ---- */
.jt-atq__step,.jt-quote__step{
	min-width:40px;min-height:40px;padding:0;display:inline-flex;align-items:center;justify-content:center;
	color:var(--jt-ink)
}
.jt-atq__step:hover,.jt-quote__step:hover{color:var(--jt-red)}
.jt-atq__input,.jt-quote__input{color:var(--jt-ink)}

/* ---- "what happens next": gold numbered chips on the confirmation ---- */
.jt-done__check{
	display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;
	margin:0 0 6px;border-radius:50%;background:var(--jt-gold)
}
.jt-done__check img{width:28px;height:28px;filter:brightness(0) saturate(100%)}
.jt-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:18px;counter-reset:none}
/* Exactly two grid children — the chip and one wrapper — or a bare text node becomes a third
   item and reflows into the 40px column one word per line. */
.jt-steps li{display:grid;grid-template-columns:40px minmax(0,1fr);gap:14px;align-items:start;color:var(--jt-body);font-size:16.3px}
.jt-steps__body{min-width:0;line-height:1.55}
.jt-steps__n{
	display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;
	border-radius:50%;background:var(--jt-gold);color:var(--e-global-color-jt_badge_text,#3a2500);
	font-weight:700;font-size:16px;line-height:1
}
.jt-steps strong{color:var(--jt-ink);display:block}

/* ---- mobile: the facet lists and breadcrumb need a real tap target ---- */
@media (max-width:782px){
	.widget_product_categories li,.widget_layered_nav li,.widget_brand_nav li{padding:0}
	.widget_product_categories li a,.widget_layered_nav li a,.widget_brand_nav li a{
		display:block;padding:12px 0;min-height:44px
	}
	.woocommerce .woocommerce-breadcrumb a{display:inline-block;padding:6px 0;min-height:30px}
}

/* The consent box keeps its 20px face but gets a 44px target, as the audit asked. The box is
   custom-painted in janitech.css, so the target is grown with a pseudo-element rather than by
   resizing or padding the input itself. */
.jt-form--quote .elementor-field-type-acceptance .elementor-field-option{
	position:relative;align-items:center;min-height:44px
}
.jt-form--quote .elementor-field-type-acceptance input[type=checkbox]{position:relative}
.jt-form--quote .elementor-field-type-acceptance input[type=checkbox]::after{
	content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
	width:44px;height:44px
}

/* ---- last QA pass: colour and tap targets on controls WooCommerce ships bare ---- */

/* The mobile filter drawer's open/close buttons set no colour, so the browser default
   (#cc3366) showed through on every shelf at phone width. */
/* !important because hello-elementor's reset paints every button #cc3366 and wins here. */
.jt-facets-toggle,.jt-facets__close{color:var(--jt-ink)!important;min-height:44px}
.jt-facets-toggle:hover{color:var(--jt-red)!important}

/* The gallery's full-screen trigger is a 36px emoji glyph from WooCommerce. */
.woocommerce-product-gallery__trigger{
	display:inline-flex;align-items:center;justify-content:center;
	width:44px!important;height:44px!important;border-radius:50%;background:var(--jt-white);
	box-shadow:0 8px 24px rgba(0,0,0,.08);text-decoration:none
}

/* The stepper buttons sit inside a padded pill, which squeezed them to 38px. */
.jt-atq__step,.jt-quote__step{flex:0 0 40px;color:var(--jt-ink)!important}
.jt-atq__step:hover,.jt-quote__step:hover{color:var(--jt-red)!important}

@media (max-width:782px){
	/* Card actions: a real 44px row, not the 38px the 13px type left. */
	.jt-atq--loop .jt-atq__btn{min-height:44px}
	/* The consent box's label is its target; the row is 44px, so the label should fill it. */
	.jt-form--quote .elementor-field-type-acceptance .elementor-field-option label{
		display:flex;align-items:center;min-height:44px;margin:0
	}
}
