.boutique-page { margin-bottom: 2rem; }
.scmc-shop-notice { padding: .75rem 1rem; border-radius: 8px; margin: 1rem 0; border:1px solid var(--border); }
.scmc-shop-success { background: color-mix(in oklab, var(--panel) 80%, transparent); }
.scmc-shop-error { background: color-mix(in oklab, var(--brand) 12%, var(--panel)); }
.scmc-shop-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:1rem; margin:1rem 0 1.5rem; align-items:start; }
.scmc-shop-form { width:100%; max-width:100%; overflow-x:hidden; }
.scmc-shop-card { border:1px solid var(--border); border-radius:14px; background:var(--panel); padding:1rem; display:flex; flex-direction:column; gap:.65rem; box-shadow: 0 6px 20px color-mix(in oklab, var(--text) 8%, transparent); }
.scmc-shop-card h3 { margin:.1rem 0 .35rem; line-height:1.2; }
.scmc-shop-gender { align-self:flex-start; padding:.2rem .55rem; border:1px solid var(--border); border-radius:999px; font-size:.82rem; color:var(--muted); background:color-mix(in oklab, var(--panel) 85%, transparent); }
.scmc-shop-media { display:flex; flex-direction:column; gap:.45rem; }
.scmc-shop-image-wrap { width:100%; aspect-ratio: 4 / 3; border:1px solid var(--border); border-radius:10px; overflow:hidden; background:color-mix(in oklab, var(--panel) 92%, transparent); }
.scmc-shop-image { width:100%; height:100%; object-fit:contain; display:block; }
.scmc-shop-thumbs { display:flex; gap:.45rem; overflow-x:auto; padding-bottom:.15rem; scrollbar-width:thin; }
.scmc-thumb { border:1px solid var(--border); background:var(--panel); border-radius:8px; padding:0; width:52px; height:52px; flex:0 0 52px; overflow:hidden; cursor:pointer; }
.scmc-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.scmc-thumb.is-active { border-color:var(--brand); }
.scmc-shop-card select, .scmc-shop-card input, .scmc-shop-customer input, .scmc-shop-customer textarea { width:100%; max-width:100%; }
.scmc-shop-stock { font-size:.95rem; color:var(--muted); }
.scmc-shop-stock.is-out { color:var(--text); font-weight:600; }
.scmc-shop-price { font-size:.95rem; color:var(--text); font-weight:600; }
.scmc-qty-stepper {
	display: inline-grid;
	grid-template-columns: 40px minmax(54px, 74px) 40px;
	align-items: center;
	border: 1px solid var(--border);
	border-radius: 999px;
	overflow: hidden;
	background: color-mix(in oklab, var(--panel) 88%, white);
	box-shadow: inset 0 1px 0 color-mix(in oklab, var(--panel) 70%, white);
}
.scmc-qty-btn {
	min-height: 40px;
	border: 0;
	border-radius: 0;
	background: color-mix(in oklab, var(--panel) 80%, white);
	color: var(--text);
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	transition: background-color .15s ease, transform .1s ease;
}
.scmc-qty-btn:hover {
	background: color-mix(in oklab, var(--brand) 10%, var(--panel));
}
.scmc-qty-btn:active {
	transform: translateY(1px);
}
.scmc-qty-btn:disabled {
	opacity: .55;
	cursor: not-allowed;
}
.scmc-qty {
	width: auto;
	max-width: none;
	min-height: 40px;
	border: 0;
	border-left: 1px solid var(--border);
	border-right: 1px solid var(--border);
	border-radius: 0;
	background: transparent;
	text-align: center;
	font-weight: 800;
	letter-spacing: .02em;
	padding: 0 .5rem;
}
.scmc-qty:focus {
	outline: none;
}
.scmc-shop-customer { border:1px solid var(--border); border-radius:12px; padding:1rem; background:var(--panel); width:100%; max-width:100%; box-sizing:border-box; min-inline-size:0; }
.scmc-shop-customer legend { padding:0 .4rem; }
.scmc-shop-customer p { margin:.65rem 0; }
.scmc-shop-total-row { margin:.2rem 0 .8rem; font-size:1rem; }
.scmc-shop-help { display:block; margin-top:.4rem; color:var(--muted); }
.scmc-shop-order-summary {
	margin: .2rem 0 .9rem;
	padding: .75rem;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: color-mix(in oklab, var(--panel) 90%, white);
}
.scmc-shop-summary-title {
	margin: 0 0 .55rem;
	font-weight: 700;
}
.scmc-shop-summary-list {
	display: flex;
	flex-direction: column;
	gap: .45rem;
}
.scmc-shop-summary-empty {
	margin: 0;
	color: var(--muted);
}

.scmc-add-btn {
	width: 100%;
	min-height: 44px;
	padding: .6rem 1rem;
	border: 1px solid var(--brand);
	border-radius: 8px;
	background: var(--brand);
	color: white;
	font-weight: 600;
	font-size: .95rem;
	cursor: pointer;
	transition: background-color .15s ease, opacity .15s ease;
}
.scmc-add-btn:hover {
	opacity: .9;
}
.scmc-add-btn:active {
	transform: translateY(1px);
}
.scmc-add-btn:disabled {
	opacity: .5;
	cursor: not-allowed;
	transform: none;
}

.scmc-selected-variants {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	padding-top: .5rem;
	border-top: 1px solid var(--border);
}

.scmc-variant-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: .5rem .6rem;
	background: color-mix(in oklab, var(--brand) 8%, var(--panel));
	border: 1px solid color-mix(in oklab, var(--brand) 20%, var(--border));
	border-radius: 6px;
	font-size: .9rem;
	gap: .5rem;
}

.scmc-variant-row-text {
	flex: 1;
	min-width: 0;
	word-break: break-word;
}

.scmc-remove-variant {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: color-mix(in oklab, var(--text) 12%, transparent);
	color: var(--text);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color .15s ease;
}
.scmc-remove-variant:hover {
	background: color-mix(in oklab, var(--text) 25%, transparent);
}

@media (max-width: 640px){
	.scmc-shop-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px){
	.scmc-shop-grid {
		grid-template-columns: 1fr;
		gap: .9rem;
	}
	.scmc-shop-card {
		padding: .9rem;
		border-radius: 12px;
	}
	.scmc-shop-card label,
	.scmc-shop-customer label {
		display:block;
		margin-bottom:.25rem;
	}
	.scmc-shop-card select,
	.scmc-shop-card input,
	.scmc-shop-customer input,
	.scmc-shop-customer select,
	.scmc-shop-customer textarea,
	.scmc-shop-form button {
		min-height: 44px;
		font-size: 16px;
	}
	.scmc-shop-form button {
		width: 100%;
	}
	.scmc-qty-stepper {
		grid-template-columns: 42px minmax(58px, 80px) 42px;
	}
	.scmc-qty,
	.scmc-qty-btn {
		min-height: 42px;
	}
	.scmc-thumb {
		width: 60px;
		height: 60px;
		flex: 0 0 60px;
	}
	.scmc-shop-customer {
		padding: .9rem;
	}
}
