.mepal-product-main {
	background: #faf7f2;
	color: #2f241e;
	padding: clamp(2rem, 5vw, 5rem) 1rem;
}

.mepal-product__inner {
	margin: 0 auto;
	max-width: 1180px;
}

.mepal-product__breadcrumb {
	align-items: center;
	color: #6b5e55;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.9rem;
	gap: 0.55rem;
	margin-bottom: 1.5rem;
}

.mepal-product__breadcrumb a,
.mepal-product__related a {
	color: #5a3722;
	text-decoration: none;
}

.mepal-product__breadcrumb a:hover,
.mepal-product__related a:hover {
	color: #9e6e3a;
}

.mepal-product__hero {
	align-items: center;
	display: grid;
	gap: clamp(2rem, 5vw, 4.5rem);
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.mepal-product__media {
	min-width: 0;
}

.mepal-product-gallery {
	outline: none;
	touch-action: pan-y;
}

.mepal-product-gallery__viewport {
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	position: relative;
}

.mepal-product-gallery__slide {
	margin: 0;
}

.mepal-product__image {
	aspect-ratio: 1 / 1;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.mepal-product-gallery__control {
	align-items: center;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(90, 55, 34, 0.14);
	border-radius: 50%;
	box-shadow: 0 4px 16px rgba(47, 36, 30, 0.12);
	color: #5a3722;
	cursor: pointer;
	display: none;
	font-size: 2rem;
	height: 44px;
	justify-content: center;
	line-height: 1;
	padding: 0 0 0.15rem;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	z-index: 2;
}

.mepal-product-gallery.is-enhanced .mepal-product-gallery__control {
	display: flex;
}

.mepal-product-gallery__control:hover,
.mepal-product-gallery__control:focus-visible {
	background: #5a3722;
	color: #fff;
	outline: none;
}

.mepal-product-gallery__previous {
	left: 0.8rem;
}

.mepal-product-gallery__next {
	right: 0.8rem;
}

.mepal-product-gallery__status {
	background: rgba(47, 36, 30, 0.72);
	border-radius: 999px;
	bottom: 0.8rem;
	color: #fff;
	font-size: 0.78rem;
	margin: 0;
	padding: 0.3rem 0.65rem;
	pointer-events: none;
	position: absolute;
	right: 0.8rem;
}

.mepal-product-gallery__thumbnails {
	display: flex;
	gap: 0.65rem;
	margin-top: 0.75rem;
	overflow-x: auto;
	padding: 0.2rem 0.15rem 0.45rem;
	scrollbar-width: thin;
}

.mepal-product-gallery__thumbnail {
	background: #fff;
	border: 2px solid transparent;
	border-radius: 9px;
	cursor: pointer;
	flex: 0 0 72px;
	height: 72px;
	overflow: hidden;
	padding: 0;
}

.mepal-product-gallery__thumbnail[aria-current="true"] {
	border-color: #9e6e3a;
	box-shadow: 0 0 0 2px rgba(158, 110, 58, 0.18);
}

.mepal-product-gallery__thumbnail:focus-visible {
	border-color: #5a3722;
	outline: 2px solid #5a3722;
	outline-offset: 2px;
}

.mepal-product-gallery__thumbnail img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.mepal-product__eyebrow {
	color: #b47f43;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0 0 0.8rem;
	text-transform: uppercase;
}

.mepal-product__content h1 {
	color: #2f241e;
	font-size: clamp(2rem, 4vw, 3.6rem);
	line-height: 1.08;
	margin: 0 0 1.25rem;
}

.mepal-product__description {
	color: #4f443d;
	font-size: 1.05rem;
	line-height: 1.75;
}

.mepal-product__project-note {
	background: #ede3d7;
	border-radius: 14px;
	margin: 1.5rem 0;
	padding: 1.25rem 1.4rem;
}

.mepal-product__project-note h2 {
	color: #5a3722;
	font-size: 1.05rem;
	margin: 0 0 0.5rem;
}

.mepal-product__project-note p {
	margin: 0;
}

.mepal-product__cta {
	background: #5a3722;
	border-radius: 6px;
	color: #fff;
	display: inline-flex;
	font-weight: 700;
	padding: 0.9rem 1.4rem;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.mepal-product__cta:hover,
.mepal-product__cta:focus {
	background: #4a2d1d;
	color: #fff;
}

.mepal-product__related {
	border-top: 1px solid #e6ddd3;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	margin-top: clamp(2.5rem, 5vw, 4rem);
	padding-top: 1.5rem;
}

.mepal-product-commercial {
	background: #ede3d7;
	border: 1px solid #e6ddd3;
	border-radius: 18px;
	margin-top: clamp(2.5rem, 5vw, 4rem);
	padding: clamp(1.5rem, 4vw, 2.5rem);
}

.mepal-product-commercial__header {
	max-width: 820px;
}

.mepal-product-commercial__header h2 {
	color: #2f241e;
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	line-height: 1.2;
	margin: 0 0 0.75rem;
}

.mepal-product-commercial__intro {
	color: #6b5e55;
	line-height: 1.7;
	margin: 0;
}

.mepal-product-commercial__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 1.5rem 0 0;
}

.mepal-product-commercial__item {
	background: #fff;
	border: 1px solid #e6ddd3;
	border-radius: 12px;
	margin: 0;
	padding: 1.2rem 1.3rem;
}

.mepal-product-commercial__item dt {
	color: #5a3722;
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 0.45rem;
}

.mepal-product-commercial__item dd {
	color: #6b5e55;
	line-height: 1.65;
	margin: 0;
}

@media (max-width: 767px) {
	.ast-theme-transparent-header #primary.mepal-product-main {
		padding: 6.25rem 1rem 2rem;
	}

	.mepal-product__hero {
		align-items: start;
		grid-template-columns: 1fr;
	}

	.mepal-product__content h1 {
		font-size: clamp(2rem, 10vw, 2.7rem);
	}

	.mepal-product__cta {
		justify-content: center;
		width: 100%;
	}

	.mepal-product__related {
		flex-direction: column;
	}

	.mepal-product-gallery__thumbnail {
		flex-basis: 64px;
		height: 64px;
	}

	.mepal-product-gallery__control {
		height: 40px;
		width: 40px;
	}

	.mepal-product-commercial__grid {
		grid-template-columns: 1fr;
	}
}
