/* Moodboard page */

.mb-page { max-width: 1800px; margin: 0 auto; padding: 40px clamp(24px, 4vw, 60px); }
.mb-header { margin-bottom: 32px; }
.mb-header h1 { font-size: 32px; margin: 0 0 8px; }
.mb-header p { font-size: 14px; color: #666; margin: 0; }

.mb-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }

.mb-board {
	position: relative;
	min-height: 75vh;
	background: #F5F0E6;
	border-radius: 12px;
	border: 1px solid #e5ddc9;
	background-image: radial-gradient(#ddd4bb 1px, transparent 1px);
	background-size: 24px 24px;
	overflow: hidden;
}
.mb-board__empty {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #999;
	font-size: 14px;
	text-align: center;
	max-width: 320px;
	margin: 0;
}

.mb-card {
	position: absolute;
	width: 180px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
	cursor: grab;
	user-select: none;
	overflow: hidden;
}
.mb-card:active { cursor: grabbing; box-shadow: 0 8px 28px rgba(0,0,0,0.2); z-index: 50; }
.mb-card__swatch { width: 100%; aspect-ratio: 4/3; background-size: cover; background-position: center; pointer-events: none; }
.mb-card__body { padding: 10px 12px; pointer-events: none; }
.mb-card__product { font-size: 12px; font-weight: 600; margin: 0 0 2px; color: #1a1a1a; }
.mb-card__colour { font-size: 12px; color: #666; margin: 0; }
.mb-card__remove {
	all: unset;
	box-sizing: border-box;
	position: absolute !important;
	top: 6px !important;
	right: 6px !important;
	left: auto !important;
	bottom: auto !important;
	width: 22px !important;
	height: 22px !important;
	min-width: 22px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 50%;
	border: none !important;
	background: rgba(255,255,255,0.9) !important;
	color: #666 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-size: 15px;
	font-family: inherit !important;
	cursor: pointer;
	pointer-events: auto;
	z-index: 5;
}
.mb-card__remove:hover { background: var(--pp-teal, #004f58) !important; color: #fff !important; }

/* Sidebar */
.mb-sidebar {
	border: 1px solid #ddd;
	border-radius: 12px;
	padding: 20px;
	position: sticky;
	top: 24px;
}
.mb-sidebar h2 { font-size: 16px; margin: 0 0 6px; }
.mb-sidebar__hint { font-size: 12px; color: #888; margin: 0 0 16px; }
.mb-sample-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; min-height: 40px; }
.mb-sample-empty { font-size: 12px; color: #999; }

.mb-sample-row { display: flex; align-items: center; gap: 10px; }
.mb-sample-row input[type="checkbox"] { flex-shrink: 0; width: 16px; height: 16px; accent-color: #004f58; }
.mb-sample-row__swatch { width: 32px; height: 32px; border-radius: 6px; background-size: cover; background-position: center; flex-shrink: 0; }
.mb-sample-row__text { display: flex; flex-direction: column; min-width: 0; }
.mb-sample-row__text span:first-child { font-size: 12px; font-weight: 500; }
.mb-sample-row__text span:last-child { font-size: 11px; color: #888; }
.mb-sample-row.is-disabled { opacity: 0.4; }

.mb-order-btn {
	all: unset;
	box-sizing: border-box;
	display: block;
	width: 100%;
	text-align: center;
	padding: 12px;
	border-radius: 4px;
	border: none !important;
	background: #1a1a1a !important;
	color: #fff !important;
	font-size: 14px;
	font-family: inherit !important;
	cursor: pointer;
}
.mb-order-btn:disabled,
.mb-order-btn.is-disabled { background: #ccc !important; cursor: not-allowed; }
.mb-order-note { font-size: 11px; color: #999; margin: 10px 0 0; line-height: 1.4; }

@media (max-width: 900px) {
	.mb-layout { grid-template-columns: 1fr; }
	.mb-sidebar { position: static; }
}