:root {
	--rojo: #c40000;
	--negro: #000000;
	--blanco: #ffffff;
	--gris-texto: #4a4a4a;
	--gris-enlace: #555555;
	--gris-boton: #848494;
	--borde-boton: #e4e4e4;
	--gris-linea: #f1f1f1;
	--carbon: #222222;
	--carbon-oscuro: #1b1b1b;
}

body.rcm-product .pswp {
	display: none;
}

body.rcm-product {
	margin: 0;
	background: var(--blanco);
	color: var(--gris-texto);
	font-family: Manrope, sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 1.7;
	overflow-x: clip;
}

body.rcm-product h1 {
	margin: 8px 0 10px;
	color: var(--negro);
	font-size: 30px;
	font-weight: 400;
	line-height: 1.05;
}

.crumb {
	padding: 10px 6vw;
	border-bottom: 1px solid var(--gris-linea);
	color: var(--gris-enlace);
	font-size: 12px;
	letter-spacing: .08em;
}

.crumb a { color: var(--gris-enlace); }
.crumb a:hover { color: var(--rojo); }
.crumb [aria-current="page"] { color: var(--rojo); }

.pdp {
	display: grid;
	gap: 22px;
	padding: 0 0 56px;
}

.gal { display: grid; gap: 12px; }

.stage {
	order: 1;
	height: 52vw;
	max-height: 240px;
	overflow: hidden;
	background: var(--blanco);
	border-bottom: 1px solid var(--gris-linea);
}

.slides {
	display: flex;
	height: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}

.slides::-webkit-scrollbar { display: none; }

.js .slides { transition: opacity .4s; }
.stage.is-fading .slides { opacity: 0; }

.slide {
	display: flex;
	flex: 0 0 100%;
	align-items: center;
	justify-content: center;
	height: 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.slide picture,
.thumbs picture,
.swatch picture,
.buybar-thumb picture {
	display: flex;
	width: 100%;
	height: 100%;
}

.slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 1.4s;
}

.stage:hover .slide img { transform: scale(1.06); }

.thumbs {
	order: 2;
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 0 6vw 4px;
	scrollbar-width: none;
}

.thumbs::-webkit-scrollbar { display: none; }
.thumbs[hidden] { display: none; }

.thumbs button {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 1px solid var(--gris-linea);
	background: var(--blanco);
	cursor: pointer;
	transition: border-color .3s;
}

.thumbs button.is-on,
.thumbs button:hover { border-color: var(--rojo); }

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

.info { padding: 0 6vw; }

.cat {
	margin: 0;
	color: var(--rojo);
	font-size: 11px;
	letter-spacing: .3em;
	text-transform: uppercase;
}

.price {
	margin: 0;
	color: var(--rojo);
	font-family: "Bodoni Moda", serif;
	font-size: 28px;
	font-weight: 400;
	line-height: 1.1;
}

.price .amount,
.price ins {
	color: var(--rojo);
	font-family: inherit;
	font-size: inherit;
	font-weight: 400;
	text-decoration: none;
}

.price del,
.price del .amount {
	color: var(--gris-enlace);
	font-family: Manrope, sans-serif;
	font-size: 14px;
	font-weight: 400;
}

.price .ccy {
	margin-left: 8px;
	color: var(--gris-texto);
	font-family: Manrope, sans-serif;
	font-size: 12px;
	letter-spacing: .06em;
}

.lead {
	margin: 10px 0 18px;
	color: var(--gris-texto);
	font-size: 15px;
	line-height: 1.7;
}

.lead-specs {
	margin: 10px 0 22px;
	padding: 0;
}

.lead-specs .lead-row {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 12px;
	align-items: baseline;
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid #f1f1f1;
	font-family: Manrope, sans-serif;
	font-size: 14px;
	line-height: 1.6;
}

.lead-specs .lead-row:last-child {
	border-bottom: 0;
}

.lead-specs dt {
	margin: 0;
	color: #000;
	font-weight: 600;
	white-space: nowrap;
}

.lead-specs dd {
	margin: 0;
	color: #4a4a4a;
	font-weight: 400;
	min-width: 0;
	overflow-wrap: anywhere;
}

.lbl {
	display: block;
	width: 100%;
	margin: 0 0 12px;
	padding: 0;
	color: var(--negro);
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
}

.lbl span {
	margin-left: 6px;
	color: var(--gris-texto);
	letter-spacing: .04em;
	text-transform: none;
}

.swatches {
	margin: 0 0 22px;
	padding: 0;
	border: 0;
	min-inline-size: 0;
}

.swatch-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
	gap: 8px;
}

.swatch {
	position: relative;
	display: block;
	border: 1px solid var(--borde-boton);
	background: var(--blanco);
	cursor: pointer;
	transition: border-color .3s;
}

.swatch input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.swatch:hover,
.swatch:focus-within,
.swatch.is-on { border-color: var(--rojo); }

.swatch.is-on .swatch-name { color: var(--negro); }
.swatch.is-off { opacity: .4; cursor: not-allowed; }

.swatch img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
}

.swatch-name {
	display: block;
	padding: 0 4px 8px;
	color: var(--gris-texto);
	font-size: 11px;
	line-height: 1.3;
	text-align: center;
}

.buy-row {
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
}

.qty {
	display: flex;
	border: 1px solid var(--borde-boton);
}

.qty button,
.qty input {
	background: var(--blanco);
	color: var(--negro);
	border: 0;
}

.qty button {
	width: 44px;
	font-size: 18px;
	cursor: pointer;
}

.qty button:hover { color: var(--rojo); }

.qty input {
	width: 46px;
	text-align: center;
	font-size: 15px;
}

.b {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 56px;
	border: 1px solid var(--borde-boton);
	font-family: Manrope, sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .16em;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	touch-action: manipulation;
	transition: border-color .3s, background-color .3s, color .3s;
}

.buy-row .b { flex: 1; width: auto; }

.buy {
	background: #000;
	color: #fff;
	border-color: #000;
}

.buy:hover,
.buy:focus-visible {
	background: #c40000;
	border-color: #c40000;
	color: #fff;
}

.add {
	background: var(--gris-boton);
	color: var(--blanco);
	border-color: var(--borde-boton);
}

.add:hover { border-color: var(--rojo); color: var(--blanco); }

.wab {
	margin-top: 12px;
	background: var(--blanco);
	color: var(--negro);
	border-color: var(--borde-boton);
}

.wab:hover { border-color: var(--rojo); color: var(--rojo); }

.b:disabled,
.b.is-disabled {
	opacity: .45;
	cursor: not-allowed;
}

.status {
	min-height: 1.4em;
	margin: 8px 0 0;
	color: var(--negro);
	font-size: 13px;
}

.kids { margin: 0 0 18px; }

.kids a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--gris-linea);
	color: var(--negro);
}

.perks {
	margin-top: 22px;
	border-top: 1px solid var(--gris-linea);
}

.perk {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 14px 0;
	border-bottom: 1px solid var(--gris-linea);
}

.perk-icon {
	flex: 0 0 auto;
	margin-top: 2px;
	color: var(--negro);
}

.perk p {
	margin: 0;
	color: var(--gris-texto);
	font-size: 13px;
	line-height: 1.5;
}

.perk strong {
	display: block;
	color: var(--negro);
	font-weight: 500;
}

.acc { margin-top: 8px; }

.acc-item { border-bottom: 1px solid var(--gris-linea); }

.acc-toggle {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 18px 0;
	border: 0;
	background: transparent;
	color: var(--negro);
	font-family: Manrope, sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	cursor: pointer;
}

.acc-toggle:hover { color: var(--rojo); }

.acc-toggle span {
	color: var(--rojo);
	font-size: 18px;
	line-height: 1;
	transition: transform .3s;
}

.js .acc-item.is-open .acc-toggle span { transform: rotate(45deg); }

.acc-panel { display: grid; }
.acc-inner { overflow: hidden; }

.js .acc-panel {
	grid-template-rows: 0fr;
	transition: grid-template-rows .45s ease;
}

.js .acc-item.is-open .acc-panel { grid-template-rows: 1fr; }

.specs {
	width: 100%;
	margin: 0 0 16px;
	border-collapse: collapse;
	font-size: 13px;
}

.specs th,
.specs td {
	padding: 8px 0;
	border-bottom: 1px solid var(--gris-linea);
	vertical-align: top;
}

.specs th {
	width: 46%;
	padding-right: 12px;
	color: var(--gris-enlace);
	font-weight: 400;
	text-align: left;
}

.specs td { color: var(--negro); }

.desc,
.acc-inner p {
	margin: 0 0 16px;
	color: var(--gris-texto);
	font-size: 14px;
	line-height: 1.8;
}

.desc a { color: var(--gris-enlace); }
.desc a:hover { color: var(--rojo); }
.desc img { max-width: 100%; height: auto; }

.rel {
	padding: 64px 0 88px;
	border-top: 1px solid var(--gris-linea);
}

/* Relacionados: cuadrícula (sin cortar la 4.ª tarjeta) + etiqueta escalonado */
body.rcm-product .rel .rail {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 12px;
	overflow: visible;
	padding: 0 4vw 8px;
	scroll-snap-type: none;
}

body.rcm-product .rel .rail > .it {
	flex: none;
	width: auto;
	min-width: 0;
	scroll-snap-align: unset;
}

body.rcm-product .rel .ph {
	position: relative;
	overflow: hidden;
}

body.rcm-product .rel .ph .curren-tag {
	top: auto;
	bottom: 10px;
	left: 10px;
	right: auto;
	z-index: 4;
	background: #fff;
	color: #000;
	border: 1px solid #e4e4e4;
	border-radius: 2px;
	font-family: Manrope, sans-serif;
	font-weight: 600;
	font-size: 11px;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
	padding: 4px 8px;
	max-width: calc(100% - 16px);
	white-space: normal;
	box-sizing: border-box;
}

body.rcm-product .rel .ph .curren-tag .curren-tag-pct {
	color: #c40000;
	font-weight: 700;
}

body.rcm-product .rel .ph .curren-tag-full {
	display: inline !important;
}

body.rcm-product .rel .ph .curren-tag-short {
	display: none !important;
}

body.rcm-product .rel .ph .hrt {
	top: 10px;
	right: 10px;
	z-index: 5;
	width: 32px;
	height: 32px;
	opacity: 1;
	visibility: visible;
	background: rgba(255, 255, 255, 0.9);
}

.rcm-notices { margin-bottom: 16px; }

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
	margin: 0 0 10px;
	padding: 12px 14px;
	border: 1px solid var(--gris-linea);
	color: var(--gris-texto);
	font-size: 14px;
	list-style: none;
}

.woocommerce-error { border-color: var(--rojo); color: var(--negro); }

.buybar { display: none; }

.buybar-thumb {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border: 1px solid var(--gris-linea);
	background: var(--blanco);
}

.buybar-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.buybar-meta { min-width: 0; }

.buybar .price,
.buybar .price .amount,
.buybar .price ins {
	font-size: 20px;
	line-height: 1;
}

.buybar .price .ccy,
.buybar .price del { display: none; }

.buybar-var {
	margin-top: 3px;
	overflow: hidden;
	color: var(--gris-texto);
	font-size: 11px;
	line-height: 1.3;
	white-space: nowrap;
	text-overflow: ellipsis;
}

@media (min-width: 821px) {
	body.rcm-product h1 {
		margin: 12px 0 18px;
		font-size: clamp(34px, 3.4vw, 52px);
	}

	.crumb { padding: 18px 5vw; }

	.pdp {
		grid-template-columns: 1.1fr .9fr;
		gap: 5vw;
		align-items: start;
		padding: 40px 5vw 90px;
	}

	.gal {
		grid-template-columns: 84px 1fr;
		gap: 16px;
	}

	.stage {
		order: 0;
		height: auto;
		max-height: none;
		aspect-ratio: 1;
		border: 1px solid var(--gris-linea);
	}

	.thumbs {
		order: 0;
		flex-direction: column;
		max-height: calc(100vh - 48px);
		padding: 0;
		overflow-y: auto;
	}

	.thumbs button {
		flex-basis: auto;
		width: 100%;
		height: auto;
		aspect-ratio: 1;
	}

	.info {
		position: sticky;
		top: 20px;
		padding: 0;
	}

	.price,
	.price .amount,
	.price ins { font-size: 34px; }

	.lead { margin: 16px 0 28px; }

	.swatch-grid {
		grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
		gap: 10px;
	}

	.specs th { width: 52%; }

	.rel { padding: 80px 0 100px; }

	body.rcm-product .rel .rail {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 28px 18px;
		padding: 0 5vw 8px;
	}
}

@media (max-width: 820px) {
	.buybar {
		display: flex;
		position: fixed;
		z-index: 30;
		right: 0;
		bottom: 0;
		left: 0;
		align-items: center;
		gap: 10px;
		padding: 10px 4vw;
		padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
		background: var(--blanco);
		border-top: 1px solid var(--gris-linea);
		transform: translateY(100%);
		transition: transform .35s;
		box-sizing: border-box;
	}

	.buybar.is-on { transform: translateY(0); }

	.buybar .b {
		width: auto;
		flex: 1;
		height: 48px;
		font-size: 11px;
		letter-spacing: .12em;
	}
}

@media (max-width: 767px) {
	/* Espacio de la barra fija en el pie #1b1b1b, no en el body */
	html:has(body.rcm-product),
	body.rcm-product {
		padding-bottom: 0;
		background: #1b1b1b;
	}

	body.rcm-product main,
	body.rcm-product .site-header,
	body.rcm-product .rel {
		background: #fff;
	}

	body.rcm-product .foot {
		margin-bottom: 0;
	}

	body.rcm-product .fl {
		margin-bottom: 0;
		padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
	}

	body.rcm-product #footer-bottom,
	body.rcm-product #footer-bottom-wrap,
	body.rcm-product .oceanwp-footer,
	body.rcm-product #wrap,
	body.rcm-product #main {
		margin-bottom: 0 !important;
		padding-bottom: 0 !important;
		background: transparent;
	}

	/* Ya hay "Comprar por WhatsApp" + barra fija: oculta la burbuja */
	body.rcm-product .wa,
	body.rcm-product #rcm-wa-float {
		display: none !important;
	}

	body.rcm-product .rel .ph .curren-tag {
		font-size: 10px;
		padding: 4px 8px;
	}

	body.rcm-product .rel .ph .curren-tag-full {
		display: none !important;
	}

	body.rcm-product .rel .ph .curren-tag-short {
		display: block !important;
	}

	.lead-specs .lead-row {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.lead-specs dt {
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	.slides,
	.slide img,
	.swatch,
	.thumbs button,
	.b,
	.acc-panel,
	.acc-toggle span,
	.buybar,
	.it img,
	.ph img {
		transition: none;
	}

	.stage:hover .slide img,
	.it:hover img { transform: none; }
}
