/**
 * Bluteee Manual Apparel Customizer - Frontend Stylesheet
 * Blocksy Theme Harmony, Streetwear Aesthetics, Mobile Responsive.
 */

:root {
	--bmc-primary: #0f172a;
	--bmc-primary-hover: #1e293b;
	--bmc-accent: #2563eb;
	--bmc-whatsapp: #25d366;
	--bmc-whatsapp-hover: #128c7e;
	--bmc-bg-light: #f8fafc;
	--bmc-surface: #ffffff;
	--bmc-border: #e2e8f0;
	--bmc-text-main: #0f172a;
	--bmc-text-muted: #64748b;
	--bmc-radius-sm: 8px;
	--bmc-radius-md: 14px;
	--bmc-radius-lg: 20px;
	--bmc-shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
	--bmc-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
	--bmc-shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
	--bmc-font-family: inherit;
}

.bmc-studio-wrapper {
	max-width: 1100px;
	margin: 20px auto 40px;
	padding: 0 16px;
	font-family: var(--bmc-font-family);
	color: var(--bmc-text-main);
	box-sizing: border-box;
}

.bmc-studio-wrapper *,
.bmc-studio-wrapper *::before,
.bmc-studio-wrapper *::after {
	box-sizing: border-box;
}

/* --- STEP PROGRESS BAR --- */
.bmc-steps-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bmc-surface);
	border: 1px solid var(--bmc-border);
	border-radius: var(--bmc-radius-lg);
	padding: 14px 24px;
	margin-bottom: 30px;
	box-shadow: var(--bmc-shadow-sm);
	gap: 12px;
}

.bmc-step-tab {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
	transition: all 0.2s ease;
	color: var(--bmc-text-muted);
}

.bmc-step-num {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	background: #f1f5f9;
	color: var(--bmc-text-muted);
	transition: all 0.2s ease;
}

.bmc-step-text {
	font-weight: 600;
	font-size: 14px;
	letter-spacing: -0.01em;
}

.bmc-step-tab.bmc-step-active {
	color: var(--bmc-primary);
}

.bmc-step-tab.bmc-step-active .bmc-step-num {
	background: var(--bmc-primary);
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}

.bmc-step-divider {
	flex: 1;
	max-width: 60px;
	height: 2px;
	background: var(--bmc-border);
	border-radius: 2px;
}

/* --- STEP HEADINGS --- */
.bmc-step-header {
	margin-bottom: 26px;
}

.bmc-step-header.text-center {
	text-align: center;
}

.bmc-step-title {
	font-size: 26px;
	font-weight: 800;
	color: var(--bmc-text-main);
	margin: 0 0 6px;
	letter-spacing: -0.02em;
}

.bmc-step-subtitle {
	font-size: 15px;
	color: var(--bmc-text-muted);
	margin: 0;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* --- STEP 1: PRODUCT CATALOG GRID --- */
.bmc-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 24px;
}

.bmc-prod-card {
	background: var(--bmc-surface);
	border: 1px solid var(--bmc-border);
	border-radius: var(--bmc-radius-md);
	overflow: hidden;
	box-shadow: var(--bmc-shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	display: flex;
	flex-direction: column;
}

.bmc-prod-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--bmc-shadow-md);
	border-color: #cbd5e1;
}

.bmc-prod-thumb-wrap {
	position: relative;
	background: #f8fafc;
	padding: 20px;
	text-align: center;
	border-bottom: 1px solid var(--bmc-border);
	min-height: 240px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bmc-prod-thumb {
	max-width: 100%;
	max-height: 210px;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.bmc-prod-card:hover .bmc-prod-thumb {
	transform: scale(1.04);
}

.bmc-prod-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--bmc-primary);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.bmc-prod-details {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.bmc-prod-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 6px;
	color: var(--bmc-text-main);
	line-height: 1.3;
}

.bmc-prod-desc {
	font-size: 13px;
	color: var(--bmc-text-muted);
	line-height: 1.5;
	margin: 0 0 14px;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bmc-prod-meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 12px;
	border-top: 1px solid #f1f5f9;
	margin-bottom: 16px;
}

.bmc-prod-price {
	display: flex;
	flex-direction: column;
}

.bmc-price-label {
	font-size: 11px;
	color: var(--bmc-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.bmc-prod-price strong {
	font-size: 18px;
	font-weight: 800;
	color: var(--bmc-text-main);
}

.bmc-prod-colors-preview {
	display: flex;
	align-items: center;
	gap: 5px;
}

.bmc-mini-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid #cbd5e1;
	display: inline-block;
}

.bmc-mini-more {
	font-size: 11px;
	color: var(--bmc-text-muted);
	font-weight: 600;
}

.bmc-prod-actions {
	display: flex;
	gap: 8px;
}

.bmc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 600;
	border-radius: var(--bmc-radius-sm);
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
	line-height: 1;
}

.bmc-btn-primary {
	background: var(--bmc-primary);
	color: #ffffff;
	flex: 1;
}

.bmc-btn-primary:hover {
	background: var(--bmc-primary-hover);
	color: #ffffff;
}

.bmc-btn-outline {
	background: transparent;
	border-color: var(--bmc-border);
	color: var(--bmc-text-main);
}

.bmc-btn-outline:hover {
	background: #f1f5f9;
	border-color: #cbd5e1;
}

.bmc-btn-block {
	width: 100%;
	padding: 14px 20px;
	font-size: 15px;
	font-weight: 700;
}

/* --- STEP 2: ATTRIBUTE CONTROLS & VIEWER --- */
.bmc-step2-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	background: var(--bmc-surface);
	padding: 12px 18px;
	border-radius: var(--bmc-radius-sm);
	border: 1px solid var(--bmc-border);
}

.bmc-back-link {
	background: none;
	border: none;
	color: var(--bmc-text-muted);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: color 0.2s ease;
}

.bmc-back-link:hover {
	color: var(--bmc-primary);
}

.bmc-selected-badge {
	font-size: 13px;
	font-weight: 700;
	background: #f1f5f9;
	padding: 4px 12px;
	border-radius: 20px;
	color: var(--bmc-primary);
}

.bmc-step2-grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 28px;
	align-items: start;
}

.bmc-image-viewer-card {
	background: var(--bmc-surface);
	border: 1px solid var(--bmc-border);
	border-radius: var(--bmc-radius-md);
	padding: 24px;
	box-shadow: var(--bmc-shadow-sm);
	text-align: center;
	position: sticky;
	top: 30px;
}

.bmc-main-image-wrap {
	min-height: 380px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8fafc;
	border-radius: var(--bmc-radius-sm);
	padding: 20px;
}

.bmc-main-preview-img {
	max-width: 100%;
	max-height: 340px;
	object-fit: contain;
	transition: opacity 0.2s ease;
}

.bmc-preview-gallery-thumbs {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 14px;
	overflow-x: auto;
	padding-bottom: 4px;
}

.bmc-preview-thumb-btn {
	width: 52px;
	height: 52px;
	border-radius: 8px;
	border: 2px solid transparent;
	padding: 2px;
	background: #f8fafc;
	cursor: pointer;
	transition: border-color 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.bmc-preview-thumb-btn img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bmc-preview-thumb-btn.bmc-thumb-active {
	border-color: var(--bmc-primary);
}

.bmc-options-card {
	background: var(--bmc-surface);
	border: 1px solid var(--bmc-border);
	border-radius: var(--bmc-radius-md);
	padding: 28px;
	box-shadow: var(--bmc-shadow-sm);
}

.bmc-options-header {
	margin-bottom: 22px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--bmc-border);
}

.bmc-options-title {
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 4px;
	color: var(--bmc-text-main);
}

.bmc-options-desc {
	font-size: 13px;
	color: var(--bmc-text-muted);
	margin: 0 0 10px;
	line-height: 1.5;
}

.bmc-options-unit-price {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
}

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

.bmc-unit-val {
	font-weight: 800;
	font-size: 18px;
	color: var(--bmc-primary);
}

.bmc-opt-group {
	margin-bottom: 20px;
}

.bmc-opt-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 10px;
	color: var(--bmc-text-main);
}

.bmc-active-color-name,
.bmc-active-size-name {
	font-weight: 700;
	color: var(--bmc-primary);
}

/* Swatches */
.bmc-swatches-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bmc-swatch-item {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid #ffffff;
	outline: 2px solid #e2e8f0;
	cursor: pointer;
	transition: outline-color 0.2s ease, transform 0.2s ease;
	padding: 0;
}

.bmc-swatch-item:hover {
	transform: scale(1.1);
}

.bmc-swatch-item.bmc-swatch-active {
	outline: 3px solid var(--bmc-primary);
	transform: scale(1.12);
}

/* Size Pills */
.bmc-sizes-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bmc-size-pill {
	min-width: 46px;
	padding: 8px 14px;
	border-radius: 8px;
	background: #ffffff;
	border: 1px solid var(--bmc-border);
	font-size: 13px;
	font-weight: 700;
	color: var(--bmc-text-main);
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
}

.bmc-size-pill:hover {
	border-color: #94a3b8;
}

.bmc-size-pill.bmc-size-active {
	background: var(--bmc-primary);
	color: #ffffff;
	border-color: var(--bmc-primary);
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

/* Quantity Stepper */
.bmc-qty-stepper-wrap {
	display: inline-flex;
	align-items: center;
	background: #f8fafc;
	border: 1px solid var(--bmc-border);
	border-radius: var(--bmc-radius-sm);
	padding: 3px;
}

.bmc-qty-btn {
	width: 36px;
	height: 36px;
	background: #ffffff;
	border: 1px solid var(--bmc-border);
	border-radius: 6px;
	font-size: 18px;
	font-weight: 700;
	color: var(--bmc-text-main);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.bmc-qty-btn:hover {
	background: #f1f5f9;
}

.bmc-qty-input {
	width: 50px;
	height: 36px;
	border: none;
	background: transparent;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	color: var(--bmc-text-main);
	padding: 0;
	-moz-appearance: textfield;
}

.bmc-qty-input::-webkit-outer-spin-button,
.bmc-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Notes Textarea */
.bmc-notes-textarea {
	width: 100%;
	padding: 10px 12px;
	border-radius: var(--bmc-radius-sm);
	border: 1px solid var(--bmc-border);
	font-size: 13px;
	font-family: inherit;
	resize: vertical;
	background: #ffffff;
	color: var(--bmc-text-main);
}

.bmc-notes-textarea:focus {
	outline: none;
	border-color: var(--bmc-primary);
}

/* Total Price Bar */
.bmc-calc-bar {
	background: #f8fafc;
	border: 1px solid var(--bmc-border);
	border-radius: var(--bmc-radius-sm);
	padding: 14px 18px;
	margin-bottom: 22px;
}

.bmc-calc-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	font-weight: 600;
	color: var(--bmc-text-main);
}

.bmc-calc-total {
	font-size: 22px;
	font-weight: 800;
	color: var(--bmc-primary);
}

.bmc-error-notice {
	margin-top: 10px;
	padding: 10px 14px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: var(--bmc-radius-sm);
	color: #b91c1c;
	font-size: 13px;
	font-weight: 600;
}

/* --- STEP 3: REVIEW & WHATSAPP CARD --- */
.bmc-review-card {
	max-width: 600px;
	margin: 0 auto;
	background: var(--bmc-surface);
	border: 1px solid var(--bmc-border);
	border-radius: var(--bmc-radius-md);
	padding: 30px;
	box-shadow: var(--bmc-shadow-md);
}

.bmc-review-product-row {
	display: flex;
	gap: 18px;
	align-items: center;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--bmc-border);
	margin-bottom: 20px;
}

.bmc-rev-img {
	width: 80px;
	height: 80px;
	object-fit: contain;
	background: #f8fafc;
	border-radius: var(--bmc-radius-sm);
	border: 1px solid var(--bmc-border);
	padding: 6px;
}

.bmc-rev-title {
	font-size: 18px;
	font-weight: 800;
	margin: 0 0 4px;
}

.bmc-rev-tagline {
	font-size: 13px;
	color: var(--bmc-text-muted);
	margin: 0;
}

.bmc-review-specs-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}

.bmc-rev-spec-item {
	background: #f8fafc;
	border: 1px solid #f1f5f9;
	border-radius: var(--bmc-radius-sm);
	padding: 12px 14px;
}

.bmc-rev-spec-label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	color: var(--bmc-text-muted);
	font-weight: 600;
	margin-bottom: 4px;
	letter-spacing: 0.03em;
}

.bmc-rev-color-pill {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
}

.bmc-rev-color-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid #cbd5e1;
}

.bmc-rev-pill {
	font-size: 14px;
	font-weight: 700;
	color: var(--bmc-text-main);
}

.bmc-rev-notes-section {
	background: #f8fafc;
	border: 1px solid #f1f5f9;
	border-radius: var(--bmc-radius-sm);
	padding: 12px 14px;
	margin-bottom: 20px;
}

.bmc-rev-note-content {
	font-size: 13px;
	color: var(--bmc-text-main);
	margin: 4px 0 0;
	font-style: italic;
	white-space: pre-wrap;
}

.bmc-rev-total-box {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f1f5f9;
	border-radius: var(--bmc-radius-sm);
	padding: 16px 20px;
	margin-bottom: 24px;
}

.bmc-rev-total-label {
	font-size: 15px;
	font-weight: 700;
	color: var(--bmc-text-main);
}

.bmc-rev-total-val {
	font-size: 24px;
	font-weight: 900;
	color: var(--bmc-primary);
}

.bmc-whatsapp-cta-section {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bmc-whatsapp-btn {
	background: var(--bmc-whatsapp);
	color: #ffffff;
	border: none;
	border-radius: var(--bmc-radius-sm);
	padding: 16px 24px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	width: 100%;
}

.bmc-whatsapp-btn:hover {
	background: var(--bmc-whatsapp-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
	color: #ffffff;
}

.bmc-wa-disclaimer {
	font-size: 12px;
	color: var(--bmc-text-muted);
	text-align: center;
	margin-top: 14px;
	line-height: 1.4;
}

/* --- GALLERY MODAL --- */
.bmc-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(4px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.bmc-modal-dialog {
	background: #ffffff;
	border-radius: var(--bmc-radius-md);
	max-width: 650px;
	width: 100%;
	overflow: hidden;
	box-shadow: var(--bmc-shadow-lg);
	max-height: 90vh;
	display: flex;
	flex-direction: column;
}

.bmc-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid var(--bmc-border);
}

.bmc-modal-title {
	font-size: 18px;
	font-weight: 800;
	margin: 0;
}

.bmc-modal-close-btn {
	background: none;
	border: none;
	font-size: 18px;
	cursor: pointer;
	color: var(--bmc-text-muted);
	padding: 4px;
}

.bmc-modal-close-btn:hover {
	color: var(--bmc-primary);
}

.bmc-modal-body {
	padding: 20px;
	overflow-y: auto;
}

.bmc-modal-main-img-wrap {
	background: #f8fafc;
	border-radius: var(--bmc-radius-sm);
	padding: 20px;
	text-align: center;
	min-height: 280px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.bmc-modal-main-img-wrap img {
	max-width: 100%;
	max-height: 260px;
	object-fit: contain;
}

.bmc-modal-thumbs-row {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-bottom: 16px;
	overflow-x: auto;
}

.bmc-modal-thumb {
	width: 50px;
	height: 50px;
	object-fit: contain;
	border: 2px solid transparent;
	border-radius: 6px;
	background: #f8fafc;
	cursor: pointer;
	padding: 2px;
	transition: border-color 0.2s ease;
}

.bmc-modal-thumb.bmc-thumb-active {
	border-color: var(--bmc-primary);
}

.bmc-modal-desc-box h4 {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 4px;
	color: var(--bmc-primary);
}

.bmc-modal-desc-box p {
	font-size: 13px;
	color: var(--bmc-text-muted);
	margin: 0 0 16px;
	line-height: 1.5;
}

.bmc-modal-meta-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 14px;
	border-top: 1px solid var(--bmc-border);
}

.bmc-modal-price {
	font-size: 20px;
	font-weight: 800;
	color: var(--bmc-primary);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
	.bmc-steps-bar {
		padding: 10px 14px;
		gap: 6px;
	}

	.bmc-step-text {
		display: none;
	}

	.bmc-step-divider {
		max-width: 30px;
	}

	.bmc-step2-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.bmc-image-viewer-card {
		position: static;
		padding: 16px;
	}

	.bmc-main-image-wrap {
		min-height: 260px;
	}

	.bmc-options-card {
		padding: 20px 16px;
	}

	.bmc-review-card {
		padding: 20px 16px;
	}

	.bmc-review-specs-grid {
		grid-template-columns: 1fr;
	}
}
