/* DIY Kit Builder - Frontend Configurator */
.dikb-configurator {
	max-width: 900px;
	margin: 0 auto;
	padding: 24px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dikb-intro {
	text-align: center;
	margin-bottom: 32px;
}
.dikb-intro h1 {
	font-size: 2rem;
	margin: 0 0 8px;
	color: #1a1a1a;
}
.dikb-intro p {
	color: #666;
	margin: 0;
}

.dikb-progress-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
	padding-bottom: 16px;
	border-bottom: 2px solid #e5e5e5;
}
.dikb-progress-step {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 8px;
	background: #f5f5f5;
	color: #888;
	font-size: 0.875rem;
}
.dikb-progress-step.active {
	background: #1e3a5f;
	color: #fff;
}
.dikb-progress-step.completed {
	background: #2d5a3d;
	color: #fff;
}
.dikb-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(0,0,0,0.2);
	font-weight: 600;
}
.dikb-progress-step.active .dikb-step-num,
.dikb-progress-step.completed .dikb-step-num {
	background: rgba(255,255,255,0.3);
}

.dikb-steps-container {
	position: relative;
	min-height: 320px;
}
.dikb-step {
	display: none;
	padding: 24px 0;
}
.dikb-step.active {
	display: block;
}
.dikb-step h2 {
	font-size: 1.25rem;
	margin: 0 0 20px;
	color: #333;
}

.dikb-options-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
}
.dikb-option-card {
	cursor: pointer;
	padding: 16px;
	border: 2px solid #e5e5e5;
	border-radius: 12px;
	background: #fff;
	transition: all 0.2s;
	text-align: center;
}
.dikb-option-card:hover {
	border-color: #1e3a5f;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.dikb-option-card.selected {
	border-color: #1e3a5f;
	background: #f0f7ff;
	box-shadow: 0 4px 12px rgba(30,58,95,0.2);
}
.dikb-option-card img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 12px;
}
.dikb-colour-swatch {
	width: 100%;
	height: 60px;
	border-radius: 8px;
	margin-bottom: 12px;
	border: 1px solid #ddd;
}
.dikb-option-placeholder {
	height: 80px;
	background: #eee;
	border-radius: 8px;
	margin-bottom: 12px;
}
.dikb-option-title {
	font-weight: 600;
	font-size: 0.9375rem;
	margin-bottom: 4px;
	color: #333;
}
.dikb-option-subtitle {
	font-size: 0.8125rem;
	color: #666;
	margin-bottom: 4px;
}
.dikb-option-desc {
	font-size: 0.75rem;
	color: #888;
	line-height: 1.3;
}

.dikb-size-quantity {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.dikb-quantity-selector label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
}
.dikb-qty-controls {
	display: flex;
	align-items: center;
	gap: 12px;
}
.dikb-qty-btn {
	width: 40px;
	height: 40px;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 8px;
	font-size: 1.25rem;
	cursor: pointer;
	transition: background 0.2s;
}
.dikb-qty-btn:hover {
	background: #f5f5f5;
}
.dikb-qty-input {
	width: 80px;
	height: 40px;
	text-align: center;
	font-size: 1rem;
	border: 1px solid #ddd;
	border-radius: 8px;
}

.dikb-saddles-toggle {
	display: flex;
	gap: 24px;
	margin-bottom: 16px;
}
.dikb-toggle-option {
	cursor: pointer;
	padding: 16px 24px;
	border: 2px solid #e5e5e5;
	border-radius: 12px;
	transition: all 0.2s;
}
.dikb-toggle-option:hover,
.dikb-toggle-option input:checked + span {
	border-color: #1e3a5f;
}
.dikb-saddle-qty input {
	width: 120px;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
}

.dikb-summary,
.dikb-price-breakdown {
	margin-bottom: 20px;
}
.dikb-summary-item {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}
.dikb-summary-item span:first-child {
	color: #666;
}
.dikb-total-price {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 20px 0;
	color: #1e3a5f;
}
.dikb-add-to-cart {
	padding: 14px 32px;
	font-size: 1rem;
	border-radius: 8px;
	cursor: pointer;
}

.dikb-nav-buttons {
	display: flex;
	justify-content: space-between;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid #eee;
}
.dikb-nav-buttons button {
	padding: 10px 24px;
	border-radius: 8px;
	cursor: pointer;
	border: 1px solid #ddd;
	background: #fff;
}
.dikb-nav-buttons button:hover {
	background: #f5f5f5;
}
.dikb-btn-next {
	background: #1e3a5f !important;
	color: #fff !important;
	border-color: #1e3a5f !important;
}

.dikb-loading .dikb-options-grid::after {
	content: 'Loading...';
	display: block;
	padding: 24px;
	text-align: center;
	color: #666;
}
.dikb-error {
	color: #c00;
	padding: 24px;
	text-align: center;
}

@media (max-width: 600px) {
	.dikb-options-grid {
		grid-template-columns: 1fr 1fr;
	}
	.dikb-progress-step .dikb-step-label {
		display: none;
	}
}
