/*
Theme Name: MECAWHEEL Kadence
Description: Kadence child theme for the MECAWHEEL industrial product catalog.
Author: MECAWHEEL
Template: kadence
Version: 0.1.0
Text Domain: mecawheel-kadence
*/

:root {
	--mw-ink: #18212b;
	--mw-muted: #5f6872;
	--mw-line: #d9dee3;
	--mw-surface: #f4f6f7;
	--mw-accent: #d89212;
	--mw-accent-dark: #a96900;
	--mw-green: #315f50;
}

body {
	color: var(--mw-ink);
	background: #fff;
}

a {
	text-underline-offset: 3px;
}

.site-main-header-wrap {
	border-bottom: 1px solid var(--mw-line);
}

.site-branding .site-title {
	font-weight: 800;
	letter-spacing: 0;
}

.main-navigation .primary-menu-container > ul > li.menu-item > a {
	font-weight: 650;
}

.main-navigation .primary-menu-container > ul > li.mw-nav-quote > a {
	margin-left: 10px;
	padding: 9px 14px;
	border-radius: 4px;
	color: #171a1d;
	background: var(--mw-accent);
}

.main-navigation .primary-menu-container > ul > li.mw-nav-quote > a:hover,
.main-navigation .primary-menu-container > ul > li.mw-nav-quote > a:focus {
	color: #171a1d;
	background: #efb742;
}

.mobile-navigation .mw-nav-quote > a {
	color: #171a1d;
	background: var(--mw-accent);
}

.home .entry-hero,
.home .entry-header {
	display: none;
}

.home .content-area {
	margin: 0;
}

.home .content-container.site-container {
	max-width: none;
	padding: 0;
}

.home .entry.single-entry,
.home .entry-content-wrap {
	padding: 0;
	box-shadow: none;
}

.mw-home {
	overflow: hidden;
	background: #fff;
}

.mw-inner {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}

.mw-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 520px;
	color: #fff;
	background-color: var(--mw-ink);
	background-image: var(--mw-hero-image);
	background-position: center;
	background-size: cover;
}

.mw-hero::before {
	position: absolute;
	inset: 0;
	content: "";
	background: rgba(15, 22, 29, 0.72);
}

.mw-hero__content {
	position: relative;
	z-index: 1;
	max-width: 730px;
	padding-block: 72px;
}

.mw-eyebrow {
	margin: 0 0 16px;
	color: #f5c259;
	font-size: 13px;
	font-weight: 750;
	letter-spacing: 0;
	text-transform: uppercase;
}

.mw-hero h1 {
	max-width: 700px;
	margin: 0;
	color: #fff;
	font-size: 52px;
	line-height: 1.08;
}

.mw-hero__lead {
	max-width: 650px;
	margin: 22px 0 0;
	color: #e8ecef;
	font-size: 19px;
	line-height: 1.65;
}

.mw-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.mw-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 20px;
	border: 1px solid var(--mw-accent);
	border-radius: 4px;
	color: #171a1d;
	background: var(--mw-accent);
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none;
}

.mw-button:hover,
.mw-button:focus {
	border-color: #efb742;
	color: #171a1d;
	background: #efb742;
}

.mw-button--secondary {
	border-color: rgba(255, 255, 255, 0.7);
	color: #fff;
	background: transparent;
}

.mw-button--secondary:hover,
.mw-button--secondary:focus {
	border-color: #fff;
	color: var(--mw-ink);
	background: #fff;
}

.mw-trust {
	border-bottom: 1px solid var(--mw-line);
	background: #fff;
}

.mw-trust__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mw-trust__item {
	padding: 23px 26px;
	border-right: 1px solid var(--mw-line);
}

.mw-trust__item:first-child {
	padding-left: 0;
}

.mw-trust__item:last-child {
	border-right: 0;
}

.mw-trust strong,
.mw-trust span {
	display: block;
}

.mw-trust strong {
	font-size: 16px;
}

.mw-trust span {
	margin-top: 3px;
	color: var(--mw-muted);
	font-size: 14px;
}

.mw-section {
	padding-block: 64px;
}

.mw-section--muted {
	background: var(--mw-surface);
}

.mw-section__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.mw-section__head h2 {
	margin: 0;
	font-size: 34px;
	line-height: 1.2;
}

.mw-section__head p {
	max-width: 620px;
	margin: 8px 0 0;
	color: var(--mw-muted);
}

.mw-text-link {
	flex: none;
	color: var(--mw-green);
	font-weight: 750;
	text-decoration: none;
}

.mw-category-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.mw-category {
	min-height: 170px;
	padding: 28px;
	border: 1px solid var(--mw-line);
	border-top: 4px solid var(--mw-accent);
	border-radius: 6px;
	color: var(--mw-ink);
	background: #fff;
	text-decoration: none;
}

.mw-category:hover,
.mw-category:focus {
	border-color: #aeb6bd;
	color: var(--mw-ink);
	transform: translateY(-2px);
}

.mw-category h3 {
	margin: 0;
	font-size: 22px;
}

.mw-category p {
	margin: 10px 0 0;
	color: var(--mw-muted);
	font-size: 15px;
}

.mw-category span {
	display: inline-block;
	margin-top: 18px;
	color: var(--mw-green);
	font-weight: 750;
}

.mw-product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.mw-product-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--mw-line);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}

.mw-product-card:hover {
	border-color: #aeb6bd;
}

.mw-product-card__image {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	padding: 14px;
	background: #fff;
}

.mw-product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mw-product-card.mw-small-source-image .mw-product-card__image img,
.woocommerce ul.products li.product.mw-small-source-image .woocommerce-loop-image-link img {
	width: auto;
	height: auto;
	max-width: 250px;
	max-height: 250px;
}

.mw-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px;
	border-top: 1px solid var(--mw-line);
}

.mw-product-card__category {
	margin: 0 0 8px;
	color: var(--mw-green);
	font-size: 12px;
	font-weight: 750;
	text-transform: uppercase;
}

.mw-product-card h3 {
	display: -webkit-box;
	min-height: 4.2em;
	margin: 0;
	overflow: hidden;
	font-size: 17px;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.mw-product-card h3 a {
	color: var(--mw-ink);
	text-decoration: none;
}

.mw-product-card__link {
	margin-top: auto;
	padding-top: 18px;
	color: var(--mw-accent-dark);
	font-size: 14px;
	font-weight: 750;
	text-decoration: none;
}

.mw-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 32px;
	padding: 42px;
	border-radius: 6px;
	color: #fff;
	background: var(--mw-ink);
}

.mw-cta h2 {
	margin: 0;
	color: #fff;
	font-size: 30px;
}

.mw-cta p {
	margin: 8px 0 0;
	color: #cbd2d8;
}

.woocommerce ul.products li.product {
	border: 1px solid var(--mw-line);
	border-radius: 6px;
	box-shadow: none;
	overflow: hidden;
}

.woocommerce ul.products li.product .woocommerce-loop-image-link {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	padding: 14px;
	background: #fff;
}

.woocommerce ul.products li.product .woocommerce-loop-image-link img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
}

.woocommerce ul.products li.product .product-details {
	border-top: 1px solid var(--mw-line);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	display: -webkit-box;
	min-height: 4.2em;
	overflow: hidden;
	font-size: 16px;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.single-product div.product .woocommerce-product-gallery {
	max-width: 480px;
}

.single-product div.product .woocommerce-product-gallery__image {
	display: grid;
	place-items: center;
}

.single-product div.product .woocommerce-product-gallery__image img {
	max-height: 480px;
	object-fit: contain;
}

.single-product.mw-small-product-image div.product .woocommerce-product-gallery__image img {
	width: auto !important;
	height: auto !important;
	max-width: 250px !important;
	max-height: 250px !important;
}

.single-product div.product .summary {
	padding-top: 8px;
}

.mw-product-actions {
	margin-top: 24px;
	padding-top: 22px;
	border-top: 1px solid var(--mw-line);
}

.mw-product-actions .mw-button,
.mw-inquiry summary {
	min-height: 42px;
	padding: 9px 16px;
}

.mw-inquiry summary {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	list-style: none;
	cursor: pointer;
}

.mw-inquiry summary::-webkit-details-marker {
	display: none;
}

.mw-inquiry[open] summary {
	margin-bottom: 18px;
}

.mw-inquiry__panel {
	max-width: 720px;
	padding: 24px;
	border: 1px solid var(--mw-line);
	border-radius: 6px;
	background: var(--mw-surface);
}

.mw-inquiry__panel h2 {
	margin: 0;
	font-size: 24px;
}

.mw-inquiry__intro {
	margin: 8px 0 20px;
	color: var(--mw-muted);
}

.mw-inquiry-form {
	position: relative;
}

.mw-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.mw-form-grid p {
	margin: 0;
}

.mw-form-grid__wide {
	grid-column: 1 / -1;
}

.mw-form-grid label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 700;
}

.mw-form-grid input,
.mw-form-grid textarea {
	width: 100%;
	margin: 0;
	border: 1px solid #aeb7bf;
	border-radius: 4px;
	color: var(--mw-ink);
	background: #fff;
}

.mw-form-grid input {
	min-height: 44px;
}

.mw-form-grid textarea {
	min-height: 130px;
	resize: vertical;
}

.mw-form-grid input:focus,
.mw-form-grid textarea:focus {
	border-color: var(--mw-green);
	box-shadow: 0 0 0 2px rgba(49, 95, 80, 0.18);
}

.mw-form-submit {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 18px;
}

.mw-form-submit p {
	margin: 0;
	color: var(--mw-muted);
	font-size: 13px;
}

.mw-form-message {
	margin: 0 0 18px;
	padding: 12px 14px;
	border-left: 4px solid;
	background: #fff;
}

.mw-form-message--success {
	border-color: var(--mw-green);
}

.mw-form-message--error {
	border-color: #b42318;
}

.mw-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.mw-product-overview {
	margin-bottom: 24px;
	padding: 16px 18px;
	border-left: 4px solid var(--mw-green);
	color: var(--mw-ink);
	background: var(--mw-surface);
}

.site-footer {
	border-top: 1px solid #2e3943;
}

.mw-custom-page .entry-hero,
.mw-custom-page .entry-header {
	display: none;
}

.mw-custom-page .content-area {
	margin: 0;
}

.mw-custom-page .content-container.site-container {
	max-width: none;
	padding: 0;
}

.mw-custom-page .entry.single-entry,
.mw-custom-page .entry-content-wrap {
	padding: 0;
	box-shadow: none;
}

.mw-page {
	background: #fff;
}

.mw-page-hero {
	padding-block: 72px;
	color: #fff;
	background: var(--mw-ink);
}

.mw-page-hero h1 {
	max-width: 780px;
	margin: 0;
	color: #fff;
	font-size: 46px;
	line-height: 1.12;
}

.mw-page-hero > .mw-inner > p:last-child {
	max-width: 720px;
	margin: 18px 0 0;
	color: #cbd2d8;
	font-size: 18px;
}

.mw-about-grid {
	display: grid;
	grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
	gap: 54px;
	align-items: center;
}

.mw-about-image {
	display: grid;
	place-items: center;
	min-height: 420px;
	padding: 28px;
	border: 1px solid var(--mw-line);
	background: var(--mw-surface);
}

.mw-about-image img {
	width: 100%;
	max-height: 430px;
	object-fit: contain;
}

.mw-prose h2 {
	margin: 0 0 18px;
	font-size: 34px;
	line-height: 1.25;
}

.mw-prose p:not(.mw-eyebrow) {
	color: var(--mw-muted);
}

.mw-feature-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.mw-feature {
	padding: 26px;
	border-left: 4px solid var(--mw-accent);
	background: #fff;
}

.mw-feature h3 {
	margin: 0;
	font-size: 20px;
}

.mw-feature p {
	margin: 9px 0 0;
	color: var(--mw-muted);
	font-size: 15px;
}

.mw-partner-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.mw-partner-card {
	display: flex;
	min-height: 145px;
	flex-direction: column;
	padding: 22px;
	border: 1px solid var(--mw-line);
	border-radius: 6px;
	color: var(--mw-ink);
	background: #fff;
	text-decoration: none;
}

.mw-partner-card:hover,
.mw-partner-card:focus {
	border-color: #aeb6bd;
	color: var(--mw-ink);
	transform: translateY(-2px);
}

.mw-partner-card span {
	color: var(--mw-green);
	font-size: 12px;
	font-weight: 750;
	text-transform: uppercase;
}

.mw-partner-card strong {
	margin-top: 12px;
	font-size: 18px;
}

.mw-partner-card small {
	margin-top: auto;
	padding-top: 14px;
	color: var(--mw-accent-dark);
	font-weight: 750;
}

.mw-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 28px;
}

.mw-contact-panel,
.mw-inquiry-panel {
	padding: 36px;
	border: 1px solid var(--mw-line);
	border-radius: 6px;
}

.mw-contact-panel {
	border-top: 4px solid var(--mw-accent);
}

.mw-inquiry-panel {
	background: var(--mw-surface);
}

.mw-contact-panel h2,
.mw-inquiry-panel h2 {
	margin: 0 0 22px;
	font-size: 29px;
}

.mw-contact-list {
	margin: 0 0 26px;
}

.mw-contact-list > div {
	display: grid;
	grid-template-columns: 125px minmax(0, 1fr);
	gap: 16px;
	padding-block: 13px;
	border-bottom: 1px solid var(--mw-line);
}

.mw-contact-list dt {
	color: var(--mw-muted);
	font-size: 14px;
	font-weight: 750;
}

.mw-contact-list dd {
	margin: 0;
}

.mw-contact-list a {
	color: var(--mw-green);
	font-weight: 700;
}

.mw-check-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mw-check-list li {
	position: relative;
	padding: 12px 0 12px 28px;
	border-bottom: 1px solid var(--mw-line);
}

.mw-check-list li::before {
	position: absolute;
	left: 0;
	color: var(--mw-accent-dark);
	content: "\2713";
	font-weight: 800;
}

.mw-contact-note {
	margin: 24px 0 0;
	color: var(--mw-muted);
	font-size: 14px;
}

.mw-shop-intro {
	margin-bottom: 28px;
	padding: 20px 24px;
	border-left: 4px solid var(--mw-accent);
	background: var(--mw-surface);
}

.mw-shop-intro__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.mw-shop-intro p {
	margin: 0;
}

.mw-shop-help {
	flex: none;
	color: var(--mw-green);
	font-weight: 750;
}

.mw-catalog-filter {
	display: grid;
	grid-template-columns: minmax(220px, 1.4fr) minmax(190px, 0.8fr) auto auto;
	gap: 10px;
	align-items: center;
	margin-top: 18px;
}

.mw-catalog-filter input,
.mw-catalog-filter select {
	width: 100%;
	height: 46px;
	margin: 0;
	border: 1px solid #b8c0c7;
	border-radius: 4px;
	color: var(--mw-ink);
	background: #fff;
}

.mw-catalog-filter input:focus,
.mw-catalog-filter select:focus {
	border-color: var(--mw-green);
	box-shadow: 0 0 0 2px rgba(49, 95, 80, 0.18);
}

.mw-catalog-filter .mw-button {
	height: 46px;
	min-height: 46px;
	border: 0;
	cursor: pointer;
}

.mw-filter-clear {
	padding: 10px 4px;
	color: var(--mw-green);
	font-weight: 750;
}

.mw-shop-categories {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin-top: 18px;
	background: var(--mw-line);
}

.mw-shop-category {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 54px;
	padding: 12px 16px;
	color: var(--mw-ink);
	background: #fff;
	font-weight: 750;
	text-decoration: none;
}

.mw-shop-category:hover,
.mw-shop-category:focus {
	color: var(--mw-green);
	background: #f7f8f5;
}

.mw-no-results {
	margin: 0 0 32px;
	padding: 28px;
	border: 1px solid var(--mw-line);
	border-radius: 6px;
	background: #fff;
}

.mw-no-results h2 {
	margin: 0;
	font-size: 26px;
}

.mw-no-results p {
	max-width: 720px;
	margin: 10px 0 0;
	color: var(--mw-muted);
}

.mw-no-results__actions {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 20px;
}

body.post-type-archive-product ul.products li.product-category {
	display: none !important;
}

@media (min-width: 768px) {
	.single-product div.product {
		display: grid;
		grid-template-columns: minmax(300px, 480px) minmax(0, 1fr);
		column-gap: 56px;
		align-items: start;
	}

	.single-product div.product .woocommerce-product-gallery,
	.single-product div.product .summary {
		float: none;
		width: auto;
		margin: 0;
	}

	.single-product div.product .woocommerce-tabs,
	.single-product div.product .related {
		grid-column: 1 / -1;
	}
}

@media (max-width: 1024px) {
	.mw-hero h1 {
		font-size: 44px;
	}

	.mw-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.site-branding a,
	.mobile-toggle-open-container .menu-toggle-open,
	.woocommerce .woocommerce-ordering select,
	.mw-shop-help,
	.mw-filter-clear {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	.mobile-toggle-open-container .menu-toggle-open {
		justify-content: center;
		min-width: 44px;
	}

	.mw-inner {
		width: min(calc(100vw - 28px), 1180px);
	}

	.mw-hero {
		min-height: 450px;
		background-image: var(--mw-hero-mobile-image, var(--mw-hero-image));
		background-position: 62% center;
	}

	.mw-hero__content {
		padding-block: 52px;
	}

	.mw-hero h1 {
		font-size: 36px;
	}

	.mw-hero__lead {
		font-size: 17px;
	}

	.mw-trust__grid,
	.mw-category-grid,
	.mw-product-grid,
	.mw-cta {
		grid-template-columns: 1fr;
	}

	.mw-trust__item,
	.mw-trust__item:first-child {
		padding: 17px 0;
		border-right: 0;
		border-bottom: 1px solid var(--mw-line);
	}

	.mw-trust__item:last-child {
		border-bottom: 0;
	}

	.mw-section {
		padding-block: 46px;
	}

	.mw-section__head {
		display: block;
	}

	.mw-section__head h2 {
		font-size: 29px;
	}

	.mw-section__head .mw-text-link {
		display: inline-block;
		margin-top: 14px;
	}

	.mw-cta {
		padding: 28px;
	}

	.mw-page-hero {
		padding-block: 52px;
	}

	.mw-page-hero h1 {
		font-size: 36px;
	}

	.mw-about-grid,
	.mw-feature-grid,
	.mw-partner-grid,
	.mw-contact-grid {
		grid-template-columns: 1fr;
	}

	.mw-about-image {
		min-height: 300px;
	}

	.mw-contact-panel,
	.mw-inquiry-panel {
		padding: 26px;
	}

	.mw-contact-list > div {
		grid-template-columns: 1fr;
		gap: 3px;
	}

	.mw-shop-intro {
		padding: 18px;
	}

	.mw-shop-intro__top {
		display: block;
	}

	.mw-shop-help {
		margin-top: 12px;
	}

	.mw-catalog-filter {
		grid-template-columns: 1fr;
	}

	.mw-catalog-filter .mw-button {
		width: 100%;
	}

	.mw-no-results__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.mw-inquiry__panel {
		padding: 18px;
	}

	.mw-form-grid {
		grid-template-columns: 1fr;
	}

	.mw-form-grid__wide {
		grid-column: auto;
	}

	.mw-form-submit {
		align-items: stretch;
		flex-direction: column;
	}

	.mw-form-submit .mw-button {
		width: 100%;
		min-height: 46px;
	}

	.mw-shop-categories {
		grid-template-columns: 1fr;
	}

	.single-product div.product .woocommerce-product-gallery {
		max-width: 390px;
		margin-inline: auto;
	}
}
