/**
 * Single Product Template V2 — Minotti-Inspired
 * Two-column editorial layout: scrollable image gallery + sticky info panel.
 *
 * @package Romak
 */

/* ── Reset & Container ─────────────────────────────────────────── */
.spv2-main {
	background: #0d0d0d;
	color: #e8e0d6;
	min-height: 100vh;
	font-family: inherit;
}

.spv2-container {
	max-width: 1400px;
	margin-inline: auto;
	padding-inline: 40px;
}

@media (max-width: 768px) {
	.spv2-container {
		padding-inline: 20px;
	}
}

/* ── Breadcrumb ────────────────────────────────────────────────── */
.spv2-breadcrumb {
	padding: 20px 0 10px;
	border-bottom: 1px solid rgba(255,255,255,0.07);
}

.spv2-breadcrumb .woocommerce-breadcrumb,
.spv2-breadcrumb nav.woocommerce-breadcrumb {
	font-size: 12px;
	color: rgba(232,224,214,0.5);
	letter-spacing: 0.04em;
}

.spv2-breadcrumb .woocommerce-breadcrumb a {
	color: rgba(232,224,214,0.5);
	text-decoration: none;
	transition: color 0.2s;
}

.spv2-breadcrumb .woocommerce-breadcrumb a:hover {
	color: #00D9CC;
}

/* ── Main Layout ───────────────────────────────────────────────── */
.spv2-layout {
	display: grid;
	grid-template-columns: 1fr 420px;
	gap: 0;
	align-items: start;
	min-height: 100vh;
}

@media (max-width: 1100px) {
	.spv2-layout {
		grid-template-columns: 1fr 360px;
	}
}

@media (max-width: 860px) {
	.spv2-layout {
		grid-template-columns: 1fr;
	}
}

/* ── Gallery (Left Column) ─────────────────────────────────────── */
.spv2-gallery {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-block: 4px;
}

.spv2-gallery__frame {
	position: relative;
	overflow: hidden;
	background: #111;
	line-height: 0;
}

.spv2-gallery__frame img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.spv2-gallery__frame:hover img {
	transform: scale(1.02);
}

.spv2-gallery__frame.is-first img {
	min-height: 70vh;
	object-fit: cover;
}

.spv2-gallery__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 60vh;
	background: #1a1a1a;
	color: rgba(232,224,214,0.3);
	font-size: 14px;
	letter-spacing: 0.08em;
}

/* ── Info Panel (Right Column) ─────────────────────────────────── */
.spv2-info {
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
	background: #111;
	border-right: 1px solid rgba(255,255,255,0.06);
	scrollbar-width: thin;
	scrollbar-color: rgba(0,217,204,0.2) transparent;
}

.spv2-info::-webkit-scrollbar {
	width: 4px;
}

.spv2-info::-webkit-scrollbar-thumb {
	background: rgba(0,217,204,0.2);
	border-radius: 2px;
}

.spv2-info__inner {
	padding: 40px 36px 60px;
}

@media (max-width: 1100px) {
	.spv2-info__inner {
		padding: 30px 24px 48px;
	}
}

@media (max-width: 860px) {
	.spv2-info {
		position: static;
		height: auto;
		overflow: visible;
		border-right: none;
		border-top: 1px solid rgba(255,255,255,0.07);
	}

	.spv2-info__inner {
		padding: 32px 0 40px;
	}
}

/* ── Kicker ────────────────────────────────────────────────────── */
.spv2-kicker {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #00D9CC;
	margin-bottom: 14px;
}

/* ── Title ─────────────────────────────────────────────────────── */
.spv2-title {
	font-size: clamp(22px, 2.5vw, 32px);
	font-weight: 700;
	line-height: 1.3;
	color: #f5f0e8;
	margin: 0 0 18px;
	letter-spacing: -0.01em;
}

/* ── Excerpt ───────────────────────────────────────────────────── */
.spv2-excerpt {
	font-size: 14px;
	line-height: 1.8;
	color: rgba(232,224,214,0.65);
	margin-bottom: 0;
}

/* ── Divider ───────────────────────────────────────────────────── */
.spv2-divider {
	border: none;
	border-top: 1px solid rgba(255,255,255,0.08);
	margin: 28px 0;
}

/* ── Price ─────────────────────────────────────────────────────── */
.spv2-price-wrap {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 20px;
}

.spv2-price-label {
	font-size: 11px;
	letter-spacing: 0.1em;
	color: rgba(232,224,214,0.4);
	text-transform: uppercase;
}

.spv2-price,
.spv2-price .woocommerce-Price-amount,
.spv2-price .price {
	font-size: 20px;
	font-weight: 600;
	color: #f5f0e8;
}

.spv2-price ins {
	text-decoration: none;
}

.spv2-price del {
	opacity: 0.4;
	font-size: 14px;
}

/* ── Meta List ─────────────────────────────────────────────────── */
.spv2-meta-list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.spv2-meta-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255,255,255,0.05);
	font-size: 13px;
}

.spv2-meta-list li:last-child {
	border-bottom: none;
}

.spv2-meta-list__key {
	color: rgba(232,224,214,0.45);
	font-size: 12px;
	letter-spacing: 0.04em;
}

.spv2-meta-list__val {
	color: #e8e0d6;
	font-weight: 500;
	text-align: left;
	direction: ltr;
}

.spv2-stock.in-stock  { color: #4caf50; }
.spv2-stock.out-stock { color: #ef5350; }

/* ── Thumbnail Strip ───────────────────────────────────────────── */
.spv2-thumbs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.spv2-thumbs__btn {
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid rgba(255,255,255,0.1);
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	background: transparent;
	transition: border-color 0.2s, transform 0.2s;
	flex-shrink: 0;
}

.spv2-thumbs__btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.spv2-thumbs__btn:hover {
	border-color: rgba(0,217,204,0.5);
	transform: scale(1.05);
}

.spv2-thumbs__btn.is-active {
	border-color: #00D9CC;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.spv2-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 28px;
}

.spv2-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 24px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.25s;
	text-decoration: none;
	border: none;
	font-family: inherit;
	line-height: 1;
}

.spv2-btn--primary {
	background: #00D9CC;
	color: #0a0a0a;
}

.spv2-btn--primary:hover {
	background: #5FFFF0;
	color: #0a0a0a;
}

.spv2-btn--outline {
	background: transparent;
	color: #e8e0d6;
	border: 1px solid rgba(232,224,214,0.3);
}

.spv2-btn--outline:hover {
	border-color: #00D9CC;
	color: #00D9CC;
}

.spv2-btn--whatsapp,
.spv2-btn--whatsapp:hover,
.spv2-btn--whatsapp:focus,
.spv2-btn--whatsapp:focus-visible {
	background: #25D366;
	color: #fff !important;
	border: 1px solid #fff;
}

.spv2-btn--whatsapp:hover,
.spv2-btn--whatsapp:focus-visible {
	background: #128C7E;
	border-color: #fff;
}

.spv2-btn--whatsapp svg {
	color: #fff;
	fill: currentColor;
}

.spv2-cta-banner .spv2-btn--outline-light,
.spv2-cta-banner .spv2-btn--outline-light:hover,
.spv2-cta-banner .spv2-btn--outline-light:focus,
.spv2-cta-banner .spv2-btn--outline-light:focus-visible {
	color: #fff !important;
	border: 1px solid #fff;
}

/* ── Accordion ─────────────────────────────────────────────────── */
.spv2-accordion {
	border-top: 1px solid rgba(255,255,255,0.08);
}

.spv2-accordion:last-child {
	border-bottom: 1px solid rgba(255,255,255,0.08);
}

.spv2-accordion__trigger {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 0;
	background: none;
	border: none;
	cursor: pointer;
	color: #e8e0d6;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	font-family: inherit;
	text-align: right;
}

.spv2-accordion__trigger:hover {
	color: #00D9CC;
}

.spv2-accordion__icon {
	transition: transform 0.3s;
	flex-shrink: 0;
	opacity: 0.6;
}

.spv2-accordion__body {
	padding-bottom: 20px;
}

.spv2-accordion__body[hidden] {
	display: none;
}

.spv2-rich-content {
	font-size: 14px;
	line-height: 1.8;
	color: rgba(232,224,214,0.7);
}

.spv2-specs {
	list-style: none;
	margin: 0;
	padding: 0;
}

.spv2-specs li {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255,255,255,0.05);
	font-size: 13px;
	color: rgba(232,224,214,0.65);
}

.spv2-specs li strong {
	color: #e8e0d6;
	font-weight: 500;
	text-align: left;
}

.spv2-wc-meta {
	margin-top: 12px;
	font-size: 13px;
	color: rgba(232,224,214,0.5);
}

/* ── Features Strip ────────────────────────────────────────────── */
.spv2-features {
	padding: 80px 0;
	background: #0a0a0a;
	border-top: 1px solid rgba(255,255,255,0.06);
}

.spv2-features__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

@media (max-width: 860px) {
	.spv2-features__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

.spv2-feature-card {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.spv2-feature-card.spv2-revealed {
	opacity: 1;
	transform: translateY(0);
}

.spv2-feature-card:nth-child(2) { transition-delay: 0.1s; }
.spv2-feature-card:nth-child(3) { transition-delay: 0.2s; }

.spv2-feature-card__icon {
	width: 52px;
	height: 52px;
	border: 1px solid rgba(0,217,204,0.25);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	color: #00D9CC;
}

.spv2-feature-card__title {
	display: block;
	font-size: 16px;
	font-weight: 600;
	color: #f5f0e8;
	margin: 0 0 10px;
}

.spv2-feature-card p {
	font-size: 13px;
	line-height: 1.7;
	color: rgba(232,224,214,0.55);
	margin: 0;
}

/* ── CTA Banner ────────────────────────────────────────────────── */
.spv2-cta-banner {
	background: #004743;
	padding: 70px 0;
}

.spv2-cta-banner__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}

.spv2-cta-banner__text .spv2-kicker {
	color: rgba(255,255,255,0.6);
}

.spv2-cta-banner__title {
	display: block;
	margin: 8px 0 10px;
	font-size: clamp(22px, 2.5vw, 32px);
	font-weight: 700;
	color: #fff;
}

.spv2-cta-banner__text p {
	font-size: 15px;
	color: rgba(255,255,255,0.7);
	margin: 0;
}

.spv2-cta-banner__actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	flex-shrink: 0;
}

.spv2-cta-banner .spv2-btn--primary {
	background: #fff;
	color: #004743;
}

.spv2-cta-banner .spv2-btn--primary:hover {
	background: #f0faf9;
}

/* ── Related Products ──────────────────────────────────────────── */
.spv2-related {
	padding: 80px 0;
	background: #0d0d0d;
}

.spv2-related__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 40px;
}

.spv2-related__title {
	display: block;
	margin: 8px 0 0;
	font-size: clamp(20px, 2vw, 28px);
	font-weight: 700;
	color: #f5f0e8;
}

.spv2-related__nav {
	display: flex;
	gap: 10px;
}

.spv2-related-nav-btn {
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255,255,255,0.15);
	border-radius: 50%;
	background: transparent;
	color: #e8e0d6;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}

.spv2-related-nav-btn:hover:not(:disabled) {
	border-color: #00D9CC;
	color: #00D9CC;
}

.spv2-related-nav-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* WooCommerce wraps output in <section class="related products"> — flatten for carousel */
.spv2-related__track > section.related.products {
	display: contents;
}

.spv2-related__track {
	overflow: hidden;
}

.spv2-related__track ul.products {
	display: flex;
	gap: 20px;
	padding: 0 0 4px;
	margin: 0;
	list-style: none;
	width: 100%;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.spv2-related__track ul.products::-webkit-scrollbar {
	display: none;
}

.spv2-related__track ul.products li.product {
	width: 280px;
	flex: 0 0 280px;
	background: #1a1a1a;
	border-radius: 8px;
	overflow: hidden;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.5s ease, transform 0.5s ease;
	scroll-snap-align: start;
}

.spv2-related__track ul.products li.product.spv2-revealed {
	opacity: 1;
	transform: translateY(0);
}

.spv2-related__track ul.products li.product a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.spv2-related__track ul.products li.product .product-card {
	height: 100%;
}

.spv2-related__track ul.products li.product .product-image-wrapper {
	position: relative;
	overflow: hidden;
	aspect-ratio: 2 / 3;
	background: #111;
}

.spv2-related__track ul.products li.product img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.spv2-related__track ul.products li.product:hover img {
	transform: scale(1.04);
}

.spv2-related__track ul.products li.product .product-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #00D9CC;
	color: #0a0a0a;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 4px;
	z-index: 1;
}

.spv2-related__track ul.products li.product .product-content {
	padding: 16px;
}

.spv2-related__track ul.products li.product .product-category {
	display: block;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(0, 217, 204, 0.75);
	margin-bottom: 8px;
}

.spv2-related__track ul.products li.product .woocommerce-loop-product__title {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: #f5f0e8;
	padding: 0;
	margin: 0 0 8px;
	line-height: 1.4;
}

.spv2-related__track ul.products li.product .price {
	display: block;
	font-size: 14px;
	color: rgba(232, 224, 214, 0.55);
	padding: 0;
	margin: 0;
}

.spv2-related__track ul.products li.product .button {
	display: none;
}

@media (max-width: 768px) {
	.spv2-related {
		padding: 56px 0;
	}

	.spv2-related__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		margin-bottom: 28px;
	}

	.spv2-related__nav {
		width: 100%;
		justify-content: flex-end;
	}

	.spv2-related__track {
		margin-inline: -20px;
		padding-inline: 20px;
	}

	.spv2-related__track ul.products {
		gap: 16px;
		padding-inline-end: 20px;
	}

	.spv2-related__track ul.products li.product {
		width: min(280px, calc(100vw - 72px));
		flex: 0 0 min(280px, calc(100vw - 72px));
	}
}

@media (max-width: 480px) {
	.spv2-related__title {
		font-size: 1.25rem;
	}

	.spv2-related-nav-btn {
		width: 40px;
		height: 40px;
	}

	.spv2-related__track ul.products {
		gap: 12px;
	}

	.spv2-related__track ul.products li.product {
		width: calc(100vw - 64px);
		flex: 0 0 calc(100vw - 64px);
	}

	.spv2-related__track ul.products li.product .product-content {
		padding: 14px;
	}

	.spv2-related__track ul.products li.product .woocommerce-loop-product__title {
		font-size: 14px;
	}
}

/* ── Lightbox ──────────────────────────────────────────────────── */
.spv2-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
}

.spv2-lightbox.is-active {
	display: flex;
}

.spv2-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.92);
}

.spv2-lightbox__body {
	position: relative;
	z-index: 1;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.spv2-lightbox__img-wrap {
	overflow: hidden;
	max-width: 80vw;
	max-height: 80vh;
}

.spv2-lightbox__img {
	max-width: 80vw;
	max-height: 80vh;
	object-fit: contain;
	display: block;
	transition: transform 0.2s;
	transform-origin: center;
}

.spv2-lightbox__close {
	position: fixed;
	top: 20px;
	left: 20px;
	width: 44px;
	height: 44px;
	background: rgba(255,255,255,0.1);
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	z-index: 2;
}

.spv2-lightbox__close:hover {
	background: rgba(255,255,255,0.2);
}

.spv2-lightbox__nav {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	background: rgba(255,255,255,0.1);
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	z-index: 2;
}

.spv2-lightbox__nav--prev { left: 20px; }
.spv2-lightbox__nav--next { right: 20px; }

.spv2-lightbox__nav:hover {
	background: rgba(0,217,204,0.3);
}

.spv2-lightbox__zoom {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 2;
}

.spv2-lightbox__zoom button {
	width: 40px;
	height: 40px;
	background: rgba(255,255,255,0.1);
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	transition: background 0.2s;
}

.spv2-lightbox__zoom button:hover {
	background: rgba(255,255,255,0.2);
}

/* ── Body lock when lightbox open ──────────────────────────────── */
body.romak-lightbox-open {
	overflow: hidden;
}

/* ── RTL adjustments ───────────────────────────────────────────── */
[dir="rtl"] .spv2-layout {
	direction: rtl;
}

[dir="rtl"] .spv2-info {
	border-right: none;
	border-left: 1px solid rgba(255,255,255,0.06);
}

[dir="rtl"] .spv2-lightbox__close {
	left: auto;
	right: 20px;
}

[dir="rtl"] .spv2-lightbox__nav--prev {
	left: auto;
	right: 20px;
}

[dir="rtl"] .spv2-lightbox__nav--next {
	right: auto;
	left: 20px;
}
