/**
 * Apparel Studio & Garment Customizer - Scoped Stylesheet
 * https://abdul-sj.github.io/Portfolio/
 */

:root {
	--gc-bg-dark: #0f172a;
	--gc-bg-card: #1e293b;
	--gc-bg-card-sub: #334155;
	--gc-primary: #3b82f6;
	--gc-primary-hover: #2563eb;
	--gc-accent-gold: #f59e0b;
	--gc-text-light: #f8fafc;
	--gc-text-muted: #94a3b8;
	--gc-border: #334155;
	--gc-border-light: #475569;
	--gc-radius: 12px;
	--gc-radius-sm: 8px;
	--gc-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

#garment-customizer-app,
.gc-studio-root {
	color-scheme: dark !important;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background: var(--gc-bg-dark) !important;
	color: var(--gc-text-light) !important;
	border-radius: var(--gc-radius);
	border: 1px solid var(--gc-border);
	box-shadow: var(--gc-shadow);
	overflow: hidden;
	margin: 24px 0;
	box-sizing: border-box;
}

#garment-customizer-app *,
.gc-studio-root * {
	box-sizing: border-box;
}

/* Force High Contrast on Headings & Labels against theme style leakage */
html body #garment-customizer-app h1,
html body #garment-customizer-app h2,
html body #garment-customizer-app h3,
html body #garment-customizer-app h4,
html body #garment-customizer-app h5,
html body #garment-customizer-app h6,
html body .gc-modal-dialog h1,
html body .gc-modal-dialog h2,
html body .gc-modal-dialog h3,
html body .gc-modal-dialog h4,
html body .gc-modal-dialog h5,
html body #gc-techpack-modal h3,
html body #gc-techpack-modal h4 {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

html body #garment-customizer-app label,
html body .gc-studio-root label,
html body #garment-customizer-app .gc-label-micro,
html body #garment-customizer-app .gc-custom-color-label {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	opacity: 1 !important;
}

/* Header */
.gc-studio-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 24px;
	background: #0b1120;
	border-bottom: 1px solid var(--gc-border);
	flex-wrap: wrap;
	gap: 16px;
}

.gc-brand-block {
	display: flex;
	align-items: center;
	gap: 12px;
}

.gc-badge {
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	color: #ffffff !important;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.1em;
	padding: 4px 8px;
	border-radius: 4px;
	text-transform: uppercase;
}

.gc-studio-title {
	font-family: 'Oswald', sans-serif;
	font-size: 20px;
	font-weight: 700;
	margin: 0;
	color: #ffffff !important;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.gc-header-presets {
	display: flex;
	align-items: center;
	gap: 8px;
}

.gc-label-micro {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: #cbd5e1 !important;
	letter-spacing: 0.05em;
}

/* Dropdown & Option Elements across all browsers & themes */
html body #garment-customizer-app select,
html body #garment-customizer-app select option,
html body .gc-studio-root select,
html body .gc-studio-root select option,
html body .gc-select-styled,
html body .gc-select-styled option,
.gc-select-styled,
.gc-select-styled option {
	color-scheme: dark !important;
	background-color: #1e293b !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	border: 1px solid #475569 !important;
	font-weight: 600;
}

html body #garment-customizer-app select option,
html body .gc-studio-root select option,
html body .gc-select-styled option {
	background-color: #1e293b !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	padding: 10px 14px !important;
}

.gc-select-styled {
	padding: 8px 32px 8px 12px;
	border-radius: var(--gc-radius-sm);
	font-size: 13px;
	outline: none;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 10px center !important;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	transition: border-color 0.2s, background-color 0.2s;
}

.gc-select-styled:focus {
	border-color: var(--gc-primary) !important;
}

.gc-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.gc-btn-icon {
	background: var(--gc-bg-card);
	color: var(--gc-text-light) !important;
	border: 1px solid var(--gc-border);
	padding: 8px 14px;
	border-radius: var(--gc-radius-sm);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.gc-btn-icon span,
.gc-btn-icon svg {
	color: var(--gc-text-light) !important;
}

.gc-btn-icon:hover {
	background: var(--gc-bg-card-sub);
	border-color: var(--gc-border-light);
	color: #fff !important;
}

.gc-btn-icon:hover span,
.gc-btn-icon:hover svg {
	color: #fff !important;
}

.gc-btn-icon.gc-btn-techpack {
	background: rgba(255, 255, 255, 0.06) !important;
	border-color: var(--gc-primary) !important;
	color: var(--gc-tab-active) !important;
}

.gc-btn-icon.gc-btn-techpack span,
.gc-btn-icon.gc-btn-techpack svg {
	color: var(--gc-tab-active) !important;
}

.gc-btn-icon.gc-btn-techpack:hover {
	background: var(--gc-primary) !important;
	border-color: var(--gc-primary) !important;
	color: #ffffff !important;
}

.gc-btn-icon.gc-btn-techpack:hover span,
.gc-btn-icon.gc-btn-techpack:hover svg {
	color: #ffffff !important;
}

/* Garment Model Selection Bar */
.gc-garment-select-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 24px;
	background: #111827;
	border-bottom: 1px solid var(--gc-border);
	flex-wrap: wrap;
	gap: 12px;
}

.gc-garment-select-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #cbd5e1 !important;
	-webkit-text-fill-color: #cbd5e1 !important;
}

.gc-garment-select-label svg {
	color: var(--gc-tab-active, var(--gc-primary));
}

.gc-garment-toggle-group {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.gc-garment-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--gc-border);
	border-radius: var(--gc-radius-sm);
	color: #cbd5e1 !important;
	cursor: pointer;
	transition: all 0.22s ease-in-out;
	text-align: left;
}

.gc-garment-btn svg {
	color: #94a3b8;
	transition: color 0.2s;
	flex-shrink: 0;
}

.gc-garment-btn-info {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.gc-garment-btn-info strong {
	font-size: 12.5px;
	font-weight: 700;
	color: #f1f5f9 !important;
	-webkit-text-fill-color: #f1f5f9 !important;
	letter-spacing: 0.02em;
}

.gc-garment-btn-info small {
	font-size: 10.5px;
	color: #94a3b8 !important;
	-webkit-text-fill-color: #94a3b8 !important;
}

.gc-garment-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: var(--gc-border-light);
}

.gc-garment-btn.active {
	background: var(--gc-primary) !important;
	border-color: var(--gc-primary) !important;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.gc-garment-btn.active svg {
	color: #ffffff !important;
}

.gc-garment-btn.active .gc-garment-btn-info strong,
.gc-garment-btn.active .gc-garment-btn-info small {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

/* Workspace Layout */
.gc-studio-workspace {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	min-height: 680px;
}

/* Stage Area */
.gc-stage-container {
	background: radial-gradient(circle at center, #1e293b 0%, #0b1120 100%);
	padding: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	border-right: 1px solid var(--gc-border);
	position: relative;
	overflow: hidden;
}

.gc-view-switcher {
	display: flex;
	background: rgba(15, 23, 42, 0.8);
	backdrop-filter: blur(8px);
	padding: 4px;
	border-radius: 9999px;
	border: 1px solid var(--gc-border);
	gap: 4px;
	z-index: 10;
}

.gc-view-btn {
	background: transparent;
	border: none;
	color: var(--gc-text-muted);
	padding: 6px 16px;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s;
}

.gc-view-btn.active {
	background: var(--gc-primary);
	color: #fff !important;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.gc-view-btn.active span,
.gc-view-btn.active svg {
	color: #fff !important;
}

/* Canvas Viewport */
.gc-canvas-viewport {
	position: relative;
	width: 100%;
	max-width: 540px;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: auto;
}

.gc-canvas-layer-wrap {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

#gc-main-canvas {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
	cursor: crosshair;
}

.gc-interaction-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* Back view placeholder */
.gc-back-placeholder {
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.7);
	border: 2px dashed var(--gc-border-light);
	border-radius: var(--gc-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 32px;
}

.gc-placeholder-content h3 {
	font-size: 18px;
	margin: 12px 0 8px 0;
	color: #fff !important;
}

.gc-placeholder-content p {
	font-size: 13px;
	color: var(--gc-text-muted) !important;
	max-width: 320px;
	margin: 0 auto 16px auto;
	line-height: 1.5;
}

/* Loader */
.gc-canvas-loader {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(6px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 20;
	border-radius: var(--gc-radius);
}

.gc-spinner {
	width: 42px;
	height: 42px;
	border: 3px solid rgba(255, 255, 255, 0.1);
	border-top-color: var(--gc-primary);
	border-radius: 50%;
	animation: gc-spin 0.8s linear infinite;
	margin-bottom: 12px;
}

@keyframes gc-spin {
	to { transform: rotate(360deg); }
}

/* Floating Toolbar */
.gc-canvas-tools {
	position: absolute;
	bottom: 16px;
	right: 16px;
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(8px);
	border: 1px solid var(--gc-border);
	border-radius: var(--gc-radius-sm);
	display: flex;
	align-items: center;
	padding: 4px;
	gap: 4px;
	z-index: 10;
}

.gc-tool-btn {
	background: transparent;
	border: none;
	color: var(--gc-text-light);
	font-weight: 700;
	font-size: 13px;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.gc-tool-btn svg {
	display: block;
	width: 15px;
	height: 15px;
	stroke: #ffffff !important;
	color: #ffffff !important;
	flex-shrink: 0;
}

.gc-tool-btn:hover {
	background: var(--gc-bg-card-sub);
}

.gc-tool-btn.active {
	background: var(--gc-primary) !important;
	color: #ffffff !important;
}

.gc-tool-btn.active svg {
	stroke: #ffffff !important;
}

.gc-tool-divider {
	width: 1px;
	height: 16px;
	background: var(--gc-border-light);
	margin: 0 2px;
}

/* Active Colorway Bar */
.gc-active-colorway-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(15, 23, 42, 0.7);
	padding: 8px 16px;
	border-radius: 9999px;
	border: 1px solid var(--gc-border);
	font-size: 12px;
}

.gc-colorway-label {
	color: #cbd5e1 !important;
	font-weight: 600;
}

.gc-colorway-swatches {
	display: flex;
	gap: 6px;
}

.gc-summary-chip {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.3);
	display: inline-block;
}

/* Controls Sidebar */
.gc-controls-sidebar {
	background: var(--gc-bg-card);
	display: flex;
	flex-direction: column;
	border-left: 1px solid var(--gc-border);
}

/* Tabs */
.gc-sidebar-tabs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: #0b1120;
	border-bottom: 1px solid var(--gc-border);
}

.gc-tab-btn {
	background: transparent;
	border: none;
	color: var(--gc-text-muted);
	padding: 14px 8px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	transition: all 0.2s;
	border-bottom: 2px solid transparent;
}

.gc-tab-btn span,
.gc-tab-btn svg {
	color: var(--gc-text-muted);
}

.gc-tab-btn:hover {
	color: #ffffff !important;
}

.gc-tab-btn:hover span,
.gc-tab-btn:hover svg {
	color: #ffffff !important;
}

.gc-tab-btn.active {
	color: #38bdf8 !important;
	border-bottom-color: var(--gc-primary);
	background: rgba(37, 99, 235, 0.1);
}

.gc-tab-btn.active span,
.gc-tab-btn.active svg {
	color: #38bdf8 !important;
}

/* Tab Contents */
.gc-tab-contents {
	padding: 24px;
	overflow-y: auto;
	max-height: 600px;
	flex: 1;
}

.gc-tab-panel {
	display: none;
}

.gc-tab-panel.active {
	display: block;
	animation: gc-fade-in 0.2s ease-in-out;
}

@keyframes gc-fade-in {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

.gc-section-title {
	margin-bottom: 20px;
}

.gc-section-title h3 {
	font-size: 16px;
	font-weight: 800;
	margin: 0 0 4px 0;
	color: #ffffff !important;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.gc-section-title p {
	font-size: 12px;
	color: #cbd5e1 !important;
	margin: 0;
	line-height: 1.4;
}

/* Zone Selector Pills */
.gc-zone-selector {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.gc-zone-pill {
	background: var(--gc-bg-dark);
	border: 1px solid var(--gc-border);
	color: #e2e8f0 !important;
	padding: 6px 12px;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	transition: all 0.2s;
}

.gc-zone-pill span {
	color: #e2e8f0 !important;
}

.gc-zone-pill:hover {
	border-color: var(--gc-border-light);
	background: var(--gc-bg-card-sub);
}

.gc-zone-pill.active {
	background: var(--gc-primary) !important;
	border-color: var(--gc-primary) !important;
	box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.gc-zone-pill.active span {
	color: #ffffff !important;
	font-weight: 700;
}

.gc-swatch-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
	border: 1px solid rgba(255,255,255,0.4);
}

.gc-active-zone-header {
	background: var(--gc-bg-dark);
	padding: 10px 14px;
	border-radius: var(--gc-radius-sm);
	margin-bottom: 16px;
	border: 1px solid var(--gc-border);
}

.gc-active-zone-header h4 {
	margin: 2px 0 0 0;
	color: #ffffff !important;
	font-size: 14px;
}

/* Swatch Grid */
.gc-swatch-grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 8px;
	margin-bottom: 18px;
}

.gc-swatch-item {
	aspect-ratio: 1 / 1;
	border-radius: 6px;
	cursor: pointer;
	border: 2px solid transparent;
	transition: transform 0.15s, border-color 0.15s;
	position: relative;
}

.gc-swatch-item:hover {
	transform: scale(1.15);
	z-index: 5;
}

.gc-swatch-item.active {
	border-color: #fff;
	box-shadow: 0 0 0 2px var(--gc-primary);
	transform: scale(1.1);
}

/* Custom Hex Row */
html body #garment-customizer-app .gc-custom-color-row,
html body .gc-studio-root .gc-custom-color-row,
.gc-custom-color-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #1e293b !important;
	padding: 12px 16px;
	border-radius: var(--gc-radius-sm);
	border: 1px solid #475569 !important;
	margin-bottom: 20px;
	font-size: 13px;
}

html body #garment-customizer-app .gc-custom-color-row label,
html body #garment-customizer-app .gc-custom-color-label,
html body .gc-studio-root .gc-custom-color-label,
html body #garment-customizer-app label[for="gc-custom-hex-input"],
.gc-custom-color-row label,
.gc-custom-color-label {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	margin: 0 !important;
	display: inline-block !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.gc-picker-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.gc-color-input-bubble {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid #64748b;
	border-radius: 4px;
	cursor: pointer;
	background: none;
}

.gc-input-styled {
	background: #0f172a !important;
	border: 1px solid #475569 !important;
	color: #ffffff !important;
	padding: 6px 10px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 700;
	outline: none;
	width: 90px;
	font-family: monospace;
}

/* Presets Card */
.gc-presets-card {
	background: var(--gc-bg-dark);
	border-radius: var(--gc-radius-sm);
	padding: 14px;
	border: 1px solid var(--gc-border);
}

.gc-presets-card h4 {
	margin: 0 0 10px 0;
	font-size: 13px;
	text-transform: uppercase;
	color: #cbd5e1 !important;
}

.gc-presets-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.gc-preset-chip {
	background: var(--gc-bg-card);
	border: 1px solid var(--gc-border);
	padding: 8px;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: all 0.2s;
}

.gc-preset-chip:hover {
	border-color: var(--gc-primary);
	background: var(--gc-bg-card-sub);
}

.gc-preset-name {
	font-size: 12px;
	font-weight: 700;
	color: #fff;
}

.gc-preset-colors-row {
	display: flex;
	gap: 4px;
}

.gc-mini-swatch {
	width: 14px;
	height: 14px;
	border-radius: 3px;
	display: inline-block;
}

/* Form Controls & Sliders */
.gc-form-group {
	margin-bottom: 16px;
}

.gc-form-group label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: #cbd5e1 !important;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.gc-form-group input[type="text"] {
	width: 100%;
	background: var(--gc-bg-dark);
	border: 1px solid var(--gc-border-light);
	color: #fff;
	padding: 10px 14px;
	border-radius: var(--gc-radius-sm);
	font-size: 14px;
	outline: none;
}

.gc-range-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.gc-range-header label {
	margin-bottom: 0;
}

.gc-range-header span {
	font-size: 12px;
	font-weight: 700;
	color: var(--gc-primary);
	font-family: monospace;
}

.gc-range-slider {
	width: 100%;
	accent-color: var(--gc-primary);
	cursor: pointer;
}

/* Font Selector */
.gc-font-selector {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}

.gc-font-option {
	background: var(--gc-bg-dark);
	border: 1px solid var(--gc-border);
	color: #fff;
	padding: 10px;
	border-radius: var(--gc-radius-sm);
	font-size: 13px;
	cursor: pointer;
	text-align: center;
	transition: all 0.2s;
}

.gc-font-option:hover {
	border-color: var(--gc-border-light);
}

.gc-font-option.active {
	border-color: var(--gc-primary) !important;
	background: rgba(255, 255, 255, 0.08) !important;
	color: var(--gc-tab-active) !important;
}

/* Craft Selector */
.gc-craft-cards {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gc-craft-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--gc-bg-dark);
	border: 1px solid var(--gc-border);
	padding: 10px 14px;
	border-radius: var(--gc-radius-sm);
	cursor: pointer;
	transition: all 0.2s;
}

.gc-craft-card:hover {
	border-color: var(--gc-border-light);
}

.gc-craft-card.active {
	border-color: var(--gc-primary) !important;
	background: rgba(255, 255, 255, 0.08) !important;
}

.gc-craft-card input[type="radio"] {
	margin-right: 10px;
	accent-color: var(--gc-primary);
}

.gc-craft-info {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.gc-craft-info strong {
	font-size: 13px;
	color: #fff;
}

.gc-craft-info span {
	font-size: 11px;
	color: var(--gc-text-muted);
}

.gc-craft-badge {
	font-size: 11px;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.08);
	color: var(--gc-tab-active);
	padding: 2px 8px;
	border-radius: 4px;
	border: 1px solid var(--gc-primary);
}

/* Mini Picker */
.gc-felt-colors-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.gc-mini-picker {
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--gc-bg-dark);
	padding: 6px;
	border-radius: var(--gc-radius-sm);
	border: 1px solid var(--gc-border);
}

.gc-mini-picker input[type="color"] {
	width: 28px;
	height: 28px;
	border: none;
	background: none;
	cursor: pointer;
}

.gc-mini-picker input[type="text"] {
	width: 100%;
	padding: 4px 6px;
	font-size: 12px;
}

/* Button Groups */
.gc-btn-group {
	display: flex;
	gap: 8px;
}

.gc-btn-small {
	background: var(--gc-bg-dark);
	border: 1px solid var(--gc-border);
	color: #fff;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	flex: 1;
	transition: all 0.2s;
}

.gc-btn-small:hover {
	background: var(--gc-bg-card-sub);
}

/* Upload Dropzone */
.gc-upload-zone {
	border: 2px dashed var(--gc-border-light);
	border-radius: var(--gc-radius);
	padding: 28px;
	text-align: center;
	position: relative;
	background: var(--gc-bg-dark);
	cursor: pointer;
	transition: all 0.2s;
}

.gc-upload-zone:hover {
	border-color: var(--gc-primary);
	background: rgba(37, 99, 235, 0.05);
}

.gc-upload-zone input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
}

.gc-upload-prompt {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.gc-upload-prompt strong {
	font-size: 14px;
	color: #fff;
}

.gc-upload-prompt span {
	font-size: 12px;
	color: var(--gc-text-muted);
}

/* Artwork List */
.gc-artwork-list {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gc-artwork-item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--gc-bg-dark);
	border: 1px solid var(--gc-border);
	padding: 8px 12px;
	border-radius: var(--gc-radius-sm);
	cursor: pointer;
	transition: all 0.2s;
}

.gc-artwork-item.active {
	border-color: var(--gc-primary);
	background: rgba(37, 99, 235, 0.1);
}

.gc-artwork-thumb {
	width: 36px;
	height: 36px;
	border-radius: 4px;
	object-fit: contain;
	background: #fff;
}

.gc-artwork-meta {
	flex: 1;
}

.gc-artwork-meta strong {
	display: block;
	font-size: 12px;
	color: #fff;
}

.gc-artwork-meta span {
	font-size: 11px;
	color: var(--gc-text-muted);
}

/* Price Card & Summary */
.gc-price-card {
	background: var(--gc-bg-dark);
	border-radius: var(--gc-radius);
	padding: 20px;
	border: 1px solid var(--gc-border);
	margin-bottom: 20px;
}

.gc-price-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	margin-bottom: 8px;
	color: #cbd5e1 !important;
}

.gc-price-row strong, .gc-price-row span {
	color: #fff !important;
}

.gc-discount-tag {
	background: #15803d;
	color: #86efac !important;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
}

.gc-price-divider {
	height: 1px;
	background: var(--gc-border);
	margin: 12px 0;
}

.gc-price-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 16px;
	font-weight: 800;
	color: #fff !important;
}

.gc-total-amount,
#gc-live-unit-price {
	font-size: 24px;
	color: var(--gc-tab-active) !important;
	font-family: 'Oswald', sans-serif;
	letter-spacing: 0.05em;
}

/* Quantity Stepper */
.gc-quantity-section {
	margin-bottom: 20px;
}

.gc-quantity-section label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: #cbd5e1 !important;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.gc-qty-stepper {
	display: flex;
	align-items: center;
	max-width: 140px;
	background: var(--gc-bg-dark);
	border: 1px solid var(--gc-border-light);
	border-radius: var(--gc-radius-sm);
	overflow: hidden;
	margin-bottom: 8px;
}

.gc-qty-btn {
	background: transparent;
	border: none;
	color: #fff;
	width: 38px;
	height: 38px;
	font-size: 18px;
	cursor: pointer;
	transition: background 0.2s;
}

.gc-qty-btn:hover {
	background: var(--gc-bg-card-sub);
}

.gc-qty-input {
	flex: 1;
	background: transparent;
	border: none;
	color: #fff;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	width: 50px;
	outline: none;
}

.gc-moq-badge {
	font-size: 11px;
	color: #94a3b8;
	font-style: italic;
}

/* Size Pills */
.gc-size-pills {
	display: flex;
	gap: 6px;
}

.gc-size-pill {
	background: var(--gc-bg-dark);
	border: 1px solid var(--gc-border);
	color: #fff;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	flex: 1;
	transition: all 0.2s;
}

.gc-size-pill:hover {
	border-color: var(--gc-border-light);
}

.gc-size-pill.active {
	background: var(--gc-primary);
	border-color: var(--gc-primary);
}

/* Checkout CTA Buttons */
.gc-checkout-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 24px 0 16px 0;
}

.gc-btn-primary {
	background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
	color: #ffffff !important;
	border: none !important;
	padding: 14px 20px;
	border-radius: var(--gc-radius-sm);
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
	transition: all 0.2s ease;
}

.gc-btn-primary span,
.gc-btn-primary svg {
	color: #ffffff !important;
}

.gc-btn-primary:hover {
	background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
	color: #ffffff !important;
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6) !important;
	transform: translateY(-1px);
}

.gc-btn-primary:hover span,
.gc-btn-primary:hover svg {
	color: #ffffff !important;
}

.gc-btn-secondary {
	background: rgba(37, 99, 235, 0.12) !important;
	color: #93c5fd !important;
	border: 1px solid #3b82f6 !important;
	padding: 12px 18px;
	border-radius: var(--gc-radius-sm);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.2s ease;
}

.gc-btn-secondary span,
.gc-btn-secondary svg {
	color: #93c5fd !important;
}

.gc-btn-secondary:hover {
	background: #2563eb !important;
	color: #ffffff !important;
	border-color: #2563eb !important;
}

.gc-btn-secondary:hover span,
.gc-btn-secondary:hover svg {
	color: #ffffff !important;
}

.gc-btn-outline {
	background: transparent;
	border: 1px solid var(--gc-border-light);
	color: #fff;
	padding: 10px 16px;
	border-radius: var(--gc-radius-sm);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.gc-btn-danger-small {
	background: #991b1b;
	color: #fff;
	border: none;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
}

/* Assurance List */
.gc-assurance-list {
	font-size: 11px;
	color: #94a3b8;
	line-height: 1.8;
	border-top: 1px solid var(--gc-border);
	padding-top: 12px;
}

/* Toggle Switch */
.gc-toggle-row {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--gc-bg-dark);
	padding: 12px 14px;
	border-radius: var(--gc-radius-sm);
	margin-bottom: 16px;
	border: 1px solid var(--gc-border);
}

.gc-switch {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 22px;
}

.gc-switch input { opacity: 0; width: 0; height: 0; }

.gc-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background-color: #475569;
	transition: .2s;
	border-radius: 22px;
}

.gc-slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .2s;
	border-radius: 50%;
}

.gc-switch input:checked + .gc-slider {
	background-color: var(--gc-primary);
}

.gc-switch input:checked + .gc-slider:before {
	transform: translateX(20px);
}

.gc-toggle-label {
	font-size: 12px;
	font-weight: 700;
	color: #fff;
}

/* Modal Dialog */
.gc-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(8px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.gc-modal-dialog {
	background: #0f172a;
	border: 1px solid var(--gc-border);
	border-radius: var(--gc-radius);
	width: 100%;
	max-width: 820px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.gc-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 24px;
	background: #0b1120;
	border-bottom: 1px solid var(--gc-border);
}

html body #garment-customizer-app .gc-modal-header h3,
html body .gc-modal-dialog .gc-modal-header h3,
html body #gc-techpack-modal .gc-modal-header h3,
html body .gc-modal-header h3,
.gc-modal-header h3 {
	margin: 4px 0 0 0 !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.gc-modal-close {
	background: none;
	border: none;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	font-size: 24px;
	cursor: pointer;
}

.gc-modal-body {
	padding: 24px;
	overflow-y: auto;
	flex: 1;
}

.gc-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	padding: 16px 24px;
	border-top: 1px solid var(--gc-border);
	background: #0b1120;
}

/* Responsive */
@media (max-width: 1024px) {
	.gc-studio-workspace {
		grid-template-columns: 1fr;
	}
	.gc-stage-container {
		border-right: none;
		border-bottom: 1px solid var(--gc-border);
	}
}

/* ==========================================================================
   DEDICATED FACTORY TECH-PACK PRINT STYLESHEET (100% Full-Color Single Sheet A4)
   ========================================================================== */

.gc-print-sheet-root {
	display: none;
}

@media print {
	@page {
		size: A4 portrait;
		margin: 6mm 8mm 6mm 8mm;
	}

	html, body {
		background: #ffffff !important;
		color: #0f172a !important;
		margin: 0 !important;
		padding: 0 !important;
		width: 100% !important;
		height: auto !important;
		min-height: auto !important;
		overflow: visible !important;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
		color-adjust: exact !important;
	}

	/* Hide whole page & theme elements */
	header, footer, nav, aside, #wpadminbar,
	.woocommerce-breadcrumb, .product_title, .woocommerce-product-gallery,
	.summary, .woocommerce-tabs, .related, .upsells, #comments, #respond,
	.gc-studio-header, .gc-stage-container, .gc-controls-sidebar,
	.gc-modal-backdrop, .gc-modal-dialog, .gc-modal-header, .gc-modal-footer,
	.gc-modal-close, #gc-modal-close-btn, #gc-modal-cancel, #gc-btn-print-techpack {
		display: none !important;
		visibility: hidden !important;
		height: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	/* Display ONLY the clean printable sheet */
	#gc-printable-techpack-sheet,
	#gc-printable-techpack-sheet * {
		visibility: visible !important;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
		color-adjust: exact !important;
	}

	#gc-printable-techpack-sheet {
		display: block !important;
		position: absolute !important;
		left: 0 !important;
		top: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		background: #ffffff !important;
		color: #0f172a !important;
		padding: 0 !important;
		margin: 0 !important;
		box-sizing: border-box !important;
		page-break-after: avoid !important;
		page-break-inside: avoid !important;
		overflow: visible !important;
	}

	.gc-print-container {
		width: 100% !important;
		background: #ffffff !important;
		font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
		font-size: 11px !important;
		line-height: 1.35 !important;
		color: #0f172a !important;
	}

	.gc-print-header {
		display: flex !important;
		justify-content: space-between !important;
		align-items: flex-start !important;
		border-bottom: 2px solid #0f172a !important;
		padding-bottom: 8px !important;
		margin-bottom: 10px !important;
	}

	.gc-print-title {
		font-size: 18px !important;
		font-weight: 900 !important;
		text-transform: uppercase !important;
		color: #0f172a !important;
		letter-spacing: 0.04em !important;
		margin: 0 !important;
	}

	.gc-print-subtitle {
		font-size: 10px !important;
		font-weight: 700 !important;
		text-transform: uppercase !important;
		color: #2563eb !important;
		letter-spacing: 0.06em !important;
		margin-top: 2px !important;
	}

	.gc-print-grid {
		display: grid !important;
		grid-template-columns: 240px 1fr !important;
		gap: 14px !important;
	}

	.gc-print-render-card {
		background: #f8fafc !important;
		border: 1px solid #cbd5e1 !important;
		border-radius: 6px !important;
		padding: 8px !important;
		text-align: center !important;
	}

	.gc-print-render-card img {
		max-width: 100% !important;
		height: auto !important;
		display: block !important;
		margin: 0 auto !important;
		border-radius: 4px !important;
	}

	.gc-print-info-box {
		background: #f8fafc !important;
		border: 1px solid #e2e8f0 !important;
		border-radius: 6px !important;
		padding: 8px 10px !important;
		margin-top: 8px !important;
		font-size: 10.5px !important;
	}

	.gc-print-section {
		margin-bottom: 8px !important;
	}

	.gc-print-section-title {
		font-size: 11px !important;
		font-weight: 800 !important;
		text-transform: uppercase !important;
		letter-spacing: 0.04em !important;
		color: #0f172a !important;
		border-bottom: 1px solid #cbd5e1 !important;
		padding-bottom: 2px !important;
		margin-bottom: 4px !important;
	}

	.gc-print-table {
		width: 100% !important;
		border-collapse: collapse !important;
		font-size: 10.5px !important;
	}

	.gc-print-table th {
		background: #f1f5f9 !important;
		color: #334155 !important;
		font-weight: 700 !important;
		text-align: left !important;
		padding: 4px 6px !important;
		border: 1px solid #e2e8f0 !important;
	}

	.gc-print-table td {
		border: 1px solid #e2e8f0 !important;
		padding: 4px 6px !important;
		color: #1e293b !important;
	}

	.gc-print-swatch-block {
		display: inline-block !important;
		width: 13px !important;
		height: 13px !important;
		border-radius: 3px !important;
		border: 1px solid rgba(0,0,0,0.35) !important;
		vertical-align: middle !important;
		margin-right: 5px !important;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	.gc-print-qc-matrix {
		display: grid !important;
		grid-template-columns: repeat(3, 1fr) !important;
		gap: 4px !important;
		font-size: 9.5px !important;
		background: #f8fafc !important;
		border: 1px dashed #94a3b8 !important;
		padding: 6px !important;
		border-radius: 4px !important;
		margin-top: 6px !important;
	}
}
