.product-detail-wrap {
	position: relative;
	padding-block-start: var(--wp--preset--spacing--32);
	padding-block-end: var(--wp--preset--spacing--80);

}

.product-detail {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
	align-items: flex-start;
	margin-block-end: var(--wp--preset--spacing--40);
}

.product-detail__gallery {
	flex-shrink: 0;
	overflow: visible;
	width: 100%;
}

.product-detail__gallery-pair {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
	width: 100%;
}

.product-detail__main-slider {
	width: 100%;
	position: relative;
}

/* ── Main slider navigation arrows — overlay on image ───────────── */
.product-detail__main-slider .splide__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 32px;
	height: 32px;
	border-radius: var(--wp--custom--border-radius--full);
	background: rgba(255, 255, 255, 0.78);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	transition: background-color 0.15s ease;
}

.product-detail__main-slider .splide__arrow--prev {
	left: -15px;
	transform: translateY(-50%) rotate(180deg);
}

.product-detail__main-slider .splide__arrow--next {
	right: -15px;
}

.product-detail__main-slider .splide__arrow:hover {
	background: rgba(255, 255, 255, 0.96);
	filter: none;
	opacity: 1;
}

.product-detail__main-slider .splide__arrow:disabled {
	display: none;
}

.product-detail__main-slider .splide__arrow svg {
	width: 12px;
	height: 12px;
	fill: var(--wp--preset--color--text);
	transition: none;
}

.product-detail__main-slider .splide__track {
	width: 100%;
	height: 486px;
	border-radius: var(--wp--custom--border-radius--24);
	overflow: hidden;
}

.product-detail__main-slider .splide__slide {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-detail__main-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.product-detail__main-image-wrap {
	width: 100%;
	height: 486px;
	border-radius: var(--wp--custom--border-radius--24);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-detail__main-image--placeholder {
	width: 100%;
	height: 100%;
	background-color: var(--wp--preset--color--background);
}

.product-detail__thumbnails {
	display: none;
	overflow: visible;
	position: relative;
}

.product-detail__thumbnails .splide__track {
	overflow: hidden;
}

.product-detail__thumbnails .splide__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
	width: 28px;
	height: 28px;
	border-radius: var(--wp--custom--border-radius--full);
	border: 1px solid #e0e3e8;
	background: var(--wp--preset--color--white);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	opacity: 1;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.product-detail__thumbnails .splide__arrow:disabled {
	opacity: 0.25;
	pointer-events: none;
}

.product-detail__thumbnails .splide__arrow:not(:disabled):hover {
	background-color: var(--wp--preset--color--primary-500);
	border-color: var(--wp--preset--color--primary-500);
}

.product-detail__thumbnails .splide__arrow svg {
	width: 10px;
	height: 10px;
	fill: var(--wp--preset--color--text);
	transition: fill 0.15s ease;
}

.product-detail__thumbnails .splide__arrow:not(:disabled):hover svg {
	fill: var(--wp--preset--color--white);
}

.product-detail__thumbnails .splide__arrow--prev {
	left: -14px;
	transform: translateY(-50%) rotate(180deg);
}

.product-detail__thumbnails .splide__arrow--next {
	right: -14px;
}

.product-detail__thumbnails .splide__slide {
	width: 116px;
	height: 116px;
	border-radius: var(--wp--custom--border-radius--16);
	border: 1px solid transparent;
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--wp--preset--spacing--16);
}

.product-detail__thumbnails .splide__slide:hover {
	border-color: var(--wp--preset--color--primary-500);
}

.product-detail__thumbnails .splide__slide.is-active {
	border-color: var(--wp--preset--color--primary-500);
}

.product-detail__thumb-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.product-detail__info {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
	width: 100%;
}

.product-detail__name {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--32);
	line-height: var(--wp--custom--line-height--12);
	color: var(--wp--preset--color--black);
	margin: 0;
	padding-block-start: var(--wp--preset--spacing--16);
}

.product-detail__price {
	font-family: var(--wp--preset--font-family--ibm-plex-sans-thai);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--28);
	line-height: var(--wp--custom--line-height--13);
	letter-spacing: -0.56px;
	color: var(--wp--preset--color--text);
	margin: 0;
	white-space: nowrap;
}

.product-detail__sizes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(0, 100px));
	gap: var(--wp--preset--spacing--8);
}

.product-size-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--card-button-padding-lg);
	border-radius: var(--wp--custom--border-radius--full);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--14);
	line-height: var(--wp--custom--line-height--15);
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--primary-500);
	color: var(--wp--preset--color--primary-500);
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
	background-color: transparent;
}

.product-size-btn--active {
	background-color: var(--wp--preset--color--primary-500);
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--primary-500);
}

.product-detail__actions {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--8);
	align-items: stretch;
	width: 100%;
}

.product-detail__btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--4);
	padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--12);
	width: 100%;
	min-height: auto;
	border-radius: var(--wp--custom--border-radius--full);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-thai);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.product-detail__btn--recipe {
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--primary-500);
	color: var(--wp--preset--color--primary-500);
	font-size: var(--wp--preset--font-size--16);
	line-height: var(--wp--custom--line-height--15);
}

.product-detail__btn--recipe:hover {
	background-color: rgba( 241, 89, 42, 0.06 );
	color: var(--wp--preset--color--primary-500);
}

.product-detail__btn--buy {
	background-color: var(--wp--preset--color--primary-500);
	border: 1px solid var(--wp--preset--color--primary-500);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--18);
	line-height: var(--wp--custom--line-height--15);
}

.product-detail__btn--buy:hover {
	background-color: var(--wp--preset--color--primary-500);
	border-color: var(--wp--preset--color--primary-500);
	color: var(--wp--preset--color--white);
}

.product-detail__btn svg {
	flex-shrink: 0;
}

.product-detail__btn--hidden {
	display: none;
}

.product-detail__meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.product-detail__meta-item {
	font-size: var(--wp--preset--font-size--48);
	font-weight: 600;
	line-height: var(--wp--custom--line-height--13);
	color: var(--wp--preset--color--black);
	margin: 0;
}

.product-detail__meta-item--weight {
	font-size: var(--wp--preset--font-size--18);
	color: var(--wp--preset--color--gray-700);
}

.product-detail__meta-item--sku {
	font-size: var(--wp--preset--font-size--14);
}

.product-detail__meta-item--category {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--4);
	font-size: var(--wp--preset--font-size--14);
	flex-wrap: wrap;
}

.product-detail__cat-link {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--4);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-thai);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--14);
	line-height: var(--wp--custom--line-height--15);
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.product-detail__cat-link:hover {
	color: var(--wp--preset--color--primary-500);
}

.product-detail__cat-link svg {
	flex-shrink: 0;
}

.product-highlights {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.product-highlights__divider {
	height: 1px;
	background-color: var(--color-border-medium);
	width: 100%;
}

.product-highlights__row {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 14px;
	line-height: var(--wp--custom--line-height--15);
	flex-wrap: wrap;
}

.product-highlights__label {
	font-family: var(--wp--preset--font-family--ibm-plex-sans-thai);
	font-weight: 500;
	color: var(--wp--preset--color--gray-700);
}

.product-highlights__value {
	font-family: var(--wp--preset--font-family--ibm-plex-sans-thai);
	font-weight: 400;
	color: var(--wp--preset--color--text-muted);
}

.product-highlights__spice {
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: var(--wp--preset--font-size--16);
	line-height: var(--wp--custom--line-height--14);
	letter-spacing: -0.32px;
	color: #909da2;
}

.product-packaging-table {
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--color-surface-muted);
	border-radius: var(--wp--custom--border-radius--16);
	overflow: hidden;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-top: 0;
}

.product-packaging-table__table {
	width: 100%;
	min-width: 600px;
	border-collapse: collapse;
	font-family: var(--wp--preset--font-family--ibm-plex-sans-thai);
	font-size: var(--wp--preset--font-size--14);
	line-height: var(--wp--custom--line-height--15);
}

.product-packaging-table__table thead {
	background-color: var(--color-surface-muted);
}

.product-packaging-table__table th {
	font-size: var(--wp--preset--font-size--14);
	font-weight: 400;
	line-height: var(--wp--custom--line-height--15);
	color: var(--wp--preset--color--gray-700);
	text-align: left;
	padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--8);
	border-bottom: 1px solid var(--color-surface-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.product-packaging-table__table thead tr th:first-child {
	border-top-left-radius: var(--wp--custom--border-radius--16);
}

.product-packaging-table__table thead tr th:last-child {
	border-top-right-radius: var(--wp--custom--border-radius--16);
}

.product-packaging-table__table td {
	font-weight: 400;
	font-size: var(--wp--preset--font-size--14);
	line-height: var(--wp--custom--line-height--15);
	color: var(--wp--preset--color--text);
	padding: var(--wp--preset--spacing--8);
	height: 56px;
	border-bottom: 1px solid var(--color-surface-muted);
	vertical-align: middle;
}

.product-packaging-table__table tbody tr:last-child td {
	border-bottom: none;
}

@media ( min-width: 768px ) {
	.product-detail__thumbnails {
		display: block;
	}

	.product-detail__sizes {
		gap: var(--wp--preset--spacing--16);
	}

	.product-detail__actions {
		flex-direction: row;
		gap: var(--wp--preset--spacing--16);
	}

	.product-detail__btn {
		width: auto;
		min-height: 61px;
	}
}

@media ( min-width: 1024px ) {
	.product-detail-wrap {
		padding-block-start: 0;
		padding-block-end: var(--wp--preset--spacing--160);
	}

	.product-detail {
		flex-direction: row;
		gap: var(--wp--preset--spacing--40);
	}

	.product-detail__gallery {
		width: auto;
	}

	.product-detail__gallery-pair,
	.product-detail__main-slider {
		width: 400px;
	}

	.product-detail__main-slider .splide__track,
	.product-detail__main-image-wrap {
		width: 400px;
		height: 380px;
	}

	.product-detail__name {
		font-size: var(--wp--preset--font-size--48);
	}

	.product-detail__price {
		font-size: var(--wp--preset--font-size--40);
	}

	.product-packaging-table {
		overflow-x: hidden;
	}

	.product-packaging-table__table {
		min-width: 0;
	}
}

@media ( min-width: 1200px ) {
	.product-detail__gallery-pair,
	.product-detail__main-slider {
		width: 512px;
	}

	.product-detail__main-slider .splide__track,
	.product-detail__main-image-wrap {
		width: 512px;
		height: 486px;
	}
}
