/* =========================================================
   8th Core Technologies — main stylesheet
   Palette from company profile: black base, royal blue accents
   ========================================================= */

:root {
	--ec-bg: #05060f;
	--ec-bg-soft: #0b0e1f;
	--ec-surface: #10142b;
	--ec-surface-2: #171c3a;
	--ec-border: rgba(143, 162, 255, 0.16);
	--ec-blue: #3d55e8;
	--ec-blue-bright: #4f6df5;
	--ec-blue-soft: #8fa2ff;
	--ec-text: #eef1ff;
	--ec-text-dim: #a7aecd;
	--ec-radius: 14px;
	--ec-font: "Poppins", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
	--ec-header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ec-header-h) + 12px); }

body {
	margin: 0;
	background: var(--ec-bg);
	color: var(--ec-text);
	font-family: var(--ec-font);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--ec-blue-soft); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #fff; }

h1, h2, h3, h4, h5, h6 {
	line-height: 1.25;
	color: #fff;
	font-weight: 600;
	margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }

.container {
	width: min(1200px, 92vw);
	margin-inline: auto;
}

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute !important; word-wrap: normal !important;
}

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--ec-blue); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn, .button, button, input[type="submit"],
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit {
	display: inline-block;
	background: linear-gradient(135deg, var(--ec-blue) 0%, var(--ec-blue-bright) 100%);
	color: #fff;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 12px 28px;
	font-family: var(--ec-font);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover, .button:hover, button:hover, input[type="submit"]:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce #respond input#submit:hover {
	color: #fff;
	background: linear-gradient(135deg, var(--ec-blue-bright) 0%, var(--ec-blue) 100%);
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(61, 85, 232, 0.35);
}

.btn-ghost {
	background: transparent;
	border-color: var(--ec-border);
	color: var(--ec-text);
}
.btn-ghost:hover { background: rgba(79, 109, 245, 0.12); box-shadow: none; }

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(5, 6, 15, 0.82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
	border-bottom-color: var(--ec-border);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: var(--ec-header-h);
}

.site-branding { flex-shrink: 0; }
.site-branding img { max-height: 52px; width: auto; }

.site-logo-text { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 1.05rem; }
.logo-mark {
	display: inline-grid; place-items: center;
	width: 40px; height: 40px; border-radius: 12px;
	background: linear-gradient(135deg, var(--ec-blue) 0%, #2233aa 100%);
	color: #fff; font-weight: 700; font-size: 1.2rem;
	box-shadow: 0 4px 18px rgba(61, 85, 232, 0.45);
}
.logo-words strong { color: #fff; }
.logo-words { color: var(--ec-text-dim); font-weight: 400; }

.main-navigation { margin-left: auto; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-navigation li { position: relative; }
.main-navigation a {
	display: block; padding: 10px 14px; color: var(--ec-text-dim);
	font-weight: 500; font-size: 0.95rem; border-radius: 8px;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a { color: #fff; background: rgba(79, 109, 245, 0.12); }

/* Dropdowns */
.main-navigation ul ul {
	position: absolute; top: 100%; left: 0; min-width: 220px;
	flex-direction: column; gap: 0;
	background: var(--ec-surface);
	border: 1px solid var(--ec-border);
	border-radius: 12px; padding: 8px;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(4px); }

.menu-toggle { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-cart-link { position: relative; display: inline-flex; color: var(--ec-text); padding: 6px; }
.cart-count {
	position: absolute; top: -4px; right: -6px;
	min-width: 18px; height: 18px; padding: 0 4px;
	display: grid; place-items: center;
	background: var(--ec-blue-bright); color: #fff;
	font-size: 0.68rem; font-weight: 700; border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: calc(100vh - var(--ec-header-h));
	display: flex;
	align-items: center;
	overflow: hidden;
	background:
		radial-gradient(1000px 500px at 80% -10%, rgba(61, 85, 232, 0.28), transparent 60%),
		radial-gradient(800px 500px at 10% 110%, rgba(34, 51, 170, 0.25), transparent 60%),
		var(--ec-bg);
}

.hero-particles { position: absolute; inset: 0; z-index: 1; }
.hero-particles canvas { display: block; }

.hero-inner { position: relative; z-index: 2; padding: 90px 0; text-align: center; }

.hero-logo { margin-bottom: 26px; }
.hero-logo-img {
	width: clamp(180px, 24vw, 280px);
	height: auto;
	border-radius: 50%;
	filter: drop-shadow(0 0 40px rgba(79, 109, 245, 0.45));
	animation: ec-hero-logo-float 5s ease-in-out infinite;
}
@keyframes ec-hero-logo-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
	.hero-logo-img { animation: none; }
}

.hero-kicker {
	display: inline-block;
	margin: 0 0 18px;
	padding: 8px 18px;
	border: 1px solid var(--ec-border);
	border-radius: 999px;
	background: rgba(16, 20, 43, 0.6);
	color: var(--ec-blue-soft);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hero-title { margin-bottom: 20px; }

.hero-typed-wrap { display: inline-block; min-height: 1.3em; }
.hero-typed {
	background: linear-gradient(90deg, var(--ec-blue-bright), var(--ec-blue-soft));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.typed-cursor { color: var(--ec-blue-bright); font-weight: 300; }

.hero-subtext {
	max-width: 680px;
	margin: 0 auto 34px;
	color: var(--ec-text-dim);
	font-size: 1.05rem;
}

.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.hero-stats {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: clamp(20px, 5vw, 64px);
	flex-wrap: wrap;
	margin: 56px 0 0;
	padding: 0;
}
.hero-stats li { display: grid; gap: 2px; }
.hero-stats strong { color: #fff; font-size: 1.15rem; }
.hero-stats span { color: var(--ec-text-dim); font-size: 0.85rem; }

.hero-scroll-cue {
	position: absolute; bottom: 26px; left: 50%; z-index: 2;
	width: 24px; height: 38px;
	border: 2px solid var(--ec-border); border-radius: 14px;
	transform: translateX(-50%);
}
.hero-scroll-cue::after {
	content: ""; position: absolute; top: 7px; left: 50%;
	width: 4px; height: 8px; border-radius: 4px;
	background: var(--ec-blue-bright);
	transform: translateX(-50%);
	animation: ec-scroll 1.8s ease-in-out infinite;
}
@keyframes ec-scroll {
	0% { opacity: 1; transform: translate(-50%, 0); }
	70% { opacity: 0; transform: translate(-50%, 12px); }
	100% { opacity: 0; transform: translate(-50%, 0); }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section:nth-of-type(even) { background: var(--ec-bg-soft); }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-kicker {
	margin: 0 0 10px;
	color: var(--ec-blue-bright);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
	background: linear-gradient(160deg, var(--ec-surface) 0%, var(--ec-bg-soft) 100%);
	border: 1px solid var(--ec-border);
	border-radius: var(--ec-radius);
	padding: 30px 26px;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
	transform: translateY(-6px);
	border-color: rgba(79, 109, 245, 0.45);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.card p { color: var(--ec-text-dim); font-size: 0.94rem; margin-bottom: 0; }

.card-icon {
	display: inline-grid; place-items: center;
	width: 54px; height: 54px; margin-bottom: 18px;
	border-radius: 14px;
	background: rgba(79, 109, 245, 0.14);
	border: 1px solid rgba(79, 109, 245, 0.3);
	color: var(--ec-blue-soft);
}

.brand-card {
	display: grid; gap: 6px; align-content: center;
	text-align: center;
	background: var(--ec-surface);
	border: 1px solid var(--ec-border);
	border-radius: var(--ec-radius);
	padding: 28px 16px;
	transition: transform 0.25s ease, border-color 0.25s ease;
}
.brand-card:hover { transform: translateY(-4px); border-color: rgba(79, 109, 245, 0.45); }
.brand-logo {
	display: grid;
	place-items: center;
	height: 140px;
	margin-bottom: 14px;
	padding: 16px;
	background: #fff;
	border-radius: 12px;
}
.brand-logo img {
	max-height: 108px;
	max-width: 100%;
	width: auto;
	object-fit: contain;
}
.brand-logo-text { font-size: 1.6rem; font-weight: 700; color: var(--ec-blue); }
.brand-card strong { color: #fff; font-size: 1.05rem; letter-spacing: 0.08em; }
.brand-card span { color: var(--ec-text-dim); font-size: 0.78rem; }

.section-cta { text-align: center; margin: 44px 0 0; }

/* ---------- About section ---------- */
.about-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 44px;
	align-items: start;
}
.about-narrative p {
	color: var(--ec-text-dim);
	font-size: 1.02rem;
	line-height: 1.85;
	margin: 0 0 1.1em;
}
.about-narrative p:first-child::first-letter {
	color: var(--ec-blue-bright);
	font-size: 3.1em;
	font-weight: 700;
	float: left;
	line-height: 0.85;
	padding-right: 10px;
}
.about-badges {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin: 28px 0 0;
	padding: 0;
}
.about-badges li {
	display: grid;
	gap: 2px;
	padding: 16px 18px;
	background: var(--ec-surface);
	border: 1px solid var(--ec-border);
	border-radius: 14px;
}
.about-badges strong { color: var(--ec-blue-soft); font-size: 1.02rem; }
.about-badges span { color: var(--ec-text-dim); font-size: 0.8rem; }
.about-side { display: grid; gap: 18px; }
.about-card { padding: 26px 24px; }
.about-card .card-icon { width: 46px; height: 46px; margin-bottom: 12px; }

@media (max-width: 900px) {
	.about-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
	.about-badges { grid-template-columns: 1fr; }
}

/* Reveal-on-scroll */
.will-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.will-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.will-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Our Clients carousel ---------- */
.clients { overflow: hidden; }
.clients-carousel {
	display: flex;
	width: max-content;
	gap: 22px;
	padding: 6px 0 4px;
	animation: ec-clients-scroll 60s linear infinite;
}
.clients-carousel:hover { animation-play-state: paused; }
.clients-track {
	display: flex;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-shrink: 0;
}
/* Every card is the exact same size regardless of logo or name length. */
.client-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	width: 320px;
	flex: 0 0 320px;
	padding: 26px 20px 22px;
	background: var(--ec-surface);
	border: 1px solid var(--ec-border);
	border-radius: 18px;
	transition: transform 0.25s ease, border-color 0.25s ease;
}
.client-card:hover { transform: translateY(-4px); border-color: rgba(79, 109, 245, 0.45); }
.client-logo {
	display: grid;
	place-items: center;
	width: 100%;
	height: 180px;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
}
.client-logo img {
	max-width: 86%;
	max-height: 152px;
	width: auto;
	height: auto;
	object-fit: contain;
}
.client-initials {
	display: grid;
	place-items: center;
	width: 92px;
	height: 92px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--ec-blue) 0%, var(--ec-blue-bright) 100%);
	color: #fff;
	font-weight: 700;
	font-size: 1.9rem;
	letter-spacing: 0.03em;
}
.client-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 2.7em;
	color: var(--ec-text-dim);
	font-size: 0.94rem;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
}
@keyframes ec-clients-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(calc(-50% - 11px)); }
}
@media (prefers-reduced-motion: reduce) {
	.clients-carousel { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
	.clients-carousel .clients-track[aria-hidden="true"] { display: none; }
	.clients-carousel .clients-track { flex-wrap: wrap; justify-content: center; }
}

[data-theme="light"] .client-logo { border: 1px solid var(--ec-border); }

/* ---------- Contact CTA ---------- */
.contact-cta {
	background:
		radial-gradient(700px 320px at 85% 20%, rgba(61, 85, 232, 0.3), transparent 65%),
		var(--ec-surface);
	border-top: 1px solid var(--ec-border);
	border-bottom: 1px solid var(--ec-border);
}
.contact-cta-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 32px; flex-wrap: wrap;
}
.contact-cta h2 { margin-bottom: 8px; }
.contact-cta p { color: var(--ec-text-dim); margin: 0; }
.contact-cta-details { text-align: right; }
.contact-address { margin-top: 12px !important; max-width: 340px; font-size: 0.88rem; }

/* ---------- Content pages / blog ---------- */
.site-main { min-height: 50vh; }
.page-content-wrap, .archive-wrap { padding: 72px 0; }

.page-header .page-title { margin-bottom: 8px; }
.archive-description { color: var(--ec-text-dim); }

.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }

article.post-card {
	background: var(--ec-surface);
	border: 1px solid var(--ec-border);
	border-radius: var(--ec-radius);
	overflow: hidden;
	margin-bottom: 28px;
}
article.post-card .post-card-body { padding: 26px; }
article.post-card .entry-meta { color: var(--ec-text-dim); font-size: 0.82rem; }

.pagination, .woocommerce nav.woocommerce-pagination { text-align: center; margin-top: 40px; }
.pagination .page-numbers,
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: inline-block; padding: 8px 14px; margin: 0 3px;
	background: var(--ec-surface); color: var(--ec-text);
	border: 1px solid var(--ec-border); border-radius: 8px;
}
.pagination .current,
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ec-blue); border-color: var(--ec-blue); color: #fff; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], textarea, select {
	width: 100%;
	background: var(--ec-bg-soft);
	border: 1px solid var(--ec-border);
	border-radius: 10px;
	color: var(--ec-text);
	padding: 12px 16px;
	font-family: var(--ec-font);
	font-size: 0.95rem;
}
input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--ec-blue-bright);
	box-shadow: 0 0 0 3px rgba(79, 109, 245, 0.2);
}

/* ---------- WooCommerce: modern shop ---------- */
.shop-main { padding: 0 0 80px; }

/* Shop hero */
.shop-hero {
	background:
		radial-gradient(900px 360px at 85% -20%, rgba(61, 85, 232, 0.28), transparent 65%),
		radial-gradient(700px 300px at 5% 120%, rgba(34, 51, 170, 0.2), transparent 60%),
		var(--ec-bg-soft);
	border-bottom: 1px solid var(--ec-border);
	padding: 56px 0 44px;
	margin-bottom: 26px;
}
.shop-title { margin: 10px 0 8px; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.shop-description { color: var(--ec-text-dim); max-width: 640px; margin: 0; }

.shop-breadcrumb, .product-breadcrumb-wrap .woocommerce-breadcrumb {
	font-size: 0.82rem;
	color: var(--ec-text-dim);
	letter-spacing: 0.04em;
}
.shop-breadcrumb a, .product-breadcrumb-wrap .woocommerce-breadcrumb a { color: var(--ec-blue-soft); }
.crumb-sep { margin: 0 8px; opacity: 0.5; }
.product-breadcrumb-wrap { padding: 26px 0 4px; }

/* Filter bar: category + brand pill rows */
.shop-filterbar {
	display: grid;
	gap: 14px;
	margin: 0 0 30px;
	padding: 20px 22px;
	background: var(--ec-surface);
	border: 1px solid var(--ec-border);
	border-radius: 16px;
}
.filter-row { display: flex; align-items: baseline; gap: 16px; }
.filter-label {
	flex-shrink: 0;
	min-width: 74px;
	color: var(--ec-text-dim);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.shop-cats {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
@media (max-width: 640px) {
	.filter-row { flex-direction: column; gap: 8px; }
}
.shop-cat-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	border: 1px solid var(--ec-border);
	border-radius: 999px;
	background: var(--ec-bg-soft);
	color: var(--ec-text-dim);
	font-size: 0.86rem;
	font-weight: 500;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.shop-cat-pill:hover { color: #fff; border-color: rgba(79, 109, 245, 0.5); transform: translateY(-1px); }
.shop-cat-pill.is-active {
	background: linear-gradient(135deg, var(--ec-blue) 0%, var(--ec-blue-bright) 100%);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 6px 20px rgba(61, 85, 232, 0.35);
}
.pill-count { font-size: 0.72rem; opacity: 0.75; }

/* Toolbar (result count + sorting) */
.woocommerce .woocommerce-result-count { color: var(--ec-text-dim); font-size: 0.88rem; margin: 8px 0 24px; }
.woocommerce .woocommerce-ordering { margin: 0 0 24px; }
.woocommerce .woocommerce-ordering select {
	width: auto;
	padding: 10px 38px 10px 16px;
	border-radius: 999px;
	font-size: 0.86rem;
	cursor: pointer;
}

/* Product grid — CSS Grid so all cards in a row share the same height
   (WooCommerce's default float layout lets each card size independently). */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px;
	margin: 0 0 44px;
	padding: 0;
	list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	clear: none !important;
}
@media (max-width: 1024px) {
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 480px) {
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: 1fr; }
}

/* Product cards — equal height, square white image area, eyebrow, view button */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--ec-surface);
	border: 1px solid var(--ec-border);
	border-radius: 18px;
	padding: 0 0 22px;
	overflow: hidden;
	text-align: left;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.woocommerce ul.products li.product:hover {
	transform: translateY(-6px);
	border-color: rgba(79, 109, 245, 0.5);
	box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}
.woocommerce ul.products li.product img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #fff;
	padding: 22px;
	margin: 0 0 16px;
	transition: transform 0.35s ease;
}
.woocommerce ul.products li.product:hover img { transform: scale(1.045); }
.loop-eyebrow {
	display: block;
	padding: 0 18px;
	margin-bottom: 4px;
	color: var(--ec-blue-bright);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	flex: 1 1 auto;
	color: #fff;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.45;
	padding: 0 18px 10px;
}
.woocommerce ul.products li.product .price { color: var(--ec-blue-soft); font-weight: 600; padding: 0 18px; }
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .btn-view {
	align-self: flex-start;
	margin: 6px 18px 0;
}
.btn-view {
	background: transparent;
	border: 1px solid var(--ec-border);
	color: var(--ec-text);
	padding: 10px 22px;
	font-size: 0.86rem;
	box-shadow: none;
}
.btn-view:hover {
	background: linear-gradient(135deg, var(--ec-blue) 0%, var(--ec-blue-bright) 100%);
	border-color: transparent;
	color: #fff;
}
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
	position: absolute;
	top: 14px; left: 14px; right: auto;
	z-index: 2;
	background: var(--ec-blue-bright); color: #fff;
	min-height: auto; min-width: auto; line-height: 1;
	padding: 8px 12px; border-radius: 999px;
	margin: 0;
}

/* ---------- Single product: modern layout ---------- */
.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
	padding-top: 18px;
}
.single-product div.product .woocommerce-product-gallery {
	position: sticky;
	top: calc(var(--ec-header-h) + 24px);
	width: 100% !important;
	float: none !important;
	background: #fff;
	border: 1px solid var(--ec-border);
	border-radius: 20px;
	padding: 28px;
}
.single-product div.product .woocommerce-product-gallery img { object-fit: contain; }
.single-product div.product .woocommerce-product-gallery .flex-viewport { border-radius: 12px; }
.single-product div.product div.summary {
	width: 100% !important;
	float: none !important;
	margin: 0;
}
.single-product div.product .woocommerce-tabs,
.single-product div.product .related.products,
.single-product div.product .up-sells {
	grid-column: 1 / -1;
	width: 100%;
	float: none;
	clear: both;
}

.product-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.product-chip {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--ec-border);
	border-radius: 999px;
	background: var(--ec-surface);
	color: var(--ec-text-dim);
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.product-chip:hover { color: #fff; border-color: rgba(79, 109, 245, 0.5); }
.product-chip.chip-brand {
	background: rgba(79, 109, 245, 0.14);
	border-color: rgba(79, 109, 245, 0.35);
	color: var(--ec-blue-soft);
}

.woocommerce div.product .product_title {
	color: #fff;
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	line-height: 1.25;
	margin-bottom: 14px;
}
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ec-blue-soft); font-size: 1.4rem; }
.woocommerce div.product .woocommerce-product-details__short-description {
	color: var(--ec-text-dim);
	font-size: 1.02rem;
	line-height: 1.75;
	padding: 18px 0;
	border-top: 1px solid var(--ec-border);
	border-bottom: 1px solid var(--ec-border);
	margin-bottom: 6px;
}
.catalog-inquire-note { color: var(--ec-text-dim); font-size: 0.85rem; }
.woocommerce div.product .product_meta {
	display: grid;
	gap: 6px;
	margin-top: 20px;
	padding: 18px 20px;
	background: var(--ec-surface);
	border: 1px solid var(--ec-border);
	border-radius: 14px;
	font-size: 0.86rem;
	color: var(--ec-text-dim);
}
.woocommerce div.product .product_meta > span { display: block; }
.woocommerce div.product .product_meta a { color: var(--ec-blue-soft); }

/* Tabs as pills */
.woocommerce div.product .woocommerce-tabs { margin-top: 56px; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 10px;
	padding: 0;
	margin: 0 0 26px;
	overflow-x: auto;
}
.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; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: var(--ec-surface);
	border: 1px solid var(--ec-border);
	border-radius: 999px;
	margin: 0;
	padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	color: var(--ec-text-dim);
	font-weight: 600;
	font-size: 0.9rem;
	padding: 11px 24px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	background: linear-gradient(135deg, var(--ec-blue) 0%, var(--ec-blue-bright) 100%);
	border-color: transparent;
	box-shadow: 0 6px 20px rgba(61, 85, 232, 0.35);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
.woocommerce div.product .woocommerce-tabs .panel {
	margin: 0;
	background: var(--ec-surface);
	border: 1px solid var(--ec-border);
	border-radius: 18px;
	padding: 30px 32px;
}
.woocommerce div.product .woocommerce-tabs .panel h2:first-of-type { font-size: 1.2rem; margin-bottom: 14px; }

/* Specification table */
.woocommerce table.woocommerce-product-attributes {
	border: 0;
	border-collapse: collapse;
	margin: 0;
}
.woocommerce table.woocommerce-product-attributes th,
.woocommerce table.woocommerce-product-attributes td {
	border: 0;
	border-bottom: 1px solid var(--ec-border);
	padding: 13px 10px;
	font-style: normal;
	background: transparent;
}
.woocommerce table.woocommerce-product-attributes tr:last-child th,
.woocommerce table.woocommerce-product-attributes tr:last-child td { border-bottom: 0; }
.woocommerce table.woocommerce-product-attributes th {
	color: var(--ec-text-dim);
	font-weight: 500;
	width: 38%;
}
.woocommerce table.woocommerce-product-attributes td { color: var(--ec-text); }
.woocommerce table.woocommerce-product-attributes td p { margin: 0; }

/* Related products */
.single-product .related.products, .single-product .up-sells { margin-top: 64px; }
.single-product .related.products > h2, .single-product .up-sells > h2 {
	font-size: 1.5rem;
	margin-bottom: 28px;
}

@media (max-width: 900px) {
	.single-product div.product { grid-template-columns: 1fr; gap: 30px; }
	.single-product div.product .woocommerce-product-gallery { position: static; }
}

.woocommerce table.shop_table {
	border: 1px solid var(--ec-border); border-radius: var(--ec-radius);
	border-collapse: separate; overflow: hidden;
}
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--ec-border); color: var(--ec-text); }
.woocommerce table.shop_table thead th { background: var(--ec-surface); }

.woocommerce-message, .woocommerce-info, .woocommerce-error {
	background: var(--ec-surface); color: var(--ec-text);
	border-top-color: var(--ec-blue-bright); border-radius: 0 0 10px 10px;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--ec-blue-bright); }

.woocommerce .woocommerce-result-count { color: var(--ec-text-dim); }
.woocommerce .woocommerce-ordering select { width: auto; }

.woocommerce form .form-row .input-text, .woocommerce form .form-row select { padding: 12px 16px; }
.woocommerce-checkout #payment {
	background: var(--ec-surface); border-radius: var(--ec-radius);
}
.woocommerce-checkout #payment div.payment_box {
	background: var(--ec-surface-2); color: var(--ec-text-dim);
}
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--ec-surface-2); }

.woocommerce .quantity .qty { width: 80px; }

.woocommerce .star-rating span::before, .woocommerce .star-rating::before { color: var(--ec-blue-soft); }

/* ---------- Catalog (ocular) mode ---------- */
.catalog-price-note { color: var(--ec-text-dim); font-size: 0.85rem; font-style: italic; }
.catalog-inquire { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }

/* ---------- Legal Documents page ---------- */
.legal-page { padding-bottom: 90px; }
.legal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 26px;
}
/* Equal-height cards: the figure stretches to the grid row, the button fills it. */
.legal-card { margin: 0; display: flex; }
.legal-card-open {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	height: 100%;
	width: 100%;
	padding: 0;
	background: var(--ec-surface);
	border: 1px solid var(--ec-border);
	border-radius: 18px;
	overflow: hidden;
	cursor: zoom-in;
	text-align: left;
	box-shadow: none;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.legal-card-open:hover {
	transform: translateY(-6px);
	border-color: rgba(79, 109, 245, 0.5);
	box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
	background: var(--ec-surface);
}
.legal-card-img {
	position: relative;
	display: block;
	flex-shrink: 0;
	height: 320px;
	background: #fff;
	padding: 16px;
	overflow: hidden;
}
.legal-card-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: top;
	transition: transform 0.35s ease;
}
.legal-card-open:hover .legal-card-img img { transform: scale(1.03); }
.legal-zoom {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--ec-blue) 0%, var(--ec-blue-bright) 100%);
	color: #fff;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.legal-card-open:hover .legal-zoom { opacity: 1; transform: none; }
.legal-card-body {
	display: grid;
	gap: 4px;
	padding: 16px 18px 18px;
}
.legal-card-body strong { color: var(--ec-text); font-size: 0.95rem; line-height: 1.4; }
.legal-card-body span { color: var(--ec-text-dim); font-size: 0.8rem; }
.legal-empty { color: var(--ec-text-dim); text-align: center; padding: 60px 0; }

/* Lightbox */
body.lightbox-open { overflow: hidden; }
.legal-lightbox {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background: rgba(3, 4, 12, 0.92);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	padding: 30px;
}
.legal-lightbox[hidden] { display: none; }
.lightbox-stage {
	margin: 0;
	max-width: min(1100px, 86vw);
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.lightbox-stage img {
	max-width: 100%;
	max-height: 82vh;
	object-fit: contain;
	border-radius: 10px;
	background: #fff;
}
.lightbox-caption { color: #eef1ff; text-align: center; font-size: 0.95rem; }
.lightbox-close, .lightbox-nav {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #fff;
	border-radius: 50%;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background 0.2s ease;
	padding: 0;
	box-shadow: none;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(79, 109, 245, 0.5); transform: none; box-shadow: none; }
.lightbox-close {
	position: absolute;
	top: 22px;
	right: 26px;
	width: 46px;
	height: 46px;
	font-size: 1.6rem;
	line-height: 1;
}
.lightbox-nav { width: 52px; height: 52px; font-size: 1.9rem; flex-shrink: 0; }
@media (max-width: 640px) {
	.legal-lightbox { padding: 14px; gap: 8px; }
	.lightbox-nav { width: 42px; height: 42px; }
}

/* ---------- Footer ---------- */
.site-footer {
	background: #03040b;
	border-top: 1px solid var(--ec-border);
	margin-top: 0;
}
.footer-widgets {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 36px;
	padding: 70px 0 50px;
}
.footer-logo { display: inline-block; margin-bottom: 14px; }
.footer-logo-img {
	width: 120px;
	height: auto;
	border-radius: 50%;
	filter: drop-shadow(0 0 24px rgba(79, 109, 245, 0.35));
}

.footer-column .widget-title {
	font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--ec-blue-soft); margin-bottom: 16px;
}
.footer-column p { color: var(--ec-text-dim); font-size: 0.9rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-list li { color: var(--ec-text-dim); font-size: 0.9rem; }

.site-info { border-top: 1px solid rgba(143, 162, 255, 0.08); padding: 22px 0; }
.site-info-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; flex-wrap: wrap;
	color: var(--ec-text-dim); font-size: 0.85rem;
}
.footer-menu { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.footer-menu a { color: var(--ec-text-dim); font-size: 0.85rem; }
.footer-menu a:hover { color: #fff; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 56px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body {
	background: var(--ec-surface); border: 1px solid var(--ec-border);
	border-radius: var(--ec-radius); padding: 20px; margin-bottom: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.grid-5 { grid-template-columns: repeat(3, 1fr); }
	.grid-4 { grid-template-columns: repeat(3, 1fr); }
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.footer-widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 782px) {
	.section { padding: 64px 0; }

	.menu-toggle {
		display: inline-flex; flex-direction: column; gap: 5px;
		background: transparent; border: 1px solid var(--ec-border);
		border-radius: 10px; padding: 11px 10px;
		box-shadow: none;
	}
	.menu-toggle:hover { transform: none; box-shadow: none; }
	.menu-toggle-bar { width: 20px; height: 2px; background: #fff; border-radius: 2px; }

	.main-navigation ul#primary-menu {
		display: none;
		position: absolute; top: var(--ec-header-h); left: 0; right: 0;
		flex-direction: column; gap: 0;
		background: var(--ec-bg-soft);
		border-bottom: 1px solid var(--ec-border);
		padding: 12px 4vw 20px;
	}
	.main-navigation.is-open ul#primary-menu { display: flex; }
	.main-navigation ul ul {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; background: transparent; padding-left: 16px;
	}

	.hero-inner { padding: 64px 0; }
	.contact-cta-inner { flex-direction: column; text-align: center; }
	.contact-cta-details { text-align: center; }
}

@media (max-width: 560px) {
	.grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
	.footer-widgets { grid-template-columns: 1fr; }
	.hero-stats { gap: 20px; }
}

/* ---------- Theme toggle button ---------- */
.theme-toggle {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--ec-border);
	border-radius: 50%;
	color: var(--ec-text);
	cursor: pointer;
}
.theme-toggle:hover { background: rgba(79, 109, 245, 0.12); transform: none; box-shadow: none; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- Light mode ---------- */
:root[data-theme="light"] {
	--ec-bg: #f4f6fe;
	--ec-bg-soft: #eaeefb;
	--ec-surface: #ffffff;
	--ec-surface-2: #f0f3fd;
	--ec-border: rgba(38, 54, 132, 0.16);
	--ec-text: #1c2246;
	--ec-text-dim: #59618a;
}

[data-theme="light"] body { background: var(--ec-bg); color: var(--ec-text); }
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3,
[data-theme="light"] h4, [data-theme="light"] h5, [data-theme="light"] h6 { color: #0d1233; }
[data-theme="light"] a { color: var(--ec-blue); }
[data-theme="light"] a:hover { color: var(--ec-blue-bright); }

/* Keep solid buttons white-on-blue — the generic light-mode link color must not win. */
[data-theme="light"] .btn, [data-theme="light"] .button,
[data-theme="light"] button, [data-theme="light"] input[type="submit"],
[data-theme="light"] .woocommerce a.button, [data-theme="light"] .woocommerce button.button,
[data-theme="light"] .woocommerce input.button, [data-theme="light"] .woocommerce #respond input#submit,
[data-theme="light"] .btn:hover, [data-theme="light"] .button:hover,
[data-theme="light"] .woocommerce a.button:hover { color: #fff; }
[data-theme="light"] .theme-toggle, [data-theme="light"] .theme-toggle:hover { color: #0d1233; }

[data-theme="light"] .site-header { background: rgba(255, 255, 255, 0.85); }
[data-theme="light"] .site-header.is-scrolled { box-shadow: 0 8px 30px rgba(20, 30, 90, 0.12); }
[data-theme="light"] .site-logo-text, [data-theme="light"] .logo-words strong { color: #0d1233; }
[data-theme="light"] .main-navigation a { color: var(--ec-text-dim); }
[data-theme="light"] .main-navigation a:hover,
[data-theme="light"] .main-navigation .current-menu-item > a,
[data-theme="light"] .main-navigation .current_page_item > a { color: var(--ec-blue); background: rgba(61, 85, 232, 0.08); }
[data-theme="light"] .main-navigation ul ul { box-shadow: 0 18px 50px rgba(20, 30, 90, 0.16); }
[data-theme="light"] .menu-toggle-bar { background: #0d1233; }
[data-theme="light"] .header-cart-link { color: #0d1233; }

[data-theme="light"] .hero {
	background:
		radial-gradient(1000px 500px at 80% -10%, rgba(79, 109, 245, 0.18), transparent 60%),
		radial-gradient(800px 500px at 10% 110%, rgba(61, 85, 232, 0.14), transparent 60%),
		var(--ec-bg);
}
[data-theme="light"] .hero-kicker { background: rgba(255, 255, 255, 0.75); color: var(--ec-blue); }
[data-theme="light"] .hero-stats strong { color: #0d1233; }
[data-theme="light"] .btn-ghost { color: #0d1233; }
[data-theme="light"] .btn-ghost:hover { background: rgba(61, 85, 232, 0.1); }

[data-theme="light"] .section:nth-of-type(even) { background: var(--ec-bg-soft); }
[data-theme="light"] .card { background: var(--ec-surface); }
[data-theme="light"] .card:hover { box-shadow: 0 20px 50px rgba(20, 30, 90, 0.14); }
[data-theme="light"] .brand-logo { border: 1px solid var(--ec-border); }

[data-theme="light"] .contact-cta {
	background:
		radial-gradient(700px 320px at 85% 20%, rgba(79, 109, 245, 0.14), transparent 65%),
		var(--ec-surface);
}

[data-theme="light"] .site-footer { background: #e6eaf9; }
[data-theme="light"] .site-info { border-top-color: rgba(38, 54, 132, 0.1); }
[data-theme="light"] .footer-menu a:hover { color: var(--ec-blue); }

[data-theme="light"] .shop-hero {
	background:
		radial-gradient(900px 360px at 85% -20%, rgba(79, 109, 245, 0.16), transparent 65%),
		radial-gradient(700px 300px at 5% 120%, rgba(61, 85, 232, 0.1), transparent 60%),
		var(--ec-bg-soft);
}
[data-theme="light"] .shop-cat-pill:hover { color: var(--ec-blue); }
[data-theme="light"] .product-chip:hover { color: var(--ec-blue); }
[data-theme="light"] .btn-view { color: #0d1233; }
[data-theme="light"] .btn-view:hover { color: #fff; }
[data-theme="light"] .single-product div.product .woocommerce-product-gallery { box-shadow: 0 10px 30px rgba(20, 30, 90, 0.06); }

[data-theme="light"] .woocommerce ul.products li.product .woocommerce-loop-product__title,
[data-theme="light"] .woocommerce div.product .product_title { color: #0d1233; }
[data-theme="light"] .woocommerce ul.products li.product:hover { box-shadow: 0 18px 44px rgba(20, 30, 90, 0.14); }
[data-theme="light"] .woocommerce ul.products li.product .price,
[data-theme="light"] .woocommerce div.product p.price,
[data-theme="light"] .woocommerce div.product span.price { color: var(--ec-blue); }

/* ---------- Elementor compatibility ---------- */
.elementor-page .site-main { padding: 0; }
.elementor-kit-inherit body { background: var(--ec-bg); }
