/* Product 360° viewer — integrated with existing product_carousel */

.product-360-controls {
	display: flex;
	justify-content: center;
	margin-top: 12px;
}

.product-360-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0;
	padding: 8px 4px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	line-height: 1.25;
	color: #222;
	transition: color .2s ease, opacity .2s ease;
	-webkit-tap-highlight-color: transparent;
}

.product-360-btn::before {
	display: none;
}

.product-360-btn__icon {
	display: block;
	line-height: 0;
	flex-shrink: 0;
}

.product-360-btn__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	gap: 2px;
}

.product-360-btn__label {
	display: block;
	font-size: 16px;
	font-weight: 600;
	color: #222;
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, color .2s ease;
}

.product-360-btn__hint {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: #888;
}

.product-360-btn:hover {
	transform: none;
	background: transparent;
	box-shadow: none;
}

.product-360-btn:hover .product-360-btn__label {
	color: #F2472C;
	border-bottom-color: rgba(242, 71, 44, 0.45);
}

.product-360-btn:hover .product-360-btn__hint {
	color: #666;
}

.product-360-btn:active,
.product-360-btn.is-active {
	transform: none;
	box-shadow: none;
}

.product-360-btn.is-active .product-360-btn__label {
	color: #F2472C;
	border-bottom-color: rgba(242, 71, 44, 0.45);
}

.product-360-btn.is-active .product-360-btn__hint {
	color: #F2472C;
}

.product-360-btn:focus {
	outline: none;
}

.product-360-btn:focus-visible .product-360-btn__label {
	border-bottom-color: #1775BB;
}

.product-360-btn img {
	width: 55px;
	height: auto;
	display: block;
	object-fit: contain;
	pointer-events: none;
}

.product_carousel.is-360-mode .product-carousel-top,
.product_carousel.is-360-mode .product_carousel_block {
	display: none !important;
}

.product-360-viewer {
	display: none;
	position: relative;
	width: 100%;
	user-select: none;
	-webkit-user-select: none;
	touch-action: pan-y;
	cursor: grab;
	background: #fff;
}

.product_carousel.is-360-mode .product-360-viewer {
	display: block;
}

.product-360-viewer.is-dragging {
	cursor: grabbing;
}

.product-360-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	touch-action: none;
}

.product-360-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	pointer-events: none;
}

.product-360-frame.is-active {
	opacity: 1;
}

.product-360-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: #e53935;
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.product-360-close:hover,
.product-360-close:focus {
	background: #c62828;
	color: #fff;
	outline: none;
}

.product-360-close span {
	display: block;
	margin-top: -2px;
}

.product-360-hint {
	text-align: center;
	font-size: 12px;
	color: #777;
	padding: 8px 4px 0;
}

@media (max-width: 767px) {
	.product-360-btn {
		gap: 12px;
		padding: 10px 2px;
	}

	.product-360-btn img {
		width: 55px;
	}

	.product-360-btn__label {
		font-size: 16px;
	}

	.product-360-btn__hint {
		font-size: 12px;
	}

	.product-360-close {
		width: 48px;
		height: 48px;
		font-size: 32px;
		top: 8px;
		right: 8px;
	}
}
