/*
Theme Name:   Edenvale Computers Shop
Theme URI:    https://edenvalecomputers.co.za
Description:  Online shop theme for Edenvale Computers – white store layout with navy branding, built on Kadence. Includes the Edenvale header and footer, a homepage, and an "Add workshop installation" option for laptop parts. Settings: Appearance → Customize → Edenvale Shop.
Author:       Edenvale Computers
Template:     kadence
Version:      1.1.8
Requires at least: 6.5
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  edenvale-shop
*/

/* ---------- Brand colours ---------- */
:root {
	--ec-navy: #0B1630;
	--ec-brand: #12307A;
	--ec-brand-dark: #0B1F54;
	--ec-link: #1F5FD6;
	--ec-orange: #FFB454;
	--ec-orange-soft: #FDE7C2;
	--ec-orange-text: #7A3E00;
	--ec-text: #0B1630;
	--ec-text-2: #3B4A6B;
	--ec-muted: #5A6785;
	--ec-line: #E1E7F2;
	--ec-line-2: #C9D3E6;
	--ec-soft: #F4F7FC;
	--ec-soft-2: #EEF3FB;
	--ec-img: #E6ECF7;
	--ec-green: #15803D;
	--ec-footer-text: #C9D4EC;
	--ec-radius: 14px;
	--ec-max: 1280px;
	--ec-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ec-display: "Sora", "Inter", system-ui, sans-serif;
}

/* Make Kadence's own colour palette match, so its buttons, links and WooCommerce pages follow the brand. */
html:root {
	--global-palette1: #12307A;
	--global-palette2: #0B1F54;
	--global-palette3: #0B1630;
	--global-palette4: #1E2A44;
	--global-palette5: #3B4A6B;
	--global-palette6: #5A6785;
	--global-palette7: #EEF3FB;
	--global-palette8: #F4F7FC;
	--global-palette9: #FFFFFF;
	--global-palette-highlight: #1F5FD6;
	--global-palette-highlight-alt: #12307A;
	--global-palette-btn-bg: #12307A;
	--global-palette-btn-bg-hover: #0B1F54;
	--global-palette-btn: #FFFFFF;
	--global-palette-btn-hover: #FFFFFF;
	--global-body-font-family: var(--ec-font);
	--global-heading-font-family: var(--ec-display);
}

/* ---------- Base ---------- */
html body.ec-site {
	background: #FFFFFF;
	color: var(--ec-text);
	font-family: var(--ec-font);
	font-size: 16px;
	line-height: 1.55;
}
body.ec-site h1, body.ec-site h2, body.ec-site h3, body.ec-site h4,
body.ec-site .product_title, body.ec-site .woocommerce-loop-product__title {
	font-family: var(--ec-display);
	color: var(--ec-text);
	letter-spacing: -0.005em;
}
body.ec-site a { color: var(--ec-link); }
body.ec-site a:hover { color: var(--ec-brand); }

.ec-container {
	max-width: var(--ec-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 8px; top: 8px; z-index: 100000; padding: 12px 16px;
	background: #fff; color: var(--ec-brand); border-radius: 8px;
}
.ec-icon { flex: none; display: block; }

/* ---------- Buttons ---------- */
.ec-btn,
body.ec-site .button,
body.ec-site button.button,
body.ec-site .single_add_to_cart_button,
body.ec-site .wp-element-button,
body.ec-site .wc-block-components-button:not(.is-link) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 10px;
	background: var(--ec-brand);
	color: #FFFFFF;
	font-family: var(--ec-font);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease;
}
.ec-btn:hover,
body.ec-site .button:hover,
body.ec-site .single_add_to_cart_button:hover,
body.ec-site .wp-element-button:hover,
body.ec-site .wc-block-components-button:not(.is-link):hover {
	background: var(--ec-brand-dark);
	color: #FFFFFF;
}
.ec-btn--outline {
	background: transparent;
	color: var(--ec-brand);
	box-shadow: inset 0 0 0 1.5px var(--ec-brand);
}
.ec-btn--outline:hover { background: var(--ec-soft-2); color: var(--ec-brand); }
.ec-btn:focus-visible, body.ec-site a:focus-visible, body.ec-site button:focus-visible, body.ec-site input:focus-visible {
	outline: 3px solid var(--ec-orange);
	outline-offset: 2px;
}
.ec-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.ec-chip {
	display: inline-block;
	padding: 3px 10px;
	border: 1px solid var(--ec-line-2);
	border-radius: 6px;
	font-weight: 600;
	font-size: 13px;
	color: var(--ec-text);
}

/* ---------- Top bar ---------- */
.ec-topbar { background: var(--ec-navy); color: var(--ec-footer-text); font-size: 13px; }
.ec-topbar__inner {
	display: flex; flex-wrap: wrap; gap: 6px 24px;
	justify-content: space-between; align-items: center;
	padding-top: 8px; padding-bottom: 8px;
}
.ec-topbar__info, .ec-topbar__social { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
body.ec-site .ec-topbar a { color: var(--ec-footer-text); text-decoration: none; }
body.ec-site .ec-topbar a:hover { color: #FFFFFF; }
body.ec-site .ec-topbar .ec-social { color: #FFFFFF; font-weight: 600; }

/* ---------- Header ---------- */
.ec-header { background: #FFFFFF; border-bottom: 1px solid var(--ec-line); }
.ec-header__inner {
	display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center;
	padding-top: 16px; padding-bottom: 16px;
}
.ec-header__logo .custom-logo-link { display: block; }
.ec-header__logo img, .ec-header__logo .custom-logo {
	display: block; height: 64px; width: auto; max-width: 260px; object-fit: contain;
}
.ec-search { flex: 999 1 320px; display: flex; min-width: 0; }
body.ec-site .ec-search__field {
	flex: 1; min-width: 0; height: 48px; margin: 0;
	padding: 0 16px;
	background: var(--ec-soft-2);
	border: 1px solid var(--ec-line-2); border-right: 0;
	border-radius: 10px 0 0 10px;
	color: var(--ec-text); font: inherit; font-size: 15px;
	box-shadow: none;
}
body.ec-site .ec-search__field:focus { background: #FFFFFF; border-color: var(--ec-brand); }
body.ec-site .ec-search__button {
	width: 54px; height: 48px; padding: 0; margin: 0; border: 0;
	border-radius: 0 10px 10px 0;
	background: var(--ec-brand); color: #FFFFFF;
	display: flex; align-items: center; justify-content: center; cursor: pointer;
}
body.ec-site .ec-search__button:hover { background: var(--ec-brand-dark); }
.ec-header__actions { display: flex; gap: 20px; align-items: center; }
body.ec-site .ec-header__action {
	display: flex; align-items: center; gap: 8px; min-height: 44px;
	color: var(--ec-text); text-decoration: none; font-weight: 500;
}
body.ec-site .ec-header__action:hover { color: var(--ec-brand); }
.ec-cart-count {
	min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box;
	border-radius: 11px; background: var(--ec-brand); color: #FFFFFF;
	font-size: 12px; font-weight: 700;
	display: inline-flex; align-items: center; justify-content: center;
}

@media (max-width: 720px) {
	.ec-header__inner { gap: 12px 16px; }
	.ec-header__logo { flex: 1 1 auto; }
	.ec-header__logo img, .ec-header__logo .custom-logo { height: 48px; }
	.ec-search { order: 3; flex-basis: 100%; }
	.ec-header__action span:not(.ec-cart-count) { display: none; }
	.ec-topbar__social { display: none; }
}

/* ---------- Category menu ---------- */
.ec-catnav { background: var(--ec-brand); position: relative; z-index: 60; }
.ec-catnav__list { margin: 0; padding: 0; list-style: none; }
.ec-catnav__list li { margin: 0; }
.ec-catnav__list > li { position: relative; }
body.ec-site .ec-catnav__list > li > a {
	display: block; padding: 14px 12px;
	color: #FFFFFF; font-weight: 500; font-size: 14px; text-decoration: none; white-space: nowrap;
}
body.ec-site .ec-catnav__list > li > a:hover { background: var(--ec-brand-dark); color: #FFFFFF; }
body.ec-site .ec-catnav__list > .current-menu-item > a,
body.ec-site .ec-catnav__list > .current-menu-ancestor > a,
body.ec-site .ec-catnav__list > .current-product_cat-ancestor > a {
	box-shadow: inset 0 -3px 0 var(--ec-orange);
}
body.ec-site .ec-catnav__list > .ec-specials > a { color: var(--ec-orange); font-weight: 600; }

/* Dropdown toggle (the small arrow) */
body.ec-site .ec-dd-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; min-height: 0; padding: 0; margin: 0;
	border: 0; border-radius: 6px; background: transparent; color: #FFFFFF;
	cursor: pointer; box-shadow: none;
}
body.ec-site .ec-dd-toggle:hover { background: var(--ec-brand-dark); color: #FFFFFF; }
.ec-dd-toggle svg { transition: transform .15s ease; }
.ec-catnav__list > li.is-open > .ec-dd-toggle svg { transform: rotate(180deg); }

/* Dropdown links (shared) */
.ec-catnav .sub-menu { list-style: none; margin: 0; padding: 0; }
.ec-catnav .sub-menu li { margin: 0; break-inside: avoid; }
body.ec-site .ec-catnav .sub-menu a {
	display: block; padding: 8px 12px; border-radius: 8px;
	font-size: 14px; font-weight: 400; line-height: 1.35; text-decoration: none; white-space: normal;
}
body.ec-site .ec-catnav .sub-menu .ec-dd-all > a,
body.ec-site .ec-catnav .sub-menu .ec-dd-group > a,
body.ec-site .ec-catnav .sub-menu .menu-item-has-children > a { font-weight: 600; }
.ec-catnav .sub-menu .sub-menu { padding-left: 10px; }

/* Phone menu button */
body.ec-site .ec-catnav__button {
	display: none; align-items: center; gap: 10px; width: 100%;
	min-height: 48px; padding: 0; margin: 0; border: 0; border-radius: 0;
	background: transparent; color: #FFFFFF; font: inherit; font-weight: 600; font-size: 15px;
	cursor: pointer; box-shadow: none;
}
body.ec-site .ec-catnav__button:hover { background: transparent; color: #FFFFFF; }

/* ----- Desktop: one row, dropdown panels on hover or click ----- */
@media (min-width: 900px) {
	.ec-catnav__list { display: flex; flex-wrap: wrap; gap: 2px; }
	.ec-catnav__list > li { display: flex; align-items: center; }
	body.ec-site .ec-catnav__list > li.menu-item-has-children > a { padding-right: 2px; }
	body.ec-site .ec-catnav__list > li.menu-item-has-children > .ec-dd-toggle { margin-right: 6px; }

	.ec-catnav__list > li > .sub-menu {
		display: none;
		position: absolute; top: 100%; left: 0;
		min-width: 250px; max-width: 520px; padding: 10px;
		background: #FFFFFF; border: 1px solid var(--ec-line); border-top: 0;
		border-radius: 0 0 14px 14px; box-shadow: 0 16px 36px rgba(11, 22, 48, .14);
		z-index: 70;
	}
	/* Long lists: two columns */
	.ec-catnav__list > li > .sub-menu:has(> li:nth-child(10)) { columns: 2; column-gap: 8px; min-width: 480px; }
	/* (menu.js shifts a dropdown left when it would run off the right edge of the screen) */

	.ec-catnav__list > li.is-open > .sub-menu,
	.ec-catnav__list > li:focus-within > .sub-menu { display: block; }

	body.ec-site .ec-catnav .sub-menu a { color: var(--ec-text); }
	body.ec-site .ec-catnav .sub-menu a:hover { background: var(--ec-soft-2); color: var(--ec-brand); }
	body.ec-site .ec-catnav .sub-menu .ec-dd-all > a { color: var(--ec-brand); }
	.ec-catnav .sub-menu .ec-dd-all { border-bottom: 1px solid var(--ec-line); margin-bottom: 6px; padding-bottom: 6px; column-span: all; }
	.ec-catnav .sub-menu .sub-menu a { padding-top: 6px; padding-bottom: 6px; color: var(--ec-text-2); }
}
@media (min-width: 900px) and (hover: hover) {
	.ec-catnav__list > li:hover > .sub-menu { display: block; }
}

/* ----- Phones and small tablets: "Shop by category" button, list opens underneath ----- */
@media (max-width: 899px) {
	body.ec-site .ec-catnav__button { display: flex; }
	.ec-js .ec-catnav__list { display: none; }
	.ec-catnav.is-open .ec-catnav__list { display: block; padding-bottom: 10px; }
	.ec-catnav__list > li {
		display: flex; flex-wrap: wrap; align-items: center;
		border-top: 1px solid rgba(255, 255, 255, .14);
	}
	body.ec-site .ec-catnav__list > li > a { flex: 1; padding: 14px 4px; font-size: 15px; }
	body.ec-site .ec-catnav__list > li > a:hover { background: transparent; }
	body.ec-site .ec-dd-toggle { width: 48px; height: 48px; }
	.ec-catnav__list > li > .sub-menu { display: none; flex-basis: 100%; padding: 0 0 10px 12px; }
	.ec-catnav__list > li.is-open > .sub-menu { display: block; }
	.ec-catnav__list > li:not(.menu-item-has-children) > .sub-menu { display: block; }
	body.ec-site .ec-catnav .sub-menu a { color: #FFFFFF; padding: 10px 8px; }
	body.ec-site .ec-catnav .sub-menu a:hover { background: var(--ec-brand-dark); color: #FFFFFF; }
	body.ec-site .ec-catnav .sub-menu .sub-menu a { color: #DCE6FF; }
}

/* ---------- Homepage ---------- */
.ec-eyebrow {
	margin: 0 0 12px; font-size: 13px; font-weight: 600;
	letter-spacing: .14em; text-transform: uppercase; color: var(--ec-brand);
}
.ec-hero {
	display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
	padding-top: 56px; padding-bottom: 40px;
}
.ec-hero__text { flex: 1 1 460px; min-width: 0; }
body.ec-site .ec-hero__title {
	margin: 0 0 20px; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; font-weight: 700;
}
.ec-hero__lead { margin: 0 0 32px; font-size: 18px; color: var(--ec-text-2); max-width: 560px; }
.ec-hero__media {
	flex: 1 1 460px; min-width: 0; min-height: 320px;
	border-radius: 20px; overflow: hidden; background: var(--ec-soft-2);
	display: flex; align-items: center; justify-content: center; color: var(--ec-line-2);
}
.ec-hero__media img { width: 100%; height: 100%; max-height: 440px; object-fit: cover; display: block; }
.ec-hero__media--empty { min-height: 380px; }

.ec-usps {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
	padding-bottom: 56px;
}
.ec-usp {
	display: flex; gap: 14px; padding: 20px;
	background: var(--ec-soft); border: 1px solid var(--ec-line); border-radius: var(--ec-radius);
	color: var(--ec-brand);
}
.ec-usp p { margin: 0; font-size: 14px; color: var(--ec-muted); }
.ec-usp .ec-usp__title { font-size: 15px; font-weight: 600; color: var(--ec-text); }

.ec-section { padding-top: 0; padding-bottom: 64px; }
.ec-band { background: var(--ec-soft); border-top: 1px solid var(--ec-line); border-bottom: 1px solid var(--ec-line); margin-bottom: 64px; }
.ec-band .ec-section { padding-top: 56px; }
.ec-section__head {
	display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end;
	margin-bottom: 24px;
}
body.ec-site .ec-section__title { margin: 0; font-size: 30px; font-weight: 700; }
body.ec-site .ec-section__more { font-weight: 600; text-decoration: none; }

.ec-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
body.ec-site .ec-cat {
	display: flex; flex-direction: column; overflow: hidden;
	background: #FFFFFF; border: 1px solid var(--ec-line); border-radius: var(--ec-radius);
	color: var(--ec-text); text-decoration: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
body.ec-site .ec-cat:hover { border-color: var(--ec-line-2); box-shadow: 0 6px 20px rgba(11, 22, 48, .08); color: var(--ec-text); }
.ec-cat__img {
	height: 160px; background: var(--ec-img); color: var(--ec-line-2);
	display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ec-cat__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ec-cat__name { display: flex; justify-content: space-between; padding: 16px 18px; font-weight: 600; }
.ec-cat__name span { color: var(--ec-link); }

.ec-parts {
	display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
	padding: 48px; border-radius: 20px;
	background: var(--ec-soft-2); border: 1px solid var(--ec-line);
}
.ec-parts__text { flex: 1 1 400px; min-width: 0; }
body.ec-site .ec-parts__title { margin: 0 0 14px; font-size: 34px; line-height: 1.15; font-weight: 700; }
.ec-parts__lead { margin: 0 0 28px; font-size: 17px; color: var(--ec-text-2); }
.ec-steps { flex: 1 1 360px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ec-steps li {
	display: flex; gap: 16px; align-items: center; margin: 0;
	padding: 16px 18px; background: #FFFFFF; border: 1px solid var(--ec-line); border-radius: 12px;
	font-size: 14px; color: var(--ec-muted);
}
.ec-steps strong { display: block; font-size: 15px; font-weight: 600; color: var(--ec-text); }
.ec-steps__num {
	width: 36px; height: 36px; flex: none; border-radius: 50%;
	border: 1.5px solid var(--ec-brand); color: var(--ec-brand);
	display: flex; align-items: center; justify-content: center; font-weight: 700;
}
@media (max-width: 600px) { .ec-parts { padding: 28px 20px; } }

.ec-brands { padding-bottom: 64px; text-align: center; }
.ec-brands__label { margin: 0 0 20px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ec-muted); }
.ec-brands__list {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px;
	margin: 0; padding: 0; list-style: none;
	font-family: var(--ec-display); font-weight: 600; font-size: 22px; color: var(--ec-brand);
}
.ec-brands__list li { margin: 0; }

/* ---------- Product cards (shop, categories, homepage) ---------- */
body.ec-site ul.products li.product {
	background: #FFFFFF;
	border: 1px solid var(--ec-line);
	border-radius: var(--ec-radius);
	overflow: hidden;
	padding-bottom: 18px;
	display: flex; flex-direction: column;
	transition: border-color .15s ease, box-shadow .15s ease;
}
body.ec-site ul.products li.product:hover { border-color: var(--ec-line-2); box-shadow: 0 6px 20px rgba(11, 22, 48, .08); }
body.ec-site ul.products li.product img,
body.ec-site ul.products li.product .woocommerce-loop-image-link img {
	background: var(--ec-soft);
	margin: 0 0 14px;
	border-radius: 0;
	aspect-ratio: 1 / 1; object-fit: contain; width: 100%;
}
body.ec-site ul.products li.product .woocommerce-loop-product__title,
body.ec-site ul.products li.product .woocommerce-loop-product__title a {
	font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--ec-text);
}
body.ec-site ul.products li.product .woocommerce-loop-product__title,
body.ec-site ul.products li.product .price,
body.ec-site ul.products li.product .product-details,
body.ec-site ul.products li.product .button,
body.ec-site ul.products li.product .product-action-wrap { margin-left: 18px; margin-right: 18px; }
body.ec-site .price, body.ec-site ul.products li.product .price {
	font-family: var(--ec-display); font-weight: 700; color: var(--ec-text);
}
body.ec-site .price del { color: var(--ec-muted); font-weight: 500; }
body.ec-site .price ins { text-decoration: none; }
.ec-vat { font-family: var(--ec-font); font-size: 12px; font-weight: 500; color: var(--ec-muted); }
body.ec-site .onsale, body.ec-site .wc-block-components-product-sale-badge {
	background: var(--ec-orange-soft); color: var(--ec-orange-text);
	border-radius: 6px; font-weight: 700; font-size: 12px; text-transform: none;
	min-height: 0; min-width: 0; line-height: 1; padding: 6px 10px;
	top: 12px; left: 12px; right: auto;
}
body.ec-site .stock.in-stock { color: var(--ec-green); }

/* ---------- Single product ---------- */
body.ec-site.single-product div.product .product_title { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; }
body.ec-site.single-product div.product .summary .price { font-size: 34px; }
body.ec-site.single-product div.product .woocommerce-product-gallery__image img { background: var(--ec-soft); border-radius: 16px; }
.ec-note {
	padding: 14px 16px; margin: 0 0 20px;
	background: var(--ec-soft); border: 1px solid var(--ec-line); border-radius: 12px;
	font-size: 14px; color: var(--ec-text-2);
}
.ec-note a { font-weight: 600; }

.ec-install {
	display: flex; gap: 14px; align-items: flex-start;
	width: 100%; box-sizing: border-box;
	padding: 18px; margin: 0 0 20px;
	background: var(--ec-soft-2); border: 2px solid var(--ec-line); border-radius: var(--ec-radius);
	cursor: pointer;
}
.ec-install:has(input:checked) { border-color: var(--ec-brand); background: #FFFFFF; }
.ec-install input[type="checkbox"] { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--ec-brand); }
.ec-install__body { display: flex; flex-direction: column; gap: 4px; }
.ec-install__title { font-weight: 600; font-size: 16px; color: var(--ec-text); }
.ec-install__price { color: var(--ec-muted); font-weight: 500; }
.ec-install__text { font-size: 14px; color: var(--ec-muted); }
body.ec-site div.product form.cart { flex-wrap: wrap; }

.ec-infoboxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 8px 0 16px; }
.ec-infobox {
	display: flex; gap: 12px; padding: 16px;
	border: 1px solid var(--ec-line); border-radius: 12px; background: var(--ec-soft);
	color: var(--ec-brand);
}
.ec-infobox p { margin: 0; font-size: 14px; color: var(--ec-muted); }
.ec-infobox .ec-infobox__title { font-weight: 600; font-size: 15px; color: var(--ec-text); }
.ec-paywith { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--ec-muted); margin: 0 0 20px; }

body.ec-site .woocommerce-tabs ul.tabs li a { font-weight: 600; }
body.ec-site .woocommerce-tabs ul.tabs li.active a { color: var(--ec-text); }
body.ec-site table.shop_attributes th { color: var(--ec-muted); font-weight: 500; }

/* ---------- Shop pages ---------- */
body.ec-site .woocommerce-breadcrumb { font-size: 13px; color: var(--ec-muted); }
body.ec-site .woocommerce-ordering select,
body.ec-site .orderby {
	height: 44px; border-radius: 8px; border: 1px solid var(--ec-line-2); padding: 0 12px;
}
body.ec-site .woocommerce-pagination ul li a,
body.ec-site .woocommerce-pagination ul li span {
	min-width: 44px; height: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--ec-line-2);
}
body.ec-site .woocommerce-pagination ul li span.current { background: var(--ec-brand); color: #FFFFFF; border-color: var(--ec-brand); }
body.ec-site .primary-sidebar .widget,
body.ec-site .primary-sidebar .wp-block-group {
	padding: 18px; margin-bottom: 14px;
	background: var(--ec-soft); border: 1px solid var(--ec-line); border-radius: 12px;
}

/* ---------- Footer ---------- */
.ec-footer { background: var(--ec-navy); color: var(--ec-footer-text); font-size: 14px; margin-top: 0; }
.ec-footer p { margin: 0 0 10px; }
.ec-footer__cols {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px;
	padding-top: 56px; padding-bottom: 28px;
}
.ec-footer .ec-footer__name { font-family: var(--ec-display); font-weight: 700; font-size: 18px; color: #FFFFFF; }
.ec-footer .ec-footer__title { font-weight: 600; color: #FFFFFF; margin-bottom: 12px; }
.ec-footer__links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ec-footer__links li { margin: 0; }
body.ec-site .ec-footer a { color: var(--ec-footer-text); text-decoration: none; }
body.ec-site .ec-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.ec-footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
body.ec-site .ec-footer .ec-social--pill {
	display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
	border: 1px solid #2A4280; border-radius: 18px; color: #FFFFFF; font-weight: 600; font-size: 13px;
}
body.ec-site .ec-footer .ec-social--pill:hover { background: #12214A; text-decoration: none; }
.ec-footer__badges { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding-bottom: 28px; }
.ec-footer__badges img { width: 220px; height: auto; display: block; }
.ec-footer__bottom {
	display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
	padding-top: 20px; padding-bottom: 28px; border-top: 1px solid #1E3263;
}
.ec-footer__pay { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ec-footer .ec-chip { border-color: #2A4280; color: #FFFFFF; }

/* ---------- Stronger overrides (beat WooCommerce/Kadence defaults) ---------- */
html body.ec-site a.ec-btn,
html body.ec-site .woocommerce a.button,
html body.ec-site .woocommerce button.button,
html body.ec-site .woocommerce input.button,
html body.ec-site .woocommerce a.button.alt,
html body.ec-site .woocommerce button.button.alt,
html body.ec-site .woocommerce #respond input#submit,
html body.ec-site a.button,
html body.ec-site button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 22px;
	border: 0;
	border-radius: 10px;
	background: var(--ec-brand);
	color: #FFFFFF;
	font-family: var(--ec-font);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
}
html body.ec-site a.ec-btn:hover,
html body.ec-site .woocommerce a.button:hover,
html body.ec-site .woocommerce button.button:hover,
html body.ec-site .woocommerce a.button.alt:hover,
html body.ec-site .woocommerce button.button.alt:hover,
html body.ec-site a.button:hover,
html body.ec-site button.button:hover {
	background: var(--ec-brand-dark);
	color: #FFFFFF;
}
html body.ec-site a.ec-btn--outline {
	background: transparent;
	color: var(--ec-brand);
	box-shadow: inset 0 0 0 1.5px var(--ec-brand);
}
html body.ec-site a.ec-btn--outline:hover { background: var(--ec-soft-2); color: var(--ec-brand); }
html body.ec-site ul.products li.product .button { margin-top: auto; width: calc(100% - 36px); box-sizing: border-box; }
html body.ec-site .woocommerce div.product p.price,
html body.ec-site .woocommerce div.product span.price,
html body.ec-site .woocommerce ul.products li.product .price {
	color: var(--ec-text);
	font-family: var(--ec-display);
	font-weight: 700;
}
html body.ec-site .woocommerce span.onsale,
html body.ec-site .woocommerce ul.products li.product .onsale {
	background: var(--ec-orange-soft); color: var(--ec-orange-text);
	border-radius: 6px; font-weight: 700; font-size: 12px; line-height: 1;
	min-height: 0; min-width: 0; padding: 6px 10px; margin: 0;
	top: 12px; left: 12px; right: auto;
}
html body.ec-site .woocommerce div.product form.cart .qty {
	height: 48px; width: 70px; border: 1px solid var(--ec-line-2); border-radius: 10px; text-align: center;
}
html body.ec-site button.button.alt,
html body.ec-site a.button.alt,
html body.ec-site button.single_add_to_cart_button {
	background: var(--ec-brand);
	color: #FFFFFF;
	min-height: 48px;
	border-radius: 10px;
	font-weight: 600;
}
html body.ec-site button.button.alt:hover,
html body.ec-site a.button.alt:hover,
html body.ec-site button.single_add_to_cart_button:hover { background: var(--ec-brand-dark); color: #FFFFFF; }
html body.ec-site div.product p.price,
html body.ec-site div.product span.price,
html body.ec-site ul.products li.product .price { color: var(--ec-text); }
html body.ec-site div.product form.cart .qty { height: 48px; width: 70px; border: 1px solid var(--ec-line-2); border-radius: 10px; text-align: center; }

/* "In stock at supplier" wording */
html body.ec-site .stock.available-on-backorder,
html body.ec-site .backorder_notification,
.ec-loop-stock {
	color: var(--ec-orange-text);
	font-size: 14px;
	font-weight: 600;
}
html body.ec-site ul.products li.product .ec-loop-stock { margin: 4px 18px 8px; font-size: 13px; }

/* =========================================================
   New homepage (1.1.0)
   ========================================================= */

/* 1. Banner slider */
.ec-banner-wrap { padding-top: 24px; }
.ec-banner {
	position: relative; aspect-ratio: 16 / 5; overflow: hidden;
	border-radius: 18px; background: var(--ec-soft-2);
}
.ec-banner__slide {
	position: absolute; inset: 0; display: block;
	opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s;
}
.ec-banner__slide.is-active { opacity: 1; visibility: visible; }
.ec-banner__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; display: block; }
body.ec-site .ec-banner__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 44px; height: 44px; min-height: 0; padding: 0; margin: 0;
	border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ec-text);
	display: flex; align-items: center; justify-content: center; cursor: pointer;
	box-shadow: 0 2px 10px rgba(11, 22, 48, .2);
}
body.ec-site .ec-banner__arrow:hover { background: #FFFFFF; color: var(--ec-brand); }
.ec-banner__arrow--prev { left: 16px; }
.ec-banner__arrow--next { right: 16px; }
.ec-banner__dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 8px; }
body.ec-site .ec-banner__dot {
	width: 10px; height: 10px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 5px;
	background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(11, 22, 48, .15); cursor: pointer;
	transition: width .2s ease;
}
body.ec-site .ec-banner__dot.is-active { width: 28px; background: #FFFFFF; }
@media (max-width: 600px) {
	.ec-banner-wrap { padding-top: 16px; }
	.ec-banner { border-radius: 12px; }
	body.ec-site .ec-banner__arrow { width: 34px; height: 34px; }
	.ec-banner__arrow--prev { left: 8px; }
	.ec-banner__arrow--next { right: 8px; }
	.ec-banner__dots { bottom: 6px; }
}

/* 2. Product tabs */
.ec-tabs { padding-top: 40px; }
.ec-tabs__bar { border-bottom: 1px solid var(--ec-line); margin-bottom: 24px; }
.ec-tabs__list { display: flex; flex-wrap: wrap; gap: 4px; }
body.ec-site .ec-tabs__tab {
	height: 50px; min-height: 0; padding: 0 18px; margin: 0; border: 0; border-radius: 0;
	background: transparent; color: var(--ec-muted); box-shadow: none;
	font-family: var(--ec-display); font-size: 18px; font-weight: 700; cursor: pointer;
}
body.ec-site .ec-tabs__tab:hover { background: transparent; color: var(--ec-text); }
body.ec-site .ec-tabs__tab[aria-selected="true"] { color: var(--ec-text); box-shadow: inset 0 -3px 0 var(--ec-brand); }
.ec-tabs__panel[hidden] { display: none; }
.ec-tabs__panel:focus { outline: none; }
.ec-tabs__more { margin: 18px 0 0; text-align: right; font-weight: 600; }
body.ec-site .ec-tabs__fallback-title { margin: 0 0 16px; font-size: 24px; }
/* Without JavaScript: no tab bar, every list shown with its own heading */
html:not(.ec-js) .ec-tabs__bar { display: none; }
.ec-js .ec-tabs__fallback-title { display: none; }
.ec-js .ec-tabs:not(.is-ready) .ec-tabs__panel ~ .ec-tabs__panel { display: none; }
@media (max-width: 600px) {
	body.ec-site .ec-tabs__tab { font-size: 15px; padding: 0 10px; height: 44px; }
}

/* Product grids on the homepage: as many columns as fit */
html body.ec-site .ec-home .ec-products ul.products {
	display: grid !important; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
	gap: 16px !important; margin: 0 !important; padding: 0 !important;
}
html body.ec-site .ec-home .ec-products ul.products::before,
html body.ec-site .ec-home .ec-products ul.products::after { display: none; }
html body.ec-site .ec-home .ec-products ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
@media (max-width: 480px) {
	html body.ec-site .ec-home .ec-products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
}

/* 3. Categories with product counts */
.ec-cats { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ec-cat__img { height: 130px; }
.ec-cat__name { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; }
.ec-cat__name span { color: var(--ec-text); }
.ec-cat__name .ec-cat__count { font-size: 13px; font-weight: 400; color: var(--ec-muted); }

/* 4. Why shop with us + Google reviews */
body.ec-site .ec-section__title--solo { margin: 0 0 22px; }
.ec-section .ec-usps { padding: 0; }
.ec-reviews { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.ec-reviews p { margin: 0; }
.ec-reviews__score {
	flex: 1 1 220px; padding: 22px; border: 1px solid var(--ec-line); border-radius: var(--ec-radius);
	display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.ec-reviews__label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ec-muted); }
.ec-reviews__rating { font-family: var(--ec-display); font-size: 40px; font-weight: 700; line-height: 1; }
.ec-reviews__count { font-size: 14px; color: var(--ec-muted); }
body.ec-site .ec-reviews__link { margin-top: 6px; font-weight: 600; font-size: 14px; text-decoration: none; }
.ec-stars { color: #B45309; letter-spacing: 2px; font-size: 18px; line-height: 1; }
.ec-review {
	flex: 2 1 260px; margin: 0; padding: 22px;
	background: var(--ec-soft); border: 1px solid var(--ec-line); border-radius: var(--ec-radius);
	display: flex; flex-direction: column; gap: 10px;
}
body.ec-site .ec-review blockquote {
	margin: 0; padding: 0; border: 0; quotes: none;
	font-size: 15px; font-style: normal; color: var(--ec-text-2); background: transparent;
}
body.ec-site .ec-review blockquote::before, body.ec-site .ec-review blockquote::after { content: none; }
.ec-review figcaption { margin-top: auto; font-size: 13px; color: var(--ec-muted); }
.ec-review figcaption strong { color: var(--ec-text); font-weight: 600; }

/* 6. Brands as clickable tiles */
.ec-brands { padding: 0; margin: 0; text-align: left; border-top: 1px solid var(--ec-line); border-bottom: 1px solid var(--ec-line); }
.ec-brands__list {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
	padding-top: 28px; padding-bottom: 28px; margin-top: 0; margin-bottom: 0; list-style: none;
	font-family: var(--ec-font); font-size: 14px;
}
body.ec-site .ec-brands__list a {
	display: flex; align-items: center; justify-content: center;
	min-width: 130px; height: 60px; padding: 0 18px; box-sizing: border-box;
	border: 1px solid var(--ec-line); border-radius: 10px;
	font-family: var(--ec-display); font-weight: 600; font-size: 16px; color: var(--ec-text); text-decoration: none;
}
body.ec-site .ec-brands__list a:hover { border-color: var(--ec-brand); color: var(--ec-brand); }

/* 7. About */
.ec-about { padding-top: 48px; }
body.ec-site .ec-about__title { margin: 0 0 12px; font-size: 22px; }
.ec-about p { max-width: 820px; margin: 0 0 12px; color: var(--ec-text-2); }
.ec-banner__slide--photo img { object-position: 50% 12%; }
html body.ec-site .ec-brands__list { margin: 0; padding: 28px 0; }
body.ec-site .ec-tabs__more a, body.ec-site .ec-section__more { text-decoration: none; }
@media (max-width: 600px) {
	.ec-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.ec-cat__img { height: 96px; }
	.ec-cat__name { padding: 10px 12px; font-size: 14px; }
	.ec-brands__list a { min-width: 0; }
	body.ec-site .ec-brands__list a { min-width: 0; height: 48px; font-size: 14px; padding: 0 14px; }
}

/* Google reviews – compact, like Google's own cards (1.1.2) */
.ec-stars { position: relative; display: inline-block; color: #D3DAE6; font-size: 15px; line-height: 1; letter-spacing: 1px; white-space: nowrap; vertical-align: -1px; }
.ec-stars__fill { position: absolute; left: 0; top: 0; overflow: hidden; color: #E8A317; }
.ec-greviews { margin-top: 28px; }
.ec-greviews__head {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
	margin: 0 0 12px; font-size: 14px; color: var(--ec-muted);
}
.ec-greviews__label { font-weight: 600; color: var(--ec-text); }
.ec-greviews__rating { font-size: 16px; color: var(--ec-text); }
body.ec-site .ec-greviews__all { margin-left: auto; font-weight: 600; text-decoration: none; }
.ec-greviews__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.ec-greview {
	margin: 0; padding: 14px 16px; background: #FFFFFF;
	border: 1px solid var(--ec-line); border-radius: 12px;
	display: flex; flex-direction: column; gap: 8px; font-size: 14px;
}
.ec-greview__top { display: flex; align-items: center; gap: 10px; }
.ec-greview__avatar {
	width: 32px; height: 32px; flex: none; border-radius: 50%;
	background: var(--ec-soft-2); color: var(--ec-brand);
	display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.ec-greview__who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.ec-greview__who strong { font-weight: 600; color: var(--ec-text); font-size: 14px; }
.ec-greview__meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ec-muted); }
.ec-greview__meta .ec-stars { font-size: 12px; }
body.ec-site .ec-greview__text {
	margin: 0; padding: 0; border: 0; background: transparent; font-style: normal; quotes: none;
	font-size: 14px; line-height: 1.5; color: var(--ec-text-2);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
body.ec-site .ec-greview__text::before, body.ec-site .ec-greview__text::after { content: none; }
body.ec-site .ec-greview__more { font-size: 13px; font-weight: 600; text-decoration: none; }
@media (max-width: 600px) {
	body.ec-site .ec-greviews__all { margin-left: 0; flex-basis: 100%; }
}

/* 6. Shop by Brand – grid of tiles, with logos when set (1.1.3) */
.ec-brandgrid__list {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px;
	margin: 0; padding: 0; list-style: none;
}
.ec-brandgrid__list li { margin: 0; }
body.ec-site .ec-brandgrid__tile {
	display: flex; align-items: center; justify-content: center; height: 64px; padding: 8px 14px;
	box-sizing: border-box; border: 1px solid var(--ec-line); border-radius: 10px; background: #FFFFFF;
	font-family: var(--ec-display); font-weight: 600; font-size: 15px; color: var(--ec-text);
	text-align: center; line-height: 1.2; text-decoration: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
body.ec-site .ec-brandgrid__tile:hover { border-color: var(--ec-brand); color: var(--ec-brand); box-shadow: 0 4px 14px rgba(11, 22, 48, .08); }
.ec-brandgrid__tile img { max-width: 100%; max-height: 40px; width: auto; height: auto; object-fit: contain; display: block; filter: grayscale(1); opacity: .8; transition: filter .15s ease, opacity .15s ease; }
.ec-brandgrid__tile:hover img { filter: none; opacity: 1; }
@media (max-width: 600px) {
	.ec-brandgrid__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	body.ec-site .ec-brandgrid__tile { height: 52px; font-size: 13px; padding: 6px 8px; }
}

/* Reviews: "Read more" opens the whole review in its card (1.1.4) */
.ec-greviews__list { align-items: start; }
body.ec-site .ec-greview__toggle {
	display: none; align-self: flex-start; min-height: 0; height: auto; padding: 0; margin: 0;
	border: 0; border-radius: 0; background: transparent; box-shadow: none;
	color: var(--ec-link); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
body.ec-site .ec-greview__toggle:hover { background: transparent; color: var(--ec-brand); text-decoration: underline; }
.ec-greview.is-clamped .ec-greview__toggle,
.ec-greview.is-open .ec-greview__toggle { display: inline-block; }
body.ec-site .ec-greview.is-open .ec-greview__text { -webkit-line-clamp: unset; display: block; overflow: visible; }
/* Without JavaScript nothing can be expanded, so show the full text */
html:not(.ec-js) body.ec-site .ec-greview__text { -webkit-line-clamp: unset; display: block; overflow: visible; }

/* About: just the "Have a question?" line (1.1.5) */
.ec-about--line { padding-top: 8px; padding-bottom: 48px; text-align: center; }
.ec-about--line p { max-width: none; margin: 0; }

/* WooCommerce store notice as a floating message at the bottom (1.1.7)
   Turn it on in Appearance → Customize → WooCommerce → Store Notice. */
html body.ec-site p.woocommerce-store-notice,
html body.ec-site p.demo_store {
	position: fixed; top: auto; bottom: 16px; left: 50%; right: auto; transform: translateX(-50%);
	z-index: 9999; width: calc(100% - 32px); max-width: 760px; box-sizing: border-box;
	margin: 0; padding: 14px 52px 14px 20px;
	background: var(--ec-navy); color: #FFFFFF;
	border-radius: 14px; box-shadow: 0 10px 30px rgba(11, 22, 48, .28);
	font-family: var(--ec-font); font-size: 15px; line-height: 1.45; text-align: left;
}
html body.ec-site p.woocommerce-store-notice a,
html body.ec-site p.demo_store a { color: var(--ec-orange); font-weight: 600; }
html body.ec-site .woocommerce-store-notice__dismiss-link {
	position: absolute; top: 50%; right: 10px; transform: translateY(-50%);
	width: 34px; height: 34px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 0; color: #FFFFFF !important; text-decoration: none;
	background: rgba(255, 255, 255, .12);
}
html body.ec-site .woocommerce-store-notice__dismiss-link::before { content: "\00D7"; font-size: 22px; line-height: 1; }
html body.ec-site .woocommerce-store-notice__dismiss-link:hover { background: rgba(255, 255, 255, .25); }
@media (max-width: 600px) {
	html body.ec-site p.woocommerce-store-notice,
	html body.ec-site p.demo_store { bottom: 10px; font-size: 14px; padding: 12px 48px 12px 14px; }
}

/* Store notice: force the floating position over Kadence's own store-notice styles (1.1.8) */
html body p.woocommerce-store-notice,
html body p.demo_store,
html body.admin-bar p.woocommerce-store-notice,
html body.admin-bar p.demo_store {
	position: fixed !important;
	top: auto !important;
	bottom: 16px !important;
	left: 16px !important;
	right: 16px !important;
	transform: none !important;
	width: auto !important;
	max-width: 760px !important;
	margin: 0 auto !important;
	box-sizing: border-box !important;
	z-index: 99999 !important;
}
/* Kadence may add space at the top of the page for the notice – remove it */
html body.woocommerce-demo-store { margin-top: 0 !important; padding-top: 0 !important; }
html body.woocommerce-demo-store #wrapper { margin-top: 0 !important; }
@media (max-width: 600px) {
	html body p.woocommerce-store-notice,
	html body p.demo_store { left: 10px !important; right: 10px !important; bottom: 10px !important; }
}
