#ichuyendoiso-gallery-wrapper {
	margin-bottom: 2rem;
	position: relative;
	width: 100%;
	overflow: hidden;
}

.gallery-layout {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.gallery-main-swiper {
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
}

.gallery-main-swiper .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	cursor: pointer;
}

.gallery-main-swiper img {
	max-width: 100%;
	height: auto;
	display: block;
	pointer-events: none;
}

.gallery-thumbs-swiper {
	width: 100%;
	height: auto;
	margin-top: 15px;
	padding: 0;
	box-sizing: border-box;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.gallery-thumbs-swiper::-webkit-scrollbar {
	display: none;
}

.gallery-thumbs-swiper .swiper-wrapper {
	display: flex;
	justify-content: flex-start;
	gap: 10px;
	margin: 0;
	padding: 5px 0 5px 10px;
	box-sizing: border-box;
	width: 100%;
}

.gallery-thumbs-swiper .swiper-slide {
	opacity: 0.6;
	cursor: pointer;
	border-radius: 4px;
	overflow: hidden;
	border: 1px solid transparent;
	transition: all 0.3s ease;
	width: 70px !important;
	height: 70px !important;
	flex-shrink: 0;
	margin-right: 0;
	box-sizing: border-box;
}

.gallery-thumbs-swiper .swiper-slide:last-child {
	margin-right: 100px; !important;
}

.gallery-thumbs-swiper .swiper-slide-thumb-active {
	opacity: 1;
	border-color: var(--color-primary, #720213);
}

.gallery-thumbs-swiper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gallery-main-swiper .swiper-button-next,
.gallery-main-swiper .swiper-button-prev {
	color: var(--color-primary, #720213);
	background-color: rgba(255, 255, 255, 0.8);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gallery-main-swiper .swiper-button-next:after,
.gallery-main-swiper .swiper-button-prev:after {
	font-size: 18px;
	font-weight: bold;
}

.woocommerce-product-gallery .onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 10;
	background-color: var(--color-cart-button, #CC0B2A);
	color: white;
	padding: 5px 10px;
	border-radius: 4px;
	font-weight: bold;
}

.swiper-zoom-container {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.woocommerce-product-gallery__trigger {
	display: none !important;
}

.custom-gallery-trigger {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 10;
	background: rgba(255, 255, 255, 0.7);
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease;
}

.custom-gallery-trigger:hover {
	background: rgba(255, 255, 255, 0.9);
}

.custom-gallery-trigger svg {
	color: var(--color-primary, #720213);
}

.pswp__bg {
	transition: opacity 0.333s cubic-bezier(0.4, 0, 0.22, 1);
}

.pswp__zoom-wrap {
	transition: transform 0.333s cubic-bezier(0.4, 0, 0.22, 1), opacity 0.333s ease;
}

.pswp__item {
	transition: opacity 0.25s ease;
}

.manual-cleanup-button {
	opacity: 0.7;
	transition: opacity 0.3s ease;
}

.manual-cleanup-button:hover {
	opacity: 1;
}

@media (max-width: 768px) {
	.gallery-main-swiper .swiper-button-next,
	.gallery-main-swiper .swiper-button-prev {
		width: 30px;
		height: 30px;
	}

	.gallery-main-swiper .swiper-button-next:after,
	.gallery-main-swiper .swiper-button-prev:after {
		font-size: 14px;
	}

	.gallery-thumbs-swiper .swiper-wrapper {
		padding: 5px 0 5px 10px;
		gap: 8px;
		justify-content: flex-start;
	}

	.gallery-thumbs-swiper .swiper-slide {
		width: 60px !important;
		height: 60px !important;
	}

	.gallery-layout {
		gap: 10px;
	}
}

@media (max-width: 480px) {
	.gallery-thumbs-swiper .swiper-wrapper {
		padding: 5px 0 5px 10px;
		gap: 5px;
		justify-content: flex-start;
	}

	.gallery-thumbs-swiper .swiper-slide {
		width: 50px !important;
		height: 50px !important;
	}
}
