/**
 * WC Image Hotspot — Front-end styles.
 *
 * Layout, marker pulse animation, and responsive breakpoints.
 *
 * @package WC_Image_Hotspot
 */

/* ── Container ─────────────────────────────────────────────────────── */

.wcih-container {
	width: 100%;
	margin: 0 auto;
}

.wcih-header {
	margin-bottom: 16px;
	text-align: center;
}

.wcih-pretitle {
	display: block;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #0073aa;
	margin-bottom: 4px;
}

.wcih-title {
	margin: 0 0 12px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
}

.wcih-button {
	display: inline-block;
	padding: 10px 24px;
	background: #0073aa;
	color: #fff !important;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.2s ease, transform 0.1s ease;
}

.wcih-button:hover {
	background: #005a87;
	color: #fff !important;
	transform: translateY(-1px);
}

.wcih-button:active {
	transform: translateY(0);
}

.wcih-layout {
	display: flex;
	flex-direction: row;
	gap: 24px;
	align-items: flex-start;
	padding: 24px;
}

/* ── Image column ──────────────────────────────────────────────────── */

.wcih-image-col {
	flex: 1 1 60%;
	position: relative;
}

.wcih-image-wrapper {
	position: relative;
	line-height: 0;
	background-color: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
}

.wcih-image {
	width: 100%;
	height: auto;
	display: block;
}

/* ── Markers ───────────────────────────────────────────────────────── */

.wcih-marker {
	position: absolute;
	transform: translate( -50%, -50% );
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	z-index: 10;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wcih-marker-dot {
	width: 14px;
	height: 14px;
	background: rgba( 255, 255, 255, 0.9 );
	border: 2px solid #0073aa;
	border-radius: 50%;
	position: relative;
	z-index: 2;
	transition: transform 0.2s ease, background 0.2s ease;
}

.wcih-marker:hover .wcih-marker-dot,
.wcih-marker--active .wcih-marker-dot {
	background: #0073aa;
	transform: scale( 1.25 );
}

.wcih-marker-pulse {
	position: absolute;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba( 0, 115, 170, 0.25 );
	animation: wcih-pulse 2s ease-out infinite;
	z-index: 1;
}

.wcih-marker--active .wcih-marker-pulse {
	animation: none;
	background: rgba( 0, 115, 170, 0.35 );
}

@keyframes wcih-pulse {
	0% {
		transform: scale( 0.6 );
		opacity: 1;
	}
	100% {
		transform: scale( 1.6 );
		opacity: 0;
	}
}

/* ── Carousel column ───────────────────────────────────────────────── */

.wcih-carousel-col {
	flex: 1 1 40%;
}

.wcih-carousel {
	display: flex;
	flex-direction: row;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding: 12px 0;
}

.wcih-slide {
	flex: 0 0 100%;
	scroll-snap-align: center;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 16px;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wcih-slide--active {
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba( 0, 115, 170, 0.2 );
}

.wcih-slide-image {
	margin-bottom: 12px;
	line-height: 0;
}

.wcih-slide-image img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
}

.wcih-slide-info {
	text-align: center;
}

.wcih-slide-title {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.3;
}

.wcih-slide-title a {
	text-decoration: none;
	color: inherit;
}

.wcih-slide-price {
	margin-bottom: 12px;
	font-size: 18px;
	font-weight: 600;
	color: #0073aa;
}

.wcih-slide-price del {
	color: #999;
	font-weight: 400;
}

.wcih-slide-price ins {
	text-decoration: none;
	color: #0073aa;
}

/* Slide button */
.wcih-slide-button {
	display: inline-block;
	margin-top: 12px;
	padding: 8px 18px;
	background: transparent;
	color: #0073aa !important;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
	border: 2px solid #0073aa;
	border-radius: 4px;
	transition: background 0.2s ease, color 0.2s ease;
}

.wcih-slide-button:hover {
	background: #0073aa;
	color: #fff !important;
}

/* ── Responsive: mobile ────────────────────────────────────────────── */

@media ( max-width: 768px ) {
	.wcih-layout {
		flex-direction: column;
		padding: 16px;
	}

	.wcih-image-col,
	.wcih-carousel-col {
		flex: 1 1 100%;
	}

	.wcih-carousel {
		flex-direction: row;
		gap: 12px;
	}

	.wcih-slide {
		flex: 0 0 85%;
	}

	.wcih-title {
		font-size: 22px;
	}

	.wcih-header {
		margin-bottom: 12px;
	}
}
