/* ==========================================================================
   AVG — Ficha de producto (woocommerce/single-product.php)
   Galería, métodos de pago, resumen de compra, ayuda y relacionados.
   Las tarjetas de relacionados heredan avg-shop.css (clase .avg-shop).
   ========================================================================== */

html body.avg-product-page .site,
html body.avg-product-page .site-main { max-width: none; margin: 0; background: var(--avg-black); }

.avg-product { color: #fff; font-family: var(--avg-body); }
.avg-product *,
.avg-product *::before,
.avg-product *::after { box-sizing: border-box; }

.avg-product__container {
	width: 100%;
	max-width: var(--avg-container);
	margin: 0 auto;
	padding-inline: 24px;
}

.avg-product__top {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(32px, 3vw, 56px);
	align-items: start;
	padding-top: clamp(28px, 3.4vw, 64px);
}

/* ── Galería ───────────────────────────────────────────────────────────── */

.avg-gallery {
	--avg-tw: clamp(88px, 7vw, 128px); /* ancho de miniatura */
	--avg-tg: 10px;                    /* separación */
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
}
.avg-gallery.has-thumbs { grid-template-columns: var(--avg-tw) minmax(0, 1fr); }

/* Carril: máximo 4 miniaturas a la vista; el resto con las flechas. */
.avg-gallery__rail { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.avg-gallery__thumbs {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--avg-tg);
	max-height: calc(var(--avg-tw) * 4 + var(--avg-tg) * 3);
	overflow: auto;
	overscroll-behavior: contain;
	scroll-snap-type: y mandatory;
	scrollbar-width: none;
}
.avg-gallery__thumbs::-webkit-scrollbar { display: none; }
.avg-gallery__arrow {
	display: grid;
	flex: none;
	place-items: center;
	width: 100%;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 1px solid #2c2c2c;
	border-radius: 2px;
	background: #111;
	color: #fff;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, opacity .2s, scale .12s var(--avg-ease);
}
.avg-gallery__arrow:hover:not(:disabled) { border-color: var(--avg-orange); background: var(--avg-orange); }
.avg-gallery__arrow:active:not(:disabled) { scale: .94; }
.avg-gallery__arrow:focus-visible { outline: 2px solid var(--avg-orange); outline-offset: 2px; }
.avg-gallery__arrow:disabled { opacity: .3; cursor: default; }
.avg-gallery__arrow--next svg { rotate: 180deg; }

.avg-gallery__thumb {
	flex: none;
	width: 100%;
	scroll-snap-align: start;
	display: block;
	aspect-ratio: 1;
	padding: 6px;
	border: 2px solid transparent;
	border-radius: 2px;
	background: #fff;
	cursor: pointer;
	transition: border-color .2s, scale .12s var(--avg-ease), opacity .2s;
}
.avg-gallery__thumb:not(.is-active) { opacity: .82; }
.avg-gallery__thumb:hover { opacity: 1; }
.avg-gallery__thumb:active { scale: .95; }
.avg-gallery__thumb.is-active { border-color: var(--avg-orange); opacity: 1; }
.avg-gallery__thumb:focus-visible { outline: 2px solid var(--avg-orange); outline-offset: 2px; }
.avg-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }

.avg-gallery__main {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	margin: 0;
	padding: clamp(20px, 4%, 56px);
	overflow: hidden;
	border-radius: 2px;
	background: #fff;
}
.avg-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity .22s var(--avg-ease), scale .45s var(--avg-ease);
}
.avg-gallery__img.is-swapping { opacity: 0; scale: .985; }
/* Lupa circular que sigue al ratón (avg-product.js la crea y la mueve). */
.avg-gallery__main { position: relative; }
.avg-gallery__main.is-zooming { cursor: none; }
.avg-lens {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: clamp(110px, 9vw, 150px);
	aspect-ratio: 1;
	border: 3px solid #fff;
	border-radius: 50%;
	background-color: #fff;
	background-repeat: no-repeat;
	box-shadow: 0 0 0 2px var(--avg-orange), 0 18px 40px -12px rgba(0, 0, 0, .45);
	pointer-events: none;
	opacity: 0;
	scale: .6;
	transition: opacity .18s var(--avg-ease), scale .25s var(--avg-ease);
}
.avg-gallery__main.is-zooming .avg-lens { opacity: 1; scale: 1; }

/* ── Cajas oscuras (pago / ayuda) ──────────────────────────────────────── */

.avg-product__box {
	border: 1px solid #2c2c2c;
	border-radius: 4px;
	background: #0b0b0b;
}

/* Métodos de pago: en la columna del resumen, bajo la caja de ayuda. */
.avg-payments { margin-top: 22px; padding: 22px 26px 24px; }
html body .avg-product .avg-payments__title {
	margin: 0;
	color: #fff;
	font: 400 clamp(1.5rem, 1.6vw, 1.875rem)/1 var(--avg-display);
	text-transform: uppercase;
}
.avg-payments__text { margin: 4px 0 16px; color: var(--avg-muted); font-size: .875rem; }
.avg-payments__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.avg-payments__list li { margin: 0; }
.avg-payments__list img { display: block; width: 80px; height: auto; border-radius: 3px; }

/* Descripción y características: bajo la galería. */
.avg-info { display: grid; gap: 34px; margin-top: 28px; padding: 30px 32px 32px; }
html body .avg-product .avg-info__title {
	margin: 0 0 16px;
	color: #fff;
	font: 400 clamp(1.75rem, 2vw, 2.25rem)/1 var(--avg-display);
	text-transform: uppercase;
}
.avg-info .avg-product__longdesc { max-width: none; font-size: .9375rem; }

/* Pestañas (avg-product.js). Sin JS no hay pestañas: se ven los dos
   bloques con su título. Con JS, la pestaña hace de título. */
.avg-tabs { display: none; }
.avg-js .avg-info { gap: 26px; }
.avg-js .avg-tabs { display: flex; gap: 32px; border-bottom: 1px solid #222; }
.avg-js .avg-info__title { display: none; }
.avg-js .avg-info .avg-specs { margin-top: -14px; border-top: 0; }
.avg-tabs__tab {
	position: relative;
	margin: 0 0 -1px;
	padding: 0 0 14px;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, .45);
	font: 400 clamp(1.75rem, 2vw, 2.25rem)/1 var(--avg-display);
	text-transform: uppercase;
	cursor: pointer;
	transition: color .2s;
}
.avg-tabs__tab::after {
	content: '';
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	border-radius: 2px;
	background: var(--avg-grad);
	scale: 0 1;
	transform-origin: left;
	transition: scale .3s var(--avg-ease);
}
.avg-tabs__tab:hover { color: rgba(255, 255, 255, .8); }
.avg-tabs__tab[aria-selected="true"] { color: #fff; }
.avg-tabs__tab[aria-selected="true"]::after { scale: 1 1; }
.avg-tabs__tab:focus-visible { outline: 2px solid var(--avg-orange); outline-offset: 4px; border-radius: 2px; }
.avg-info__block[hidden] { display: none; }
.avg-product__longdesc p { margin: 0 0 1em; }
.avg-product__longdesc p:last-child,
.avg-product__longdesc ul:last-child { margin-bottom: 0; }
.avg-product__longdesc strong { color: #fff; }
.avg-product__longdesc ul { display: grid; gap: 8px; margin: 0 0 1em; padding: 0; list-style: none; }
.avg-product__longdesc li { position: relative; margin: 0; padding-left: 20px; }
.avg-product__longdesc li::before {
	content: '';
	position: absolute;
	top: .6em;
	left: 2px;
	width: 7px;
	height: 7px;
	border-radius: 1px;
	background: var(--avg-grad);
	rotate: 45deg;
}

.avg-specs { margin: 0; border-top: 1px solid #222; }
.avg-specs__row {
	display: grid;
	grid-template-columns: minmax(140px, 36%) 1fr;
	gap: 16px;
	padding: 13px 0;
	border-bottom: 1px solid #222;
	font-size: .9375rem;
}
.avg-specs dt { color: rgba(255, 255, 255, .6); font-weight: 500; }
.avg-specs dd { margin: 0; color: #fff; font-weight: 500; }

/* ── Resumen ───────────────────────────────────────────────────────────── */

.avg-product__brand {
	margin: 0 0 10px;
	color: rgba(255, 255, 255, .7);
	font-size: .8125rem;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.avg-product__brand a { color: var(--avg-orange) !important; font-weight: 600; text-decoration: none !important; }
.avg-product__brand a:hover { text-decoration: underline !important; }

html body .avg-product .avg-product__title {
	margin: 0;
	color: #fff;
	font: 400 clamp(2.75rem, 3.6vw, 4.5rem)/.92 var(--avg-display);
	letter-spacing: 0;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.avg-product__price {
	margin: 22px 0 0;
	color: #fff;
	font: 600 clamp(1.75rem, 2.2vw, 2.5rem)/1.1 var(--avg-body);
	letter-spacing: -.01em;
}
.avg-product__price del { margin-right: 10px; color: rgba(255, 255, 255, .45); font-size: .6em; font-weight: 400; }
.avg-product__price ins { text-decoration: none; }

.avg-product__desc { margin-top: 22px; color: rgba(255, 255, 255, .86); font-size: .9375rem; line-height: 1.65; }
.avg-product__desc p { margin: 0 0 .8em; }
.avg-product__desc p:last-child { margin-bottom: 0; }

/* Compra */
.avg-buy { margin-top: 28px; }
.avg-buy__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 24px; }
.avg-buy__label {
	display: block;
	margin-bottom: 10px;
	color: #fff;
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.avg-stepper { display: inline-flex; border: 1px solid #333; border-radius: 4px; overflow: hidden; }
.avg-stepper__btn {
	width: 42px;
	height: 44px;
	padding: 0;
	border: 0;
	background: #111;
	color: #fff;
	font-size: 1.125rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color .15s;
}
.avg-stepper__btn:hover { background: #1c1c1c; }
.avg-stepper__btn:active { background: #262626; }
.avg-stepper__btn:focus-visible { outline: 2px solid var(--avg-orange); outline-offset: -2px; }
.avg-stepper__input {
	width: 56px;
	height: 44px;
	padding: 0;
	border: 0;
	border-inline: 1px solid #333;
	background: #000;
	color: #fff;
	font: 600 1rem/1 var(--avg-body);
	text-align: center;
	-moz-appearance: textfield;
}
.avg-stepper__input::-webkit-outer-spin-button,
.avg-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.avg-stepper__input:focus { outline: none; background: #0d0d0d; }

.avg-stock { display: grid; gap: 2px; margin: 0 0 4px; font-size: .75rem; }
.avg-stock strong { display: flex; align-items: center; gap: 7px; color: #2fbf71; font-weight: 600; }
.avg-stock strong::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.avg-stock span { color: rgba(255, 255, 255, .55); }
.avg-stock--onbackorder strong { color: #f5a524; }
.avg-stock--outofstock { margin-top: 28px; }
.avg-stock--outofstock strong { color: #ef4444; }

.avg-buy__actions { display: grid; gap: 12px; margin-top: 26px; }
.avg-buy__btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: 4px;
	font: 600 .9375rem/1 var(--avg-body);
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: filter .2s, background-color .2s, color .2s, scale .12s var(--avg-ease);
}
.avg-buy__btn:active { scale: .98; transition-duration: .06s; }
.avg-buy__btn:focus-visible { outline: 2px solid var(--avg-orange); outline-offset: 3px; }
.avg-buy__btn--primary { background: var(--avg-grad); color: #fff; }
.avg-buy__btn--primary:hover { filter: brightness(1.07); }
.avg-buy__btn--ghost { border-color: var(--avg-orange); background: transparent; color: var(--avg-orange); }
.avg-buy__btn--ghost:hover { background: rgba(236, 103, 27, .1); }

/* Estados de «Solicitar cotización»: cargando → check. */
.avg-buy__icon-ok { display: none; }
.avg-buy__btn.is-loading { pointer-events: none; opacity: .7; }
.avg-buy__btn.is-loading .avg-buy__icon-doc { animation: avg-pulse .7s var(--avg-ease) infinite alternate; }
.avg-buy__btn.is-added { border-color: #2fbf71; color: #2fbf71; }
.avg-buy__btn.is-added .avg-buy__icon-doc { display: none; }
.avg-buy__btn.is-added .avg-buy__icon-ok { display: block; animation: avg-pop .35s var(--avg-ease); }
@keyframes avg-pulse { to { scale: .8; opacity: .6; } }
@keyframes avg-pop { from { scale: .4; opacity: 0; } }

.avg-buy__status { min-height: 1.4em; margin: 10px 0 0; color: rgba(255, 255, 255, .75); font-size: .8125rem; }
.avg-buy__status a { color: var(--avg-orange) !important; font-weight: 600; }

/* ── Productos variables: formulario estándar de Woo en oscuro ─────────────
   avg-product.js convierte cada <select> en botones (.avg-swatch) y envuelve
   la cantidad en el mismo selector −/+. Sin JS se ve el select con estilo. */
html body .avg-product .avg-buy--wc form.cart { margin: 0; padding: 0; border: 0; background: none; }
html body .avg-product .avg-buy--wc table.variations {
	display: block;
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: none;
}
html body .avg-product .avg-buy--wc table.variations :is(tbody, tr, th, td) {
	display: block;
	width: auto;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	line-height: 1.3;
}
html body .avg-product .avg-buy--wc table.variations tr + tr { margin-top: 22px; }
html body .avg-product .avg-buy--wc table.variations th.label { margin-bottom: 12px; }
html body .avg-product .avg-buy--wc table.variations label {
	margin: 0;
	color: #fff;
	font: 600 .8125rem/1.3 var(--avg-body);
	letter-spacing: .04em;
	text-transform: uppercase;
}
.avg-var-chosen { color: var(--avg-orange); letter-spacing: 0; text-transform: none; }
html body .avg-product .avg-buy--wc table.variations td.value {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
}

/* Select (sin JS): oscuro y con flecha propia; la lista desplegada también. */
html body .avg-product .avg-buy--wc select {
	width: 100%;
	max-width: 340px;
	height: 46px;
	margin: 0;
	padding: 0 42px 0 14px;
	border: 1px solid #333;
	border-radius: 4px;
	background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23ec671b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 15px center / 12px 8px;
	color: #fff;
	font: 500 .9375rem/1 var(--avg-body);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
html body .avg-product .avg-buy--wc select:focus { outline: none; border-color: var(--avg-orange); box-shadow: 0 0 0 3px rgba(236, 103, 27, .2); }
html body .avg-product .avg-buy--wc select option { background: #111; color: #fff; }
html body .avg-product .avg-buy--wc select option:disabled { color: #666; }
/* Con botones, el select sigue en el DOM (Woo lo lee) pero oculto. Un atributo
   con muchas opciones (más de 16) se queda con el select de arriba. */
html body .avg-product .avg-buy--wc table.variations select.avg-select-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	opacity: 0;
	clip-path: inset(50%);
	pointer-events: none;
}

.avg-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
html body .avg-product .avg-swatch {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid #333;
	border-radius: 4px;
	background: #111;
	color: #fff;
	font: 500 .9375rem/1 var(--avg-body);
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: border-color .2s, background-color .2s, color .2s, opacity .2s, scale .12s var(--avg-ease);
}
html body .avg-product .avg-swatch:hover { border-color: #5a5a5a; background: #171717; }
html body .avg-product .avg-swatch:active { scale: .96; transition-duration: .06s; }
html body .avg-product .avg-swatch:focus-visible { outline: 2px solid var(--avg-orange); outline-offset: 2px; }
html body .avg-product .avg-swatch[aria-checked="true"] {
	border-color: var(--avg-orange);
	background: rgba(236, 103, 27, .12);
	box-shadow: inset 0 0 0 1px var(--avg-orange);
}
/* No combina con lo elegido: se puede pulsar (limpia lo demás), pero se ve apagada. */
html body .avg-product .avg-swatch.is-disabled { opacity: .4; }
html body .avg-product .avg-swatch.is-disabled span:last-child { text-decoration: line-through; }
.avg-swatch__dot {
	flex: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--c);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}
.avg-swatch__dot.is-clear { background: repeating-linear-gradient(45deg, #fff 0 3px, #bbb 3px 6px); }

/* Tallas y valores cortos (S, M, XL, 38, 42…): botones compactos y parejos. */
.avg-swatches--size { gap: 8px; }
html body .avg-product .avg-swatches--size .avg-swatch {
	justify-content: center;
	min-width: 52px;
	padding: 0 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
/* Textos largos («Con barbiquejo», «Talla única ajustable»…): pueden partirse
   en dos líneas sin desbordar en móvil. */
html body .avg-product .avg-swatches--text .avg-swatch {
	max-width: 100%;
	padding-block: 10px;
	line-height: 1.25;
	text-align: left;
}
.avg-swatch__text { min-width: 0; overflow-wrap: anywhere; }

html body .avg-product .avg-buy--wc .reset_variations {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, .6) !important;
	font-size: .8125rem;
	text-decoration: underline !important;
	text-underline-offset: 3px;
	cursor: pointer;
	transition: color .2s;
}
html body .avg-product .avg-buy--wc .reset_variations:hover { color: var(--avg-orange) !important; }

/* Datos de la variación elegida (precio, stock, descripción). */
html body .avg-product .avg-buy--wc .single_variation_wrap { margin-top: 20px; }
html body .avg-product .avg-buy--wc .woocommerce-variation:not(:empty) { margin-bottom: 18px; }
html body .avg-product .avg-buy--wc .woocommerce-variation-price .price { color: #fff; font: 600 1.375rem/1.2 var(--avg-body); }
/* El precio ya se actualiza arriba (avg-product.js); no se repite. */
html body .avg-product .avg-buy--wc.has-var-price .woocommerce-variation-price { display: none; }
html body .avg-product .avg-buy--wc .woocommerce-variation-description { color: rgba(255, 255, 255, .8); font-size: .875rem; }
html body .avg-product .avg-buy--wc .woocommerce-variation-description p { margin: 0 0 .5em; }
html body .avg-product .avg-buy--wc .woocommerce-variation-availability .stock {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	color: #2fbf71;
	font-size: .8125rem;
	font-weight: 600;
}
html body .avg-product .avg-buy--wc .woocommerce-variation-availability .stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
html body .avg-product .avg-buy--wc .woocommerce-variation-availability .out-of-stock { color: #ef4444; }
html body .avg-product .avg-buy--wc .woocommerce-variation-availability .available-on-backorder { color: #f5a524; }

/* Cantidad + botón. */
html body .avg-product .avg-buy--wc .woocommerce-variation-add-to-cart,
html body .avg-product .avg-buy--wc form.cart:not(.variations_form) {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
}
html body .avg-product .avg-buy--wc .quantity { display: flex; flex: none; margin: 0; }
html body .avg-product .avg-buy--wc input.qty:not(.avg-stepper__input) {
	width: 72px;
	height: 46px;
	border: 1px solid #333;
	border-radius: 4px;
	background: #111;
	color: #fff;
	text-align: center;
}
html body .avg-product .avg-buy--wc .avg-stepper__input { width: 56px; height: 44px; margin: 0; border-radius: 0; }
html body .avg-product .avg-buy--wc .single_add_to_cart_button {
	display: inline-flex;
	flex: 1 1 220px;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 4px;
	background: var(--avg-grad) !important;
	color: #fff !important;
	font: 600 .9375rem/1 var(--avg-body);
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: filter .2s, opacity .2s, scale .12s var(--avg-ease);
}
html body .avg-product .avg-buy--wc .single_add_to_cart_button:hover { filter: brightness(1.07); }
html body .avg-product .avg-buy--wc .single_add_to_cart_button:active { scale: .98; transition-duration: .06s; }
html body .avg-product .avg-buy--wc .single_add_to_cart_button:focus-visible { outline: 2px solid var(--avg-orange); outline-offset: 3px; }
html body .avg-product .avg-buy--wc .single_add_to_cart_button.disabled { opacity: .45; filter: none; cursor: not-allowed; }

/* «Descargar ficha técnica» (lo imprime el tema padre bajo el formulario). */
html body .avg-product .oz-wc-ficha-tecnica { margin: 14px 0 0; padding: 0; }
html body .avg-product .oz-wc-ficha-tecnica__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 0 20px;
	border: 1px solid #333 !important;
	border-radius: 4px;
	background: transparent !important;
	color: #fff !important;
	font: 600 .875rem/1 var(--avg-body);
	letter-spacing: .04em;
	text-decoration: none !important;
	text-transform: uppercase;
	box-shadow: none;
	transition: border-color .2s, background-color .2s, color .2s, scale .12s var(--avg-ease);
}
html body .avg-product .oz-wc-ficha-tecnica__btn::before {
	content: '';
	flex: none;
	width: 18px;
	height: 18px;
	background: var(--avg-orange);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0-5-5m5 5 5-5M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0-5-5m5 5 5-5M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: translate .2s var(--avg-ease);
}
html body .avg-product .oz-wc-ficha-tecnica__btn:hover { border-color: var(--avg-orange) !important; background: rgba(236, 103, 27, .1) !important; }
html body .avg-product .oz-wc-ficha-tecnica__btn:hover::before { translate: 0 2px; }
html body .avg-product .oz-wc-ficha-tecnica__btn:active { scale: .98; transition-duration: .06s; }
html body .avg-product .oz-wc-ficha-tecnica__btn:focus-visible { outline: 2px solid var(--avg-orange); outline-offset: 3px; }

/* Ayuda */
.avg-help { margin-top: 22px; padding: 22px 26px 24px; }
.avg-help__head { display: flex; align-items: center; gap: 18px; padding: 14px 18px; border-radius: 4px; background: #121212; }
.avg-help__head img { flex: none; width: 52px; height: 52px; }
.avg-help__head p { margin: 0; color: #fff; font-size: clamp(1.0625rem, 1.2vw, 1.3125rem); font-weight: 600; line-height: 1.25; letter-spacing: -.005em; }
.avg-help__list { display: grid; gap: 14px; margin: 20px 0 0; padding: 0 0 0 18px; list-style: none; }
.avg-help__list li { display: flex; align-items: center; gap: 16px; margin: 0; font-size: 1.0625rem; }
.avg-help__list svg { flex: none; }
.avg-help__list li:last-child svg { color: var(--avg-red); }
.avg-help__list a { color: #fff !important; text-decoration: none !important; transition: color .2s; }
.avg-help__list a:hover { color: var(--avg-orange) !important; }
.avg-help__sep { color: rgba(255, 255, 255, .5); }

/* ── Relacionados ──────────────────────────────────────────────────────── */

html body .avg-product .avg-product__section-title {
	margin: 0 0 36px;
	color: #fff;
	font: 400 clamp(2.5rem, 3.4vw, 4rem)/.95 var(--avg-display);
	text-transform: uppercase;
}
.avg-product__longdesc { color: rgba(255, 255, 255, .86); font-size: 1rem; line-height: 1.7; }

.avg-related { padding-top: clamp(64px, 6vw, 110px); padding-bottom: clamp(64px, 5vw, 96px); }
.avg-related__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(14px, 1.6vw, 28px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.avg-related__cell { min-width: 0; margin: 0; }

/* Variante oscura de la tarjeta: imagen sobre blanco, datos sobre negro. */
html body .avg-related .ozc-product-card {
	padding: 0 0 24px;
	overflow: hidden;
	border-color: #2c2c2c;
	background: #000;
	color: #fff;
}
html body .avg-related .ozc-product-card__media { margin: 0 0 18px; padding: 8%; background: #fff; aspect-ratio: 1; }
html body .avg-related .ozc-product-card__badge { top: 16px; right: 16px; }
html body .avg-related .ozc-product-card :is(.ozc-product-card__category, .ozc-product-card__title, .ozc-product-card__price, .ozc-product-card__actions) { padding-inline: 22px; }
html body .avg-related .ozc-product-card__category { color: rgba(255, 255, 255, .6); }
html body .avg-related .ozc-product-card__title a,
html body .avg-related .ozc-product-card__price { color: #fff !important; }
@media (hover: hover) {
	html body .avg-related .ozc-product-card:hover { border-color: #3a3a3a; box-shadow: 0 24px 40px -26px rgba(236, 103, 27, .55); }
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1280px) {
	.avg-related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
	.avg-product__top { grid-template-columns: 1fr; }
	/* En columna: galería, resumen (con pago) y luego descripción/características. */
	.avg-product__media { display: contents; }
	.avg-gallery { order: 1; }
	.avg-product__summary { order: 2; }
	.avg-info { order: 3; margin-top: 0; }
}

@media (max-width: 768px) {
	/* Miniaturas en fila bajo la imagen, con scroll horizontal. */
	.avg-gallery.has-thumbs { grid-template-columns: minmax(0, 1fr); }
	.avg-gallery__rail { order: 2; flex-direction: row; align-items: stretch; }
	.avg-gallery__thumbs {
		flex: 1 1 auto;
		flex-direction: row;
		min-width: 0;
		max-height: none;
		scroll-snap-type: x mandatory;
	}
	/* 4 a la vista también en móvil. */
	.avg-gallery__thumb { flex: 0 0 calc((100% - var(--avg-tg) * 3) / 4); width: auto; }
	.avg-gallery__arrow { width: 30px; height: auto; }
	.avg-gallery__arrow--prev svg { rotate: -90deg; }
	.avg-gallery__arrow--next svg { rotate: 90deg; }
	.avg-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	html body .avg-related .ozc-product-card :is(.ozc-product-card__category, .ozc-product-card__title, .ozc-product-card__price, .ozc-product-card__actions) { padding-inline: 14px; }
	.avg-help { padding: 18px; }
	.avg-help__list { padding-left: 0; }
	.avg-help__list li { align-items: flex-start; font-size: 1rem; }
	.avg-payments { padding: 18px; }
	.avg-payments__list img { width: 68px; }
	.avg-info { gap: 28px; padding: 22px 18px 24px; }
	.avg-specs__row { grid-template-columns: 1fr; gap: 2px; padding: 11px 0; }
}

@media (max-width: 600px) {
	.avg-product__container { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.avg-gallery__img,
	.avg-gallery__thumb,
	.avg-buy__btn,
	html body .avg-product .avg-swatch { transition: none; }
	.avg-gallery__img.is-swapping { scale: none; }
	.avg-lens { scale: 1; transition: none; }
	.avg-buy__btn.is-loading .avg-buy__icon-doc,
	.avg-buy__btn.is-added .avg-buy__icon-ok { animation: none; }
}
