/*
Theme Name: LMD Auto
Theme URI: https://lmdauto.shop/
Author: LMD Auto
Author URI: https://lmdauto.shop/
Description: Custom block theme for LMD Auto's B2B vehicle and auto parts inquiry website.
Version: 0.4.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: lmdauto-theme
*/

:root {
	--lmd-midnight: #071722;
	--lmd-midnight-2: #0d2433;
	--lmd-blue: #1769e0;
	--lmd-blue-dark: #0d4fad;
	--lmd-teal: #12b8a6;
	--lmd-amber: #f59e0b;
	--lmd-ink: #17212b;
	--lmd-steel: #637180;
	--lmd-mist: #f3f6f8;
	--lmd-line: #dfe6eb;
	--lmd-white: #fff;
	--lmd-success: #16865b;
	--lmd-danger: #c53b38;
	--lmd-radius-sm: 8px;
	--lmd-radius: 14px;
	--lmd-radius-lg: 24px;
	--lmd-shadow: 0 18px 45px rgba(7, 23, 34, 0.09);
	--lmd-max: 1240px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--lmd-white);
	color: var(--lmd-ink);
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
}

a {
	color: var(--lmd-blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--lmd-blue-dark);
}

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

button,
input,
select,
textarea {
	font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
	outline: 3px solid rgba(23, 105, 224, 0.35);
	outline-offset: 3px;
}

.lmd-container,
.lmd-narrow {
	margin-inline: auto;
}

.lmd-container {
	padding-inline: clamp(24px, 4vw, 72px);
	width: 100%;
}

.lmd-narrow {
	max-width: 820px;
	width: min(calc(100% - 40px), 820px);
}

.lmd-main > * {
	margin-inline: 0;
	max-width: none;
	width: 100%;
}

.lmd-main {
	min-height: 58vh;
}

.lmd-page-shell {
	padding: 64px 0 88px;
}

.lmd-page-shell > .wp-block-post-content {
	max-width: none;
	width: 100%;
}

.lmd-page-shell > .wp-block-post-content > :not(.lmd-section):not(.lmd-narrow) {
	margin-inline: clamp(24px, 4vw, 72px);
	max-width: none;
}

.lmd-page-title {
	background:
		radial-gradient(circle at 75% 25%, rgba(18, 184, 166, 0.15), transparent 30%),
		linear-gradient(135deg, var(--lmd-midnight), var(--lmd-midnight-2));
	color: var(--lmd-white);
	padding: 72px 0 58px;
}

.lmd-page-title h1 {
	color: inherit;
	font-size: clamp(2.1rem, 5vw, 4rem);
	line-height: 1.05;
	margin: 0;
}

.lmd-page-title p {
	color: #c7d6df;
	font-size: 1.1rem;
	margin: 16px 0 0;
	max-width: 760px;
}

.lmd-eyebrow {
	color: var(--lmd-blue);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	margin: 0 0 14px;
	text-transform: uppercase;
}

.lmd-section {
	padding: 88px 0;
}

.lmd-section--mist {
	background: var(--lmd-mist);
}

.lmd-section--dark {
	background: var(--lmd-midnight);
	color: var(--lmd-white);
}

.lmd-section--dark h2,
.lmd-section--dark h3 {
	color: var(--lmd-white);
}

.lmd-section-heading {
	margin-bottom: 38px;
	max-width: 760px;
}

.lmd-section-heading h2 {
	font-size: clamp(2rem, 4vw, 3.25rem);
	letter-spacing: -0.035em;
	line-height: 1.1;
	margin: 0 0 16px;
}

.lmd-section-heading p {
	color: var(--lmd-steel);
	font-size: 1.08rem;
	margin: 0;
}

.lmd-section--dark .lmd-section-heading p {
	color: #b7c8d3;
}

.lmd-grid {
	display: grid;
	gap: 24px;
}

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

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

.lmd-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lmd-card {
	background: var(--lmd-white);
	border: 1px solid var(--lmd-line);
	border-radius: var(--lmd-radius);
	color: var(--lmd-ink);
	overflow: hidden;
	padding: 28px;
}

.lmd-card--link {
	display: block;
	text-decoration: none;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.lmd-card--link:hover {
	border-color: rgba(23, 105, 224, 0.45);
	box-shadow: var(--lmd-shadow);
	color: var(--lmd-ink);
	transform: translateY(-4px);
}

.lmd-card h3 {
	font-size: 1.3rem;
	line-height: 1.25;
	margin: 16px 0 10px;
}

.lmd-card p {
	color: var(--lmd-steel);
	margin: 0;
}

.lmd-icon {
	align-items: center;
	background: rgba(23, 105, 224, 0.09);
	border-radius: 12px;
	color: var(--lmd-blue);
	display: inline-flex;
	font-size: 1.1rem;
	font-weight: 800;
	height: 46px;
	justify-content: center;
	width: 46px;
}

.lmd-button,
.wp-element-button,
button.lmd-button {
	align-items: center;
	background: var(--lmd-blue);
	border: 1px solid var(--lmd-blue);
	border-radius: var(--lmd-radius-sm);
	color: var(--lmd-white);
	cursor: pointer;
	display: inline-flex;
	font-weight: 750;
	gap: 8px;
	justify-content: center;
	line-height: 1.2;
	min-height: 48px;
	padding: 13px 20px;
	text-decoration: none;
	transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.lmd-button:hover,
.wp-element-button:hover {
	background: var(--lmd-blue-dark);
	border-color: var(--lmd-blue-dark);
	color: var(--lmd-white);
	transform: translateY(-1px);
}

.lmd-button--amber {
	background: var(--lmd-amber);
	border-color: var(--lmd-amber);
	color: #251701;
}

.lmd-button--amber:hover {
	background: #df8b05;
	border-color: #df8b05;
	color: #251701;
}

.lmd-button--outline {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.46);
	color: var(--lmd-white);
}

.lmd-button--outline:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--lmd-white);
}

.lmd-text-link {
	font-weight: 750;
	text-decoration: none;
}

/* Header */
.lmd-site-header {
	background: var(--lmd-white);
	box-shadow: 0 8px 24px rgba(7, 23, 34, 0.06);
	color: var(--lmd-ink);
	position: sticky;
	top: 0;
	z-index: 100;
}

.lmd-topbar {
	background: #173b86;
	color: var(--lmd-white);
	font-size: 0.78rem;
}

.lmd-topbar-inner {
	align-items: center;
	display: flex;
	justify-content: space-between;
	min-height: 36px;
}

.lmd-topbar a {
	color: #8fe8df;
	text-decoration: none;
}

.lmd-header-main {
	background: var(--lmd-white);
}

.admin-bar .lmd-site-header {
	top: 32px;
}

.lmd-header-inner {
	align-items: center;
	display: grid;
	gap: clamp(20px, 3vw, 44px);
	grid-template-columns: auto minmax(260px, 1fr) auto;
	min-height: 92px;
}

.lmd-brand {
	align-items: center;
	color: #0b356d;
	display: inline-flex;
	font-size: 1.08rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-decoration: none;
	white-space: nowrap;
}

.lmd-brand:hover {
	color: #0b356d;
}

.lmd-brand-mark {
	align-items: center;
	background: linear-gradient(135deg, var(--lmd-blue), var(--lmd-teal));
	border-radius: 9px 9px 13px 9px;
	display: inline-flex;
	height: 38px;
	justify-content: center;
	margin-right: 10px;
	position: relative;
	width: 46px;
}

.lmd-brand-mark::after {
	border-top: 2px solid rgba(255, 255, 255, 0.82);
	border-radius: 50%;
	bottom: 8px;
	content: "";
	left: 8px;
	position: absolute;
	transform: rotate(-7deg);
	width: 30px;
}

.lmd-nav {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.lmd-nav a {
	color: var(--lmd-ink);
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
}

.lmd-nav a:hover {
	color: var(--lmd-blue);
}

.lmd-global-search {
	align-items: stretch;
	border: 2px solid var(--lmd-blue);
	border-radius: 999px;
	display: flex;
	overflow: hidden;
}

.lmd-global-search input {
	background: transparent;
	border: 0;
	color: var(--lmd-ink);
	min-height: 48px;
	min-width: 0;
	padding: 10px 20px;
	width: 100%;
}

.lmd-global-search input:focus {
	outline: 0;
}

.lmd-global-search button {
	background: var(--lmd-blue);
	border: 0;
	color: var(--lmd-white);
	cursor: pointer;
	font-weight: 800;
	min-width: 112px;
	padding: 10px 22px;
}

.lmd-header-inquiry {
	align-items: center;
	color: var(--lmd-ink);
	display: flex;
	font-size: 0.85rem;
	font-weight: 750;
	gap: 9px;
	text-decoration: none;
	white-space: nowrap;
}

.lmd-header-inquiry strong {
	align-items: center;
	background: var(--lmd-blue);
	border-radius: 999px;
	color: var(--lmd-white);
	display: inline-flex;
	height: 28px;
	justify-content: center;
	min-width: 28px;
}

.lmd-header-nav {
	border-top: 1px solid var(--lmd-line);
	border-bottom: 1px solid var(--lmd-line);
}

.lmd-header-nav-inner {
	align-items: center;
	display: flex;
	gap: 38px;
	min-height: 54px;
}

.lmd-browse-link {
	color: var(--lmd-ink);
	font-size: 0.88rem;
	font-weight: 850;
	text-decoration: none;
	white-space: nowrap;
}

.lmd-mobile-nav {
	display: none;
}

/* Hero */
.lmd-hero {
	background:
		radial-gradient(circle at 82% 22%, rgba(18, 184, 166, 0.2), transparent 29%),
		radial-gradient(circle at 72% 68%, rgba(23, 105, 224, 0.22), transparent 36%),
		linear-gradient(135deg, #06141d 0%, #0a2434 58%, #071722 100%);
	color: var(--lmd-white);
	overflow: hidden;
	padding: 92px 0 82px;
	position: relative;
}

.lmd-hero::after {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 40px 40px;
	content: "";
	inset: 0;
	mask-image: linear-gradient(to bottom, black, transparent);
	pointer-events: none;
	position: absolute;
}

.lmd-market-hero {
	background:
		radial-gradient(circle at 78% 30%, rgba(23, 105, 224, 0.18), transparent 34%),
		linear-gradient(135deg, #f8fbff 0%, #eef4ff 58%, #e8f8f6 100%);
	overflow: hidden;
	padding: 84px 0;
}

.lmd-market-hero-grid {
	align-items: center;
	display: grid;
	gap: clamp(42px, 7vw, 110px);
	grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

.lmd-market-hero-copy h1 {
	color: #09274c;
	font-size: clamp(3rem, 6vw, 5.7rem);
	letter-spacing: -0.055em;
	line-height: 0.98;
	margin: 0 0 26px;
	max-width: 1080px;
}

.lmd-market-hero-copy > p:not(.lmd-eyebrow):not(.lmd-market-price-note) {
	color: #40546a;
	font-size: 1.16rem;
	max-width: 780px;
}

.lmd-market-price-note {
	color: var(--lmd-steel);
	font-size: 0.82rem;
	margin-top: 20px;
	max-width: 720px;
}

.lmd-market-hero-card {
	background: var(--lmd-white);
	border: 1px solid rgba(23, 105, 224, 0.15);
	border-radius: 26px;
	box-shadow: 0 28px 70px rgba(20, 64, 117, 0.15);
	padding: clamp(26px, 4vw, 44px);
}

.lmd-market-hero-stat {
	align-items: center;
	border-top: 1px solid var(--lmd-line);
	display: grid;
	gap: 18px;
	grid-template-columns: 72px 1fr;
	padding: 18px 0;
}

.lmd-market-hero-stat strong {
	color: var(--lmd-blue);
	font-size: 0.9rem;
	letter-spacing: 0.08em;
}

.lmd-market-hero-stat span {
	color: var(--lmd-steel);
	font-size: 0.92rem;
}

.lmd-market-trust {
	background: #102d62;
	color: var(--lmd-white);
}

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

.lmd-type-grid a {
	background:
		linear-gradient(145deg, rgba(7, 23, 34, 0.03), rgba(23, 105, 224, 0.12));
	border: 1px solid var(--lmd-line);
	border-radius: var(--lmd-radius);
	color: var(--lmd-ink);
	display: grid;
	min-height: 180px;
	padding: 28px;
	text-decoration: none;
}

.lmd-type-grid strong {
	font-size: 2rem;
	margin-top: auto;
}

.lmd-type-grid span {
	color: var(--lmd-steel);
}

.lmd-hero-grid {
	align-items: center;
	display: grid;
	gap: 54px;
	grid-template-columns: 1.08fr 0.92fr;
	position: relative;
	z-index: 1;
}

.lmd-hero h1 {
	color: var(--lmd-white);
	font-size: clamp(2.75rem, 6vw, 5.7rem);
	letter-spacing: -0.055em;
	line-height: 0.98;
	margin: 0;
	max-width: 820px;
}

.lmd-hero h1 span {
	color: #77e3d8;
}

.lmd-hero-copy > p {
	color: #c2d2db;
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	margin: 24px 0 30px;
	max-width: 690px;
}

.lmd-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.lmd-hero-panel {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--lmd-radius-lg);
	box-shadow: 0 35px 80px rgba(0, 0, 0, 0.26);
	padding: 32px;
}

.lmd-hero-panel h2 {
	color: var(--lmd-white);
	font-size: 1.45rem;
	margin: 0 0 20px;
}

.lmd-hero-checks {
	display: grid;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lmd-hero-checks li {
	align-items: flex-start;
	color: #d9e7ed;
	display: flex;
	gap: 11px;
}

.lmd-hero-checks li::before {
	color: #77e3d8;
	content: "✓";
	font-weight: 900;
}

.lmd-trust-strip {
	background: #0b202d;
	color: #d7e3e9;
	padding: 18px 0;
}

.lmd-trust-items {
	display: flex;
	flex-wrap: wrap;
	font-size: 0.9rem;
	font-weight: 700;
	gap: 18px 36px;
	justify-content: center;
	letter-spacing: 0.02em;
}

.lmd-process {
	counter-reset: steps;
}

.lmd-process .lmd-card {
	counter-increment: steps;
	position: relative;
}

.lmd-process .lmd-card::before {
	color: rgba(23, 105, 224, 0.15);
	content: "0" counter(steps);
	font-size: 2.2rem;
	font-weight: 900;
	position: absolute;
	right: 22px;
	top: 15px;
}

.lmd-cta-band {
	background:
		radial-gradient(circle at 90% 20%, rgba(18, 184, 166, 0.27), transparent 25%),
		linear-gradient(120deg, var(--lmd-blue-dark), var(--lmd-midnight));
	border-radius: var(--lmd-radius-lg);
	color: var(--lmd-white);
	display: grid;
	gap: 28px;
	grid-template-columns: 1fr auto;
	padding: 42px;
}

.lmd-cta-band h2 {
	color: var(--lmd-white);
	font-size: clamp(1.8rem, 3.5vw, 2.65rem);
	line-height: 1.12;
	margin: 0 0 10px;
}

.lmd-cta-band p {
	color: #c7d8e0;
	margin: 0;
}

.lmd-cta-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Catalog */
.lmd-catalog-header {
	background: var(--lmd-midnight);
	color: var(--lmd-white);
	padding: 66px 0 50px;
}

.lmd-catalog-header h1 {
	color: var(--lmd-white);
	font-size: clamp(2.25rem, 5vw, 4.25rem);
	letter-spacing: -0.04em;
	line-height: 1.04;
	margin: 0;
}

.lmd-catalog-header p {
	color: #bfd0da;
	font-size: 1.08rem;
	margin: 16px 0 0;
	max-width: 760px;
}

.lmd-catalog-shell {
	padding: 46px 0 86px;
}

.lmd-filter-form {
	align-items: end;
	background: var(--lmd-mist);
	border: 1px solid var(--lmd-line);
	border-radius: var(--lmd-radius);
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	margin-bottom: 34px;
	padding: 20px;
}

.lmd-field--search,
.lmd-price-filter {
	grid-column: span 2;
}

.lmd-price-filter > div {
	display: grid;
	gap: 8px;
	grid-template-columns: 1fr 1fr;
}

.lmd-filter-form > .lmd-button {
	align-self: end;
}

.lmd-field {
	display: grid;
	gap: 7px;
}

.lmd-field label {
	color: var(--lmd-ink);
	font-size: 0.82rem;
	font-weight: 750;
}

.lmd-field input,
.lmd-field select,
.lmd-field textarea {
	background: var(--lmd-white);
	border: 1px solid #cbd5dc;
	border-radius: var(--lmd-radius-sm);
	color: var(--lmd-ink);
	min-height: 46px;
	padding: 10px 12px;
	width: 100%;
}

.lmd-field textarea {
	min-height: 126px;
	resize: vertical;
}

.lmd-catalog-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lmd-product-card {
	background: var(--lmd-white);
	border: 1px solid var(--lmd-line);
	border-radius: var(--lmd-radius);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.lmd-product-media {
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, #e8eef2, #f8fafb);
	display: block;
	overflow: hidden;
	position: relative;
}

.lmd-part-card .lmd-product-media {
	aspect-ratio: 1 / 1;
}

.lmd-product-media img {
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
	width: 100%;
}

.lmd-product-card:hover .lmd-product-media img {
	transform: scale(1.025);
}

.lmd-product-placeholder {
	align-items: center;
	color: #80909b;
	display: flex;
	font-size: 0.85rem;
	font-weight: 750;
	height: 100%;
	justify-content: center;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lmd-badge {
	background: #eaf2fe;
	border-radius: 999px;
	color: var(--lmd-blue-dark);
	display: inline-flex;
	font-size: 0.72rem;
	font-weight: 800;
	padding: 5px 9px;
	text-transform: uppercase;
}

.lmd-badge--available {
	background: #e7f7ef;
	color: var(--lmd-success);
}

.lmd-badge--request {
	background: #fff4dd;
	color: #9a5c00;
}

.lmd-product-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px;
}

.lmd-product-brand {
	color: var(--lmd-steel);
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.lmd-product-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.lmd-product-card h2,
.lmd-product-card h3 {
	font-size: 1.28rem;
	line-height: 1.25;
	margin: 0 0 12px;
}

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

.lmd-spec-list {
	color: var(--lmd-steel);
	display: grid;
	font-size: 0.9rem;
	gap: 7px;
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.lmd-price {
	display: grid;
	gap: 2px;
	margin: 2px 0 16px;
}

.lmd-price > span {
	color: var(--lmd-steel);
	font-size: 0.72rem;
	font-weight: 750;
	text-transform: uppercase;
}

.lmd-price strong {
	color: var(--lmd-ink);
	font-size: 1.32rem;
	line-height: 1.15;
}

.lmd-price small {
	color: var(--lmd-steel);
}

.lmd-price--detail {
	border-top: 1px solid var(--lmd-line);
	border-bottom: 1px solid var(--lmd-line);
	margin: 24px 0;
	padding: 20px 0;
}

.lmd-price--detail strong {
	font-size: clamp(2rem, 4vw, 3rem);
}

.lmd-price--request strong {
	font-size: 1.08rem;
}

.lmd-price-disclaimer {
	color: var(--lmd-steel);
	max-width: 680px;
}

.lmd-product-actions {
	display: flex;
	gap: 9px;
	margin-top: auto;
}

.lmd-product-actions .lmd-button {
	flex: 1;
	font-size: 0.88rem;
	min-height: 42px;
	padding: 10px 12px;
}

.lmd-empty-state {
	background: var(--lmd-mist);
	border: 1px dashed #b9c7d0;
	border-radius: var(--lmd-radius);
	grid-column: 1 / -1;
	padding: 54px 28px;
	text-align: center;
}

.lmd-empty-state h2 {
	margin-top: 0;
}

.lmd-pagination {
	margin-top: 38px;
	text-align: center;
}

.lmd-pagination .page-numbers {
	border: 1px solid var(--lmd-line);
	border-radius: 7px;
	display: inline-flex;
	margin: 3px;
	padding: 7px 12px;
	text-decoration: none;
}

.lmd-pagination .current {
	background: var(--lmd-blue);
	border-color: var(--lmd-blue);
	color: var(--lmd-white);
}

/* Detail */
.lmd-detail-shell {
	padding: 52px 0 86px;
}

.lmd-detail-grid {
	display: grid;
	gap: 46px;
	grid-template-columns: 1.08fr 0.92fr;
}

.lmd-detail-media {
	background: var(--lmd-mist);
	border-radius: var(--lmd-radius);
	overflow: hidden;
}

.lmd-detail-media img {
	display: block;
	width: 100%;
}

.lmd-detail-summary h1 {
	font-size: clamp(2rem, 4vw, 3.4rem);
	letter-spacing: -0.04em;
	line-height: 1.07;
	margin: 14px 0 18px;
}

.lmd-detail-summary .lmd-lead {
	color: var(--lmd-steel);
	font-size: 1.05rem;
}

.lmd-detail-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 26px 0;
}

.lmd-spec-table {
	border: 1px solid var(--lmd-line);
	border-collapse: separate;
	border-radius: var(--lmd-radius);
	border-spacing: 0;
	overflow: hidden;
	width: 100%;
}

.lmd-spec-table th,
.lmd-spec-table td {
	border-bottom: 1px solid var(--lmd-line);
	padding: 13px 16px;
	text-align: left;
	vertical-align: top;
}

.lmd-spec-table th {
	background: var(--lmd-mist);
	font-size: 0.84rem;
	width: 38%;
}

.lmd-spec-table tr:last-child th,
.lmd-spec-table tr:last-child td {
	border-bottom: 0;
}

.lmd-detail-content {
	margin-top: 48px;
}

/* Marketplace-inspired homepage rails */
.lmd-market-section {
	background: #f5f7fa;
	padding: 68px 0 78px;
}

.lmd-market-section:nth-of-type(even) {
	background: var(--lmd-white);
}

.lmd-market-heading {
	align-items: end;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	margin-bottom: 30px;
}

.lmd-market-heading h2 {
	font-size: clamp(2rem, 4vw, 3.25rem);
	letter-spacing: -0.035em;
	line-height: 1.08;
	margin: 0;
}

.lmd-market-heading p:not(.lmd-eyebrow) {
	color: var(--lmd-steel);
	margin: 12px 0 0;
	max-width: 780px;
}

.lmd-market-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lmd-market-grid .lmd-product-card {
	box-shadow: 0 12px 30px rgba(7, 23, 34, 0.07);
}

.lmd-market-grid .lmd-product-actions {
	flex-direction: column;
}

/* RFQ */
.lmd-rfq-layout {
	display: grid;
	gap: 34px;
	grid-template-columns: 0.75fr 1.25fr;
}

.lmd-inquiry-summary,
.lmd-rfq-form {
	background: var(--lmd-white);
	border: 1px solid var(--lmd-line);
	border-radius: var(--lmd-radius);
	padding: 28px;
}

.lmd-inquiry-items {
	display: grid;
	gap: 12px;
	margin: 18px 0;
}

.lmd-inquiry-item {
	align-items: start;
	background: var(--lmd-mist);
	border-radius: 10px;
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr auto;
	padding: 14px;
}

.lmd-inquiry-item strong {
	display: block;
}

.lmd-inquiry-item small {
	color: var(--lmd-steel);
}

.lmd-inquiry-item button {
	background: transparent;
	border: 0;
	color: var(--lmd-danger);
	cursor: pointer;
}

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

.lmd-field--full {
	grid-column: 1 / -1;
}

.lmd-consent {
	align-items: flex-start;
	display: flex;
	font-size: 0.9rem;
	gap: 9px;
	margin: 18px 0;
}

.lmd-consent input {
	margin-top: 5px;
}

.lmd-honeypot {
	left: -9999px;
	position: absolute;
}

.lmd-alert {
	border-left: 4px solid var(--lmd-blue);
	border-radius: 6px;
	margin-bottom: 20px;
	padding: 13px 16px;
}

.lmd-alert--error {
	background: #fff0ef;
	border-color: var(--lmd-danger);
	color: #7f2523;
}

.lmd-alert--success {
	background: #e9f8f0;
	border-color: var(--lmd-success);
	color: #0e6844;
}

.lmd-inquiry-fab {
	align-items: center;
	background: var(--lmd-amber);
	border-radius: 999px;
	bottom: 22px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
	color: #241700;
	display: flex;
	font-weight: 850;
	gap: 8px;
	padding: 13px 18px;
	position: fixed;
	right: 22px;
	text-decoration: none;
	z-index: 90;
}

.lmd-inquiry-fab:hover {
	background: #e18c04;
	color: #241700;
}

.lmd-inquiry-count {
	align-items: center;
	background: var(--lmd-midnight);
	border-radius: 999px;
	color: var(--lmd-white);
	display: inline-flex;
	font-size: 0.75rem;
	height: 23px;
	justify-content: center;
	min-width: 23px;
	padding: 0 6px;
}

/* Footer */
.lmd-site-footer {
	background: #041019;
	color: #aebfc9;
	padding: 68px 0 28px;
}

.lmd-site-footer .lmd-brand,
.lmd-site-footer .lmd-brand:hover {
	color: var(--lmd-white);
}

.lmd-footer-grid {
	display: grid;
	gap: 40px;
	grid-template-columns: 1.4fr repeat(3, 1fr);
}

.lmd-site-footer h2,
.lmd-site-footer h3 {
	color: var(--lmd-white);
	margin-top: 0;
}

.lmd-site-footer h3 {
	font-size: 0.82rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.lmd-site-footer a {
	color: #cbd8de;
	text-decoration: none;
}

.lmd-site-footer a:hover {
	color: var(--lmd-white);
}

.lmd-footer-links {
	display: grid;
	gap: 9px;
}

.lmd-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.11);
	font-size: 0.82rem;
	margin-top: 48px;
	padding-top: 24px;
}

@media (max-width: 1024px) {
	.lmd-header-inner {
		grid-template-columns: auto minmax(220px, 1fr) auto auto;
	}

	.lmd-nav {
		display: none;
	}

	.lmd-mobile-nav {
		display: block;
	}

	.lmd-mobile-nav summary {
		color: var(--lmd-ink);
		cursor: pointer;
		font-weight: 750;
		list-style: none;
	}

	.lmd-mobile-nav[open] .lmd-mobile-panel {
		background: var(--lmd-midnight);
		border: 1px solid rgba(255, 255, 255, 0.14);
		border-radius: 12px;
		display: grid;
		gap: 12px;
		padding: 18px;
		position: absolute;
		right: 20px;
		top: 66px;
		width: min(300px, calc(100vw - 40px));
	}

	.lmd-mobile-panel a {
		color: var(--lmd-white);
		text-decoration: none;
	}

	.lmd-hero-grid,
	.lmd-market-hero-grid,
	.lmd-detail-grid,
	.lmd-rfq-layout {
		grid-template-columns: 1fr;
	}

	.lmd-filter-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lmd-catalog-grid,
	.lmd-market-grid,
	.lmd-type-grid,
	.lmd-grid--3,
	.lmd-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

@media (max-width: 782px) {
	.admin-bar .lmd-site-header {
		top: 46px;
	}
}

@media (max-width: 680px) {
	.lmd-container {
		padding-inline: 14px;
		width: 100%;
	}

	.lmd-narrow {
		width: calc(100% - 28px);
	}

	.lmd-main > * {
		width: 100%;
	}

	.lmd-page-shell > .wp-block-post-content > :not(.lmd-section):not(.lmd-narrow) {
		margin-inline: 14px;
	}

	.lmd-section {
		padding: 64px 0;
	}

	.lmd-hero {
		padding: 70px 0 62px;
	}

	.lmd-hero-panel {
		padding: 24px;
	}

	.lmd-grid--2,
	.lmd-grid--3,
	.lmd-grid--4,
	.lmd-catalog-grid,
	.lmd-market-grid,
	.lmd-type-grid,
	.lmd-filter-form,
	.lmd-form-grid,
	.lmd-footer-grid {
		grid-template-columns: 1fr;
	}

	.lmd-field--search,
	.lmd-price-filter {
		grid-column: auto;
	}

	.lmd-cta-band {
		grid-template-columns: 1fr;
		padding: 30px 24px;
	}

	.lmd-product-actions {
		flex-direction: column;
	}

	.lmd-header-cta {
		display: none;
	}

	.lmd-topbar-inner span {
		display: none;
	}

	.lmd-topbar-inner {
		justify-content: center;
	}

	.lmd-header-inner {
		gap: 14px;
		grid-template-columns: 1fr auto;
		padding-block: 14px;
	}

	.lmd-global-search {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.lmd-global-search button {
		min-width: 88px;
		padding-inline: 14px;
	}

	.lmd-header-inquiry {
		display: none;
	}

	.lmd-header-nav {
		display: none;
	}

	.lmd-market-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.lmd-market-hero {
		padding: 62px 0;
	}

	.lmd-market-hero-copy h1 {
		font-size: clamp(2.65rem, 12vw, 4rem);
	}

	.lmd-detail-actions .lmd-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
