@charset "UTF-8";
/* azpos-one — phóng to ảnh sản phẩm (01/12/2026). JS: assets/js/zoom-anh.js. Chỉ nạp ở trang sản phẩm. */

/* ---------- ảnh lớn: bấm để phóng tại chỗ (máy tính), rê chuột khi đang phóng để xem quanh ---------- */
.sw-anh-lon.co-zoom .swiper-slide { cursor: zoom-in; }
.sw-anh-lon.co-zoom.dang-zoom .swiper-slide { cursor: zoom-out; }
.sw-anh-lon .zoom-lop {
	position: absolute; inset: 0; z-index: 4; /* dưới mũi tên .mui-vien (5) */
	overflow: hidden; pointer-events: none; visibility: hidden;
	contain: strict;
}
.sw-anh-lon .zoom-lop.hien { visibility: visible; }
.sp-anh-lon .zoom-lop img {
	position: absolute; left: 0; top: 0;
	max-width: none; /* thắng .sp-anh-lon img { max-width: 100% } ở wp.css */
	transform-origin: 0 0; will-change: transform;
	user-select: none; -webkit-user-drag: none;
}
.sw-anh-lon.dang-zoom .mui-vien { opacity: .35; transition: opacity .25s; }
.sw-anh-lon.dang-zoom .mui-vien:hover { opacity: 1; }

/* ---------- nút góc ảnh: xem toàn màn hình ---------- */
.sp-anh-lon .nut-phong-to {
	position: absolute; top: 8px; right: 8px; z-index: 6;
	width: 38px; height: 38px; padding: 0; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .92); color: #1d1d1f;
	border: 1px solid #e3e3e6; box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
	cursor: pointer; -webkit-tap-highlight-color: transparent;
	transition: background-color .2s, border-color .2s, transform .2s cubic-bezier(.22, .61, .36, 1), opacity .25s;
}
.sp-anh-lon .nut-phong-to svg { width: 19px; height: 19px; }
.sp-anh-lon .nut-phong-to:active { transform: scale(.92); }
.sp-anh-lon .nut-phong-to:focus-visible { outline: 2px solid var(--chinh, #1d1d1f); outline-offset: 2px; }
@media (hover: hover) {
	.sp-anh-lon .nut-phong-to:hover { background: #f5f5f7; border-color: #d6d6da; }
}
.sw-anh-lon.dang-zoom ~ .nut-phong-to { opacity: 0; pointer-events: none; } /* đang phóng thì nút lùi đi cho gọn */
@media (min-width: 1200px) {
	.sp-anh-lon .nut-phong-to { top: .7rem; right: .7rem; width: 2.6rem; height: 2.6rem; }
	.sp-anh-lon .nut-phong-to svg { width: 1.3rem; height: 1.3rem; }
}

/* ---------- toàn màn hình (PhotoSwipe, lớp pswp--az) — nền trắng, ít màu ---------- */
.pswp.pswp--az {
	--pswp-bg: #fff;
	--pswp-placeholder-bg: #f5f5f7;
	--pswp-icon-color: #1d1d1f;
	--pswp-icon-color-secondary: #fff;
	--pswp-icon-stroke-color: #fff;
	--pswp-icon-stroke-width: 2px;
	--pswp-preloader-color: rgba(0, 0, 0, .1);
	--pswp-preloader-color-secondary: rgba(0, 0, 0, .55);
	--pswp-error-text-color: #1d1d1f;
	font-family: inherit;
}
.pswp.pswp--az .pswp__counter { font-size: 14px; font-weight: 600; opacity: .8; text-shadow: none; }
.pswp.pswp--az .pswp__img { cursor: zoom-in; }
.pswp.pswp--az.pswp--zoomed-in .pswp__img { cursor: grab; }
.pswp.pswp--az .pswp__error-msg { font-size: 15px; }

/* mũi tên 2 bên: vòng tròn xám nhạt (chỉ hiện khi có chuột — PhotoSwipe tự ẩn trên màn cảm ứng) */
.pswp.pswp--az .pswp__button--arrow { width: 64px; height: 64px; margin-top: -32px; }
.pswp.pswp--az .pswp__button--arrow .pswp__icn {
	top: 8px; left: 8px; width: 48px; height: 48px; margin: 0; padding: 12px; box-sizing: border-box;
	background: #f5f5f7; border: 1px solid #e3e3e6; border-radius: 50%;
	transition: background-color .2s, border-color .2s;
}
.pswp.pswp--az .pswp__button--arrow--next .pswp__icn { left: auto; right: 8px; }
@media (hover: hover) {
	.pswp.pswp--az .pswp__button--arrow:hover .pswp__icn { background: #e9e9ec; border-color: #d6d6da; }
	.pswp.pswp--az .pswp__button:hover { opacity: 1; }
}
.pswp.pswp--az .pswp__button--arrow--prev { left: 12px; }
.pswp.pswp--az .pswp__button--arrow--next { right: 12px; }

/* dải ảnh nhỏ dưới đáy */
.pswp.pswp--az .pswp__dai-anh {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
	display: flex; gap: 10px; overflow-x: auto; overscroll-behavior: contain;
	padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
	scrollbar-width: none;
}
.pswp.pswp--az .pswp__dai-anh::-webkit-scrollbar { display: none; }
.pswp.pswp--az .pswp__o-nho:first-child { margin-left: auto; }  /* căn giữa mà vẫn cuộn được khi nhiều ảnh */
.pswp.pswp--az .pswp__o-nho:last-child { margin-right: auto; }
.pswp.pswp--az .pswp__o-nho {
	flex: none; width: 72px; height: 72px; padding: 3px; margin: 0;
	background: #fff; border: 1px solid #e3e3e6; border-radius: 12px;
	cursor: pointer; opacity: .6; -webkit-tap-highlight-color: transparent;
	transition: opacity .25s, border-color .25s, box-shadow .25s, transform .25s cubic-bezier(.22, .61, .36, 1);
}
.pswp.pswp--az .pswp__o-nho img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 8px; pointer-events: none; }
.pswp.pswp--az .pswp__o-nho.dang-xem { opacity: 1; border-color: var(--chinh, #1d1d1f); box-shadow: 0 0 0 1px var(--chinh, #1d1d1f); }
@media (hover: hover) {
	.pswp.pswp--az .pswp__o-nho:hover { opacity: 1; transform: translateY(-2px); }
}
.pswp.pswp--az .pswp__o-nho:focus-visible { outline: 2px solid var(--chinh, #1d1d1f); outline-offset: 2px; }
/* đang phóng to hoặc chạm ẩn thanh điều khiển → dải ảnh nhỏ lùi đi để xem trọn ảnh */
.pswp.pswp--az.pswp--zoomed-in .pswp__dai-anh { opacity: 0 !important; pointer-events: none; }

@media (max-width: 767px) {
	.pswp.pswp--az .pswp__dai-anh { gap: 8px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
	.pswp.pswp--az .pswp__o-nho { width: 56px; height: 56px; border-radius: 10px; padding: 2px; }
	.pswp.pswp--az .pswp__o-nho img { border-radius: 7px; }
}
