/* ── Bad Sisters — visor de producto con zoom (assets/js/zoom.js) ──
   Se carga solo en la ficha de producto, después de house.css. */

/* Superficie: ocupa todo el visor; solo aquí se desactivan los gestos nativos del navegador. */
.bs-zoom {
	position: absolute; inset: 0; overflow: hidden;
	display: grid; place-items: center;
	touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
	cursor: zoom-in;
}
.bs-zoom.is-zoomed { cursor: zoom-out; }
.bs-zoom:focus { outline: none; }
.bs-lightbox .bs-zoom__img {
	width: 100%; height: 100%; max-width: none; max-height: none;
	object-fit: contain;
	transform-origin: 50% 50%;
	will-change: transform;
	-webkit-user-drag: none;
}
.bs-zoom__img.is-animating { transition: transform var(--t-fast, .25s) var(--ease, ease-out); }

/* El cierre queda sobre la superficie */
.bs-lightbox__close { z-index: 2; }

/* Barra: anterior · 01 / 02 · siguiente · zoom */
.bs-zoom__bar {
	position: absolute; left: 50%; bottom: calc(var(--sp-3, 1.5rem) + env(safe-area-inset-bottom, 0px)); z-index: 2;
	transform: translateX(-50%);
	display: flex; align-items: center; gap: .25rem;
	background: rgba(255,255,255,.85); color: var(--bs-ink);
	padding: 0 .25rem;
}
.bs-zoom__btn {
	min-width: 2.75rem; min-height: 2.75rem;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 1rem; line-height: 1; cursor: pointer;
}
.bs-zoom__btn:focus-visible { outline: 1px solid var(--bs-ink); outline-offset: -4px; }
.bs-zoom__count { margin: 0; padding: 0 .35rem; flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bs-zoom__bar.is-single .bs-zoom__prev,
.bs-zoom__bar.is-single .bs-zoom__next,
.bs-zoom__bar.is-single .bs-zoom__count { display: none; }

@media (prefers-reduced-motion: reduce) {
	.bs-zoom__img.is-animating { transition: none; }
}

/* El visor de fotos va por encima del aviso de cookies (que no debe capturar los toques sobre la foto). */
.bs-lightbox:not([hidden]) { z-index: 200; }
body:has(.bs-lightbox:not([hidden])) .bs-consent { visibility: hidden; }
