/**
 * Product detail — breadcrumb, two-column layout, option groups.
 */

.bse-product-detail-page {
	padding: 0 1.25rem 3rem;
	box-sizing: border-box;
}

.bse-product-detail-page__inner {
	max-width: 1100px;
	margin: 0 auto;
}

.bse-product-detail__breadcrumb {
	margin: 1rem 0 0.5rem;
	font-size: 0.875rem;
}

.bse-product-detail__breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bse-product-detail__breadcrumb-list a {
	text-decoration: none;
	color: #2271b1;
}

.bse-product-detail__breadcrumb-list a:hover,
.bse-product-detail__breadcrumb-list a:focus {
	text-decoration: underline;
}

.bse-product-detail__title {
	margin: 0.5rem 0 1.5rem;
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	line-height: 1.2;
	font-weight: 600;
}

.bse-product-detail__layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: start;
}

@media screen and (max-width: 782px) {
	.bse-product-detail__layout {
		grid-template-columns: 1fr;
	}
}

.bse-product-detail__col--options {
	min-width: 0;
}

.bse-fieldset {
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 1rem 1.1rem;
	margin: 0 0 1.25rem;
	background: #fff;
}

.bse-fieldset__legend {
	padding: 0 0.35rem;
	font-weight: 600;
	font-size: 0.95rem;
}

.bse-radio {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0.5rem 0 0;
	cursor: pointer;
	font-size: 0.9375rem;
	line-height: 1.4;
}

.bse-radio input {
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.bse-type-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 0.25rem;
}

@media screen and (max-width: 600px) {
	.bse-type-row {
		grid-template-columns: 1fr;
	}
}

.bse-type-column {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 0;
}

.bse-type-card {
	display: block;
	margin: 0;
	cursor: pointer;
}

.bse-type-card__input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.bse-type-card__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 0.75rem;
	border: 2px solid #dcdcde;
	border-radius: 6px;
	background: #fcfcfc;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bse-type-card__input:focus + .bse-type-card__body {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.bse-type-card__input:checked + .bse-type-card__body {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	background: #fff;
}

.bse-type-card__image {
	width: 100%;
	max-width: 180px;
	aspect-ratio: 1;
	border-radius: 4px;
	background: linear-gradient(145deg, #e8e8e8 0%, #f4f4f4 50%, #dedede 100%);
	border: 1px solid #c3c4c7;
}

.bse-type-card__caption {
	margin-top: 0.5rem;
	font-weight: 600;
	font-size: 0.9rem;
}

.bse-fieldset--color .bse-radio {
	margin-top: 0.4rem;
}

.bse-pattern-wrap {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid #e8e8e8;
}

.bse-pattern-wrap__label {
	display: block;
	font-weight: 600;
	font-size: 0.85rem;
	margin-bottom: 0.35rem;
}

.bse-pattern-select {
	width: 100%;
	max-width: 100%;
	padding: 0.4rem 0.5rem;
	font-size: 0.9375rem;
}

.bse-virtual-sample {
	min-height: 280px;
	border: 2px dashed #c3c4c7;
	border-radius: 8px;
	background: #f6f7f7;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	text-align: center;
	box-sizing: border-box;
}

.bse-virtual-sample__label {
	margin: 0 0 0.5rem;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #50575e;
}

.bse-virtual-sample__placeholder {
	margin: 0;
	font-size: 0.9rem;
	color: #646970;
	max-width: 16rem;
	line-height: 1.45;
}
