/* Product Detail Template (extracted) */
.product-detail {
	background: #f8f6f2;
	/* padding: 50px 32px 80px; */
}

.product-detail-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	max-width: 1600px;
	margin: 0 auto;
	align-items: stretch;
	border-radius: 0 0 70px 70px;
    margin-bottom: 220px;
}

.product-detail-media {
	background: linear-gradient(180deg, #f7f4ee 0%, #f1ede6 100%);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	overflow: hidden;
	gap: 10px;
	flex-direction: column;
}

.product-detail-media img {
	width: 100%;
	height: auto;
	max-height: 80vh;
	object-fit: cover;
}

/* Desktop: Show all images stacked */
.product-detail-slider {
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.product-detail-slides {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
	overflow: visible;
	position: relative;
}

.product-detail-slide {
	display: block;
	width: 100%;
}

.product-detail-slide.active {
	display: block;
}

.product-detail-slide img {
	width: 100%;
	height: 100%;
	max-height: 100%;
	object-fit: cover;
}

.product-detail-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: white;
	color: #fff;
	border: none;
	font-size: 32px;
	width: 44px;
	height: 44px;
	cursor: pointer;
	z-index: 10;
	transition: background 0.3s;
	display: none;
}
/* 
.product-detail-arrow:hover {
	background: rgba(0, 0, 0, 0.75);
} */

.product-detail-arrow.prev {
	left: 10px;
}

.product-detail-arrow.next {
	right: 10px;
}

.product-detail-dots {
	display: none;
	position: absolute;
	bottom: 60px;
	left: 50%;
	transform: translateX(-50%);
	gap: 8px;
	z-index: 10;
}

.product-detail-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background 0.3s;
}

.product-detail-dot.active {
	background: #fff;
}

.product-detail-info {
	padding-top: 15px;
	overflow: visible;
	position: relative;
	align-self: stretch;
	padding-bottom: 35px;
}

.product-detail-sticky {
	position: sticky;
	top: 190px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.product-detail-breadcrumb {
	font-size: 13px;
	letter-spacing: 0.04em;
	color: #2d2d2d;
}

.product-detail-title {
	font-size: 34px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0;
}

.product-detail-price {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.05em;
	margin: 8px 0;
}

.product-detail-desc {
	font-size: 15px;
	color: #4d4d4d;
	line-height: 1.7;
}

.product-detail-specs {
	margin-top: 18px;
}

.product-detail-specs table {
	width: 100%;
	border-collapse: collapse;
}

.product-detail-specs td {
	padding: 10px 0;
	border-bottom: 1px solid #e7e3dc;
	font-size: 14px;
}

.product-detail-specs .spec-label {
	width: 35%;
	color: #666;
	letter-spacing: 0.02em;
}

.product-detail-links {
	margin-top: 20px;
}

.product-detail-link {
	font-size: 13px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #1a1a1a;
	text-decoration: none;
}

.product-detail-link:hover {
	text-decoration: underline;
}

@media (max-width: 1024px) {
	.product-detail-info{
		padding: 20px;
	}
	.product-detail-grid {
		grid-template-columns: 1fr;
	}

	.product-detail-media {
		height: 80vh;
	}

	.product-detail-sticky {
		position: relative;
		top: 0;
	}

	/* Show slider on mobile: only show first image, hide others */
	.product-detail-slider {
		display: block;
		position: relative;
		width: 100%;
	}

	.product-detail-slides {
		width: 100%;
		overflow: hidden;
		position: relative;
		display: block;
		gap: 0;
	}

	.product-detail-slide {
		display: none;
		width: 100%;
	}

	.product-detail-slide.active {
		display: block;
	}

	.product-detail-slide img{
		max-height: 80vh;
	}

	.product-detail-arrow {
		display: flex;
	}

	.product-detail-dots {
		display: flex;
	}

	/* Hide stacked images on mobile when slider is present */
	.product-detail-slider ~ img {
		display: none;
	}

	/* Ensure single images are visible and properly sized on mobile */
	.product-detail-media > img {
		display: block;
		max-height: 80vh;
		object-fit: cover;
	}
}
