.cwc-app {
	--cwc-bg: #141210;
	--cwc-panel: #1c1916;
	--cwc-card: #241f1b;
	--cwc-line: #3a332c;
	--cwc-gold: #e0b34d;
	--cwc-gold-2: #c9952c;
	--cwc-text: #f3ece3;
	--cwc-muted: #b5a99b;
	font-family: "Segoe UI", system-ui, sans-serif;
	color: var(--cwc-text);
	background: var(--cwc-bg);
	border: 1px solid var(--cwc-line);
	border-radius: 16px;
	overflow: hidden;
	display: grid;
	grid-template-columns: 280px 1fr;
	grid-template-rows: 1fr auto;
	max-width: 1280px;
	margin: 0 auto 2rem;
	min-height: 820px;
}

.cwc-sidebar {
	grid-row: 1;
	background: var(--cwc-panel);
	padding: 18px 16px 20px;
	border-right: 1px solid var(--cwc-line);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cwc-kicker,
.cwc-label {
	margin: 8px 0 4px;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cwc-muted);
}

.cwc-cats {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 8px;
}

.cwc-cat {
	background: var(--cwc-card);
	border: 1px solid var(--cwc-line);
	color: var(--cwc-text);
	border-radius: 10px;
	padding: 10px 6px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 11px;
}

.cwc-cat.is-active {
	border-color: var(--cwc-gold);
	background: #2c2418;
	color: var(--cwc-gold);
}

.cwc-cat-icon {
	width: 22px;
	height: 22px;
	display: block;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='10' width='18' height='8' rx='1' fill='black'/%3E%3Crect x='4' y='6' width='16' height='5' rx='1' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cwc-cat-icon[data-icon="chair"] {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='7' y='3' width='10' height='8' fill='black'/%3E%3Crect x='6' y='11' width='12' height='4' fill='black'/%3E%3Crect x='7' y='15' width='2' height='6' fill='black'/%3E%3Crect x='15' y='15' width='2' height='6' fill='black'/%3E%3C/svg%3E");
}

.cwc-cat-icon[data-icon="door"] {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='2' width='12' height='20' rx='1' fill='black'/%3E%3Ccircle cx='15' cy='12' r='1.2' fill='white'/%3E%3C/svg%3E");
}

.cwc-cat-icon[data-icon="table"] {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='8' width='18' height='3' fill='black'/%3E%3Crect x='5' y='11' width='2' height='9' fill='black'/%3E%3Crect x='17' y='11' width='2' height='9' fill='black'/%3E%3C/svg%3E");
}

.cwc-cat-icon[data-icon="cabinet"] {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='3' width='16' height='18' fill='black'/%3E%3Crect x='6' y='5' width='5' height='14' fill='white'/%3E%3Crect x='13' y='5' width='5' height='14' fill='white'/%3E%3C/svg%3E");
}

.cwc-cat-icon[data-icon="other"] {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8' fill='black'/%3E%3C/svg%3E");
}

.cwc-panel-title {
	font-size: 20px;
	margin: 12px 0 4px;
	font-weight: 700;
}

.cwc-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	color: var(--cwc-muted);
}

.cwc-field select {
	background: #111;
	color: var(--cwc-text);
	border: 1px solid var(--cwc-line);
	border-radius: 8px;
	padding: 8px 10px;
}

.cwc-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cwc-swatch {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid #0000;
	background: var(--c);
	cursor: pointer;
	padding: 0;
}

.cwc-swatch.is-active {
	border-color: var(--cwc-gold);
	box-shadow: 0 0 0 2px #000 inset;
}

.cwc-swatch-lg {
	width: 28px;
	height: 28px;
}

.cwc-features {
	display: grid;
	gap: 6px;
}

.cwc-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--cwc-text);
}

.cwc-price-box {
	background: #111;
	border: 1px solid var(--cwc-line);
	border-radius: 10px;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cwc-price-box strong {
	font-size: 22px;
	color: var(--cwc-gold);
}

.cwc-price-box small {
	color: var(--cwc-muted);
	font-size: 11px;
}

.cwc-btn {
	border: 0;
	border-radius: 10px;
	padding: 11px 14px;
	cursor: pointer;
	font-weight: 700;
}

.cwc-btn-gold {
	background: linear-gradient(180deg, var(--cwc-gold), var(--cwc-gold-2));
	color: #1a140c;
}

.cwc-btn-ghost {
	background: transparent;
	color: var(--cwc-muted);
}

.cwc-btn-cart {
	width: 100%;
	margin-top: 10px;
	padding: 14px;
	font-size: 16px;
}

.cwc-stage {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cwc-viewport {
	position: relative;
	flex: 1;
	min-height: 420px;
	background: radial-gradient(circle at 50% 40%, #3a2c22, #15110e 70%);
}

#cwc-canvas {
	width: 100%;
	height: 100%;
	display: block;
}

.cwc-3d-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: #0008;
	border: 1px solid var(--cwc-line);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
}

.cwc-angles {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cwc-angles button {
	width: 54px;
	height: 42px;
	border-radius: 8px;
	border: 1px solid var(--cwc-line);
	background: #1a1613cc;
	color: var(--cwc-muted);
	font-size: 10px;
	cursor: pointer;
}

.cwc-angles button.is-active {
	border-color: var(--cwc-gold);
	color: var(--cwc-gold);
}

.cwc-orbit {
	position: absolute;
	right: 16px;
	bottom: 16px;
	display: flex;
	gap: 8px;
}

.cwc-orbit button {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 0;
	background: var(--cwc-gold);
	color: #1a140c;
	font-size: 16px;
	cursor: pointer;
}

.cwc-bottom {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 16px;
	padding: 14px 16px 8px;
	background: #161310;
	border-top: 1px solid var(--cwc-line);
}

.cwc-row-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 8px;
}

.cwc-row-head h3 {
	margin: 0;
	font-size: 15px;
}

.cwc-row-head span {
	color: var(--cwc-gold);
	font-size: 12px;
}

.cwc-tpl-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.cwc-tpl {
	background: var(--cwc-card);
	border: 1px solid var(--cwc-line);
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	color: var(--cwc-text);
	padding: 0 0 8px;
	text-align: left;
}

.cwc-tpl.is-active {
	border-color: var(--cwc-gold);
}

.cwc-tpl-art {
	height: 54px;
	background: linear-gradient(135deg, #5a3c22, #c9a36a);
}

.cwc-tpl span {
	display: block;
	padding: 6px 8px 0;
	font-size: 12px;
}

.cwc-mats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 10px;
}

.cwc-mat {
	background: var(--cwc-card);
	border: 1px solid var(--cwc-line);
	border-radius: 10px;
	color: var(--cwc-text);
	cursor: pointer;
	padding: 6px;
	font-size: 11px;
}

.cwc-mat.is-active {
	border-color: var(--cwc-gold);
}

.cwc-mat-preview {
	display: block;
	height: 36px;
	border-radius: 6px;
	margin-bottom: 6px;
}

.cwc-mat-oak { background: #c9a36a; }
.cwc-mat-walnut { background: #6b3f24; }
.cwc-mat-pine { background: #d7b07a; }
.cwc-mat-teak { background: #b0723a; }
.cwc-mat-ash { background: #cfc4b0; }
.cwc-mat-marandi { background: #8d5a32; }

.cwc-status {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--cwc-gold);
}

.cwc-trust {
	grid-column: 1 / -1;
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	gap: 8px;
	background: #0d0b0a;
	padding: 10px 12px;
	font-size: 12px;
	color: var(--cwc-muted);
	border-top: 1px solid var(--cwc-line);
}

@media (max-width: 900px) {
	.cwc-app {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.cwc-sidebar {
		border-right: 0;
		border-bottom: 1px solid var(--cwc-line);
	}
	.cwc-viewport {
		min-height: 320px;
	}
	.cwc-bottom {
		grid-template-columns: 1fr;
	}
}
