/**
 * Página de Producto Individual - Safety Garage
 * Diseño moderno con énfasis en video
 */

.single-product-page {
	background: #fff;
}

/* ========== BREADCRUMB ========== */
.product-breadcrumb {
	background: #f8fafc;
	padding: 1rem 0;
	border-bottom: 1px solid #e2e8f0;
}

.product-breadcrumb__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
	flex-wrap: wrap;
}

.product-breadcrumb a {
	color: #5a6a7a;
	text-decoration: none;
	transition: color 0.3s ease;
}

.product-breadcrumb a:hover {
	color: var(--sg-dark, #122d5c);
}

.product-breadcrumb svg {
	color: #94a3b8;
	flex-shrink: 0;
}

.product-breadcrumb span:last-child {
	color: var(--sg-dark, #122d5c);
	font-weight: 500;
}

/* ========== HERO DEL PRODUCTO - LAYOUT 50/50 ========== */
.product-hero {
	padding: 3rem 0;
	background: #fff;
}

.product-hero__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: stretch;
}

/* ========== MEDIA (VIDEO/IMAGEN) - Columna izquierda ========== */
.product-media {
	position: sticky;
	top: 100px;
}

.product-media__main {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	aspect-ratio: 1;
	margin-bottom: 1rem;
}

/* Video wrapper */
.product-media__video-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
}

.product-media__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #fff;
	border-radius: 12px;
}

.product-media__video-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(18, 45, 92, 0.5) 0%, rgba(18, 45, 92, 0.3) 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	cursor: pointer;
	transition: all 0.3s ease;
	border-radius: 12px;
}

.product-media__video-overlay:hover {
	background: linear-gradient(135deg, rgba(18, 45, 92, 0.4) 0%, rgba(18, 45, 92, 0.2) 100%);
}

.product-media__video-overlay.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.product-media__play-btn {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: #fff;
	border: none;
	color: var(--sg-red, #c01617);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.product-media__play-btn svg {
	margin-left: 4px;
}

.product-media__play-btn:hover {
	transform: scale(1.1);
}

.product-media__play-text {
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
}

/* Image wrapper */
.product-media__image-wrapper {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-media__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Thumbnails */
.product-media__thumbs {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.product-thumb {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid #e2e8f0;
	background: #f8fafc;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.product-thumb:hover {
	border-color: var(--sg-dark, #122d5c);
}

.product-thumb.is-active {
	border-color: var(--sg-red, #c01617);
	box-shadow: 0 0 0 2px rgba(192, 22, 23, 0.2);
}

.product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-thumb--video {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sg-red, #c01617);
	color: #fff;
	border-color: var(--sg-red, #c01617);
}

.product-thumb--video.is-active {
	background: var(--sg-dark, #122d5c);
	border-color: var(--sg-dark, #122d5c);
}

/* ========== INFO DEL PRODUCTO ========== */
.product-info {
	padding-top: 0.5rem;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.product-info__sku {
	display: inline-block;
	font-size: 0.8rem;
	color: #5a6a7a;
	margin-bottom: 0.5rem;
}

.product-info__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	color: var(--sg-dark, #122d5c);
	margin: 0 0 0.75rem;
	line-height: 1.2;
}

.product-info__category {
	display: inline-block;
	background: #f0f4f8;
	color: var(--sg-dark, #122d5c);
	font-size: 0.8rem;
	font-weight: 500;
	padding: 0.35rem 0.75rem;
	border-radius: 20px;
	text-decoration: none;
	transition: all 0.3s ease;
	margin-bottom: 1.5rem;
}

.product-info__category:hover {
	background: var(--sg-dark, #122d5c);
	color: #fff;
}

.product-info__short-desc {
	font-size: 1.05rem;
	color: #5a6a7a;
	line-height: 1.7;
	margin-bottom: 2rem;
}

/* Características */
.product-features {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: #f8fafc;
	border-radius: 12px;
}

.product-feature {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.95rem;
	color: var(--sg-dark, #122d5c);
}

.product-feature svg {
	color: var(--sg-red, #c01617);
	flex-shrink: 0;
}

/* Botones de acción */
.product-actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

/* ========== TIENDAS EXTERNAS (De venta en) ========== */
.product-stores {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	padding: 2rem;
	background: linear-gradient(135deg, #f8fafc 0%, #eef5fc 100%);
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	flex: 1;
	margin-top: 1.5rem;
}

.product-stores__label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--sg-dark, #122d5c);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.product-stores__logos {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
	flex: 1;
	width: 100%;
}

.product-store-link {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 12px;
	flex: 1;
	min-width: 140px;
	max-width: 200px;
	height: 90px;
	padding: 1rem;
	transition: all 0.3s ease;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	border: 1px solid #e2e8f0;
}

.product-store-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	border-color: var(--sg-dark, #122d5c);
}

.product-store-logo {
	height: 55px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
}

/* Hacer que product-info sea flex column para que stores ocupe el espacio */
.product-info:has(.product-stores) {
	display: flex;
	flex-direction: column;
}

.product-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1rem 1.75rem;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 10px;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.product-btn--primary {
	background: var(--sg-red, #c01617);
	color: #fff;
	box-shadow: 0 4px 16px rgba(192, 22, 23, 0.3);
}

.product-btn--primary:hover {
	background: #a81213;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(192, 22, 23, 0.4);
}

.product-btn--whatsapp {
	background: #25d366;
	color: #fff;
}

.product-btn--whatsapp:hover {
	background: #20bd5a;
	transform: translateY(-2px);
}

.product-btn--outline {
	background: transparent;
	color: var(--sg-dark, #122d5c);
	border: 2px solid var(--sg-dark, #122d5c);
}

.product-btn--outline:hover {
	background: var(--sg-dark, #122d5c);
	color: #fff;
}

.product-btn--white {
	background: #fff;
	color: var(--sg-dark, #122d5c);
}

.product-btn--white:hover {
	background: #f0f0f0;
}

.product-btn--outline-white {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.5);
}

.product-btn--outline-white:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #fff;
}

/* ========== DESCRIPCIÓN ========== */
.product-description {
	padding: 4rem 0;
	background: #f8fafc;
}

/* Ancho completo del contenedor (mismo que hero: video + "De venta en") */
.product-description__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.product-section-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--sg-dark, #122d5c);
	margin: 0 0 2rem;
	text-align: center;
}

.product-description__content {
	font-size: 1.05rem;
	color: #444;
	line-height: 1.8;
}

.product-description__content p {
	margin-bottom: 1.5rem;
}


/* ========== PRODUCTOS RELACIONADOS ========== */
.product-related {
	padding: 4rem 0;
}

.product-related__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.product-related__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.related-product-card {
	display: block;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	border: 1px solid #e2e8f0;
	transition: all 0.3s ease;
}

.related-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(18, 45, 92, 0.1);
}

.related-product-card__image {
	aspect-ratio: 1;
	background: #f8fafc;
	overflow: hidden;
}

.related-product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 1rem;
	transition: transform 0.4s ease;
}

.related-product-card:hover .related-product-card__image img {
	transform: scale(1.05);
}

.related-product-card__title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--sg-dark, #122d5c);
	margin: 0;
	padding: 1rem 1rem 0.5rem;
}

.related-product-card__link {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--sg-red, #c01617);
	padding: 0 1rem 1rem;
}

.related-product-card__link svg {
	transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-card__link svg {
	transform: translateX(4px);
}

/* ========== CTA FINAL ========== */
.product-final-cta {
	padding: 4rem 0;
	background: linear-gradient(135deg, var(--sg-dark, #122d5c) 0%, #0d2147 100%);
	text-align: center;
}

.product-final-cta__container {
	max-width: 700px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.product-final-cta__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	color: #fff;
	margin: 0 0 0.75rem;
}

.product-final-cta__text {
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.8);
	margin: 0 0 2rem;
}

.product-final-cta__actions {
	display: flex;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
	.product-hero__container {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.product-media {
		position: static;
		max-width: 500px;
		margin: 0 auto;
	}


	.product-related__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.product-hero {
		padding: 1.5rem 0;
	}

	.product-media__main {
		aspect-ratio: 1;
	}

	.product-thumb {
		width: 56px;
		height: 56px;
	}

	.product-actions {
		flex-direction: column;
	}

	.product-btn {
		width: 100%;
	}

	.product-stores {
		width: 100%;
		padding: 1.5rem;
	}

	.product-stores__logos {
		justify-content: center;
		width: 100%;
	}

	.product-store-link {
		min-width: 120px;
		max-width: 160px;
		height: 70px;
	}

	.product-store-logo {
		height: 40px;
		max-width: 120px;
	}

	.product-related__grid {
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}

	.product-final-cta__actions {
		flex-direction: column;
	}

	.product-final-cta__actions .product-btn {
		width: 100%;
	}

	.product-features {
		padding: 1rem;
	}

	.product-feature {
		font-size: 0.85rem;
	}
}
