/* Product gallery shortcode [ohoche_product_gallery] */

.ohoche-product-gallery {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	margin: 0 auto !important;
}

.ohoche-product-gallery__main {
	position: relative !important;
	width: 100% !important;
	border-radius: 28px !important;
	overflow: hidden !important;
	background: #f5f5f5 !important;
	margin-bottom: 12px !important;
}

.ohoche-product-gallery__bars {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	z-index: 2 !important;
	display: flex !important;
	gap: 2px !important;
	padding: 24px 14px !important;
	box-sizing: border-box !important;
}

.ohoche-product-gallery__bar {
	position: relative !important;
	flex: 1 !important;
	height: 6px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 2px !important;
	background: rgba(255, 255, 255, 0.45) !important;
	cursor: pointer !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	box-shadow: none !important;
	outline: none !important;
	transition: background 0.2s ease, opacity 0.2s ease !important;
}

/* Larger invisible hit area for easier tapping */
.ohoche-product-gallery__bar::before {
	content: '' !important;
	position: absolute !important;
	top: -12px !important;
	bottom: -12px !important;
	left: -3px !important;
	right: -3px !important;
}

.ohoche-product-gallery__bar:hover,
.ohoche-product-gallery__bar:focus {
	background: rgba(255, 255, 255, 0.75) !important;
}

.ohoche-product-gallery__bar.is-active {
	background: rgba(255, 255, 255, 0.95) !important;
}

.ohoche-product-gallery__hero {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 3 / 4 !important;
	object-fit: cover !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	cursor: zoom-in !important;
}

.ohoche-product-gallery__thumbs-wrap {
	width: 100% !important;
	overflow: hidden !important;
}

.ohoche-product-gallery__thumbs {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	gap: 10px !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	padding: 4px 0 8px !important;
	margin: 0 !important;
	-webkit-overflow-scrolling: touch !important;
	scrollbar-width: thin !important;
}

.ohoche-product-gallery__thumbs::-webkit-scrollbar {
	height: 4px !important;
}

.ohoche-product-gallery__thumbs::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.15) !important;
	border-radius: 4px !important;
}

.ohoche-product-gallery__thumb {
	flex: 0 0 auto !important;
	width: 64px !important;
	height: 80px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 2px solid transparent !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	cursor: pointer !important;
	background: #f0f0f0 !important;
	box-sizing: border-box !important;
	box-shadow: none !important;
	outline: none !important;
	transition: border-color 0.15s ease, opacity 0.15s ease !important;
}

.ohoche-product-gallery__thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

.ohoche-product-gallery__thumb:hover,
.ohoche-product-gallery__thumb:focus {
	border-color: rgba(111, 165, 124, 0.45) !important;
	opacity: 1 !important;
}

.ohoche-product-gallery__thumb.is-active {
	border-color: #6fa57c !important;
}

.ohoche-product-gallery__thumb:active {
	transform: none !important;
}

/* Fullscreen lightbox */

.ohoche-gallery-lightbox {
	position: fixed !important;
	inset: 0 !important;
	z-index: 999999 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: rgba(0, 0, 0, 0.88) !important;
	opacity: 0 !important;
	transition: opacity 0.2s ease !important;
}

.ohoche-gallery-lightbox.is-open {
	opacity: 1 !important;
}

.ohoche-gallery-lightbox__img {
	max-width: calc(100vw - 120px) !important;
	max-height: calc(100vh - 80px) !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
	border-radius: 8px !important;
	user-select: none !important;
	-webkit-user-select: none !important;
}

.ohoche-gallery-lightbox__close,
.ohoche-gallery-lightbox__nav {
	position: absolute !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
	cursor: pointer !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	box-shadow: none !important;
	outline: none !important;
	transition: background 0.15s ease !important;
}

.ohoche-gallery-lightbox__close:hover,
.ohoche-gallery-lightbox__close:focus,
.ohoche-gallery-lightbox__nav:hover,
.ohoche-gallery-lightbox__nav:focus {
	background: rgba(255, 255, 255, 0.28) !important;
}

.ohoche-gallery-lightbox__close {
	top: 16px !important;
	right: 16px !important;
	width: 44px !important;
	height: 44px !important;
}

.ohoche-gallery-lightbox__nav {
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 48px !important;
	height: 48px !important;
}

.ohoche-gallery-lightbox__nav--prev {
	left: 16px !important;
}

.ohoche-gallery-lightbox__nav--next {
	right: 16px !important;
}

.ohoche-gallery-lightbox__close svg,
.ohoche-gallery-lightbox__nav svg {
	width: 22px !important;
	height: 22px !important;
	display: block !important;
	pointer-events: none !important;
}

.ohoche-gallery-lightbox__counter {
	position: absolute !important;
	bottom: 18px !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	color: rgba(255, 255, 255, 0.85) !important;
	font-size: 14px !important;
	line-height: 1 !important;
	letter-spacing: 0.04em !important;
	user-select: none !important;
	-webkit-user-select: none !important;
}

@media (max-width: 767px) {
	.ohoche-product-gallery__bars {
		gap: 1px !important;
		padding: 13px 14px !important;
	}

	.ohoche-product-gallery__bar {
		height: 3.2px !important;
	}
}

@media (max-width: 600px) {
	.ohoche-gallery-lightbox__img {
		max-width: 100vw !important;
		max-height: calc(100vh - 120px) !important;
		border-radius: 0 !important;
	}

	.ohoche-gallery-lightbox__nav {
		width: 42px !important;
		height: 42px !important;
	}

	.ohoche-gallery-lightbox__nav--prev {
		left: 8px !important;
	}

	.ohoche-gallery-lightbox__nav--next {
		right: 8px !important;
	}
}
