/* ==========================================================
   Electroweld theme styles
   Colours, type and spacing taken from the original site.
   ========================================================== */

:root {
	--ew-red: #DF1D16;
	--ew-red-dark: #B9150F;
	--ew-price: #DC2626;
	--ew-ink: #23272F;
	--ew-black: #09090B;
	--ew-panel: #111111;
	--ew-grey: #F3F4F6;
	--ew-border: #E5E7EB;
	--ew-muted: #6B7280;
	--ew-tint: #FDE9E8;
	--ew-white: #FFFFFF;
	--ew-green: #10B981;
	--ew-head: "Oswald", "Arial Narrow", system-ui, sans-serif;
	--ew-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ew-mono: "JetBrains Mono", ui-monospace, monospace;
	--ew-wide: 1400px;
	--ew-shadow-sm: 0 1px 2px rgba(0,0,0,.05);
	--ew-shadow-md: 0 4px 12px rgba(0,0,0,.12);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ew-white);
	color: var(--ew-ink);
	font-family: var(--ew-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }
a { color: var(--ew-red); text-decoration: none; }
a:hover, a:focus { color: var(--ew-red-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--ew-head);
	text-transform: uppercase;
	color: var(--ew-ink);
	line-height: 1.25;
	margin: 0 0 .6em;
}
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: .02em; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: .02em; }
h3 { font-size: 20px; font-weight: 500; letter-spacing: .02em; }
input, select, textarea, button { font-family: var(--ew-body); font-size: 15px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea {
	border: 1px solid var(--ew-border);
	background: #fff;
	color: var(--ew-ink);
	padding: 10px 12px;
	min-height: 42px;
	width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ew-red); outline-offset: -1px; border-color: var(--ew-red); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: #fff; padding: 10px 14px; }

.ew-container, .site-main, .page-header, .page-content, .site-main > .page-content {
	width: 100%;
	max-width: var(--ew-wide);
	margin-left: auto;
	margin-right: auto;
	padding-left: 32px;
	padding-right: 32px;
}
.site-main { padding-top: 32px; padding-bottom: 64px; }
.site-main .page-content { padding-left: 0; padding-right: 0; }
@media (max-width: 767px) {
	.ew-container, .site-main, .page-header, .page-content { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Buttons ---------- */
.ew-btn,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .wp-element-button, .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--ew-red);
	color: #fff;
	border: 2px solid var(--ew-red);
	font-family: var(--ew-head);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .03em;
	text-transform: uppercase;
	line-height: 1.2;
	padding: 12px 22px;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
}
.ew-btn:hover, .ew-btn:focus,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
	background: var(--ew-red-dark);
	border-color: var(--ew-red-dark);
	color: #fff;
}
.ew-btn--sm { font-size: 12px; padding: 6px 12px; border-width: 1px; }
.ew-btn--ghost { background: transparent; color: var(--ew-red); }
.ew-btn--ghost:hover { background: var(--ew-red); color: #fff; }
.ew-btn--dark { background: var(--ew-ink); border-color: var(--ew-ink); }
.ew-btn--arrow::after {
	content: "";
	width: 34px; height: 100%;
	margin: -12px -22px -12px 14px;
	padding: 12px 0;
	background: var(--ew-black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
	clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
	align-self: stretch;
}

/* ---------- Header: top strip ---------- */
.ew-top { background: #fff; border-bottom: 1px solid var(--ew-border); }
.ew-top__inner {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 0 32px;
}
.ew-top__msg {
	font-family: var(--ew-head);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ew-ink);
}

/* ---------- Header: red band ---------- */
.ew-band {
	position: relative;
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 100px;
	background: var(--ew-red);
	padding: 0 32px 0 322px;
}
.ew-band__logo {
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 290px;
	background: var(--ew-panel);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
	padding-right: 24px;
}
.ew-band__logo .custom-logo { max-height: 56px; width: auto; }
.ew-band__phone { font-size: 11px; padding: 4px 10px; }
.ew-band__phone .ew-ico { width: 13px; height: 13px; }
.ew-wordmark { display: flex; flex-direction: column; color: #fff; line-height: 1; }
.ew-wordmark:hover { color: #fff; }
.ew-wordmark__name { font-family: var(--ew-head); font-weight: 700; font-size: 28px; letter-spacing: .08em; }
.ew-wordmark__sub { font-family: var(--ew-head); font-weight: 500; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; margin-top: 6px; color: rgba(255,255,255,.85); }

.ew-search { flex: 1; display: flex; max-width: 900px; }
.ew-search input[type=search] { height: 44px; border: 0; padding-right: 12px; font-size: 15px; }
.ew-search button {
	width: 52px; height: 44px; border: 0;
	background: #fff; color: var(--ew-ink); cursor: pointer;
	display: grid; place-items: center;
	border-left: 1px solid var(--ew-border);
}
.ew-search button:hover { color: var(--ew-red); }

.ew-band__actions { display: flex; align-items: center; gap: 22px; }
.ew-band__link {
	display: flex; align-items: center; gap: 8px;
	color: #fff;
	font-family: var(--ew-head); font-weight: 600; font-size: 16px;
	letter-spacing: .03em; text-transform: uppercase;
	position: relative;
}
.ew-band__link:hover { color: #fff; opacity: .85; }
.ew-band__link .ew-ico { width: 26px; height: 26px; }
.ew-cart-count {
	position: absolute; left: 16px; top: -8px;
	min-width: 18px; height: 18px; padding: 0 4px;
	background: #fff; color: var(--ew-red);
	font: 700 11px/18px var(--ew-body);
	text-align: center;
}
.ew-cart-count[data-count="0"] { display: none; }
.ew-band__menu { display: none; background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
.ew-band__menu .ew-ico { width: 28px; height: 28px; }

/* ---------- Header: category bar + mega menu ---------- */
.ew-cats { background: var(--ew-red); border-top: 1px solid rgba(255,255,255,.15); position: relative; z-index: 50; }
.ew-cats__inner { position: relative; padding: 0 32px; }
.ew-cats__close { display: none; }
.ew-cats__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.ew-cats__item--more { margin-left: auto; }
.ew-cats__item--more > .ew-cats__link::after { content: "\25BE"; margin-left: 6px; font-size: 11px; }
.ew-cats__item { position: static; }
.ew-cats__link {
	display: block;
	padding: 10px 11px;
	color: #fff;
	font-family: var(--ew-head); font-weight: 600; font-size: 14.5px;
	letter-spacing: .02em; text-transform: uppercase;
	position: relative;
}
.ew-cats__item + .ew-cats__item > .ew-cats__link::before {
	content: ""; position: absolute; left: 0; top: 12px; bottom: 12px;
	width: 1px; background: rgba(255,255,255,.35);
}
.ew-cats__link:hover, .ew-cats__item:hover > .ew-cats__link, .ew-cats__item.is-current > .ew-cats__link {
	color: #fff; background: rgba(0,0,0,.18);
}
.ew-mega {
	display: none;
	position: absolute; left: 0; right: 0; top: 100%;
	background: #fff;
	border-top: 3px solid var(--ew-red);
	box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.ew-cats__item.has-mega:hover > .ew-mega,
.ew-cats__item.has-mega:focus-within > .ew-mega { display: block; }
.ew-mega__inner { max-width: var(--ew-wide); margin: 0 auto; padding: 24px 32px 28px; }
.ew-mega__cols {
	list-style: none; margin: 0 0 20px; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 0;
	border-left: 1px solid var(--ew-border);
}
.ew-mega__col { border-right: 1px solid var(--ew-border); padding: 0 0 12px; }
.ew-mega__head {
	display: block;
	background: var(--ew-black); color: #fff;
	font-family: var(--ew-head); font-weight: 600; font-size: 13px;
	letter-spacing: .04em; text-transform: uppercase;
	padding: 9px 12px; margin-bottom: 8px;
}
.ew-mega__head:hover { background: var(--ew-red); color: #fff; }
.ew-mega__links { list-style: none; margin: 0; padding: 0 12px; }
.ew-mega__links a { display: block; padding: 3px 0; color: var(--ew-ink); font-size: 14px; }
.ew-mega__links a:hover { color: var(--ew-red); }
.ew-mega__all { font-size: 13px; }

/* ---------- Header: tablet and mobile ---------- */
@media (max-width: 1100px) {
	.ew-band { padding-left: 262px; }
	.ew-band__logo { width: 240px; }
	.ew-band__link span:not(.ew-cart-count) { display: none; }
}
@media (max-width: 900px) {
	.ew-top__msg { display: none; }
	.ew-top__inner { padding: 0 16px; }
	.ew-band { flex-wrap: wrap; padding: 12px 16px; min-height: 0; gap: 12px; }
	.ew-band__logo { position: static; width: auto; clip-path: none; background: transparent; padding: 0; flex-direction: row; gap: 12px; margin-right: auto; }
	.ew-wordmark__name { font-size: 22px; }
	.ew-band__phone { display: none; }
	.ew-search { order: 3; flex-basis: 100%; max-width: none; }
	.ew-band__menu { display: block; }
	.ew-cats {
		position: fixed; inset: 0 25% 0 0; min-width: 280px;
		background: #fff; overflow-y: auto;
		transform: translateX(-105%); transition: transform .25s;
		box-shadow: 0 0 40px rgba(0,0,0,.35); z-index: 1000;
	}
	body.ew-menu-open .ew-cats { transform: none; }
	body.ew-menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 999; }
	.ew-cats__inner { padding: 56px 0 24px; }
	.ew-cats__close { display: block; position: absolute; right: 10px; top: 10px; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ew-ink); }
	.ew-cats__list { display: block; }
	.ew-cats__link { color: var(--ew-ink); border-bottom: 1px solid var(--ew-border); padding: 13px 18px; font-size: 16px; }
	.ew-cats__item + .ew-cats__item > .ew-cats__link::before { display: none; }
	.ew-cats__link:hover, .ew-cats__item:hover > .ew-cats__link { background: var(--ew-grey); color: var(--ew-red); }
	.ew-cats__item.has-mega > .ew-cats__link { padding-right: 48px; }
	.ew-cats__item.has-mega > .ew-cats__link::after {
		content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
		font-size: 20px; color: var(--ew-red);
	}
	.ew-cats__item.has-mega.is-open > .ew-cats__link::after { content: "–"; }
	.ew-cats__item.has-mega:hover > .ew-mega { display: none; }
	.ew-cats__item.has-mega.is-open > .ew-mega { display: block; position: static; box-shadow: none; border-top: 0; }
	.ew-mega__inner { padding: 8px 18px 16px; }
	.ew-mega__cols { grid-template-columns: 1fr; border-left: 0; }
	.ew-mega__col { border-right: 0; }
}

/* ---------- Page titles and breadcrumbs ---------- */
.woocommerce-breadcrumb, .ew-breadcrumb {
	font-size: 13px; color: var(--ew-muted);
	margin: 0 0 14px !important;
}
.woocommerce-breadcrumb a { color: var(--ew-muted); }
.woocommerce-breadcrumb a:hover { color: var(--ew-red); }
.woocommerce-products-header__title, .page-title, .entry-title, .product_title {
	font-family: var(--ew-head); font-weight: 600;
	text-transform: uppercase; letter-spacing: .02em;
}
.ew-shop { padding-top: 28px; padding-bottom: 64px; }

/* ---------- Shop layout ---------- */
.ew-shop__layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.ew-shop__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.ew-shop__bar .woocommerce-result-count { margin: 0; font-size: 14px; color: var(--ew-muted); float: none; }
.ew-shop__bar .woocommerce-ordering { margin: 0; float: none; }
.ew-shop__bar .woocommerce-ordering select { width: auto; min-width: 210px; }
@media (max-width: 900px) {
	.ew-shop__layout { grid-template-columns: 1fr; }
	.ew-shop__side { order: 2; }
}

.ew-filters__head {
	font-size: 14px; letter-spacing: .06em; margin: 0 0 12px;
	padding-bottom: 10px; border-bottom: 2px solid var(--ew-ink);
}
.ew-filter { border-bottom: 1px solid var(--ew-border); padding: 14px 0; }
.ew-filter__title { font-size: 13px; font-weight: 600; letter-spacing: .05em; margin: 0 0 10px; }
.ew-filter__list { list-style: none; margin: 0; padding: 0; }
.ew-filter__list a { display: flex; justify-content: space-between; color: var(--ew-ink); font-size: 14px; padding: 3px 0; }
.ew-filter__list a span { color: var(--ew-muted); }
.ew-filter__list a:hover { color: var(--ew-red); }
.ew-filter__link { font-size: 14px; }
.ew-price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ew-price label { display: flex; align-items: center; flex: 1 1 70px; border: 1px solid var(--ew-border); }
.ew-price label span { padding: 0 6px; color: var(--ew-muted); }
.ew-price input[type=number] { border: 0; min-height: 36px; padding: 6px; }
.ew-price em { color: var(--ew-muted); font-style: normal; }
.ew-price .ew-btn { flex-basis: 100%; padding: 8px; font-size: 13px; }

/* ---------- Product grid ---------- */
.woocommerce ul.products, .woocommerce-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 32px !important;
	padding: 0;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
	width: auto !important; float: none !important; margin: 0 !important;
	display: flex; flex-direction: column;
	background: #fff;
	border: 1px solid var(--ew-border);
	box-shadow: var(--ew-shadow-sm);
	transition: box-shadow .2s;
	padding: 0 0 16px !important;
	position: relative;
}
.woocommerce ul.products li.product:hover { box-shadow: var(--ew-shadow-md); }
.woocommerce ul.products li.product a img {
	margin: 0 0 14px !important;
	aspect-ratio: 1 / 1; object-fit: contain;
	background: var(--ew-grey);
	padding: 12px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--ew-body); text-transform: none; letter-spacing: 0;
	font-size: 14.5px !important; font-weight: 600; line-height: 1.35;
	color: var(--ew-ink);
	padding: 0 14px !important; margin: 0 0 6px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.woocommerce ul.products li.product .ew-sku {
	display: block; padding: 0 14px; margin-bottom: 10px;
	font-family: var(--ew-mono); font-size: 11px; color: var(--ew-muted);
}
.woocommerce ul.products li.product .price {
	padding: 0 14px; margin: auto 0 12px !important;
	color: var(--ew-price) !important;
	font-family: var(--ew-head); font-size: 20px !important; font-weight: 600;
}
.woocommerce ul.products li.product .price del { color: var(--ew-muted); font-size: 14px; opacity: 1; margin-right: 6px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce .woocommerce-price-suffix { font-family: var(--ew-body); font-size: 11px; font-weight: 500; color: var(--ew-muted); text-transform: uppercase; margin-left: 4px; }
.woocommerce ul.products li.product .button {
	margin: 0 14px !important;
	width: calc(100% - 28px);
	font-size: 13px; padding: 10px 12px;
}
.woocommerce ul.products li.product .added_to_cart { display: block; text-align: center; font-size: 13px; padding: 6px 14px 0; }
.woocommerce span.onsale, .woocommerce ul.products li.product .onsale {
	min-height: 0; min-width: 0; line-height: 1;
	top: 10px !important; left: 10px !important; right: auto !important; margin: 0 !important;
	padding: 5px 8px;
	background: var(--ew-red); color: #fff;
	font-family: var(--ew-head); font-weight: 600; font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
}
@media (max-width: 1100px) { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* Pagination */
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 6px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
	min-width: 38px; padding: 9px 10px; border: 1px solid var(--ew-border); color: var(--ew-ink); font-weight: 600;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ew-red); border-color: var(--ew-red); color: #fff; }

/* ---------- Single product ---------- */
.woocommerce div.product { margin-top: 8px; }
.woocommerce div.product .product_title { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.woocommerce div.product div.images { margin-bottom: 32px; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { background: var(--ew-grey); border: 1px solid var(--ew-border); }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto !important; margin: 0 !important; border: 1px solid var(--ew-border); background: var(--ew-grey); }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active { outline: 2px solid var(--ew-red); }
.woocommerce div.product p.price, .woocommerce div.product span.price {
	color: var(--ew-price) !important;
	font-family: var(--ew-head); font-weight: 600; font-size: 36px !important;
	margin: 14px 0 18px;
}
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--ew-muted); }
.woocommerce div.product .stock { display: inline-block; padding: 4px 10px; font-size: 13px; font-weight: 600; background: #ECFDF5; color: #047857 !important; }
.woocommerce div.product .stock.out-of-stock { background: var(--ew-tint); color: var(--ew-red) !important; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 18px 0 22px; }
.woocommerce div.product form.cart div.quantity { margin: 0 !important; }
.woocommerce .quantity .qty { width: 72px; min-height: 52px; text-align: center; font-weight: 600; }
.woocommerce div.product form.cart .button { flex: 1; min-height: 52px; font-size: 17px; }
.woocommerce div.product form.cart .variations { margin-bottom: 8px; }
.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th { padding: 4px 0; }
.product_meta { font-size: 13px; color: var(--ew-muted); border-top: 1px solid var(--ew-border); padding-top: 14px; }
.product_meta > span { display: block; margin-bottom: 4px; }
.product_meta .sku { font-family: var(--ew-mono); }

/* Tabs */
.woocommerce div.product .woocommerce-tabs { clear: both; padding-top: 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 22px; border-bottom: 2px solid var(--ew-ink); display: flex; flex-wrap: wrap; gap: 4px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--ew-grey); border: 0; margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-family: var(--ew-head); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--ew-ink); padding: 11px 20px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--ew-ink); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
.woocommerce div.product .woocommerce-tabs .panel h2:first-child { font-size: 22px; }
.woocommerce table.shop_attributes { border: 1px solid var(--ew-border); }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { padding: 10px 14px; border-bottom: 1px solid var(--ew-border); font-style: normal; }
.woocommerce table.shop_attributes th { background: var(--ew-tint); width: 220px; font-weight: 600; }
.related.products > h2, .upsells.products > h2 { font-size: 22px; padding-bottom: 10px; border-bottom: 2px solid var(--ew-red); margin-bottom: 18px; }

/* ---------- Notices, cart, checkout, account ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-store-notice {
	border-top-color: var(--ew-red) !important;
	background: var(--ew-grey);
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--ew-red) !important; }
.woocommerce table.shop_table { border: 1px solid var(--ew-border); border-collapse: collapse; }
.woocommerce table.shop_table th { font-family: var(--ew-head); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; background: var(--ew-grey); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-top: 1px solid var(--ew-border); padding: 12px 14px; }
.woocommerce-cart .cart-collaterals .cart_totals h2, .woocommerce-checkout h3 { font-size: 20px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ew-border); }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 11px 14px; color: var(--ew-ink); border-bottom: 1px solid var(--ew-border); font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--ew-ink); color: #fff; }

/* ---------- Footer ---------- */
.ew-footer { background: var(--ew-black); color: #fff; margin-top: 0; }
.ew-footer__main { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
.ew-footer__label { font-family: var(--ew-head); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ew-red); margin: 0 0 22px; }
.ew-contact { list-style: none; margin: 0; padding: 0 0 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ew-contact li, .ew-hours { display: flex; gap: 14px; margin-bottom: 20px; font-size: 15px; line-height: 1.6; }
.ew-contact strong, .ew-hours strong { display: block; font-family: var(--ew-head); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 2px; }
.ew-contact a { color: #fff; }
.ew-contact a:hover { color: var(--ew-red); }
.ew-contact .ew-btn { margin-top: 8px; color: #fff; }
.ew-contact__sub { color: var(--ew-red) !important; font-size: 13px; }
.ew-contact__ico { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(223,29,22,.45); background: rgba(223,29,22,.1); color: var(--ew-red); }
.ew-contact__ico .ew-ico { width: 18px; height: 18px; }
.ew-hours { margin-top: 22px; }
.ew-hours table { border-collapse: collapse; margin: 4px 0 0; }
.ew-hours th, .ew-hours td { border: 0; padding: 3px 24px 3px 0; text-align: left; font-weight: 400; font-size: 14px; background: transparent; }
.ew-hours th { color: rgba(255,255,255,.55); width: 46px; }
.ew-hours table tr > td, .ew-hours table tr > th { background: transparent !important; }
.ew-hours tr.is-closed td { font-style: italic; color: rgba(255,255,255,.4); }
.ew-footer__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.2); }
.ew-footer__base { background: var(--ew-ink); border-top: 1px solid rgba(255,255,255,.1); }
.ew-footer__base-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.ew-footer__brand strong { display: block; font-family: var(--ew-head); font-size: 20px; letter-spacing: .06em; }
.ew-footer__brand span { font-size: 13px; color: rgba(255,255,255,.55); }
.ew-footer__links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px; }
.ew-footer__links a { color: #fff; font-family: var(--ew-head); font-weight: 500; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.ew-footer__links a:hover { color: var(--ew-red); }
.ew-footer__copy { margin: 0; font-size: 13px; color: rgba(255,255,255,.55); }
@media (max-width: 900px) {
	.ew-footer__main { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; padding-bottom: 44px; }
	.ew-footer__map iframe { min-height: 260px; }
}

/* ---------- Coming-soon store notice from WooCommerce ---------- */
.woocommerce-coming-soon-banner { font-family: var(--ew-body); }

/* ---------- Homepage ---------- */
.ew-btn--outline { background: transparent; border-color: #fff; color: #fff; }
.ew-btn--outline:hover, .ew-btn--outline:focus { background: #fff; border-color: #fff; color: var(--ew-ink); }
.ew-btn .ew-ico { width: 16px; height: 16px; }

.ew-hero { position: relative; background: var(--ew-black); overflow: hidden; }
.ew-hero__track { display: grid; }
.ew-hero__slide {
	grid-area: 1 / 1;
	min-height: 520px;
	display: flex; align-items: center; justify-content: center;
	padding: 48px 72px;
	background:
		radial-gradient(circle at 20% 30%, rgba(223,29,22,.22), transparent 45%),
		repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px),
		linear-gradient(160deg, #2a2e36, #0b0b0d 70%);
	background-size: cover; background-position: center;
	opacity: 0; visibility: hidden;
	transition: opacity .6s, visibility .6s;
}
.ew-hero__slide.is-active { opacity: 1; visibility: visible; }
.ew-hero__box {
	max-width: 640px; width: 100%;
	background: rgba(9,9,11,.72);
	padding: 44px 48px 52px;
	text-align: center; color: #fff;
}
.ew-hero__kicker { font-family: var(--ew-head); font-weight: 600; font-size: 20px; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 8px; color: #fff; }
.ew-hero__title { color: #fff; font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; letter-spacing: .03em; margin: 0 0 14px; }
.ew-hero__text { color: rgba(255,255,255,.85); margin: 0 0 26px; }
.ew-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ew-hero__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 44px; height: 44px; display: grid; place-items: center;
	background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.35); color: #fff; cursor: pointer;
}
.ew-hero__nav:hover { background: var(--ew-red); border-color: var(--ew-red); }
.ew-hero__nav--prev { left: 24px; } .ew-hero__nav--prev .ew-ico { transform: rotate(90deg); }
.ew-hero__nav--next { right: 24px; } .ew-hero__nav--next .ew-ico { transform: rotate(-90deg); }
.ew-hero__dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; gap: 8px; justify-content: center; }
.ew-hero__dots button { width: 10px; height: 10px; padding: 0; border: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.ew-hero__dots button.is-active { background: var(--ew-red); width: 26px; }

.ew-section { padding-top: 64px; padding-bottom: 64px; }
.ew-section--dots { background-color: #fff; background-image: radial-gradient(rgba(0,0,0,.09) 1px, transparent 1px); background-size: 18px 18px; }
.ew-section__title { font-size: clamp(24px, 3vw, 30px); padding-bottom: 14px; border-bottom: 2px solid var(--ew-red); margin-bottom: 28px; }
.ew-section__foot { display: flex; justify-content: center; margin-top: 28px; }

.ew-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ew-tile a { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--ew-border); transition: box-shadow .2s, border-color .2s; }
.ew-tile a:hover { box-shadow: var(--ew-shadow-md); border-color: var(--ew-red); }
.ew-tile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 14px; background: #fff; transition: transform .35s; }
.ew-tile a:hover img { transform: scale(1.05); }
.ew-tile__name {
	display: block; margin-top: auto; padding: 10px 14px;
	background: var(--ew-ink); border-left: 4px solid var(--ew-red);
	color: #fff; font-family: var(--ew-head); font-weight: 600; font-size: 15px; letter-spacing: .03em; text-transform: uppercase;
}
.ew-tile a:hover .ew-tile__name { background: var(--ew-red); }
.ew-tile--plain a { min-height: 180px; background: linear-gradient(150deg, #2a2e36, var(--ew-black)); }

.ew-row + .ew-row { border-top: 2px solid var(--ew-ink); margin-top: 40px; padding-top: 32px; }
.ew-row__title { font-size: 17px; letter-spacing: .04em; margin-bottom: 18px; }
.ew-row .woocommerce { margin: 0; }

.woocommerce ul.products li.product .ew-card__actions { display: flex; gap: 8px; margin: 0 14px; }
.woocommerce ul.products li.product .ew-card__actions .button,
.woocommerce ul.products li.product .ew-card__actions .ew-card__view {
	flex: 1 1 0; width: auto; margin: 0 !important; padding: 9px 6px; font-size: 12px;
}
.ew-card__view { background: #fff; }

.ew-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ew-post { border: 1px solid var(--ew-border); background: #fff; display: flex; flex-direction: column; }
.ew-post__img { display: block; aspect-ratio: 16 / 9; background: var(--ew-grey); overflow: hidden; }
.ew-post__img img { width: 100%; height: 100%; object-fit: cover; }
.ew-post__body { padding: 18px 20px 22px; }
.ew-post__date { font-size: 12px; color: var(--ew-muted); margin: 0 0 6px; }
.ew-post__title { font-size: 17px; margin-bottom: 8px; }
.ew-post__title a { color: var(--ew-ink); }
.ew-post__title a:hover { color: var(--ew-red); }
.ew-post__excerpt { font-size: 14px; color: var(--ew-muted); margin: 0 0 10px; }
.ew-post__more { font-size: 14px; font-weight: 600; }

.ew-cta { background: var(--ew-grey); text-align: center; padding: 56px 0; }
.ew-cta h2 { font-size: clamp(24px, 3vw, 30px); }
.ew-cta p { max-width: 560px; margin: 0 auto 22px; color: var(--ew-muted); }

.ew-news {
	background-color: var(--ew-ink); color: #fff; text-align: center; padding: 64px 0;
	background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 18px 18px;
}
.ew-news h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); max-width: 520px; margin-left: auto; margin-right: auto; }
.ew-news p { color: rgba(255,255,255,.75); margin: 0 0 22px; }
.ew-news .ew-news__msg { color: #fff; font-weight: 600; }
.ew-news__form { display: flex; max-width: 520px; margin: 0 auto; }
.ew-news__form input[type=email] { border: 0; min-height: 46px; }
.ew-news__form .ew-btn { white-space: nowrap; }

@media (max-width: 1100px) {
	.ew-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.ew-hero__slide { min-height: 420px; padding: 32px 16px 56px; }
	.ew-hero__box { padding: 28px 20px 32px; }
	.ew-hero__nav { display: none; }
	.ew-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ew-posts { grid-template-columns: 1fr; }
	.ew-section { padding-top: 44px; padding-bottom: 44px; }
}
@media (max-width: 600px) {
	.ew-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.ew-tile__name { font-size: 13px; padding: 8px 10px; }
	.ew-news__form { flex-direction: column; gap: 8px; }
	.woocommerce ul.products li.product .ew-card__actions { flex-direction: column; }
}

/* ---------- Product extras ---------- */
.ew-stock-note { margin: -8px 0 14px; padding: 8px 12px; background: #FFF7E6; border-left: 3px solid #F59E0B; font-size: 14px; color: var(--ew-ink); }
.ew-downloads { list-style: none; margin: 0; padding: 0; }
.ew-downloads li { padding: 8px 0; border-bottom: 1px solid var(--ew-border); }
.ew-downloads a { font-weight: 600; }

/* ---------- Products in Action ---------- */
.ew-pia__wrap { position: relative; }
.ew-pia__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 20px) / 2); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ew-pia__track::-webkit-scrollbar { display: none; }
.ew-pia__item { scroll-snap-align: start; border: 1px solid var(--ew-border); background: #fff; display: flex; flex-direction: column; }
.ew-pia__media { position: relative; aspect-ratio: 5 / 3; background: var(--ew-black); overflow: hidden; }
.ew-pia__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ew-pia__ctl { position: absolute; bottom: 14px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; }
.ew-pia__ctl:hover { background: var(--ew-red); }
.ew-pia__ctl .ew-ico { width: 18px; height: 18px; }
.ew-pia__play { left: 14px; }
.ew-pia__mute { right: 14px; }
.ew-pia__card { display: grid; grid-template-columns: 176px 1fr; flex: 1; }
.ew-pia__thumb { display: grid; place-items: center; background: var(--ew-grey); border-right: 1px solid var(--ew-border); padding: 10px; }
.ew-pia__thumb img { max-height: 150px; width: auto; object-fit: contain; }
.ew-pia__info { padding: 18px 18px 20px; display: flex; flex-direction: column; }
.ew-pia__name { font-family: var(--ew-body); text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 600; line-height: 1.4; margin: 0 0 10px; }
.ew-pia__name a { color: var(--ew-ink); }
.ew-pia__name a:hover { color: var(--ew-red); }
.ew-pia__price { color: var(--ew-price); font-family: var(--ew-head); font-weight: 600; font-size: 22px; margin-bottom: 14px; }
.ew-pia__price del { color: var(--ew-muted); font-size: 15px; margin-right: 6px; }
.ew-pia__price ins { text-decoration: none; }
.ew-pia__btn { margin-top: auto; width: 100%; padding: 11px 16px; font-size: 14px; }
.ew-pia__nav { position: absolute; top: calc((100% - 0px) * 0.3); z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: var(--ew-ink); color: #fff; cursor: pointer; }
.ew-pia__nav:hover { background: var(--ew-red); }
.ew-pia__nav--prev { left: -24px; } .ew-pia__nav--prev .ew-ico { transform: rotate(90deg); }
.ew-pia__nav--next { right: -24px; } .ew-pia__nav--next .ew-ico { transform: rotate(-90deg); }
.ew-pia__dots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.ew-pia__dots button { width: 10px; height: 10px; padding: 0; border: 0; background: var(--ew-border); cursor: pointer; border-radius: 50% !important; }
.ew-pia__dots button.is-active { background: var(--ew-red); }
.ew-pia.is-single .ew-pia__nav { display: none; }
@media (max-width: 900px) {
	.ew-pia__track { grid-auto-columns: 100%; }
	.ew-pia__nav--prev { left: 6px; } .ew-pia__nav--next { right: 6px; }
	.ew-pia__card { grid-template-columns: 120px 1fr; }
}

/* ---------- Product cards (shop grids and homepage rows) ---------- */
.woocommerce ul.products li.product { box-shadow: none; padding-bottom: 20px !important; }
.woocommerce ul.products li.product:hover { box-shadow: var(--ew-shadow-md); }
.woocommerce ul.products li.product a img { margin: 0 0 18px !important; border-bottom: 1px solid var(--ew-border); padding: 16px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 16px !important; padding: 0 20px !important; }
.woocommerce ul.products li.product .ew-sku { padding: 0 20px; font-size: 12px; }
.woocommerce ul.products li.product .price { padding: 0 20px; color: var(--ew-ink) !important; font-size: 28px !important; font-weight: 700; margin: auto 0 18px !important; }
.woocommerce ul.products li.product .price ins { color: var(--ew-price); }
.woocommerce ul.products li.product .ew-card__actions { margin: 0 20px; gap: 10px; }
.woocommerce ul.products li.product .ew-card__actions .ew-card__view { background: #fff; color: var(--ew-red); border: 1px solid var(--ew-red); font-weight: 500; }
.woocommerce ul.products li.product .ew-card__actions .ew-card__view:hover { background: var(--ew-red); color: #fff; }
.woocommerce ul.products li.product .ew-card__actions .button { font-weight: 600; }
.woocommerce ul.products li.product .ew-card__actions .add_to_cart_button::before {
	content: ""; width: 15px; height: 15px; flex: 0 0 15px; background: currentColor;
	-webkit-mask: 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='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: 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='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.woocommerce .woocommerce-price-suffix { font-size: 12px; }


/* ---------- Header: matched to the original electroweld.com.au measurements (v1.3) ---------- */
.ew-top { border-bottom: 0; }
.ew-top__inner { padding: 0 32px; }
.ew-top .ew-btn--sm { font-family: var(--ew-head); font-weight: 600; font-size: 12px; letter-spacing: .05em; padding: 6px 12px; line-height: 18px; }
.ew-top__msg { font-family: var(--ew-body); font-weight: 700; font-size: 12px; letter-spacing: .1em; }
.ew-top__right { display: flex; align-items: center; gap: 8px; }
.ew-top__user { font-family: var(--ew-head); font-weight: 600; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; color: var(--ew-ink); }
.ew-band { padding: 0 32px 0 322px; justify-content: flex-end; }
.ew-band__logo { clip-path: polygon(0 0, 100% 0, calc(100% - 38px) 100%, 0 100%); padding: 0 38px 0 0; gap: 4px; }
.ew-band__logo .custom-logo-link { display: block; width: 252px; height: 59px; }
.ew-band__logo .custom-logo { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.ew-band__phone { font-family: var(--ew-body); font-weight: 700; font-size: 9px; letter-spacing: .025em; padding: 4px 12px; line-height: 14px; }
.ew-band__phone .ew-ico { width: 10px; height: 10px; }
.ew-search { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40%; max-width: none; }
.ew-search input[type=search] { height: 42px; font-size: 14px; padding: 0 12px; }
.ew-search button { height: 42px; width: 48px; border-left: 0; }
.ew-band__actions { gap: 20px; }
.ew-band__account span { display: inline; }
.ew-band__cart .ew-ico { width: 30px; height: 30px; }
.ew-cart-count { left: 18px; top: -7px; background: #000; color: #fff; min-width: 16px; height: 16px; font: 700 10px/16px var(--ew-body); }
.ew-cats { border-top: 0; }
.ew-cats__inner { padding: 0 24px; }
@media (min-width: 901px) {
	.ew-cats__list { flex-wrap: nowrap; }
	.ew-cats__link { padding: 0 clamp(6px, .47vw, 12px); line-height: 40px; font-size: clamp(11px, .66vw, 16.8px); letter-spacing: 0; white-space: nowrap; }
	.ew-cats__item + .ew-cats__item > .ew-cats__link::before { top: 14px; bottom: 14px; }
	.ew-cats__item:last-child > .ew-cats__link::after { content: ""; position: absolute; right: 0; top: 14px; bottom: 14px; width: 1px; background: rgba(255,255,255,.35); }
}
@media (max-width: 1100px) {
	.ew-band { padding-left: 262px; }
	.ew-band__logo .custom-logo-link { width: 200px; }
	.ew-search { position: relative; left: auto; top: auto; transform: none; width: auto; flex: 1; }
}
@media (max-width: 900px) {
	.ew-band { justify-content: space-between; }
	.ew-band__logo .custom-logo-link { width: 180px; height: 44px; }
	.ew-search { order: 3; flex-basis: 100%; }
}

/* Mega menu: original layout (narrow columns, featured product on the right) */
@media (min-width: 901px) {
	.ew-mega { border-top: 0; min-height: 340px; }
	.ew-mega > .ew-mega__inner { max-width: none; margin: 0; padding: 0 0 12px; margin-right: 250px; min-height: 100%; }
	.ew-mega__cols { grid-template-columns: repeat(auto-fill, 140px); border-left: 0; margin: 0 0 14px; }
	.ew-mega__col { border-right: 1px solid var(--ew-border); padding-bottom: 10px; }
	.ew-mega__head { text-align: center; font-size: 11.5px; padding: 8px 6px; margin-bottom: 8px; min-height: 48px; display: flex; align-items: center; justify-content: center; }
	.ew-mega__links { padding: 0 10px; }
	.ew-mega__links a { font-size: 12.5px; padding: 3px 0; line-height: 1.35; }
	.ew-mega__all { margin-left: 18px; }
	.ew-mega__feat { position: absolute; right: 0; top: 0; bottom: 0; width: 250px; background: #fff; border-left: 1px solid var(--ew-border); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
	.ew-mega__badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; background: var(--ew-red); color: #fff; font: 600 11px/1 var(--ew-head); letter-spacing: .05em; text-transform: uppercase; padding: 5px 8px; }
	.ew-mega__badge .ew-ico { width: 11px; height: 11px; }
	.ew-mega__feat-img img { display: block; width: 100%; height: 170px; object-fit: contain; }
	.ew-mega__feat-name { color: var(--ew-ink); font: 600 13.5px/1.3 var(--ew-body); }
	.ew-mega__feat-price { font: 600 17px/1 var(--ew-head); color: var(--ew-ink); }
	.ew-mega__feat-btn { margin-top: auto; justify-content: center; text-align: center; }
}
@media (max-width: 900px) { .ew-mega__feat { display: none; } }

/* Footer map placeholder (loads Google Maps on click) */
.ew-map-facade { width: 100%; height: 100%; min-height: 380px; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; font-family: var(--ew-body);
	background: #1b1e24 repeating-linear-gradient(0deg, transparent 0 38px, rgba(255,255,255,.05) 38px 39px), #1b1e24 repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.05) 38px 39px); background-blend-mode: normal; }
.ew-map-facade__pin .ew-ico { width: 40px; height: 40px; color: var(--ew-red); }
.ew-map-facade__addr { font-weight: 600; font-size: 15px; }
.ew-map-facade:hover .ew-btn { background: var(--ew-red-dark); border-color: var(--ew-red-dark); }
@media (max-width: 900px) { .ew-map-facade { min-height: 260px; } }

/* ---------- Buttons: one style everywhere, matched to the original site (v1.5) ---------- */
/* Square corners, Oswald 600 uppercase, Electroweld red. Also covers WordPress/WooCommerce
   buttons that the parent theme would otherwise show with rounded pink borders. */
button, [type="button"], [type="submit"], [type="reset"], .button, .wp-element-button,
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button, .woocommerce-Button, .woocommerce-button {
	border-radius: 0 !important;
}
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button, .woocommerce-Button, .woocommerce-button,
.woocommerce-form-login__submit, .woocommerce-form-register__submit, .woocommerce-account .button,
form.ew-form button[type=submit], .ew-trade-form button[type=submit], .woocommerce-MyAccount-content button[type=submit] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--ew-red) !important; color: #fff !important;
	border: 2px solid var(--ew-red) !important;
	font-family: var(--ew-head) !important; font-weight: 600 !important; font-size: 16px !important;
	letter-spacing: .06em !important; text-transform: uppercase !important;
	padding: 14px 24px !important; min-height: 50px; box-shadow: none !important; cursor: pointer;
}
.wc-block-components-button:not(.is-link):hover, .wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover, .woocommerce-Button:hover, .woocommerce-button:hover,
.woocommerce-form-login__submit:hover, .woocommerce-account .button:hover {
	background: var(--ew-red-dark) !important; border-color: var(--ew-red-dark) !important; color: #fff !important;
}
.wc-block-components-button:not(.is-link) .wc-block-components-button__text { font: inherit; }
.ew-btn--outline { background: transparent; color: #fff; border: 2px solid #fff; }
.ew-btn--outline:hover { background: #fff; color: var(--ew-ink); border-color: #fff; }
/* Hero buttons */
.ew-hero .ew-btn { font-size: 17px; padding: 16px 40px; letter-spacing: .025em; }
/* Product page: full-width Add to cart, square -/+ quantity buttons */
.woocommerce div.product form.cart { flex-wrap: wrap; row-gap: 12px; }
.woocommerce div.product form.cart .single_add_to_cart_button { flex: 1 1 100%; min-height: 56px; font-size: 16px; letter-spacing: .06em; padding: 16px 24px; }
.woocommerce div.product form.cart .single_add_to_cart_button::before {
	content: ""; width: 18px; height: 18px; background: currentColor;
	-webkit-mask: 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='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: 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='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ew-qty { display: inline-flex; align-items: center; gap: 0; }
.ew-qty__btn { width: 42px; height: 42px; padding: 0 !important; border: 0 !important; background: var(--ew-black); color: #fff; font: 600 20px/1 var(--ew-body); cursor: pointer; display: grid; place-items: center; }
.ew-qty__btn:hover { background: var(--ew-red); }
.ew-qty__btn[disabled] { background: #9CA3AF; cursor: default; }
.woocommerce .ew-qty .qty { width: 64px; min-height: 42px; height: 42px; border: 1px solid var(--ew-border); border-left: 0; border-right: 0; -moz-appearance: textfield; }
.woocommerce .ew-qty .qty::-webkit-inner-spin-button, .woocommerce .ew-qty .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* Cart page quantity boxes keep the same square look */
.wc-block-components-quantity-selector { border-radius: 0 !important; }
.wc-block-components-quantity-selector::after { border-radius: 0 !important; }
/* Text links styled as buttons inside cards (View product) */
.woocommerce ul.products li.product .ew-card__actions .button, .woocommerce ul.products li.product .ew-card__actions .ew-card__view { font-size: 12.5px; letter-spacing: .05em; padding: 11px 6px; min-height: 40px; }

/* Cart and checkout: no underlines on buttons; product names in ink */
.wc-block-cart__submit-button, .wc-block-cart__submit-button:hover, .wc-block-components-button:not(.is-link), .wc-block-components-button:not(.is-link) * { text-decoration: none !important; }
.wc-block-components-product-name { color: var(--ew-ink) !important; text-decoration: none !important; font-weight: 600; }
.wc-block-components-product-name:hover { color: var(--ew-red) !important; }
.woocommerce ul.products li.product .ew-card__actions .button { justify-content: center; text-align: center; }

/* Page headings (Hello Elementor .page-header) */
.page-header { max-width: var(--ew-wide); margin: 0 auto; padding: 32px 32px 0; }
.page-header .entry-title { font-family: var(--ew-head); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 34px; margin: 0 0 8px; padding-bottom: 12px; border-bottom: 2px solid var(--ew-red); }
/* My Account navigation */
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ew-border); }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--ew-border); }
.woocommerce-MyAccount-navigation li:last-child { border-bottom: 0; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 12px 16px; color: var(--ew-ink); text-decoration: none; font-family: var(--ew-head); font-weight: 600; text-transform: uppercase; font-size: 14px; letter-spacing: .03em; }
.woocommerce-MyAccount-navigation li a:hover { background: var(--ew-grey); color: var(--ew-red); }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--ew-black); color: #fff; }
.woocommerce-MyAccount-content a { text-decoration: none; }
/* Order received page */
.woocommerce-order .woocommerce-thankyou-order-received, .wc-block-order-confirmation-status { font-family: var(--ew-head); font-size: 26px; font-weight: 700; text-transform: uppercase; color: var(--ew-ink); }
/* Services page */
.ew-services { max-width: 1100px; margin: 0 auto; padding: 32px 24px 56px; }
.ew-services__title { font-family: var(--ew-head); text-transform: uppercase; font-size: 36px; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--ew-red); }
.ew-services__cards { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.ew-services__card { border: 1px solid var(--ew-border); border-top: 3px solid var(--ew-red); padding: 18px 20px; background: #fff; }
.ew-services__card h3 { font-family: var(--ew-head); text-transform: uppercase; font-size: 18px; margin: 0 0 8px; }
.ew-services__card p { margin: 0; color: var(--ew-muted); }
.ew-services__formtitle { font-family: var(--ew-head); text-transform: uppercase; font-size: 24px; margin: 0 0 16px; }
.ew-services__form { display: grid; gap: 14px; max-width: 760px; }
.ew-services__form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.ew-services__types { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.ew-services__types legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.ew-services__type { display: flex !important; align-items: center; gap: 10px !important; border: 1px solid var(--ew-border); padding: 12px 14px; cursor: pointer; font-weight: 500 !important; }
.ew-services__type:has(input:checked) { border-color: var(--ew-red); background: var(--ew-tint); }
.ew-services__dates, .ew-services__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 12px; }
.ew-services__form .ew-btn { justify-self: start; }
.ew-services__ok { border: 1px solid #BBF7D0; background: #F0FDF4; padding: 16px 18px; color: #15803D; }
.ew-services__err { border: 1px solid #FECACA; background: #FEF2F2; padding: 12px 16px; color: #B91C1C; margin-bottom: 12px; }
.ew-hp { position: absolute; left: -9999px; }
@media (max-width: 760px) { .ew-services__cards, .ew-services__types { grid-template-columns: 1fr; } }

/* ElectroBucks v1.6 */
.ew-pts-box{border:1px solid #e3e3e3;border-left:4px solid #2755D6;background:#f7f9ff;padding:14px 16px;margin:0 0 18px;border-radius:4px}
.ew-pts-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0}
.ew-pts-form input[type=number]{width:120px;padding:8px 10px;border:1px solid #ccc;border-radius:4px}
.ew-pts-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:0 0 18px}
.ew-pts-stats>div{background:#111;color:#fff;border-radius:6px;padding:14px 16px;display:flex;flex-direction:column;gap:2px}
.ew-pts-stats span{font-size:12px;text-transform:uppercase;letter-spacing:.05em;opacity:.75}
.ew-pts-stats strong{font-size:26px;line-height:1.1}
.ew-pts-stats em{font-style:normal;color:#8fb0ff;font-size:13px}
.ew-pts-bar{height:10px;background:#e6e9f2;border-radius:6px;overflow:hidden;margin:6px 0 16px}
.ew-pts-bar span{display:block;height:100%;background:#2755D6}
.ew-pts-badge{display:inline-block;background:#2755D6;color:#fff;font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;margin:0 4px 4px 0}
.ew-pts-next{color:#333;margin:4px 0}
.ew-pts-earn{display:inline-flex;align-items:center;gap:6px;background:#f7f9ff;border:1px solid #d7e0fb;color:#1d3fa0;font-size:13px;font-weight:600;padding:6px 10px;border-radius:4px;margin:8px 0}

.ew-news__consent{font-size:12px;opacity:.8;margin:10px 0 0}.ew-news__consent a{color:inherit;text-decoration:underline}

/* ---------- Phone and small tablet header fix (v1.7): later desktop rules were overriding the mobile layout ---------- */
@media (max-width: 900px) {
	html, body { overflow-x: hidden; }
	.ew-band { padding: 10px 14px; min-height: 0; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
	.ew-band__logo { position: static; width: auto; clip-path: none; padding: 0; background: transparent; margin-right: auto; }
	.ew-band__logo .custom-logo-link { width: 160px; height: 40px; }
	.ew-band__actions { gap: 14px; }
	.ew-band__account span { display: none; }
	.ew-search { position: relative; transform: none; width: 100%; flex: 1 1 100%; order: 3; max-width: none; left: auto; top: auto; }
	.ew-search form, .ew-search .ew-search__form { width: 100%; }
	.ew-search input[type=search] { width: 100%; min-width: 0; font-size: 16px; }
	.ew-top__inner { padding: 0 14px; }
	.ew-top__user { display: none; }
}
@media (max-width: 420px) {
	.ew-band__logo .custom-logo-link { width: 140px; height: 36px; }
	.ew-band__cart .ew-ico { width: 26px; height: 26px; }
}

/* ---------- v1.7: audit fixes ---------- */
.ew-footer__brand span, .ew-footer__copy { color: rgba(255,255,255,.75); }
.ew-cats__link { font-size: max(13px, clamp(11px, .66vw, 16.8px)); }
.ew-specs { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.ew-specs th, .ew-specs td { text-align: left; padding: 10px 14px; border-bottom: 1px solid #e5e5e5; vertical-align: top; }
.ew-specs th { width: 34%; background: #f6f6f6; font-weight: 600; color: #111; }
.ew-ship-bar { border: 1px solid #e3e3e3; background: #fafafa; padding: 12px 16px; margin: 0 0 18px; border-radius: 4px; font-size: 15px; }
.ew-ship-bar__track { height: 8px; background: #e6e6e6; border-radius: 6px; overflow: hidden; margin-top: 8px; }
.ew-ship-bar__track span { display: block; height: 100%; background: var(--ew-red); }
.ew-ship-bar.is-done { border-color: #b7e0c0; background: #f2fbf4; }
.ew-404 { max-width: 760px; margin: 48px auto; text-align: center; padding: 0 16px; }
.ew-404 h1 { font-family: var(--ew-head); font-size: 40px; margin: 0 0 8px; }
.ew-404 form { display: flex; gap: 8px; max-width: 520px; margin: 22px auto; }
.ew-404 input[type=search] { flex: 1; height: 46px; padding: 0 12px; border: 1px solid #ccc; font-size: 16px; }
.ew-404 ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ew-404 li a { display: inline-block; padding: 8px 14px; border: 1px solid #ddd; border-radius: 4px; color: #111; }
.ew-404 li a:hover { border-color: var(--ew-red); color: var(--ew-red); }
/* ---------- Search panel (v1.8): product tiles + their categories, like the original Electroweld site ---------- */
.ew-band { z-index: 60; } /* keeps the search panel above the category bar and page content */
.ew-sp { position: absolute; top: 100%; left: max(16px, calc(50% - 620px)); right: max(16px, calc(50% - 620px)); margin-top: -6px; background: #fff; border: 1px solid var(--ew-border); box-shadow: 0 18px 48px rgba(0,0,0,.25); z-index: 100; text-align: left; }
.ew-sp[hidden] { display: none; }
.ew-sp__inner { display: grid; grid-template-columns: 230px minmax(0, 1fr); height: auto; max-height: min(78vh, 760px); overflow: hidden; }
.ew-sp__cats { border-right: 1px solid var(--ew-border); overflow-y: auto; padding-bottom: 8px; min-height: 0; max-height: min(78vh, 760px); }
.ew-sp__main { overflow-y: auto; min-width: 0; min-height: 0; max-height: min(78vh, 760px); }
.ew-sp__h { font-family: var(--ew-head); font-weight: 600; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: #6B7280; padding: 14px 14px 10px; }
.ew-sp__cat { display: flex; align-items: center; gap: 12px; margin: 0 12px 8px; padding: 6px 10px 6px 6px; border: 1px solid rgba(0,0,0,.18); border-radius: 3px; color: var(--ew-ink); font-size: 15px; font-weight: 500; line-height: 1.25; }
.ew-sp__cat:hover, .ew-sp__cat.is-active { background: var(--ew-grey); color: var(--ew-red); border-color: rgba(0,0,0,.35); }
.ew-sp__cimg { width: 54px; height: 54px; flex: none; display: grid; place-items: center; background: #fff; color: #c4c7cc; }
.ew-sp__cimg img { width: 100%; height: 100%; object-fit: contain; }
.ew-sp__cimg svg, .ew-sp__img svg { width: 60%; height: 60%; }
.ew-sp__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 14px; position: sticky; top: 0; background: #fff; z-index: 1; border-bottom: 1px solid var(--ew-border); }
.ew-sp__all { display: inline-flex; align-items: center; gap: 10px; background: var(--ew-black); color: #fff !important; font-family: var(--ew-head); font-weight: 600; font-size: 13px; line-height: 18px; letter-spacing: .05em; text-transform: uppercase; padding: 8px 14px 8px 12px; border-left: 4px solid var(--ew-red); white-space: nowrap; }
.ew-sp__all::after { content: ""; flex: none; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat; }
.ew-sp__all:hover, .ew-sp__all.is-active { background: var(--ew-red); color: #fff; }
.ew-sp__fix { margin: 10px 14px 0; font-size: 14px; color: var(--ew-muted); }
.ew-sp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.ew-sp__tile { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-right: 1px solid var(--ew-border); border-bottom: 1px solid var(--ew-border); min-width: 0; }
.ew-sp__link { display: flex; flex-direction: column; gap: 8px; color: var(--ew-ink); }
.ew-sp__link:hover .ew-sp__name, .ew-sp__link.is-active .ew-sp__name { color: var(--ew-red); }
.ew-sp__link.is-active { outline: 2px solid var(--ew-red); outline-offset: 2px; }
.ew-sp__img { display: grid; place-items: center; aspect-ratio: 1 / 1; background: #fff; color: #c4c7cc; }
.ew-sp__img img { width: 100%; height: 100%; object-fit: contain; }
.ew-sp__name { font-size: 15px; font-weight: 600; line-height: 1.3; height: 3.9em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ew-sp__sku { font-size: 12.5px; line-height: 16px; height: 16px; color: var(--ew-muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ew-sp__price { font-family: var(--ew-head); font-weight: 700; font-size: 20px; line-height: 26px; height: 26px; color: var(--ew-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ew-sp__price del { font-family: var(--ew-body); font-weight: 400; font-size: 14px; color: var(--ew-muted); }
.ew-sp__stock { align-self: flex-start; height: 24px; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 8px; border: 1px solid; border-radius: 3px; }
.ew-sp__stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ew-sp__stock.is-in { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.ew-sp__stock.is-back { color: #b45309; border-color: #fde68a; background: #fffbeb; }
.ew-sp__stock.is-out { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.ew-sp__add { margin-top: 4px; display: block; width: 100%; text-align: center; background: var(--ew-red); color: #fff !important; border: 0; font-family: var(--ew-head); font-weight: 600; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; padding: 9px 8px; line-height: 20px; cursor: pointer; }
.ew-sp__add:hover { background: var(--ew-red-dark); }
.ew-sp__add.is-added { background: #15803d; }
.ew-sp__add[disabled] { opacity: .85; cursor: default; }
.ew-sp__empty { padding: 18px; font-size: 15px; }
@media (max-width: 900px) {
	.ew-sp { left: 0; right: 0; margin-top: 0; border-left: 0; border-right: 0; }
	.ew-sp__inner { display: block; max-height: 72vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
	.ew-sp__cats { border-right: 0; border-bottom: 1px solid var(--ew-border); display: flex; flex-wrap: nowrap; overflow-x: auto; padding: 0 8px 10px; gap: 6px; }
	.ew-sp__cats .ew-sp__h { display: none; }
	.ew-sp__cat { flex: none; padding: 6px 10px 6px 6px; font-size: 13.5px; margin: 10px 0 0; }
	.ew-sp__cimg { width: 34px; height: 34px; }
	.ew-sp__main, .ew-sp__cats { max-height: none; }
	.ew-sp__main { overflow: visible; }
	.ew-sp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ew-sp__name { font-size: 14px; }
	.ew-sp__all { font-size: 12px; padding: 7px 10px; }
	.ew-sp__price { font-size: 17px; line-height: 22px; height: 22px; }
}
/* Mega menu (v1.8.2): brand lists under categories that have no sub-categories */
.ew-mega__label { display: block; padding: 0 10px 4px; font: 600 10.5px/1.2 var(--ew-head); letter-spacing: .08em; text-transform: uppercase; color: var(--ew-muted); }
.ew-mega__more a { font-weight: 700; color: var(--ew-red) !important; }
.ew-mega__more a:hover { text-decoration: underline; }
@media (max-width: 900px) { .ew-mega__label { padding: 6px 12px 2px; } }
/* Shop filters (v1.8.4): brand and attribute tick lists */
.ew-filter__checks li { margin: 0; }
.ew-filter__checks a { display: flex; align-items: center; gap: 9px; padding: 4px 0; color: var(--ew-ink); font-size: 14px; line-height: 1.3; }
.ew-filter__checks a > span:last-child { margin-left: auto; color: var(--ew-muted); font-size: 12.5px; }
.ew-filter__checks a:hover { color: var(--ew-red); }
.ew-check { flex: none; width: 16px; height: 16px; border: 1.5px solid #9CA3AF; border-radius: 2px; background: #fff; display: grid; place-items: center; }
.ew-filter__checks a:hover .ew-check { border-color: var(--ew-red); }
.ew-filter__checks a.is-on { font-weight: 600; }
.ew-filter__checks a.is-on .ew-check { background: var(--ew-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--ew-red); }
.ew-filter__more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ew-red); padding: 4px 0; list-style: none; }
.ew-filter__more summary::-webkit-details-marker { display: none; }
.ew-filter__more[open] summary { order: 2; }
.ew-filter__more[open] summary::before { content: "Show less"; }
.ew-filter__more[open] summary { font-size: 0; }
.ew-filter__more[open] summary::before { font-size: 13px; }
.ew-didyoumean { margin: 0 0 16px; font-size: 15px; }
.ew-freight-note { margin: 10px 0; padding: 10px 12px; border-left: 4px solid #f0a500; background: #fff8e5; font-size: 14px; }

/* Product cards (v1.8.5): buttons line up along the bottom of every card in a row */
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1 1 auto; }
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link .price { margin-top: auto !important; }
.woocommerce ul.products li.product .ew-card__actions { flex: 0 0 auto; align-items: stretch; }
.woocommerce ul.products li.product .ew-card__actions .button,
.woocommerce ul.products li.product .ew-card__actions .ew-card__view { min-height: 54px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; }

/* Machines: plug needed next to each amp range (v1.8.6) */
.ew-mega__plug { display: block; color: var(--ew-muted); font-size: 11.5px; line-height: 1.2; margin-top: 1px; }
.ew-mega__links a:hover .ew-mega__plug { color: inherit; }
.ew-filter__note { display: block; font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--ew-muted); }

/* Mega menu (v1.8.8): every heading in a row is the same height, so labels and links start on the same line */
@media (min-width: 901px) {
	.ew-mega__col { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
	.ew-mega__col > .ew-mega__head { grid-row: 1; align-self: stretch; }
	.ew-mega__col > .ew-mega__label { grid-row: 2; align-self: start; }
	.ew-mega__col > .ew-mega__links { grid-row: 3; align-self: start; }
}

/* Mega menu (v1.8.9): larger sub-category text, grey line between each, wider columns when there is room */
@media (min-width: 901px) {
	.ew-mega__cols { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
	.ew-mega__cols.is-wide .ew-mega__head { white-space: nowrap; }
	.ew-mega__links a { font-size: 17.5px; line-height: 1.3; padding: 7px 0; }
	.ew-mega__links li + li { border-top: 1px solid #E5E7EB; }
	.ew-mega__plug { font-size: 13px; }
}

/* ---------------------------------------------------------------
 * Product page (v1.9.0): layout of the original Electroweld site
 * ------------------------------------------------------------- */
.ew-selector-banner { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ew-border); background: #FAFAFA; padding: 10px 14px; margin: 0 0 18px; font-size: 13px; color: var(--ew-ink); text-decoration: none; }
.ew-selector-banner > .ew-ico { color: var(--ew-red); flex: none; }
.ew-selector-banner em { font-style: normal; color: var(--ew-muted); }
.ew-selector-banner b { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--ew-red); font-weight: 600; white-space: nowrap; }
.ew-selector-banner:hover { border-color: var(--ew-red); }

.single-product div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: start; position: relative; }
.single-product div.product > * { grid-column: 1 / -1; }
.single-product div.product > .product_title { margin: 0 0 18px; line-height: 1.15; }
.single-product div.product > .ew-gal { grid-column: 1; width: auto !important; float: none !important; margin: 0 0 32px; }
.single-product div.product > .summary { grid-column: 2; width: auto !important; float: none !important; display: flex; flex-direction: column; margin: 0 0 32px; }
.single-product div.product > .onsale { grid-column: 1; grid-row: 2; position: absolute; z-index: 2; }

/* Gallery */
.ew-gal { display: flex; gap: 14px; align-items: flex-start; }
.ew-gal__side { flex: none; width: 64px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.ew-gal__up, .ew-gal__down { height: 24px; border: 0; background: #F3F4F6; color: var(--ew-muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.ew-gal__down { background: var(--ew-ink); color: #fff; }
.ew-gal__up:hover, .ew-gal__down:hover { background: var(--ew-red); color: #fff; }
.ew-gal__thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 334px; overflow: hidden; scroll-behavior: smooth; }
.ew-gal__thumbs button { display: block; width: 64px; height: 64px; padding: 3px; background: #fff; border: 1px solid var(--ew-border); cursor: pointer; }
.ew-gal__thumbs button img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ew-gal__thumbs button.is-on { border: 2px solid var(--ew-red); padding: 2px; }
.ew-gal__count { text-align: center; font-size: 11px; color: var(--ew-muted); }
.ew-gal__main { flex: 1 1 auto; min-width: 0; }
.ew-gal__stage { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; background: #fff; }
.ew-gal__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: zoom-in; }
.ew-gal__stage .ew-gal__prev, .ew-gal__stage .ew-gal__next { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 1px solid var(--ew-border); background: #fff; color: var(--ew-ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.ew-gal__stage .ew-gal__prev { left: 0; }
.ew-gal__stage .ew-gal__next { right: 0; }
.ew-gal__pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 10px; font-size: 13px; color: var(--ew-ink); }
.ew-gal__pager button { width: 26px; height: 26px; border: 1px solid var(--ew-border); background: #fff; color: var(--ew-ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.ew-gal__prev:hover, .ew-gal__next:hover { border-color: var(--ew-red); color: var(--ew-red); }
.ew-zoom { border: 0; padding: 0; max-width: min(96vw, 1100px); max-height: 94vh; background: #fff; }
.ew-zoom::backdrop { background: rgba(0,0,0,.7); }
.ew-zoom img { display: block; max-width: min(96vw, 1100px); max-height: 94vh; object-fit: contain; }
.ew-zoom__close { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border: 0; background: var(--ew-ink); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

/* Summary */
.single-product .summary .woocommerce-product-details__short-description { color: var(--ew-muted); font-size: 14.5px; line-height: 1.7; margin: 0 0 14px; }
.single-product .summary .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }
.ew-pmeta { margin: 0 0 14px; }
.ew-sku-line { font-size: 12.5px; color: var(--ew-ink); margin: 0 0 10px; }
.ew-sku-line span { color: var(--ew-muted); }
.ew-stock-badge { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 6px 10px; font-size: 12.5px; font-weight: 600; border: 1px solid #A7F3D0; background: #ECFDF5; color: #047857; }
.ew-stock-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ew-stock-badge.is-onbackorder { border-color: #FCD34D; background: #FFFBEB; color: #B45309; }
.ew-stock-badge.is-outofstock { border-color: #FECACA; background: var(--ew-tint); color: var(--ew-red); }
.ew-buyrow__price .price { margin: 0 !important; font-size: 36px !important; line-height: 1; }
.ew-buyrow__price .woocommerce-Price-currencySymbol { font-size: .5em; vertical-align: top; position: relative; top: .25em; margin-right: 1px; }
.single-product .summary form.cart { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 12px; margin: 4px 0 12px; }
.single-product .summary form.cart .ew-buyrow__price { flex: 1 1 auto; align-self: flex-end; }
.single-product .summary form.cart .quantity { display: flex; flex-direction: column; align-items: center; }
.single-product .summary form.cart .quantity::before { content: 'QTY'; font-size: 11px; letter-spacing: .06em; color: var(--ew-muted); margin-bottom: 4px; }
.single-product .summary > .ew-buyrow__price { margin: 0 0 14px; }
.single-product .summary .single_add_to_cart_button { flex: 1 1 100% !important; }
.single-product .summary .ew-pts-earn, .single-product .summary .ew-freight-note { order: 5; }
.single-product .summary .ew-stock-note { margin: -6px 0 14px; }

/* Bulk pricing / Price beat */
.ew-quote { margin: 0 0 14px; }
.ew-quote__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ew-quote__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; min-height: 40px; background: #fff; border: 1px solid var(--ew-border); color: var(--ew-ink); font-family: var(--ew-head); font-weight: 600; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.ew-quote__btn:hover { border-color: var(--ew-red); color: var(--ew-red); }
.ew-quote__msg { padding: 10px 12px; font-size: 13.5px; margin: 0 0 10px; }
.ew-quote__msg.is-ok { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.ew-quote__msg.is-err { background: var(--ew-tint); color: var(--ew-red); border: 1px solid #FECACA; }
.ew-modal { border: 0; padding: 0; width: calc(100% - 32px); max-width: 440px; max-height: 92vh; overflow: auto; }
.ew-modal::backdrop { background: rgba(0,0,0,.55); }
.ew-modal form { position: relative; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.ew-modal h3 { font-family: var(--ew-head); text-transform: uppercase; font-size: 18px; letter-spacing: .02em; margin: 0; padding-right: 30px; }
.ew-modal__intro { font-size: 13px; color: var(--ew-muted); margin: -4px 0 0; }
.ew-modal__prod { display: flex; flex-direction: column; gap: 2px; background: #F3F4F6; padding: 10px 12px; font-size: 12.5px; color: var(--ew-muted); }
.ew-modal__prod strong { color: var(--ew-ink); font-size: 13px; }
.ew-modal__sub { font-family: var(--ew-head); text-transform: uppercase; font-size: 12px; letter-spacing: .06em; color: var(--ew-muted); margin: 4px 0 -4px; }
.ew-modal label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ew-ink); }
.ew-modal label small { font-weight: 400; color: var(--ew-muted); }
.ew-modal input[type=text], .ew-modal input[type=email], .ew-modal input[type=tel] { width: 100%; border: 1px solid var(--ew-border); padding: 10px 12px; font-size: 14px; font-weight: 400; border-radius: 0; }
.ew-modal input:focus { outline: 2px solid var(--ew-red); outline-offset: -1px; }
.ew-modal__submit { width: 100%; justify-content: center; min-height: 46px; margin-top: 4px; }
.ew-modal__close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--ew-muted); cursor: pointer; }
.ew-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
	.single-product div.product { grid-template-columns: minmax(0, 1fr); }
	.single-product div.product > .ew-gal, .single-product div.product > .summary { grid-column: 1; }
	.ew-selector-banner { flex-wrap: wrap; }
	.ew-selector-banner b { margin-left: 26px; }
}
@media (max-width: 600px) {
	.ew-gal__side { display: none; }
	.ew-buyrow__price .price { font-size: 30px !important; }
}

/* Product page fixes (v1.9.1) */
.ew-gal__thumbs { position: relative; }
.ew-stock-badge i { display: inline-block; border-radius: 50% !important; }
.single-product .summary .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-end; gap: 14px 12px; }
.single-product .summary .woocommerce-variation-add-to-cart .quantity { display: flex; flex-direction: column; align-items: center; margin: 0 !important; }
.single-product .summary .woocommerce-variation-add-to-cart .quantity::before { content: 'QTY'; font-size: 11px; letter-spacing: .06em; color: var(--ew-muted); margin-bottom: 4px; }
.single-product .summary .woocommerce-variation-add-to-cart .single_add_to_cart_button { flex: 1 1 100% !important; min-height: 56px; }
.single-product .summary .single_variation_wrap { width: 100%; }
.single-product .summary .woocommerce-variation-price .price { font-size: 30px !important; }
.single-product .summary .single_variation_wrap { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 12px; }
.single-product .summary .single_variation_wrap > .woocommerce-variation-add-to-cart { display: contents; }
.single-product .summary .single_variation_wrap > .single_variation { flex: 1 1 auto; margin: 0; }
.single-product .summary .single_variation_wrap > .single_variation:empty { display: none; }
.single-product .summary .woocommerce-variation-price .price { margin: 0 !important; }

/* Mega menu (v1.9.4): black headings the same text size as the red category bar */
@media (min-width: 901px) { .ew-mega__head { font-size: 16.8px; letter-spacing: normal; line-height: 1.25; padding: 10px 10px; } }
