/* ===================================================================
   VIRIO — Custom Product Page Layout
   Matches the reference design from pagina-ejemplo.html
   =================================================================== */

/* --- Override Kadence / WooCommerce defaults on product pages --- */
body.single-product .content-container.site-container {
	max-width: 1100px;
	padding: 0 16px;
}
body.single-product .site-main {
	padding-top: 0;
}
body.single-product .woocommerce-notices-wrapper {
	margin-bottom: 16px;
}
body.single-product div.product {
	/* Remove default WooCommerce float layout */
	display: block;
}

/* Hide default WooCommerce elements */
.woocommerce div.product div.images,
.woocommerce div.product div.summary {
	float: none !important;
	width: 100% !important;
}
.woocommerce-product-gallery,
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: none; /* We handle gallery & tabs ourselves */
}
.woocommerce div.product .product_title {
	display: none; /* We output our own title */
}
.woocommerce div.product .woocommerce-product-rating {
	display: none; /* We handle reviews */
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	display: none; /* We handle price */
}

/* Keep quantity hidden if we handle it inside the form */
.woocommerce div.product form.cart .quantity {
	display: inline-flex;
}

/* --- Virio Product Page Flex Layout --- */
.virio-product-page {
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.virio-gallery-col {
	min-width: 0;
}
.virio-info-col {
	min-width: 0;
}

@media (min-width: 761px) {
	.virio-product-page {
		flex-direction: row;
		align-items: flex-start;
		gap: 48px;
	}
	.virio-gallery-col {
		width: 52%;
		flex-shrink: 0;
		position: -webkit-sticky;
		position: sticky;
		top: 24px;
	}
	.virio-info-col {
		flex: 1;
		padding-top: 4px;
	}
}

/* --- GALLERY --- */
:root {
	--virio-gap: 10px;
	--virio-thumb-size: 78px;
	--virio-border: #e5e5e5;
	--virio-active: #111;
}

.virio-gallery {
	display: flex;
	gap: var(--virio-gap);
}

/* Thumbnails column */
.virio-thumbs {
	display: flex;
	flex-direction: column;
	gap: var(--virio-gap);
	width: var(--virio-thumb-size);
	flex-shrink: 0;
	max-height: 560px;
	overflow-y: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.virio-thumbs::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}
.virio-thumb {
	width: var(--virio-thumb-size);
	height: var(--virio-thumb-size);
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
	background: #fff;
	padding: 0;
	flex-shrink: 0;
	transition: border-color 0.15s ease, opacity 0.15s ease;
	opacity: 0.65;
}
.virio-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.virio-thumb:hover {
	opacity: 1;
}
.virio-thumb.active {
	border-color: var(--virio-active);
	opacity: 1;
}

/* Main stage */
.virio-main-stage {
	position: relative;
	flex: 1;
	aspect-ratio: 1 / 1;
	background: #f5f5f5;
	border-radius: 8px;
	overflow: hidden;
	cursor: zoom-in;
}
.virio-track {
	display: flex;
	width: 100%;
	height: 100%;
	transition: transform 0.35s ease;
}
.virio-slide {
	width: 100%;
	height: 100%;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.virio-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
	.virio-slide img:hover {
		transform: scale(1.35);
		cursor: zoom-in;
	}
}

.virio-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--virio-border);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	font-size: 16px;
	user-select: none;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	padding: 0;
	line-height: 1;
	color: #111;
}
.virio-nav--prev { left: 12px; }
.virio-nav--next { right: 12px; }
.virio-nav:hover { background: #fff; }

.virio-counter {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 12px;
	padding: 3px 8px;
	border-radius: 10px;
	z-index: 5;
	pointer-events: none;
	line-height: 1.4;
}

/* Mobile dots */
.virio-dots {
	display: none;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
}
.virio-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #ccc;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
	border: none;
	padding: 0;
}
.virio-dot.active {
	background: #111;
	transform: scale(1.2);
}

@media (max-width: 760px) {
	.virio-gallery { flex-direction: column-reverse; gap: 1px; }
	.virio-thumbs {
		flex-direction: row;
		width: 100%;
		max-height: none;
		overflow-x: auto;
		overflow-y: hidden;
		padding: 0 2px;
		-webkit-mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
		mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
	}
	.virio-main-stage { aspect-ratio: 1/1; cursor: default; }
	.virio-slide img:hover { transform: none; }
	.virio-nav { display: none; }
	.virio-counter { display: none; }
	.virio-dots { display: flex; }
}

/* --- LIGHTBOX --- */
.virio-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 10000;
}
.virio-lightbox.virio-lightbox--open {
	display: flex;
}
.virio-lightbox img {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 4px;
}
.virio-lightbox-close {
	position: absolute;
	top: 18px;
	right: 22px;
	color: #fff;
	font-size: 30px;
	cursor: pointer;
	line-height: 1;
	background: none;
	border: none;
	padding: 0;
	z-index: 10;
}
.virio-lightbox .virio-nav {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
}
.virio-lightbox .virio-nav:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* --- SUBTITLE & TITLE --- */
.virio-subtitle {
	font-size: 12.5px;
	color: #777;
	margin: 0 0 4px;
	line-height: 1.4;
}
.virio-title {
	font-size: 30px;
	font-weight: 800;
	margin: 0 0 10px;
	letter-spacing: 0.2px;
	line-height: 1.2;
	color: #111;
}

@media (max-width: 760px) {
	.virio-title { font-size: 24px; }
}

/* --- PRICE ROW --- */
.virio-price-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}
.virio-price-row .price {
	display: flex !important;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	border: none;
	font-size: inherit;
}
.virio-price-row del,
.virio-price-row .price del {
	color: #9a9a9a;
	text-decoration: line-through;
	font-size: 15px;
	display: inline-block;
}
.virio-price-row ins,
.virio-price-row .price ins {
	text-decoration: none;
	display: inline-block;
}
.virio-price-row ins .amount,
.virio-price-row .price ins .amount,
.virio-price-row .price .amount {
	font-size: 23px;
	font-weight: 800;
	color: #111;
}
.virio-price-row del .amount {
	font-size: 15px;
	font-weight: 400;
	color: #9a9a9a;
}

/* KPT savings badge inside price row */
.virio-price-row .kpt-savings-badge {
	display: inline-block !important;
	background: #e0263f !important;
	color: #fff !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	padding: 3px 9px !important;
	border-radius: 20px !important;
	white-space: nowrap;
	line-height: 1.4;
	margin-left: 0 !important;
	vertical-align: middle !important;
}

/* Hide the native WooCommerce variation price inside the form (we show it in .virio-price-row via JS) */
.variations_form .woocommerce-variation-price {
	display: none;
}

@media (max-width: 760px) {
	.virio-price-row ins .amount,
	.virio-price-row .price ins .amount,
	.virio-price-row .price .amount {
		font-size: 20px;
	}
}

/* --- REVIEWS ROW --- */
.virio-reviews-row {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 12.5px;
	color: #555;
	margin-bottom: 20px;
	line-height: 1.4;
}
.virio-stars {
	display: inline-flex;
	align-items: center;
	gap: 1px;
}
.virio-stars svg {
	display: block;
}

/* --- FIELD ROW (ring size / attribute) --- */
.virio-field-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 7px;
}
.virio-field-label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: #111;
}
.virio-field-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	color: #111;
	text-decoration: underline;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}
.virio-field-link svg {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
}

.virio-select-wrap {
	position: relative;
	margin-bottom: 20px;
}
.virio-ring-size {
	width: 100%;
	padding: 13px 36px 13px 14px;
	border: 1px solid var(--virio-border);
	border-radius: 9px;
	font-size: 14px;
	background: #fff;
	appearance: none;
	-webkit-appearance: none;
	color: #111;
	cursor: pointer;
	font-family: inherit;
	line-height: 1.4;
}
.virio-select-wrap::after {
	content: '';
	position: absolute;
	right: 16px;
	top: 44%;
	width: 8px;
	height: 8px;
	border-right: 2px solid #444;
	border-bottom: 2px solid #444;
	transform: translateY(-50%) rotate(45deg);
	pointer-events: none;
}

/* Hide the default WooCommerce variations table (we handle it)
   EXCEPT for the single_variation_wrap which shows price + stock */
.variations_form .variations {
	display: none !important;
}
.woocommerce-variation-add-to-cart {
	margin-top: 0;
}

/* Style the add-to-cart inside the form */
.virio-info-col form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 0;
}
.virio-info-col form.cart .woocommerce-variation-add-to-cart {
	display: flex !important;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	width: 100%;
}
.virio-info-col form.cart .quantity,
.virio-info-col form.cart .woocommerce-variation-add-to-cart .quantity {
	flex: 0 0 15%;
	min-width: 70px;
}
.virio-info-col form.cart .qty,
.virio-info-col form.cart .woocommerce-variation-add-to-cart .qty {
	width: 100%;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	padding: 12px 8px;
	border: 1px solid var(--virio-border);
	border-radius: 9px;
	background: #fff;
	color: #111;
	height: auto;
	line-height: 1.4;
	box-sizing: border-box;
}
.virio-info-col form.cart .single_add_to_cart_button,
.virio-info-col form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 0;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	background: #111;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 16px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	line-height: 1;
	height: auto;
	margin: 0;
	width: auto;
}
.virio-info-col form.cart .single_add_to_cart_button:hover,
.virio-info-col form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button:hover {
	opacity: 0.92;
}

/* Buy Now full-width on its own line */
.kpt-buy-now-wrap {
	flex: 0 0 100%;
	width: 100%;
	margin-top: 0;
}

/* Reset opacity on disabled button — WooCommerce dims it until variation is selected */
.virio-info-col form.cart .single_add_to_cart_button.disabled,
.virio-info-col form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* WooCommerce variation price */
.virio-info-col .woocommerce-variation-price {
	margin-bottom: 8px;
	width: 100%;
}
.virio-info-col .woocommerce-variation-price .price {
	display: block !important;
	font-size: 18px;
	font-weight: 700;
	color: #111;
}
.virio-info-col .woocommerce-variation-price .price del {
	color: #9a9a9a;
	font-weight: 400;
}

/* WooCommerce variation availability */
.virio-info-col .woocommerce-variation-availability {
	width: 100%;
	margin-bottom: 8px;
}

/* --- ADDON CARD --- */
.virio-addon-card {
	margin-top: 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #fff;
	border: 1px solid var(--virio-border);
	border-radius: 12px;
	padding: 14px 16px;
}
.virio-addon-left {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 1;
}

.virio-switch {
	position: relative;
	width: 42px;
	height: 24px;
	flex-shrink: 0;
	border-radius: 999px;
	border: none;
	background: #d9d9d9;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease;
}
.virio-switch::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease;
}
.virio-switch--on {
	background: #111;
}
.virio-switch--on::after {
	transform: translateX(18px);
}

.virio-addon-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.virio-addon-title {
	font-size: 13.5px;
	font-weight: 600;
	color: #111;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.virio-addon-price {
	font-size: 13px;
}
.virio-addon-now {
	font-weight: 700;
	color: #111;
}
.virio-addon-was {
	color: #999;
	text-decoration: line-through;
	margin-left: 6px;
}

.virio-addon-icon {
	width: 42px;
	height: 42px;
	border-radius: 8px;
	background: #111;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.virio-addon-icon svg {
	width: 24px;
	height: 24px;
	display: block;
}

/* --- BUY NOW button (from KPT plugin) --- */
.kpt-buy-now-wrap {
	width: 100%;
	margin-top: 0;
}

/* --- TRUST SECTION --- */
.virio-trust-section {
	margin-top: 26px;
}
.virio-trust-row {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 22px;
	font-size: 12.5px;
	font-weight: 600;
	color: #222;
}
.virio-trust-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}
.virio-trust-item svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.virio-rating-summary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 14px;
	font-size: 13px;
	color: #333;
	line-height: 1.4;
}
.virio-rating-summary .virio-stars svg {
	width: 13px;
	height: 13px;
}

/* --- TESTIMONIAL CAROUSEL --- */
.virio-testimonial-carousel {
	position: relative;
	margin-top: 16px;
}
.virio-tc-viewport {
	overflow: hidden;
	border-radius: 12px;
}
.virio-tc-track {
	display: flex;
	transition: transform 0.35s ease;
}
.virio-tc-slide {
	width: 100%;
	flex-shrink: 0;
	display: flex;
	gap: 12px;
	background: #fff;
	border: 1px solid var(--virio-border);
	border-radius: 12px;
	padding: 14px 44px;
	box-sizing: border-box;
}
.virio-tc-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	flex-shrink: 0;
	background: #111;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
}
.virio-tc-body {
	min-width: 0;
	flex: 1;
}
.virio-tc-head {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 6px;
	margin-bottom: 4px;
}
.virio-tc-name {
	font-weight: 700;
	font-size: 13px;
	color: #111;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
	flex-shrink: 1;
}
.virio-tc-stars {
	color: #111;
	font-size: 12px;
	letter-spacing: 1px;
	flex-shrink: 0;
	white-space: nowrap;
}
.virio-tc-stars svg {
	display: inline;
}
.virio-tc-verified {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 11px;
	color: #1a8a3d;
	font-weight: 600;
	margin-left: auto;
	flex-shrink: 0;
	white-space: nowrap;
}
.virio-tc-verified svg {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
}
.virio-tc-text {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #333;
}

.virio-tc-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--virio-border);
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 15px;
	color: #333;
	z-index: 5;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
	transition: background 0.15s ease;
	padding: 0;
	line-height: 1;
}
.virio-tc-arrow--prev {
	left: 0;
	transform: translate(-50%, -50%);
}
.virio-tc-arrow--next {
	right: 0;
	transform: translate(50%, -50%);
}
.virio-tc-arrow:hover {
	background: #f2f2f2;
}

@media (max-width: 760px) {
	.virio-addon-card { padding: 12px 12px; margin-top: 16px; }
	.virio-addon-title { font-size: 12.5px; }
	.virio-trust-row { gap: 14px; font-size: 11px; }
	.virio-tc-slide { padding: 12px 34px; }
	.virio-tc-arrow { width: 28px; height: 28px; font-size: 13px; }
}

/* --- ABOUT SECTION --- */
.virio-about-section {
	margin-top: 32px;
}
.virio-about-title {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.5px;
	color: #111;
	margin: 0 0 10px;
	text-transform: uppercase;
}
.virio-about-text {
	font-size: 13.5px;
	line-height: 1.65;
	color: #333;
	margin: 0;
}
.virio-about-text p {
	margin: 0;
}
.virio-about-text p + p {
	margin-top: 10px;
}

/* --- ACCORDION --- */
.virio-accordion {
	margin-top: 20px;
	border-top: 1px solid var(--virio-border);
}
.virio-accordion-item {
	border-bottom: 1px solid var(--virio-border);
}
.virio-accordion-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: none;
	border: none;
	padding: 16px 2px;
	font-size: 13.5px;
	font-weight: 700;
	color: #111;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	line-height: 1.4;
}
.virio-plus {
	font-size: 19px;
	font-weight: 400;
	color: #111;
	transition: transform 0.2s ease;
	flex-shrink: 0;
	margin-left: 12px;
	line-height: 1;
}
.virio-accordion-item--open .virio-plus {
	transform: rotate(45deg);
}
.virio-accordion-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}
.virio-accordion-body-inner {
	padding: 0 2px 16px;
	font-size: 13px;
	color: #444;
	line-height: 1.65;
}

/* --- FOOTER LINKS / KPT TABS --- */
.virio-footer-links {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}
.virio-footer-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #151515;
	font-size: 13px;
	font-weight: 600;
	background: #f5f5f5;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	cursor: pointer;
	padding: 10px 18px;
	font-family: inherit;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.virio-footer-link:hover {
	background: #eaeaea;
	border-color: #151515;
	text-decoration: none;
}
.virio-footer-link:active {
	transform: scale(0.97);
}
.virio-footer-link svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

@media (max-width: 760px) {
	.virio-about-section { margin-top: 26px; }
}

/* ===================================================================
   KPT PLUGIN OVERRIDES / COMPATIBILITY
   =================================================================== */

/* Offer bars from KPT plugin */
.kpt-offer-bars-wrap {
	margin-bottom: 12px;
}
.kpt-offer-bar {
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 8px;
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.2px;
	margin-bottom: 6px;
	padding: 9px 12px;
}
.kpt-offer-bar:last-child {
	margin-bottom: 0;
}

/* Keep KPT side panel links in DOM (for click triggering) but visually hidden */
.kpt-side-panel-links {
	position: absolute;
	left: -9999px;
	top: 0;
	pointer-events: none;
	opacity: 0;
}

/* Buy now button override */
.kpt-buy-now-btn {
	display: block !important;
	width: 100%;
	padding: 16px;
	border-radius: 10px;
	border: 1.5px solid #111;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-align: center;
	cursor: pointer;
	text-decoration: none;
	background: #fff;
	color: #111;
	line-height: 1;
	margin-top: 0;
	height: auto;
	box-sizing: border-box;
}
.kpt-buy-now-btn:hover {
	opacity: 0.92;
	background: #f5f5f5;
	color: #111;
}

/* ===================================================================
   RESPONSIVE — Product tabs fix (after summary)
   =================================================================== */
.woocommerce-tabs.wc-tabs-wrapper {
	margin-top: 40px;
	clear: both;
}
.woocommerce-tabs .panel {
	margin-bottom: 2em;
}

/* Override Kadence woo tabs if they have extra styles */
body.single-product .woocommerce-tabs {
	padding-top: 0;
}