/* IMTA product page — bespoke editorial product layout. */
.single-product .imta-product-detail {
	background: #fff;
	margin-left: calc(50% - 50vw);
	padding: 0;
	width: 100vw;
}

.single-product .imta-product-detail__notices:empty {
	display: none;
}

.single-product .imta-product-detail__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
	margin: 0 auto;
	max-width: 1600px;
	min-height: 100vh;
}

.single-product .imta-product-detail__gallery {
	align-self: start;
	background: #f4f8f9;
	height: 100vh;
	position: sticky;
	top: 75px;
}

.imta-product-gallery {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: clamp(18px, 2.3vw, 36px) clamp(18px, 2.8vw, 48px) 16px;
}

.imta-product-gallery__stage {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	justify-content: center;
	min-height: 0;
	position: relative;
}

.imta-product-gallery__slide {
	height: 100%;
	width: 100%;
}

.imta-product-gallery__slide[hidden] {
	display: none;
}

.imta-product-gallery__image {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.imta-product-gallery__arrow {
	appearance: none;
	background: transparent;
	border: 0;
	cursor: pointer;
	height: 68px;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	z-index: 2;
}

.imta-product-gallery__arrow span {
	border-bottom: 1px solid #111;
	border-left: 1px solid #111;
	display: block;
	height: 29px;
	transform: rotate(45deg);
	width: 29px;
}

.imta-product-gallery__arrow--previous {
	left: -24px;
}

.imta-product-gallery__arrow--next {
	right: -24px;
}

.imta-product-gallery__arrow--next span {
	transform: rotate(225deg);
}

.imta-product-gallery__thumbnails {
	display: flex;
	gap: clamp(8px, 1.4vw, 20px);
	justify-content: center;
	margin-top: 14px;
	overflow: hidden;
}

.imta-product-gallery__thumbnail {
	appearance: none;
	background: #fff;
	border: 1px solid transparent;
	cursor: pointer;
	flex: 0 0 min(30%, 120px);
	margin: 0;
	padding: 0;
}

.imta-product-gallery__thumbnail.is-active {
	border-color: #111;
}

.imta-product-gallery__thumbnail-image {
	display: block;
	height: clamp(88px, 11vw, 164px);
	object-fit: cover;
	width: 100%;
}

.imta-product-gallery__dots {
	display: flex;
	gap: 5px;
	justify-content: center;
	margin-top: 11px;
	min-height: 8px;
}

.imta-product-gallery__dot {
	background: #b7b7b7;
	border-radius: 99px;
	display: block;
	height: 5px;
	width: 5px;
}

.imta-product-gallery__dot.is-active {
	background: #111;
}

.single-product .imta-product-detail__summary {
	align-self: start;
	box-sizing: border-box;
	margin: 0 auto;
	max-width: 580px;
	padding: clamp(32px, 4vw, 56px) clamp(52px, 10vw, 150px) clamp(70px, 10vw, 160px);
	text-align: center;
	width: 100%;
}

.imta-product-detail__heading {
	margin: 0;
}

.imta-product-detail__title {
	color: #111;
	font-size: clamp(25px, 2.3vw, 38px);
	font-weight: 400;
	letter-spacing: -.045em;
	line-height: .98;
	margin: 0;
	text-transform: uppercase;
}

.imta-product-detail__sku {
	color: #111;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .02em;
	line-height: 1.2;
	margin: 9px 0 0;
	text-transform: uppercase;
}

.imta-product-detail__purchase {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 23px;
}

.imta-product-detail__purchase form.cart,
.imta-product-detail__purchase .single_variation_wrap,
.imta-product-detail__purchase .woocommerce-variation-add-to-cart {
	display: contents;
}

.imta-product-detail__purchase .variations {
	border: 0;
	margin: 0 0 13px;
	order: 1;
	width: 100%;
}

.imta-product-detail__purchase .variations th,
.imta-product-detail__purchase .variations td {
	border: 0;
	padding: 0;
}

.imta-product-detail__purchase .variations th.label {
	display: none;
}

.imta-product-detail__purchase .variations select {
	border: 1px solid #111;
	box-shadow: none;
	font-size: 12px;
	height: 30px;
	margin: 0 auto;
	max-width: 180px;
	text-align: center;
	text-transform: uppercase;
}

.imta-product-detail__purchase .variations .ux-swatches,
.imta-product-detail__purchase .variations .variable-items-wrapper {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	justify-content: center;
	margin: 0;
}

.imta-product-detail__purchase .variations .ux-swatch,
.imta-product-detail__purchase .variations .variable-item {
	align-items: center;
	background: #fff;
	border: 1px solid #a9a9a9;
	border-radius: 0;
	box-shadow: none;
	color: #111;
	display: inline-flex;
	font-size: 12px;
	height: 27px;
	justify-content: center;
	line-height: 1;
	margin: 0;
	min-width: 35px;
	padding: 0 7px;
}

.imta-product-detail__purchase .variations .ux-swatch.selected,
.imta-product-detail__purchase .variations .variable-item.selected {
	background: #111;
	border-color: #111;
	color: #fff;
}

.imta-product-detail__purchase .reset_variations,
.imta-product-detail__purchase .woocommerce-variation-price {
	display: none !important;
}

.imta-product-detail__purchase .quantity {
	align-items: center;
	border: 1px solid #111;
	display: inline-flex;
	height: 31px;
	justify-content: center;
	margin: 0;
	order: 2;
}

.imta-product-detail__purchase .quantity input {
	border: 0;
	box-shadow: none;
	height: 29px;
	margin: 0;
	min-width: 50px;
	padding: 0;
	text-align: center;
	width: 50px;
}

.imta-product-detail__price {
	color: #111;
	flex: 0 0 100%;
	margin: 17px 0 22px;
	order: 3;
}

.imta-product-detail__price .price {
	color: inherit;
	font-size: clamp(23px, 2vw, 31px);
	font-weight: 400;
	letter-spacing: -.045em;
	line-height: 1;
	margin: 0;
}

.imta-product-detail__purchase .single_add_to_cart_button,
.imta-product-detail__purchase .imta-buy-now {
	background: #050505;
	border: 1px solid #050505;
	border-radius: 0;
	box-shadow: none;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	height: 43px;
	line-height: 41px;
	margin: 0 4px;
	min-width: 138px;
	order: 4;
	padding: 0 16px;
	text-transform: uppercase;
}

.imta-product-detail__purchase .single_add_to_cart_button:hover,
.imta-product-detail__purchase .imta-buy-now:hover {
	background: #fff;
	color: #050505;
}

.imta-product-detail__product-copy {
	margin-top: clamp(68px, 9vw, 128px);
}

.imta-product-detail__product-copy > h2 {
	color: #111;
	font-size: clamp(24px, 2vw, 32px);
	font-weight: 400;
	letter-spacing: -.045em;
	line-height: 1;
	margin: 0 0 20px;
	text-transform: uppercase;
}

.imta-product-detail__description {
	color: #111;
	font-size: 15px;
	letter-spacing: -.015em;
	line-height: 1.34;
	text-align: left;
	text-transform: uppercase;
}

.imta-product-detail__description p {
	margin: 0 0 10px;
}

.single-product .imta-product-size-image {
	border: 0;
	margin: 28px 0 0;
	padding: 0;
}

.single-product .imta-product-size-image img {
	display: block;
	height: auto;
	margin: 0 auto;
	max-width: 100%;
	width: 100%;
}

.imta-handpicked {
	background: #fff;
	border-top: 1px solid #111;
	margin: 0 auto;
	max-width: 1600px;
	padding: 0 14px 14px;
	position: relative;
}

.imta-handpicked__title {
	background: #050505;
	color: #fff;
	font-size: clamp(28px, 3.8vw, 55px);
	font-weight: 400;
	letter-spacing: -.06em;
	line-height: .72;
	margin: 0;
	padding: 5px;
	text-align: center;
	text-transform: uppercase;
}

.imta-handpicked__viewport {
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.imta-handpicked__viewport::-webkit-scrollbar {
	display: none;
}

.imta-handpicked__track {
	display: flex;
}

.imta-handpicked__item {
	border-bottom: 1px solid #111;
	border-right: 1px solid #111;
	flex: 0 0 25%;
	min-width: 0;
}

.imta-handpicked__item:first-child {
	border-left: 1px solid #111;
}

.imta-handpicked__link {
	color: #111;
	display: flex;
	flex-direction: column;
	height: clamp(330px, 36vw, 560px);
	padding: clamp(16px, 2vw, 32px) clamp(9px, 1.5vw, 24px) 13px;
	text-align: center;
	text-decoration: none;
}

.imta-handpicked__image {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	justify-content: center;
	min-height: 0;
}

.imta-handpicked__image img {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.imta-handpicked__name {
	font-size: clamp(13px, 1.15vw, 18px);
	font-weight: 400;
	letter-spacing: -.04em;
	line-height: 1;
	margin: 11px 0 6px;
	text-transform: uppercase;
}

.imta-handpicked__price {
	font-size: clamp(12px, 1vw, 16px);
	font-weight: 400;
	letter-spacing: -.025em;
	line-height: 1;
}

.imta-handpicked__arrow {
	appearance: none;
	background: transparent;
	border: 0;
	cursor: pointer;
	height: 84px;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-24%);
	width: 62px;
	z-index: 2;
}

.imta-handpicked__arrow span {
	border-bottom: 1px solid #111;
	border-left: 1px solid #111;
	display: block;
	height: 42px;
	margin: auto;
	transform: rotate(45deg);
	width: 42px;
}

.imta-handpicked__arrow--previous {
	left: 18px;
}

.imta-handpicked__arrow--next {
	right: 18px;
}

.imta-handpicked__arrow--next span {
	transform: rotate(225deg);
}

@media (max-width: 849px) {
	.single-product .imta-product-detail__main {
		display: block;
		min-height: 0;
	}

	.single-product .imta-product-detail__gallery {
		height: min(760px, 100vh);
		position: static;
	}

	.imta-product-gallery__arrow--previous {
		left: -10px;
	}

	.imta-product-gallery__arrow--next {
		right: -10px;
	}

	.single-product .imta-product-detail__summary {
		max-width: 600px;
		padding: 58px 28px 76px;
	}

	.imta-handpicked {
		padding: 0 8px 8px;
	}

	/* Mobile hiển thị trọn vẹn một sản phẩm cho mỗi lần trượt. */
	.imta-handpicked__viewport {
		scroll-snap-type: x mandatory;
	}

	.imta-handpicked__item {
		flex: 0 0 100%;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}
	.imta-handpicked__arrow {
		height: 48px;
		width: 48px;
	}

	.imta-handpicked__arrow span {
		height: 32px;
		width: 32px;
	}

	.imta-handpicked__arrow--previous {
		left: 10px;
	}

	.imta-handpicked__arrow--next {
		right: 10px;
	}
}

@media (max-width: 549px) {
	.single-product .imta-product-detail__gallery {
		height: 650px;
	}

	.imta-product-gallery {
		padding-left: 28px;
		padding-right: 28px;
	}

	.imta-product-gallery__thumbnail-image {
		height: 92px;
	}

	.imta-product-detail__purchase .single_add_to_cart_button,
	.imta-product-detail__purchase .imta-buy-now {
		min-width: 128px;
	}

	.imta-handpicked__link {
		height: 430px;
	}
}
/* Sửa bố cục gallery và khối mua hàng IMTA. */
.single-product .imta-product-detail__gallery,
.single-product .imta-product-gallery,
.single-product .imta-product-gallery__stage,
.single-product .imta-product-gallery__slide,
.single-product .imta-product-gallery__thumbnail {
	background: #fff !important;
}

@media (min-width: 850px) {
	.single-product .imta-product-detail__gallery {
		height: 100vh;
	}

	.single-product .imta-product-gallery {
		display: block;
		height: 100%;
		padding-bottom: 13px;
	}

	.single-product .imta-product-gallery__stage {
		display: block;
		height: calc(100vh - 194px);
		min-height: 420px;
	}

	.single-product .imta-product-gallery__slide {
		height: 100%;
	}
}

.single-product .imta-product-gallery__thumbnails {
	margin-top: 12px;
}

.single-product .imta-product-gallery__dots {
	margin-top: 8px;
}

.single-product .imta-product-detail__summary {
	max-width: 720px;
	padding-left: clamp(26px, 4vw, 56px);
	padding-right: clamp(26px, 4vw, 56px);
}

.imta-product-detail__sku {
	display: block;
}

.imta-product-detail__purchase {
	display: block;
	margin-top: 23px;
}

.imta-product-detail__purchase form.cart,
.imta-product-detail__purchase .single_variation_wrap,
.imta-product-detail__purchase .woocommerce-variation-add-to-cart {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
}

.imta-product-detail__purchase form.cart {
	align-items: center;
	gap: 0;
	margin: 0 !important;
	width: 100%;
}

.imta-product-detail__purchase .variations {
	flex: 0 0 100%;
	order: 1;
}

.imta-product-detail__purchase .single_variation_wrap {
	flex: 0 0 100%;
	order: 2;
}

.imta-product-detail__purchase .woocommerce-variation {
	display: none !important;
}

.imta-product-detail__purchase .woocommerce-variation-add-to-cart,
.imta-product-detail__purchase .imta-product-purchase-form {
	align-items: center;
	flex: 0 0 100%;
}

.imta-product-detail__purchase .ux-quantity.quantity {
	align-items: stretch;
	border: 1px solid #111;
	display: inline-flex !important;
	height: 34px;
	margin: 0;
	order: 1;
	width: 132px;
}

.imta-product-detail__purchase .ux-quantity.quantity .ux-quantity__button {
	background: #fff !important;
	border: 0 !important;
	box-shadow: none !important;
	color: #111 !important;
	font-size: 15px;
	height: 32px !important;
	line-height: 32px;
	margin: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	width: 39px !important;
}

.imta-product-detail__purchase .ux-quantity.quantity .qty {
	appearance: textfield;
	border-radius: 0;
	box-shadow: none;
	color: #111;
	font-size: 14px;
	height: 32px;
	margin: 0;
	min-width: 0;
	padding: 0;
	text-align: center;
	width: 52px;
}

.imta-product-detail__purchase .imta-inline-price {
	color: #111;
	flex: 0 0 100%;
	font-size: clamp(23px, 2vw, 31px);
	font-weight: 400;
	letter-spacing: -.045em;
	line-height: 1;
	margin: 17px 0 22px;
	order: 2;
}

.imta-product-detail__purchase .imta-inline-price .price {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	margin: 0;
}

.imta-product-detail__purchase .single_add_to_cart_button,
.imta-product-detail__purchase .imta-buy-now {
	box-sizing: border-box;
	flex: 0 0 144px;
	margin: 0 4px !important;
	min-width: 0 !important;
	order: 3;
}

.imta-product-detail__purchase > .imta-product-detail__price {
	display: none !important;
}

.single-product .imta-handpicked {
	box-sizing: border-box;
	max-width: none;
	padding: 0;
	width: 100%;
}

.single-product .imta-handpicked__title {
	box-sizing: border-box;
	margin: 0;
	width: 100%;
}

.single-product .imta-handpicked__viewport,
.single-product .imta-handpicked__track {
	width: 100%;
}

.single-product .imta-handpicked--static .imta-handpicked__viewport {
	overflow: hidden;
}

.single-product .imta-handpicked--static .imta-handpicked__arrow {
	display: none;
}

.single-product .imta-handpicked--slider .imta-handpicked__viewport {
	scroll-snap-type: x mandatory;
}

.single-product .imta-handpicked--slider .imta-handpicked__item {
	scroll-snap-align: start;
}

@media (max-width: 549px) {
	.single-product .imta-product-detail__summary {
		padding-left: 22px;
		padding-right: 22px;
	}

	.imta-product-detail__purchase .single_add_to_cart_button,
	.imta-product-detail__purchase .imta-buy-now {
		flex-basis: calc(50% - 6px);
	}
}
/* Thumbnail gallery theo bố cục tham chiếu IMTA. */
@media (min-width: 850px) {
	.single-product .imta-product-gallery__stage {
		height: calc(100vh - 270px);
		min-height: 360px;
	}
}

.single-product .imta-product-gallery__thumbnails {
	gap: 28px;
	justify-content: flex-start;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0;
	scrollbar-width: none;
}

.single-product .imta-product-gallery__thumbnails::-webkit-scrollbar {
	display: none;
}

.single-product .imta-product-gallery__thumbnail {
	background: #fff;
	border: 1px solid transparent;
	box-sizing: border-box;
	flex: 0 0 112px;
	height: 144px;
	padding: 0;
}

.single-product .imta-product-gallery__thumbnail.is-active {
	border-color: #111;
	padding: 6px;
}

.single-product .imta-product-gallery__thumbnail-image {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.single-product .imta-product-gallery__dots {
	margin-top: 12px;
	min-height: 7px;
}

@media (max-width: 849px) {
	.single-product .imta-product-gallery__thumbnails {
		gap: 18px;
	}
}
/* Giữ trọn ảnh sản phẩm trong thumbnail, không crop đầu/chân. */
.single-product .imta-product-gallery__thumbnail-image {
	object-fit: contain;
}
/* Chuyển ảnh gallery mượt mà, không dùng ẩn/hiện tức thì. */
.single-product .imta-product-gallery__stage {
	overflow: hidden;
}

.single-product .imta-product-gallery__slide {
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transform: translate3d(18px, 0, 0);
	transition: opacity .36s ease, transform .42s cubic-bezier(.22, .61, .36, 1);
	will-change: opacity, transform;
}

.single-product .imta-product-gallery__slide.is-active {
	opacity: 1;
	pointer-events: auto;
	transform: translate3d(0, 0, 0);
	z-index: 1;
}

.single-product .imta-product-gallery__thumbnail {
	transition: border-color .2s ease, padding .2s ease, opacity .2s ease;
}

.single-product .imta-product-gallery__thumbnail:hover {
	opacity: .72;
}

.single-product .imta-product-gallery__dot {
	transition: background-color .2s ease, transform .2s ease;
}

.single-product .imta-product-gallery__dot.is-active {
	transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
	.single-product .imta-product-gallery__slide,
	.single-product .imta-product-gallery__thumbnail,
	.single-product .imta-product-gallery__dot {
		transition: none;
		will-change: auto;
	}
}
/* Tăng độ rõ ràng của thuộc tính, giá và nút mua. */
.imta-product-detail__purchase .variations .ux-swatch,
.imta-product-detail__purchase .variations .variable-item {
	border-color: #bdbdbd;
	border-width: .5px;
	font-size: 14px;
	height: 31px;
	min-width: 40px;
}

.imta-product-detail__purchase .imta-inline-price {
	font-size: clamp(28px, 2.35vw, 38px);
	margin-top: 20px;
	margin-bottom: 25px;
}

.imta-product-detail__purchase .single_add_to_cart_button,
.imta-product-detail__purchase .imta-buy-now {
	font-size: 14px;
	height: 48px;
	line-height: 46px;
}
/* Size buttons on the product page. */
.imta-product-detail__purchase .variable-items-wrapper[data-attribute_name="attribute_pa_size"] {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	justify-content: stretch;
	margin: 0 auto;
	width: min(100%, 385px);
}

.imta-product-detail__purchase .variable-items-wrapper[data-attribute_name="attribute_pa_size"] .variable-item.button-variable-item {
	align-items: center;
	background: #fff;
	border: 1px solid #111;
	border-radius: 5px;
	box-shadow: none;
	color: #111;
	display: flex;
	font-size: 15px;
	font-weight: 400;
	height: 30px;
	justify-content: center;
	line-height: 1;
	margin: 0;
	min-width: 0;
	padding: 0;
	width: 100%;
}

.imta-product-detail__purchase .variable-items-wrapper[data-attribute_name="attribute_pa_size"] .variable-item.button-variable-item:hover,
.imta-product-detail__purchase .variable-items-wrapper[data-attribute_name="attribute_pa_size"] .variable-item.button-variable-item:focus {
	box-shadow: 0 0 0 1px #111;
}

.imta-product-detail__purchase .variable-items-wrapper[data-attribute_name="attribute_pa_size"] .variable-item.button-variable-item.selected,
.imta-product-detail__purchase .variable-items-wrapper[data-attribute_name="attribute_pa_size"] .variable-item.button-variable-item.selected:hover,
.imta-product-detail__purchase .variable-items-wrapper[data-attribute_name="attribute_pa_size"] .variable-item.button-variable-item[aria-checked="true"],
.imta-product-detail__purchase .variable-items-wrapper[data-attribute_name="attribute_pa_size"] .variable-item.button-variable-item[aria-checked="true"]:hover {
	background-color: #111 !important;
	border-color: #111 !important;
	box-shadow: none !important;
	color: #fff !important;
}

.imta-product-detail__purchase .variable-items-wrapper[data-attribute_name="attribute_pa_size"] .variable-item.button-variable-item .variable-item-span {
	padding: 0;
}

@media (max-width: 549px) {
	.imta-product-detail__purchase .variable-items-wrapper[data-attribute_name="attribute_pa_size"] {
		gap: 8px;
	}
}
/* Không cắt mũi tên điều hướng gallery. */
.single-product .imta-product-gallery__stage {
	overflow: visible;
}

.single-product .imta-product-gallery__arrow {
	z-index: 5;
}

.single-product .imta-product-gallery__arrow--previous {
	left: -3px;
}

.single-product .imta-product-gallery__arrow--next {
	right: -28px;
}
/* Điều chỉnh điều hướng và purchase controls trên mobile. */
@media (max-width: 849px) {
	.single-product .imta-product-gallery__arrow--previous {
		left: 12px;
	}

	.single-product .imta-product-gallery__arrow--next {
		right: 12px;
	}

	.single-product .imta-handpicked--static .imta-handpicked__viewport {
		overflow-x: auto;
	}

	.single-product .imta-handpicked--static .imta-handpicked__arrow {
		display: block;
	}
}

@media (max-width: 549px) {
	.imta-product-detail__purchase .woocommerce-variation-add-to-cart,
	.imta-product-detail__purchase .imta-product-purchase-form {
		display: flex !important;
		flex-wrap: nowrap;
		gap: 8px;
		justify-content: center;
	}

	.imta-product-detail__purchase .single_add_to_cart_button,
	.imta-product-detail__purchase .imta-buy-now {
		flex: 1 1 0;
		margin: 0 !important;
		min-width: 0 !important;
		width: auto;
	}
}
/* Giữ quantity và giá theo cột; chỉ hai nút mua nằm cùng một hàng. */
@media (max-width: 549px) {
	.imta-product-detail__purchase .woocommerce-variation-add-to-cart,
	.imta-product-detail__purchase .imta-product-purchase-form {
		flex-wrap: wrap;
		gap: 0;
	}

	.imta-product-detail__purchase .single_add_to_cart_button,
	.imta-product-detail__purchase .imta-buy-now {
		flex: 0 0 calc(50% - 4px);
		margin: 0 2px !important;
	}
}