:root {
	--csm-bg: #f7f3ed;
	--csm-surface: #ffffff;
	--csm-surface-soft: #fbfaf7;
	--csm-text: #25221f;
	--csm-muted: #6f675f;
	--csm-line: #e4d9cc;
	--csm-accent: #73604c;
	--csm-accent-dark: #473b31;
	--csm-green: #1f7a54;
	--csm-shadow: 0 18px 50px rgba(50, 41, 32, 0.12);
	--csm-radius: 8px;
}

* {
	box-sizing: border-box;
}

body {
	background: var(--csm-bg);
	color: var(--csm-text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.55;
	margin: 0;
	text-rendering: optimizeLegibility;
}

a {
	color: inherit;
	text-decoration: none;
}

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

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

.csm-container {
	margin: 0 auto;
	max-width: 1200px;
	padding: 0 24px;
	width: 100%;
}

.csm-main {
	min-height: 54vh;
	padding: 56px 0;
}

.csm-topbar {
	background: var(--csm-accent-dark);
	color: #fff;
	font-size: 13px;
	padding: 8px 0;
	text-align: center;
}

.csm-site-header {
	background: rgba(247, 243, 237, 0.92);
	border-bottom: 1px solid rgba(115, 96, 76, 0.18);
	position: sticky;
	top: 0;
	z-index: 50;
}

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

.csm-header-inner {
	align-items: center;
	display: flex;
	gap: 22px;
	min-height: 76px;
}

.csm-logo {
	align-items: center;
	display: inline-flex;
	font-size: 22px;
	font-weight: 750;
	letter-spacing: 0;
	min-width: 168px;
}

.csm-logo img {
	display: block;
	max-height: 54px;
	width: auto;
}

.csm-primary-nav {
	flex: 1;
}

.csm-primary-nav ul {
	align-items: center;
	display: flex;
	gap: 22px;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.csm-primary-nav a {
	color: var(--csm-muted);
	font-size: 14px;
	font-weight: 650;
}

.csm-header-actions {
	align-items: center;
	display: flex;
	gap: 12px;
}

.csm-menu-toggle {
	background: transparent;
	border: 1px solid var(--csm-line);
	border-radius: var(--csm-radius);
	display: none;
	height: 42px;
	position: relative;
	width: 44px;
}

.csm-menu-toggle span,
.csm-menu-toggle::before,
.csm-menu-toggle::after {
	background: var(--csm-text);
	content: "";
	height: 2px;
	left: 11px;
	position: absolute;
	right: 11px;
}

.csm-menu-toggle::before {
	top: 13px;
}

.csm-menu-toggle span {
	top: 20px;
}

.csm-menu-toggle::after {
	top: 27px;
}

.csm-button,
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: var(--csm-radius);
	cursor: pointer;
	display: inline-flex;
	font-weight: 750;
	gap: 8px;
	justify-content: center;
	line-height: 1.15;
	min-height: 44px;
	padding: 12px 18px;
	text-align: center;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.csm-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
	transform: translateY(-1px);
}

.csm-button-primary,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: var(--csm-accent-dark);
	color: #fff;
}

.csm-button-ghost {
	background: #fff;
	border-color: var(--csm-line);
	color: var(--csm-text);
}

.csm-cart-link {
	align-items: center;
	border: 1px solid var(--csm-line);
	border-radius: 999px;
	display: inline-flex;
	font-size: 14px;
	font-weight: 750;
	gap: 8px;
	min-height: 42px;
	padding: 8px 13px;
}

.csm-cart-count {
	align-items: center;
	background: var(--csm-accent-dark);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 12px;
	height: 22px;
	justify-content: center;
	min-width: 22px;
	padding: 0 6px;
}

.csm-hero {
	background: linear-gradient(180deg, #f7f3ed 0%, #fff 100%);
	padding: 58px 0 42px;
}

.csm-hero-grid {
	align-items: center;
	display: grid;
	gap: 44px;
	grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

.csm-kicker {
	color: var(--csm-accent);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin: 0 0 12px;
	text-transform: uppercase;
}

.csm-hero h1,
.csm-entry-title,
.csm-quote-intro h2 {
	font-size: clamp(34px, 5vw, 64px);
	letter-spacing: 0;
	line-height: 1.02;
	margin: 0 0 18px;
}

.csm-hero-copy > p:not(.csm-kicker),
.csm-quote-intro p {
	color: var(--csm-muted);
	font-size: 18px;
	margin: 0 0 24px;
	max-width: 660px;
}

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

.csm-stats {
	border-top: 1px solid var(--csm-line);
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 34px;
	padding-top: 22px;
}

.csm-stats strong {
	display: block;
	font-size: 26px;
	line-height: 1;
}

.csm-stats span {
	color: var(--csm-muted);
	font-size: 13px;
}

.csm-hero-media {
	aspect-ratio: 5 / 4;
	background-color: #ddd1c3;
	background-position: center;
	background-size: cover;
	border-radius: var(--csm-radius);
	box-shadow: var(--csm-shadow);
	min-height: 420px;
	overflow: hidden;
	position: relative;
}

.csm-hero-placeholder {
	align-items: center;
	color: var(--csm-muted);
	display: flex;
	height: 100%;
	justify-content: center;
	padding: 24px;
	text-align: center;
}

.csm-minibanners {
	background: #fff;
	padding: 34px 0;
}

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

.csm-mini-card {
	background: var(--csm-surface-soft);
	border: 1px solid var(--csm-line);
	border-radius: var(--csm-radius);
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	min-height: 150px;
	overflow: hidden;
}

.csm-mini-image {
	background: #e9ded1;
	background-position: center;
	background-size: cover;
}

.csm-mini-card div:last-child {
	padding: 18px;
}

.csm-mini-card h3 {
	font-size: 19px;
	margin: 0 0 8px;
}

.csm-mini-card p {
	color: var(--csm-muted);
	font-size: 14px;
	margin: 0 0 12px;
}

.csm-mini-card span {
	color: var(--csm-accent-dark);
	font-size: 13px;
	font-weight: 800;
}

.csm-home-section {
	background: #fff;
	padding: 62px 0;
}

.csm-section-heading {
	margin-bottom: 28px;
	max-width: 760px;
}

.csm-section-heading h2 {
	font-size: clamp(28px, 3vw, 44px);
	line-height: 1.08;
	margin: 0 0 12px;
}

.csm-section-heading p {
	color: var(--csm-muted);
	font-size: 17px;
	margin: 0;
}

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

.csm-feature {
	border: 1px solid var(--csm-line);
	border-radius: var(--csm-radius);
	padding: 22px;
}

.csm-feature strong {
	display: block;
	font-size: 18px;
	margin-bottom: 8px;
}

.csm-feature p {
	color: var(--csm-muted);
	margin: 0;
}

.csm-quote-shell {
	background: var(--csm-bg);
	padding: 64px 0;
}

.csm-quote-grid {
	align-items: start;
	display: grid;
	gap: 30px;
	grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
}

.csm-quote-intro ul {
	color: var(--csm-muted);
	margin: 18px 0 0;
	padding-left: 20px;
}

.csm-quote-form {
	background: #fff;
	border: 1px solid var(--csm-line);
	border-radius: var(--csm-radius);
	box-shadow: var(--csm-shadow);
	display: grid;
	gap: 16px;
	padding: 24px;
}

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

.csm-quote-form label {
	display: grid;
	gap: 7px;
}

.csm-quote-form label > span {
	font-weight: 750;
}

.csm-quote-form input,
.csm-quote-form select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
	background: #fff;
	border: 1px solid #d8cdc1;
	border-radius: var(--csm-radius);
	min-height: 46px;
	padding: 10px 12px;
	width: 100%;
}

.csm-quote-form small {
	color: var(--csm-muted);
}

.csm-curtain-only {
	display: grid;
	gap: 16px;
}

.csm-accessory-only {
	display: grid;
	gap: 16px;
}

.csm-check {
	align-items: center;
	display: flex !important;
	gap: 10px;
}

.csm-check input {
	height: 18px;
	min-height: 18px;
	width: 18px;
}

.csm-quote-result {
	background: var(--csm-surface-soft);
	border: 1px solid var(--csm-line);
	border-radius: var(--csm-radius);
	display: grid;
	gap: 4px;
	padding: 16px;
}

.csm-quote-result span,
.csm-quote-result small {
	color: var(--csm-muted);
}

.csm-quote-result strong {
	font-size: 32px;
	line-height: 1;
}

.csm-quote-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.csm-quote-actions .csm-button {
	flex: 1 1 210px;
}

.csm-page-header {
	background: #fff;
	border-bottom: 1px solid var(--csm-line);
	padding: 42px 0;
}

.csm-entry-content {
	background: #fff;
	border-radius: var(--csm-radius);
	padding: 28px;
}

.csm-entry-content > *:first-child {
	margin-top: 0;
}

.csm-post-card {
	background: #fff;
	border: 1px solid var(--csm-line);
	border-radius: var(--csm-radius);
	margin-bottom: 18px;
	padding: 24px;
}

.csm-post-card h2 {
	margin-top: 0;
}

.csm-site-footer {
	background: #2d261f;
	color: #fff;
	padding: 42px 0 22px;
}

.csm-footer-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
}

.csm-site-footer h2,
.csm-site-footer h3 {
	margin-top: 0;
}

.csm-site-footer p,
.csm-site-footer li,
.csm-site-footer a {
	color: rgba(255, 255, 255, 0.78);
}

.csm-site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.csm-site-footer li + li {
	margin-top: 8px;
}

.csm-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	color: rgba(255, 255, 255, 0.62);
	font-size: 13px;
	margin-top: 30px;
	padding-top: 18px;
}

.csm-floating-whatsapp {
	align-items: center;
	background: var(--csm-green);
	border-radius: 999px;
	bottom: 22px;
	box-shadow: 0 12px 30px rgba(31, 122, 84, 0.36);
	color: #fff;
	display: inline-flex;
	font-weight: 800;
	gap: 8px;
	min-height: 48px;
	padding: 12px 18px;
	position: fixed;
	right: 22px;
	z-index: 60;
}

.csm-product-whatsapp {
	background: var(--csm-green);
	border-radius: var(--csm-radius);
	color: #fff;
	display: inline-flex;
	font-weight: 800;
	margin-top: 12px;
	padding: 12px 16px;
}

.csm-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.csm-search-form label {
	flex: 1 1 240px;
}

.csm-search-form input {
	border: 1px solid var(--csm-line);
	border-radius: var(--csm-radius);
	min-height: 44px;
	padding: 10px 12px;
	width: 100%;
}

.woocommerce .woocommerce-breadcrumb {
	color: var(--csm-muted);
}

.woocommerce div.product,
.woocommerce-cart .cart-collaterals,
.woocommerce-checkout form.checkout {
	background: #fff;
	border: 1px solid var(--csm-line);
	border-radius: var(--csm-radius);
	padding: 24px;
}

@media (max-width: 980px) {
	.csm-menu-toggle {
		display: inline-flex;
	}

	.csm-primary-nav {
		background: #fff;
		border-bottom: 1px solid var(--csm-line);
		box-shadow: var(--csm-shadow);
		display: none;
		left: 0;
		padding: 18px 24px;
		position: absolute;
		right: 0;
		top: 100%;
	}

	.csm-primary-nav.is-open {
		display: block;
	}

	.csm-primary-nav ul {
		align-items: stretch;
		display: grid;
		justify-content: stretch;
	}

	.csm-header-actions .csm-button {
		display: none;
	}

	.csm-hero-grid,
	.csm-quote-grid {
		grid-template-columns: 1fr;
	}

	.csm-hero-media {
		min-height: 340px;
	}

	.csm-card-grid,
	.csm-feature-grid,
	.csm-footer-grid {
		grid-template-columns: 1fr;
	}
}

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

	.csm-container {
		padding: 0 18px;
	}

	.csm-header-inner {
		min-height: 68px;
	}

	.csm-cart-link span:first-child {
		display: none;
	}

	.csm-hero {
		padding-top: 36px;
	}

	.csm-hero h1,
	.csm-entry-title,
	.csm-quote-intro h2 {
		font-size: 34px;
	}

	.csm-stats,
	.csm-form-row {
		grid-template-columns: 1fr;
	}

	.csm-mini-card {
		grid-template-columns: 1fr;
	}

	.csm-mini-image {
		aspect-ratio: 16 / 9;
	}

	.csm-entry-content,
	.csm-quote-form,
	.woocommerce div.product {
		padding: 18px;
	}

	.csm-floating-whatsapp {
		bottom: 14px;
		left: 14px;
		justify-content: center;
		right: 14px;
	}
}
