/*
Theme Name:  StroyStandard
Description: Custom WooCommerce product catalog theme for StroyStandard.
Version:     1.0.0
*/

:root {
	--bg: #fffffb;
	--surface: #ffffff;
	--surface-2: #f5f7fb;
	--text: #1f2430;
	--text-2: #202c40;
	--muted: #2E405A;
	--line: #e5e7ef;
	--brand: #160b4f;
	--brand-2: #2d225a;
	--accent: #4390c4;
	--accent-soft: #eaf4fb;
	--neutral: #9699aa;
	--success: #14804a;
	--shadow: 0 12px 30px rgba(22, 11, 79, 0.08);
	--radius-xl: 28px;
	--radius-lg: 22px;
	--radius-md: 16px;
	--radius-sm: 12px;
	--container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.5;
}

a { color: var(--brand-2); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.container {
	width: min(var(--container), calc(100% - 32px));
	margin: 0 auto;
}

.form-note a {
	color: var(--accent);
}

.section {
	padding: 28px 0;
}

.section__head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 16px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.section__title {
	margin: 0 0 6px;
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--brand);
}

.section__text {
	margin: 0;
	color: var(--muted);
	max-width: 64ch;
}

.header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255,255,251,0.94);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(150,153,170,.2);
}

.header__inner {
	display: grid;
	grid-template-columns: 230px 1fr auto;
	gap: 16px;
	align-items: center;
	padding: 16px 0;
}

.logo-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--brand);
	font-weight: 800;
	letter-spacing: .03em;
}

.logo__mark {
	width: auto;
	height: 44px;
	/* no background gradient; image is the mark */
}

.logo__mark img {
	height: 100%;
	width: auto;
	display: block;
}

.mobile-phone {
	display: none;
	color: var(--brand);
	font-weight: 700;
	white-space: nowrap;
}

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--brand);
	font-size: 20px;
	font-weight: 800;
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

.menu-bar {
	border-bottom: 1px solid rgba(150,153,170,.16);
	background: rgba(255,255,251,0.96);
}

.main-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 12px 0;
}

/* WordPress wp_nav_menu() wraps items in ul > li > a */
.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.main-nav li {
	margin: 0;
	padding: 0;
}

.main-nav a,
.main-nav li a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 12px;
	border-radius: 999px;
	color: var(--brand);
	font-size: 14px;
	font-weight: 700;
	border: 1px solid transparent;
	transition: .2s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.main-nav li a:hover,
.main-nav li.current-menu-item > a,
.main-nav li.current_page_item > a {
	background: var(--surface);
	border-color: var(--line);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	border-radius: 14px;
	padding: 13px 18px;
	font-weight: 700;
	cursor: pointer;
	transition: .2s ease;
	white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--secondary { background: var(--accent-soft); color: var(--brand); border: 1px solid rgba(67,144,196,.18); }
.btn--ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }

.header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.contact-link,
.pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--brand);
	font-weight: 600;
}

.hero__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
	align-items: stretch;
}

.hero__main {
	border-radius: var(--radius-xl);
	border: 1px solid var(--line);
	background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
	box-shadow: var(--shadow);
	overflow: hidden;
	padding: 42px;
	position: relative;
	min-height: 520px;
	isolation: isolate;
}

.hero__main::after {
	content: "";
	position: absolute;
	right: -80px;
	top: -80px;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(67,144,196,.18), transparent 70%);
	z-index: 0;
}

.hero__content {
	position: relative;
	z-index: 2;
	max-width: 58%;
}

.hero__collage {
	position: absolute;
	top: 26px;
	right: 26px;
	bottom: 26px;
	width: min(42%, 460px);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	z-index: 1;
}

.hero-card {
	position: relative;
	overflow: hidden;
	border-radius: 22px;
	border: 1px solid rgba(255,255,255,.45);
	background: var(--surface);
	box-shadow: 0 18px 36px rgba(22, 11, 79, 0.12);
}

.hero-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hero-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 35%, rgba(22,11,79,.72) 100%);
}

.eyebrow {
	display: inline-flex;
	padding: 8px 12px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--brand);
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 18px;
}

h1,h2,h3,h4,p { margin: 0; }

h1 {
	#font-size: clamp(34px, 5vw, 58px);
	font-size: clamp(28px, 4vw, 44px);
	#line-height: 1.02;
	line-height: 1.08;
	letter-spacing: -0.03em;
	#max-width: 11ch;
	#margin-bottom: 16px;
	margin-bottom: 14px;
	color: var(--brand);
}

.hero__lead {
	max-width: 58ch;
	font-size: 18px;
	color: var(--muted);
	margin-bottom: 24px;
}

.hero__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.hero__facts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.fact {
	padding: 16px;
	border-radius: 18px;
	border: 1px solid var(--line);
	background: rgba(255,255,255,.88);
	backdrop-filter: blur(4px);
}

.fact__value {
	color: var(--brand);
	font-size: 22px;
	font-weight: 800;
	margin-bottom: 4px;
}

.fact__label {
	color: var(--muted);
	font-size: 14px;
}

.category-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.category-card {
	display: grid;
	grid-template-columns: 116px 1fr;
	grid-template-rows: auto 1fr auto;
	column-gap: 16px;
	row-gap: 12px;
	min-height: 200px;
	padding: 22px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--line);
	background: var(--surface);
	box-shadow: var(--shadow);
	transition: .2s ease;
	align-items: start;
}

.category-card:hover { transform: translateY(-3px); border-color: rgba(67,144,196,.35); }

.category-card__icon {
	width: 116px;
	height: 116px;
	border-radius: 20px;
	background: linear-gradient(145deg, var(--surface-2), #eef3fb);
	border: 1px solid var(--line);
	grid-row: 1 / span 2;
	position: relative;
	overflow: hidden;
	box-shadow: 0 10px 22px rgba(22,11,79,.06);
}

.category-card__icon::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(67,144,196,.18), rgba(22,11,79,.04));
}

.category-card__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	position: relative;
	z-index: 1;
}

.category-card__title {
	font-size: 18px;
	font-weight: 800;
	color: var(--brand);
	line-height: 1.2;
	align-self: end;
}

.category-card__desc {
	color: var(--muted);
	font-size: 14px;
	align-self: start;
}

.category-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--muted);
	padding-top: 6px;
	grid-column: 1 / -1;
}

.brand-grid,
.usp-grid,
.product-grid,
.footer__grid {
	display: grid;
	gap: 16px;
}

.brand-grid,
.usp-grid { grid-template-columns: repeat(4, 1fr); }

.brand-card,
.usp-card,
.product-card,
.form-shell,
.content {
	border-radius: var(--radius-lg);
	border: 1px solid var(--line);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.brand-card,
.usp-card {
	padding: 22px;
}

.brand-mark {
	width: 150px;
	height: 110px;
	border-radius: 16px;
	display: grid;
	place-items: center;
	margin-bottom: 16px;
	font-weight: 800;
	overflow: hidden;
}

.usp-mark {
	width: 54px;
	height: 54px;
	border-radius: 16px;
	display: grid;
	place-items: center;
	margin-bottom: 16px;
	font-weight: 800;
	color: var(--brand);
	background: var(--accent-soft);
	border: 1px solid rgba(67,144,196,.2);
}

.brand-card__title,
.usp-card__title {
	font-size: 18px;
	font-weight: 800;
	color: var(--brand);
	margin-bottom: 8px;
}

.brand-card__text,
.usp-card__text {
	color: var(--muted);
	font-size: 15px;
}

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

.product-card {
	overflow: hidden;
	transition: .2s ease;
}

.product-card:hover { transform: translateY(-4px); }

.product-card__media {
	aspect-ratio: 4 / 3;
	background: linear-gradient(180deg, #f5f6fb 0%, #eceff7 100%);
	position: relative;
	overflow: hidden;
	padding: 10px;
}

.product-card__shape {
	width: 100%;
	height: 100%;
	border-radius: 14px;
	background: linear-gradient(145deg, #d6dbea, #c8cfdf);
	overflow: hidden;
	position: relative;
}

.product-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 8px 10px;
	border-radius: 999px;
	background: rgba(255,255,255,.92);
	border: 1px solid rgba(150,153,170,.22);
	color: var(--brand);
	font-size: 12px;
	font-weight: 700;
}

.product-card__body { padding: 18px; }

.product-card__meta {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 10px;
}

.product-card__title {
	font-size: 18px;
	line-height: 1.25;
	font-weight: 800;
	color: var(--brand);
	margin-bottom: 12px;
}

.specs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	margin-bottom: 14px;
}

.spec {
	padding: 10px 12px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: var(--surface-2);
}

.spec__label {
	display: block;
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 3px;
}

.spec__value {
	font-size: 14px;
	font-weight: 700;
	color: var(--text);
}

.availability {
	color: var(--success);
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 12px;
}

.availability--on_order     { color: #f0a500; }
.availability--out_of_stock { color: #dc3232; }

.product-specs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	margin-bottom: 14px;
}

.product-spec {
	padding: 10px 12px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: var(--surface-2);
}

.product-spec__label {
	display: block;
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 3px;
}

.product-spec__value {
	font-size: 14px;
	font-weight: 700;
	color: var(--text);
}

.product-card__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.price__value {
	font-size: 24px;
	line-height: 1;
	font-weight: 800;
	color: var(--brand);
}

.price__note {
	margin-top: 4px;
	font-size: 13px;
	color: var(--muted);
}

.form-shell,
.content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	padding: 28px;
	background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.content {
	grid-template-columns: 1fr;
	gap: 0;
}

.form-copy .eyebrow { margin-bottom: 14px; }

.form-copy h2 {
	margin-bottom: 12px;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.05;
	color: var(--brand);
	letter-spacing: -0.03em;
}

.form-copy strong {
	color: var(--brand);
}

.form-copy p {
	color: var(--muted);
	max-width: 48ch;
}

.quick-form {
	display: grid;
	gap: 12px;
	align-content: start;
}

.field,
input[type="text"],
input[type="tel"],
input[type="search"],
textarea {
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
}

.field {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface);
	padding: 15px 16px;
	outline: none;
}

.form-note,
.form-message {
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--muted);
	font-size: 14px;
}

/* Honeypot field - hidden from humans, visible to bots */
.hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

/* Cloudflare Turnstile widget spacing inside forms */
.cf-turnstile {
	margin: 12px 0 4px;
}

.footer {
	margin-top: 20px;
	padding: 28px 0 36px;
	background: var(--brand);
	color: rgba(255,255,255,.9);
}

.footer__grid {
	grid-template-columns: 1.15fr 1fr 1fr 1fr;
}

.footer__title {
	font-size: 15px;
	font-weight: 800;
	color: #fff;
	margin-bottom: 12px;
}

.footer__list {
	display: grid;
	gap: 8px;
	font-size: 14px;
}

/* Footer nav menu from wp_nav_menu() */
.footer .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
	font-size: 14px;
}

.footer .menu li {
	margin: 0;
	padding: 0;
}

.footer a {
	color: rgba(255,255,255,.9);
	transition: color .2s ease;
}

.footer a:hover {
	color: #fff;
}

.footer .logo { color: #fff; margin-bottom: 12px; }

@media (max-width: 1180px) {
	.category-grid { grid-template-columns: repeat(3, 1fr); }
	.product-grid { grid-template-columns: repeat(2, 1fr); }
	.brand-grid, .usp-grid { grid-template-columns: repeat(2, 1fr); }
	.footer__grid { grid-template-columns: repeat(2, 1fr); }
	.hero__content { max-width: 54%; }
	.hero__collage { width: min(44%, 400px); }
}

@media (max-width: 980px) {
	.header__inner,
	.form-shell {
	grid-template-columns: 1fr;
	}

	.search { grid-template-columns: 1fr 120px; }
	.hero__facts { grid-template-columns: 1fr; }
	.hero__main { min-height: auto; }
	.hero__content { max-width: 100%; }
	.hero__collage { display: none; }
}

@media (max-width: 720px) {
	.section { padding: 22px 0; }
	.container { width: min(var(--container), calc(100% - 20px)); }
	.category-grid,
	.brand-grid,
	.usp-grid,
	.product-grid,
	.footer__grid,
	.specs { grid-template-columns: 1fr; }
	.category-card {
		grid-template-columns: 132px 1fr;
		min-height: 180px;
		padding: 18px;
	}
	.category-card__icon {
		width: 132px;
		height: 132px;
		border-radius: 18px;
	}
	.mobile-phone { display: inline-flex; }
	.menu-toggle { display: inline-flex; }
	.menu-bar {
		display: none;
	}
	body.menu-open .menu-bar {
		display: block;
		position: sticky;
		top: 161px;
		z-index: 50;
	}
	body.menu-open .catalog-search-bar {
		top: 474px;
	}
	.catalog-search-bar {
		position: sticky;
		top: 161px;
		z-index: 50;
	}
	.main-nav {
	justify-content: flex-start;
	flex-wrap: wrap;
	flex-direction: column;
	align-items: stretch;
	padding: 12px 0;
	}
	.main-nav ul {
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	gap: 6px;
	}
	.main-nav li {
	width: 100%;
	}
	.main-nav a,
	.main-nav li a {
	width: 100%;
	justify-content: flex-start;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: var(--surface);
	}
	.header__actions {
	justify-content: space-between;
	width: 100%;
	}
	.header__actions .contact-link { display: none; }
	.hero__main,
	.form-shell,
	.product-card { padding: 0; }
	.hero__main { padding: 22px; }
	.form-shell,
	.content { padding: 20px; }
	.brand-card,
	.usp-card { padding: 18px; }
	#map .form-shell { grid-template-columns: 1fr !important; }
	h1 { max-width: none; }
}


/* ── Catalog & Product styles ── */

.tax-catalog_category h1 {
	max-width: none;
}

/* ─ Shared: contact-link standalone (catalog/product variant) ─ */
.contact-link {
	padding: 10px 14px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--brand);
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-weight: 700;
	transition: .2s ease;
	white-space: nowrap;
}

/* ─ Breadcrumbs ─ */
.breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 14px;
	color: var(--muted);
}

/* ─ Catalog hero ─ */
.hero {
	padding-top: 24px;
}

.hero__box {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-xl);
	border: 1px solid var(--line);
	background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
	box-shadow: var(--shadow);
	padding: 34px;
}

.hero__box::after {
	content: "";
	position: absolute;
	right: -90px;
	top: -90px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(67,144,196,.16), transparent 70%);
}

.hero__lead--catalog {
	color: var(--muted);
	font-size: 18px;
	max-width: 62ch;
	margin-bottom: 24px;
}

@media (max-width: 720px) {
	.hero__box {
		padding: 22px;
	}
}

/* ─ Catalog search bar (in header) ─ */
.catalog-search-bar {
	border-bottom: 1px solid rgba(150,153,170,.16);
	background: rgba(255,255,251,0.96);
	padding: 10px 0;
}

.catalog-search-bar .catalog-search {
	max-width: none;
}

/* ─ Catalog search ─ */
.catalog-search {
	display: grid;
	grid-template-columns: 1fr 150px;
	gap: 10px;
	padding: 8px;
	border-radius: 18px;
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: 0 10px 24px rgba(22,11,79,.06);
	max-width: 720px;
}

.catalog-search input[type="search"] {
	border: none;
	background: transparent;
	outline: none;
	padding: 12px 14px;
	color: var(--text);
	font-size: 16px;
}

/* ─ Tag pill ─ */
.tag {
	display: inline-flex;
	align-items: center;
	padding: 8px 10px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--brand);
	font-size: 13px;
	font-weight: 700;
}

/* ─ Quick-scenario panel ─ */
.quick-panel {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.quick-box {
	padding: 20px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--line);
	background: var(--surface);
	box-shadow: 0 10px 24px rgba(22,11,79,.05);
}

.quick-box__title {
	font-size: 18px;
	font-weight: 800;
	color: var(--brand);
	margin-bottom: 8px;
}

.quick-box__text {
	color: var(--muted);
	font-size: 15px;
	margin-bottom: 14px;
}

/* ─ Product page layout ─ */
.product-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
	gap: 22px;
	align-items: start;
}

.gallery,
.summary,
.content-card,
.side-card {
	border: 1px solid var(--line);
	background: var(--surface);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
}

.gallery {
	padding: 20px;
}

.gallery__main {
	aspect-ratio: 4 / 3;
	border-radius: 22px;
	overflow: hidden;
	background: linear-gradient(180deg, #f5f6fb 0%, #eceff7 100%);
	border: 1px solid var(--line);
	display: grid;
	place-items: center;
	padding: 16px;
}

.gallery__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 18px;
}

.summary {
	padding: 24px;
	position: sticky;
	top: 96px;
}

.summary__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
	color: var(--muted);
	font-size: 14px;
}

.summary__meta .badge {
	display: inline-flex;
	align-items: center;
	padding: 8px 10px;
	border-radius: 999px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	color: var(--brand);
	font-weight: 700;
	font-size: 13px;
	position: static;
	top: unset;
	left: unset;
}

.summary__lead {
	color: var(--muted);
	font-size: 16px;
	margin-bottom: 18px;
}

.price-box {
	display: grid;
	gap: 8px;
	padding: 18px;
	border-radius: 20px;
	background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
	border: 1px solid var(--line);
	margin-bottom: 16px;
}

.price {
	font-size: 34px;
	font-weight: 800;
	color: var(--brand);
	line-height: 1;
}

.price-note {
	color: var(--muted);
	font-size: 14px;
}

.summary__actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-bottom: 16px;
}

.contact-box {
	padding: 16px;
	border-radius: 18px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
}

/* ─ Product content grid ─ */
.content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 22px;
	margin-top: 22px;
	align-items: start;
}

.content-stack {
	display: grid;
	gap: 22px;
}

.content-card,
.side-card {
	padding: 24px;
}

.section-title {
	font-size: 24px;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--brand);
	margin-bottom: 14px;
}

.text-muted {
	color: var(--muted);
}

.text-second {
	color: var(--text-2);
}

.text-second a {
	color: var(--accent);
}


/* ─ Spec table ─ */
.spec-table {
	display: grid;
	gap: 10px;
}

.spec-row {
	display: grid;
	grid-template-columns: minmax(180px, 240px) 1fr;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}

.spec-row:last-child { border-bottom: none; }

.spec-row__label {
	color: var(--muted);
	font-size: 14px;
}

.spec-row__value {
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
}

/* ─ Documents & links ─ */
.docs-list,
.links-list {
	display: grid;
	gap: 10px;
}

.doc-link,
.links-list a {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	align-items: center;
	padding: 14px 16px;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: var(--surface-2);
	color: var(--brand);
	font-weight: 700;
}

/* ─ Related products row ─ */
.products-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.product-mini {
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--surface);
	overflow: hidden;
	box-shadow: 0 10px 24px rgba(22,11,79,.05);
}

.product-mini__media {
	aspect-ratio: 4 / 3;
	background: linear-gradient(180deg, #f5f6fb 0%, #eceff7 100%);
	border-bottom: 1px solid var(--line);
	display: grid;
	place-items: center;
	padding: 12px;
}

.product-mini__shape {
	width: 64%;
	height: 68%;
	border-radius: 18px;
	background: linear-gradient(145deg, #d6dbea, #c8cfdf);
	border: 1px solid rgba(45,34,90,.08);
}

.product-mini__body {
	padding: 16px;
	display: grid;
	gap: 10px;
}

.product-mini__title {
	font-size: 17px;
	line-height: 1.25;
	font-weight: 800;
	color: var(--brand);
}

.product-mini__price {
	font-size: 22px;
	font-weight: 800;
	color: var(--brand);
	line-height: 1;
}

.product-mini__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.product-mini__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 14px;
}

.product-mini__specs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

.product-mini__spec {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 13px;
	padding: 8px 10px;
	border-radius: 10px;
	background: var(--surface-2);
	border: 1px solid var(--line);
}

.product-mini__spec-label {
	color: var(--muted);
}

.product-mini__spec-value {
	font-weight: 700;
	color: var(--text);
}

.product-mini__status {
	font-size: 13px;
	font-weight: 700;
}

.product-mini__status--in_stock     { color: var(--success); }
.product-mini__status--on_order     { color: #f0a500; }
.product-mini__status--out_of_stock { color: #dc3232; }

.product-mini__footer {
	padding: 0 16px 16px;
}

.product-mini__footer .btn {
	width: 100%;
}

/* 4 columns on catalog page */
.products-row--catalog {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1180px) {
	.products-row--catalog { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
	.products-row--catalog { grid-template-columns: repeat(2, 1fr); }
}

/* ─ Side card ─ */
.side-card {
	display: grid;
	gap: 14px;
	position: sticky;
	top: 96px;
}

/* ─ Mobile-only helpers ─ */
.mobile-after-docs {
	display: none;
}

.side-card-mobile {
	display: none;
}

/* ─ Responsive: catalog & product ─ */
@media (max-width: 1180px) {
	.catalog-page .category-grid { grid-template-columns: repeat(3, 1fr); }
	.quick-panel { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
	.product-layout,
	.content-grid {
		grid-template-columns: 1fr;
	}

	.summary,
	.side-card {
		position: static;
	}

	.products-row {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 900px) {
	.catalog-page .category-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 720px) {
	.catalog-search {
		grid-template-columns: 1fr 44px;
		padding: 6px;
		gap: 8px;
	}

	.catalog-search input[type="search"] { padding: 10px 12px; }

	/* Mobile: show search icon instead of text */
	.catalog-search .btn {
		padding: 0;
		background: var(--brand) url(assets/img/search.svg) no-repeat center;
		background-size: 20px 20px;
		border-radius: 12px;
		text-indent: -9999px;
		overflow: hidden;
		color: transparent;
	}

	.catalog-page .category-grid { grid-template-columns: 1fr; }

	.catalog-page .category-card {
		grid-template-columns: 132px 1fr;
		min-height: 220px;
		padding: 18px;
	}

	.catalog-page .category-card__icon {
		width: 132px;
		height: 132px;
		border-radius: 18px;
	}

	.summary,
	.gallery,
	.content-card,
	.side-card { padding: 18px; }

	.summary__actions,
	.products-row { grid-template-columns: 1fr; }

	.spec-row { grid-template-columns: 1fr; gap: 6px; }

	#useful-info { display: none; }

	.mobile-after-docs { display: block; }

	.side-card-mobile {
		display: grid;
		position: static;
		margin-top: 22px;
	}
}

/* Call request modal (popup for header button) */
.modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
}
.modal[hidden] { display: none !important; }

.modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.modal__dialog {
	position: relative;
	background: #fff;
	width: 90%;
	max-width: 380px;
	padding: 24px 20px 20px;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* Product question modal is wider (600px) on desktop */
#product-question-modal .modal__dialog {
	max-width: 600px;
}

/* All modals (including call-request-modal) become full-width on mobile */
@media (max-width: 720px) {
	.modal__dialog {
		width: 100%;
		max-width: none;
		border-radius: 0;
		margin: 0;
	}
}

.modal__close {
	position: absolute;
	top: 6px;
	right: 8px;
	background: transparent;
	border: 0;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 4px 8px;
}
.modal__close:hover { color: #000; }

.modal__title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: var(--brand);
}

.modal__pre-text {
	margin-bottom: 14px;
	font-size: 14px;
	color: var(--muted);
	line-height: 1.4;
}

.modal-form {
	display: grid;
	gap: 12px;
}

.modal-form .field {
	margin-bottom: 0;
}

.modal-form .btn {
	width: 100%;
}

#product-question-form textarea.field {
	resize: none !important;
	height: 100px; /* fixed height, non-resizable */
	font-size: 16px;
}

@media (min-width: 720px) {
	/* Desktop: name + phone side by side, textarea full width below */
	#product-question-form {
		grid-template-columns: 1fr 1fr;
	}

	#product-question-form input[name="name"] {
		grid-column: 1;
	}

	#product-question-form input[name="phone"] {
		grid-column: 2;
	}

	#product-question-form textarea {
		grid-column: 1 / 3;
	}

	#product-question-form .btn {
		grid-column: 1 / 3;
	}
}

#product-question-form .form-note,
#product-question-form .form-message {
	grid-column: 1 / -1;
	margin-top: 4px; /* small gap if needed */
}

.form-success {
	color: #2a7;
	padding: 8px 0;
	font-size: 15px;
}
