/* Product detail page – gallery, magnifier, accordion, price */

.product-detail-section {
	min-height: calc(100vh - 180px);
}

.product-gallery-wrap {
	display: flex;
	flex-direction: row-reverse;
	gap: 0.75rem;
	align-items: flex-start;
	max-height: calc(100vh - 200px);
}

.product-gallery-thumbs {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	overflow-y: auto;
	flex-shrink: 0;
	max-height: 100%;
}

.product-gallery-thumbs img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	cursor: pointer;
	border: 2px solid transparent;
	transition: border-color 0.2s, opacity 0.2s;
}

.product-gallery-thumbs img:hover,
.product-gallery-thumbs img.active {
	border-color: #000;
	opacity: 1;
}

.product-gallery-thumbs img:not(.active) {
	opacity: 0.75;
}

.product-main-image {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #fff;
	max-height: calc(100vh - 200px);
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	position: relative;
}

.product-main-image:hover {
	cursor: none;
}

.product-main-image img {
	max-height: calc(100vh - 202px);
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

.product-magnifier-lens {
	position: absolute;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	border: 2px solid rgba(0, 0, 0, 0.15);
	overflow: hidden;
	pointer-events: none;
	display: none;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
	z-index: 2;
}

.product-main-image:hover .product-magnifier-lens {
	display: block;
}

.product-magnifier-lens img {
	position: absolute;
	max-width: none;
	max-height: none;
}

.product-title-detail {
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}

.product-price-wrap {
	margin-bottom: 1.25rem;
}

.product-price-original {
	color: #c00;
	font-size: 1rem;
	font-weight: normal;
	text-decoration: line-through;
	margin-right: 0.5rem;
}

.product-price-current {
	font-size: 1.75rem;
	font-weight: normal;
	color: #444;
}

.product-accordion {
	--bs-accordion-border-color: #e8e8e8;
	--bs-accordion-btn-focus-box-shadow: none;
}

.product-accordion .accordion-item {
	border: none;
	border-bottom: 1px solid #e8e8e8;
	margin-bottom: 0;
}

.product-accordion .accordion-item:first-child {
	border-top: 1px solid #e8e8e8;
}

.product-accordion .accordion-button {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.9rem 0;
	background: transparent;
	font-weight: 400;
	color: #333;
	border: none;
	box-shadow: none;
}

.product-accordion .accordion-button::after {
	filter: none;
	opacity: 0.5;
}

.product-accordion .accordion-button:not(.collapsed) {
	background: transparent;
	color: #000;
}

.product-accordion .accordion-button:hover {
	background: #fafafa;
}

.product-accordion .accordion-body {
	font-size: 0.9rem;
	color: #555;
	padding: 0 0 1rem 0;
	line-height: 1.6;
	border: none;
}

@media (max-width: 767.98px) {
	.product-detail-section {
		min-height: 0;
		padding-top: 0.5rem !important;
		padding-bottom: 1.5rem !important;
	}

	.product-detail-section .container {
		padding-left: 0.75rem;
		padding-right: 0.75rem;
		max-width: 100%;
	}

	.product-detail-section .breadcrumb {
		font-size: 0.8rem;
		padding-left: 0;
	}

	.product-gallery-wrap {
		flex-direction: column;
		max-height: none;
		gap: 0.5rem;
		width: 100%;
		min-width: 0;
	}

	.product-gallery-thumbs {
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		gap: 0.4rem;
		padding-bottom: 0.25rem;
		max-height: none;
	}

	.product-gallery-thumbs img {
		width: 48px;
		height: 48px;
		flex-shrink: 0;
	}

	.product-main-image {
		width: 100%;
		min-width: 0;
		max-width: 100%;
		box-sizing: border-box;
		max-height: min(70vh, 400px);
		min-height: 200px;
		touch-action: none;
	}

	.product-main-image img {
		width: 100%;
		max-width: 100%;
		max-height: min(68vh, 398px);
		object-fit: contain;
	}

	.product-magnifier-lens {
		width: 160px !important;
		height: 160px !important;
	}

	.row .col-lg-6:last-child {
		margin-top: 0;
	}

	.product-title-detail {
		font-size: 1rem;
		margin-bottom: 0.5rem;
	}

	.product-price-current {
		font-size: 1.4rem;
	}

	.product-price-original {
		font-size: 0.9rem;
	}

	.product-accordion .accordion-button {
		font-size: 0.7rem;
		padding: 0.75rem 0;
	}

	.product-accordion .accordion-body {
		font-size: 0.85rem;
		padding: 0 0 0.75rem 0;
	}
}
