/**
 * Producto individual WooCommerce bÃ¡sico.
 * Tema OZ â€” cargado solo en single product.
 */
body.single-product,
body.single-product .site,
body.single-product .site-main.site-main--woo-single {
	background: #f5f7fa;
}

body.single-product .site,
body.single-product .site-main.site-main--woo-single {
	width: 100%;
	max-width: none;
	margin-inline: 0;
	box-sizing: border-box;
}

.site-main.site-main--woo-single {
	padding-bottom: 2rem;
}

.oz-single-product {
	max-width: min(100%, var(--OZ-Container-PC));
	margin-inline: auto;
	padding: 1.5rem 1rem 2rem;
	box-sizing: border-box}

/* Card principal de la ficha: galería + resumen */
.oz-single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
	gap: clamp(1.5rem, 3vw, 2rem);
	align-items: start;
	margin: 1.5rem 0;
	padding: 1.5rem;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
	box-sizing: border-box}

/*
 * OZ Cotizador (body.ozc-single-product-layout): la ficha ya no es galería + .entry-summary como hijos
 * directos de div.product, sino .ozc-single-product y luego pestañas. El grid de dos columnas del
 * tema dejaba el segundo bloque (p. ej. pestañas) en la columna derecha.
 */
body.ozc-single-product-layout .oz-single-product div.product.type-product {
	display: flow-root;
	grid-template-columns: none;
	gap: 0;
	align-items: stretch;
}

@media (max-width: 991px) {
	.oz-single-product {
		padding: 1rem 0.75rem 1.75rem;
		overflow-x: hidden}

	.oz-single-product div.product {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 1rem;
		max-width: 100%;
		overflow: hidden}

	.oz-single-product .woocommerce-product-gallery {
		max-width: 100%;
		overflow: hidden;
		box-sizing: border-box;
	}
	/* Viewport con aspect-ratio fijo y recorte. Neutralizamos el transform
	   y el layout inline-block de FlexSlider para que los slides se
	   superpongan (modo fade) y el slide activo sea visible siempre. */
	.oz-single-product .flex-viewport {
		aspect-ratio: 4 / 3;
		max-height: 60vh;
		height: auto !important;
		max-width: 100%;
		width: 100%;
		overflow: hidden;
		box-sizing: border-box;
		background: #ffffff;
		position: relative;
	}
	/* Neutralizar inline width + translate3d que FlexSlider pone en el UL */
	.oz-single-product .flex-viewport > .woocommerce-product-gallery__wrapper {
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
		transform: none !important;
		transition: none !important;
		position: relative !important;
		margin: 0 !important;
		padding: 0 !important;
		list-style: none !important;
	}
	/* Todos los slides ocupan el mismo espacio; sólo el activo se muestra */
	.oz-single-product .flex-viewport > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image,
	.oz-single-product .flex-viewport .woocommerce-product-gallery__image {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
		max-height: 100% !important;
		float: none !important;
		margin: 0 !important;
		padding: 0 !important;
		display: flex !important;
		align-items: center;
		justify-content: center;
		opacity: 0;
		transition: opacity 0.3s ease;
		pointer-events: none;
		z-index: 1;
	}
	/* Slide activo visible */
	.oz-single-product .flex-viewport .woocommerce-product-gallery__image.flex-active-slide {
		opacity: 1 !important;
		pointer-events: auto;
		z-index: 2;
	}
	/* Fallback: si ningún slide tiene .flex-active-slide (antes de JS init),
	   mostrar el primero */
	.oz-single-product .flex-viewport > .woocommerce-product-gallery__wrapper:not(:has(.flex-active-slide)) > .woocommerce-product-gallery__image:first-of-type {
		opacity: 1 !important;
		pointer-events: auto;
		z-index: 2;
	}
	.oz-single-product .woocommerce-product-gallery__image > a {
		display: flex !important;
		width: 100%;
		height: 100%;
		align-items: center;
		justify-content: center;
	}
	.oz-single-product .woocommerce-product-gallery__image img {
		width: auto !important;
		height: auto !important;
		max-width: 100% !important;
		max-height: 100% !important;
		object-fit: contain !important;
		display: block !important;
		transform: none !important;
	}
}

@media (max-width: 575px) {
	.oz-single-product .flex-viewport {
		aspect-ratio: 1 / 1;
		max-height: 55vh;
	}
}

.oz-single-product .woocommerce-product-gallery,
.oz-single-product .entry-summary {
	width: auto;
	float: none;
	min-width: 0}

.oz-single-product .woocommerce-product-gallery {
	padding: 0;
	background: transparent;
	border-radius: 12px;
	box-sizing: border-box}

.oz-single-product .entry-summary {
	display: flex;
	flex-direction: column;
	gap: 1rem}

.oz-single-product .entry-summary > * {
	margin-top: 0;
	margin-bottom: 0}

.oz-single-product .woocommerce-product-gallery__wrapper,
.oz-single-product .flex-viewport {
	border-radius: 12px;
	overflow: hidden}

.oz-single-product .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	transition: transform 0.18s ease-out;
	transform-origin: var(--oz-zoom-x, 50%) var(--oz-zoom-y, 50%);
	will-change: transform}

/* Lupa: el JS escribe --oz-zoom-x/y con la posición del cursor (en %).
   Al combinar transform-origin con scale, el área bajo el cursor crece y
   el viewport recorta el resto, simulando un magnifier responsive. */
@media (hover: hover) and (pointer: fine) {
	.oz-single-product .woocommerce-product-gallery__image:hover,
	.oz-single-product .woocommerce-product-gallery__image a:hover,
	.oz-single-product .woocommerce-product-gallery__image a:focus-visible {
		cursor: zoom-in;
	}

	.oz-single-product .woocommerce-product-gallery__image:hover img,
	.oz-single-product .woocommerce-product-gallery__image a:hover img,
	.oz-single-product .woocommerce-product-gallery__image a:focus-visible img {
		transform: scale(2.2);
		transition: transform 0.05s linear;
	}
}

.oz-single-product .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin: 0.875rem 0 0;
	padding: 0;
	list-style: none}

.oz-single-product .flex-control-thumbs li {
	margin: 0}

.oz-single-product .flex-control-thumbs img {
	border-radius: 8px;
	border: 1px solid transparent;
	opacity: 0.84;
	transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease}

.oz-single-product .flex-control-thumbs li:hover img,
.oz-single-product .flex-control-thumbs img.flex-active {
	opacity: 1;
	border-color: #b8cad8;
	box-shadow: 0 0 0 1px rgba(15, 61, 94, 0.08)}

.oz-single-product .product_title {
	font-family: var(--OZ-Font-Headings);
	font-size: clamp(1.5rem, 2.8vw, 1.75rem);
	font-weight: 700;
	line-height: 1.15;
	color: #111827}

.oz-single-product .price {
	color: #111827;
	font-weight: 700;
	font-size: 1.2rem}

.oz-single-product .woocommerce-product-details__short-description {
	color: #6b7280;
	font-size: 0.98rem;
	line-height: 1.7}

.oz-single-product .woocommerce-product-details__short-description p {
	margin: 0 0 0.85rem}

.oz-single-product .woocommerce-product-details__short-description p:last-child {
	margin-bottom: 0}

.oz-single-product .woocommerce-product-details__short-description ul {
	margin: 0.25rem 0 0;
	padding-left: 1.2rem;
	color: #4b5563}

.oz-single-product .ozc-single-product__summary {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 0.75rem;
	row-gap: 0;
	align-items: start}

.oz-single-product .ozc-single-product__summary > :not(.ozc-single-product__row-secondary) {
	grid-column: 1 / -1}

.oz-single-product .ozc-single-product__summary .ozc-single-product__row-secondary {
	order: 2;
	grid-column: 1 / -1;
	width: 100%;
	margin-top: 0.8rem;
	display: flex;
	flex-direction: column; /* WhatsApp directamente debajo de "Añadir al carrito"; ficha técnica debajo */
	align-items: stretch;
	gap: 0.75rem;
	box-sizing: border-box;
}

.oz-single-product .ozc-single-product__summary .ozc-single-product__row-secondary .ozc-single-product__wa,
.oz-single-product .ozc-single-product__summary .ozc-single-product__row-secondary .oz-wc-ficha-tecnica {
	flex: 0 0 auto;
	width: 100%;
	min-width: 0;
	margin-top: 0;
}

/* WhatsApp siempre primero dentro de la fila secundaria */
.oz-single-product .ozc-single-product__summary .ozc-single-product__row-secondary .ozc-single-product__wa {
	order: 1;
}

.oz-single-product .ozc-single-product__summary .ozc-single-product__row-secondary .oz-wc-ficha-tecnica {
	order: 2;
}

.oz-single-product .ozc-single-product__breadcrumbs,
.oz-single-product .ozc-single-product__title,
.oz-single-product .ozc-single-product__brand-name {
	margin: 0;
	padding: 0;
}

.oz-single-product .ozc-single-product__excerpt {
	margin: 10px 0;
	padding: 0;
}

.oz-single-product .ozc-single-product__brand-name {
	display: inline-block;
	justify-self: start;
	width: fit-content;
	padding: 6px 12px;
	background: #f3f4f6;
	border-radius: 6px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #111;
	line-height: 1;
}

.oz-single-product .ozc-single-product__title .product_title,
.oz-single-product .ozc-single-product__excerpt p,
.oz-single-product .ozc-single-product__excerpt ul,
.oz-single-product .ozc-single-product__excerpt ol {
	margin: 0;
}

.oz-single-product form.cart {
	margin: 0 0 1em;
}

.oz-single-product div.product form.cart,
.oz-single-product .ozc-single-product__cta form.cart {
	margin-bottom: 1em;
}

.oz-single-product form.cart table.variations {
	margin: 0 0 0.875rem;
	width: 100%;
}

.oz-single-product form.cart.variations_form {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	align-items: stretch;
}

.oz-single-product form.cart:not(.variations_form):not(.grouped_form),
.oz-single-product form.cart.variations_form .woocommerce-variation-add-to-cart,
.oz-single-product form.cart:not(.grouped_form) > div:has(.quantity):has(.single_add_to_cart_button),
.oz-single-product form.cart:not(.grouped_form) > div:has(.quantity):has(button[type='submit'].single_add_to_cart_button) {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	box-sizing: border-box;
}

.oz-single-product .ozc-single-product__cta {
	display: contents;
}

.oz-single-product .ozc-single-product__summary form.cart,
.oz-single-product .entry-summary form.cart {
	order: 1;
	grid-column: 1 / -1;
}

/* WhatsApp standalone (cuando el plugin no usa __row-secondary) DEBE ir
   después del form.cart. Sin esta regla queda en order:0 por defecto y
   form.cart con order:1 lo empuja debajo en el grid → WA aparece arriba. */
.oz-single-product .ozc-single-product__summary > .ozc-single-product__wa {
	order: 3;
	grid-column: 1 / -1;
}

.oz-single-product .ozc-single-product__summary .ozc-single-product__meta {
	order: 4;
}

.oz-single-product form.cart .quantity,
.oz-single-product form.cart.variations_form .woocommerce-variation-add-to-cart .quantity {
	flex: 0 0 auto;
}

body.single-product .oz-single-product .ozc-single-product__cta form.cart .quantity:has(.oz-qty-stepper),
.oz-single-product form.cart .quantity:has(.oz-qty-stepper) {
	border-radius: 0;
	border: 0;
	background: transparent;
}

.oz-single-product form.cart .single_add_to_cart_button,
.oz-single-product form.cart .button.alt,
.oz-single-product form.cart button[type='submit'].single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	min-height: 44px;
	padding: 0 1.35rem;
	border-radius: 8px;
	border: 1px solid #f7d022;
	background: #f7d022;
	color: #1f2937;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: none;
	transition: background-color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.oz-single-product form.cart .single_add_to_cart_button:hover,
.oz-single-product form.cart .button.alt:hover {
	background: #e8c010;
	border-color: #e8c010;
	box-shadow: none;
}

.oz-single-product form.cart .quantity .oz-qty-stepper {
	display: inline-flex;
	align-items: stretch;
	height: 44px;
	max-width: none;
	border: 1px solid #c5cae9;
	border-radius: 12px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: none;
	padding: 0;
	box-sizing: border-box;
}

.oz-single-product form.cart .quantity .oz-qty-stepper__btn {
	width: 2.5rem;
	min-width: 2.5rem;
	height: 100%;
	min-height: 44px;
	border: 0;
	background: #f4f6f9;
	color: #111827;
	cursor: pointer;
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1;
	display: grid;
	place-items: center;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.oz-single-product form.cart .quantity .oz-qty-stepper__btn--dec {
	border-right: 1px solid #e8ecf4;
}

.oz-single-product form.cart .quantity .oz-qty-stepper__btn--inc {
	border-left: 1px solid #e8ecf4;
}

.oz-single-product form.cart .quantity .oz-qty-stepper__btn:hover {
	background: #eceff5;
	color: #0f172a;
}

.oz-single-product form.cart .quantity .oz-qty-stepper__input {
	width: 2.65rem;
	min-width: 2.65rem;
	height: 100%;
	min-height: 44px;
	border: 0;
	padding: 0 0.35rem;
	text-align: center;
	background: #ffffff;
	color: #111827;
	font-size: 0.95rem;
	font-weight: 600;
	appearance: textfield;
	-moz-appearance: textfield;
}

.oz-single-product form.cart .quantity .oz-qty-stepper__input::-webkit-outer-spin-button,
.oz-single-product form.cart .quantity .oz-qty-stepper__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
}

.oz-single-product .ozc-single-product__wa .ozc-product-card__wa-btn {
	width: 100%;
	min-height: 40px;
	padding: 0.55rem 1rem;
	border: 1px solid #25d366;
	border-radius: 8px;
	background: #25d366;
	color: #fff;
	font-size: 0.93rem;
	font-weight: 600;
	box-shadow: none;
	transition: background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.oz-single-product .ozc-single-product__wa .ozc-product-card__wa-btn:hover,
.oz-single-product .ozc-single-product__wa .ozc-product-card__wa-btn:focus-visible {
	background: #1eb958;
	border-color: #1eb958;
	color: #fff;
}

.oz-single-product .oz-wc-ficha-tecnica {
	width: 100%;
}

body.single-product .oz-single-product .oz-wc-ficha-tecnica .oz-wc-ficha-tecnica__btn.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	min-height: 40px;
	padding: 0.55rem 0.95rem;
	border-radius: 8px;
	border: 1px solid #c7d7e6;
	background: transparent;
	color: #0f3d5e;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
	box-shadow: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	box-sizing: border-box;
}

body.single-product .oz-single-product .oz-wc-ficha-tecnica .oz-wc-ficha-tecnica__btn.button::before {
	content: "";
	width: 15px;
	height: 15px;
	display: inline-block;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a.75.75 0 0 1 .75.75v9.69l2.72-2.72a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06l2.72 2.72V3.75A.75.75 0 0 1 12 3Zm-6 13.5A.75.75 0 0 1 6.75 17v1.25c0 .414.336.75.75.75h9a.75.75 0 0 0 .75-.75V17a.75.75 0 0 1 1.5 0v1.25a2.25 2.25 0 0 1-2.25 2.25h-9a2.25 2.25 0 0 1-2.25-2.25V17a.75.75 0 0 1 .75-.75Z'/%3E%3C/svg%3E")
		no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a.75.75 0 0 1 .75.75v9.69l2.72-2.72a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06l2.72 2.72V3.75A.75.75 0 0 1 12 3Zm-6 13.5A.75.75 0 0 1 6.75 17v1.25c0 .414.336.75.75.75h9a.75.75 0 0 0 .75-.75V17a.75.75 0 0 1 1.5 0v1.25a2.25 2.25 0 0 1-2.25 2.25h-9a2.25 2.25 0 0 1-2.25-2.25V17a.75.75 0 0 1 .75-.75Z'/%3E%3C/svg%3E")
		no-repeat center / contain}

body.single-product .oz-single-product .oz-wc-ficha-tecnica .oz-wc-ficha-tecnica__btn.button:hover,
body.single-product .oz-single-product .oz-wc-ficha-tecnica .oz-wc-ficha-tecnica__btn.button:focus-visible {
	background: #eef5fb;
	border-color: #a9c2d8;
	color: #1f2937;
}

@media (max-width: 991px) {
	.oz-single-product form.cart:not(.variations_form):not(.grouped_form),
	.oz-single-product form.cart.variations_form .woocommerce-variation-add-to-cart,
	.oz-single-product form.cart:not(.grouped_form) > div:has(.quantity):has(.single_add_to_cart_button),
	.oz-single-product form.cart:not(.grouped_form) > div:has(.quantity):has(button[type='submit'].single_add_to_cart_button) {
		gap: 0.625rem;
	}
}

@media (max-width: 575px) {
	.oz-single-product .ozc-single-product__summary {
		grid-template-columns: minmax(0, 1fr);
	}

	.oz-single-product .ozc-single-product__summary .ozc-single-product__row-secondary {
		flex-wrap: wrap;
	}

	.oz-single-product form.cart:not(.variations_form):not(.grouped_form),
	.oz-single-product form.cart.variations_form .woocommerce-variation-add-to-cart,
	.oz-single-product form.cart:not(.grouped_form) > div:has(.quantity):has(.single_add_to_cart_button),
	.oz-single-product form.cart:not(.grouped_form) > div:has(.quantity):has(button[type='submit'].single_add_to_cart_button) {
		flex-wrap: wrap;
	}

	.oz-single-product form.cart .quantity,
	.oz-single-product form.cart .single_add_to_cart_button,
	.oz-single-product form.cart .button.alt,
	.oz-single-product form.cart button[type='submit'].single_add_to_cart_button {
		width: 100%;
	}
}

.oz-single-product .product_meta {
	padding-top: 0;
	margin-top: 0;
	font-size: 0.95rem;
	line-height: 1.65;
	color: #6b7280}

.oz-single-product .ozc-single-product__meta {
	padding-top: 0;
	border-top: 0}

.oz-single-product .woocommerce-tabs {
	grid-column: 1 / -1;
	margin-top: 2rem;
}

.oz-single-product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 0;
	border-bottom: 1px solid #e5e7eb;
}

.oz-single-product .woocommerce-tabs ul.tabs::before,
.oz-single-product .woocommerce-tabs ul.tabs::after {
	content: none !important;
	display: none !important;
}

.oz-single-product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.oz-single-product .woocommerce-tabs ul.tabs li a {
	display: inline-block;
	padding: 0.625rem 0.15rem 0.9rem;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.2;
	color: #6b7280;
	text-decoration: none;
	border: 0;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.oz-single-product .woocommerce-tabs ul.tabs li.active a,
.oz-single-product .woocommerce-tabs ul.tabs li a:hover,
.oz-single-product .woocommerce-tabs ul.tabs li a:focus-visible {
	color: #0f3d5e;
	border-bottom-color: #0f3d5e;
}

body.single-product .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel,
body.single-product .oz-single-product .woocommerce-tabs .woocommerce-Tabs-panel {
	margin: 1rem 0 0;
	padding: 10px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
	color: #4b5563;
	font-size: 1rem;
	line-height: 1.65;
}

.oz-single-product .woocommerce-tabs .woocommerce-Tabs-panel > h2 {
	margin: 0 0 1rem;
	font-family: var(--OZ-Font-Headings);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.25;
	color: #111827;
}

.oz-single-product .woocommerce-tabs .woocommerce-Tabs-panel h3,
.oz-single-product .woocommerce-tabs .woocommerce-Tabs-panel h4 {
	margin: 1.5rem 0 0.75rem;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
	color: #374151;
}

.oz-single-product .woocommerce-tabs .woocommerce-Tabs-panel p {
	margin: 0 0 1rem;
}

.oz-single-product .woocommerce-tabs .woocommerce-Tabs-panel p:last-child {
	margin-bottom: 0;
}

.oz-single-product .woocommerce-tabs .woocommerce-Tabs-panel ul,
.oz-single-product .woocommerce-tabs .woocommerce-Tabs-panel ol {
	margin: 0.25rem 0 1rem;
	padding-left: 1.25rem;
}

.oz-single-product .woocommerce-tabs .woocommerce-Tabs-panel li + li {
	margin-top: 0.45rem;
}

.oz-single-product .woocommerce-tabs .woocommerce-Tabs-panel strong,
.oz-single-product .woocommerce-tabs .woocommerce-Tabs-panel b {
	color: #374151;
	font-weight: 600;
}

.oz-single-product .woocommerce-tabs .woocommerce-Tabs-panel :is(table.woocommerce-product-attributes, table.shop_attributes) {
	width: 100%;
	font-size: 0.98rem;
	border-collapse: collapse;
}

.oz-single-product .woocommerce-tabs .woocommerce-Tabs-panel :is(table.woocommerce-product-attributes, table.shop_attributes) th,
.oz-single-product .woocommerce-tabs .woocommerce-Tabs-panel :is(table.woocommerce-product-attributes, table.shop_attributes) td {
	padding: 0.85rem 0.65rem;
	border-bottom: 1px solid #e5e7eb;
	vertical-align: top;
	color: #4b5563;
}

.oz-single-product .woocommerce-tabs .woocommerce-Tabs-panel :is(table.woocommerce-product-attributes, table.shop_attributes) th {
	color: #374151;
	font-weight: 600;
}

.oz-single-product .related,
.oz-single-product .upsells {
	grid-column: 1 / -1;
	margin-top: 2.5rem;
}

.oz-single-product .related > h2,
.oz-single-product .upsells > h2 {
	font-family: var(--OZ-Font-Headings);
	font-size: clamp(1.35rem, 2.2vw, 1.6rem);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 1.25rem;
	color: #111827;
}

.oz-single-product .related ul.products,
.oz-single-product .upsells ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.oz-single-product .related ul.products::before,
.oz-single-product .related ul.products::after,
.oz-single-product .upsells ul.products::before,
.oz-single-product .upsells ul.products::after {
	content: none !important;
	display: none !important}

.oz-single-product .related ul.products li.product .ozc-product-card--related,
.oz-single-product .upsells ul.products li.product .ozc-product-card--related {
	padding-bottom: 1rem;
}

.oz-single-product .related ul.products li.product .ozc-product-card--pack-cathmar,
.oz-single-product .upsells ul.products li.product .ozc-product-card--pack-cathmar {
	height: 100%;
}

.oz-single-product .related ul.products li.product .ozc-product-card--pack-cathmar .ozc-product-card__actions,
.oz-single-product .upsells ul.products li.product .ozc-product-card--pack-cathmar .ozc-product-card__actions {
	margin-top: auto;
	padding-top: 0.55rem;
}

@media (max-width: 1199px) {
	.oz-single-product .related ul.products,
	.oz-single-product .upsells ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr))}
}

@media (max-width: 991px) {
	.oz-single-product .related ul.products,
	.oz-single-product .upsells ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr))}
}

@media (max-width: 575px) {
	.oz-single-product .related ul.products,
	.oz-single-product .upsells ul.products {
		grid-template-columns: 1fr}
}

.oz-single-product .related ul.products li.product,
.oz-single-product .upsells ul.products li.product {
	float: none !important;
	width: auto !important;
	
	clear: none !important;
	
	border: 1px solid var(--OZ-Color-6);
	border-radius: 16px;
	background: var(--OZ-Color-5);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	height: 100%;
	text-align: left}

.oz-single-product .related ul.products li.product a.woocommerce-LoopProduct-link,
.oz-single-product .upsells ul.products li.product a.woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	color: inherit;
	text-decoration: none}

.oz-single-product .related ul.products li.product img,
.oz-single-product .upsells ul.products li.product img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	border-radius: 12px;
	background: #fff}

.oz-single-product .related ul.products li.product .woocommerce-loop-product__title,
.oz-single-product .upsells ul.products li.product .woocommerce-loop-product__title {
	
	font-family: var(--OZ-Font-Headings);
	font-size: 1rem;
	line-height: 1.35;
	color: var(--OZ-Color-1)}

.oz-single-product .related ul.products li.product .price,
.oz-single-product .upsells ul.products li.product .price {
	
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--OZ-Color-1)}

.oz-single-product .related ul.products li.product .button,
.oz-single-product .upsells ul.products li.product .button {
	
	align-self: flex-start;
	border-radius: 999px;
	
	line-height: 1.2;
	text-align: center}

/*
 * OZ Cotizador â€” mismas plantillas de card que en tienda (content-product del plugin).
 * En single no existe body.ozc-loops--replace; el <li> seguÃ­a con borde/fondo del tema
 * pensado para el loop nativo â†’ â€œdoble cajaâ€ sobre la card del plugin.
 */
.oz-single-product .related ul.products li.product:has(.ozc-product-card),
.oz-single-product .upsells ul.products li.product:has(.ozc-product-card) {
	
	border: 0;
	background: transparent;
	border-radius: 0;
	gap: 0;
	box-shadow: none}

.oz-single-product .related ul.products li.product .ozc-product-card,
.oz-single-product .upsells ul.products li.product .ozc-product-card {
	min-width: 0;
	width: 100%;
	align-self: stretch}

.oz-single-product .related .ozc-product-card__title,
.oz-single-product .upsells .ozc-product-card__title {
	font-family: var(--OZ-Font-Headings);
	font-size: clamp(0.9rem, 2.8vw, 1rem);
	line-height: 1.3}

.oz-single-product .related .ozc-product-card__category,
.oz-single-product .upsells .ozc-product-card__category {
	font-size: clamp(0.75rem, 2.2vw, 0.85rem)}

@media (max-width: 575px) {
	.oz-single-product .related .ozc-product-card__section,
	.oz-single-product .related .ozc-product-card__media,
	.oz-single-product .upsells .ozc-product-card__media {
		border-radius: 12px}

	.oz-single-product .related .ozc-product-card__btn,
	.oz-single-product .related .ozc-product-card__wa-btn,
	.oz-single-product .upsells .ozc-product-card__btn,
	.oz-single-product .upsells .ozc-product-card__wa-btn {
		min-height: 44px;
		font-size: 14px}
}

/* Ficha OZ Cotizador (.ozc-single-product): mÃ³vil / tablet estrecha â€” tÃ­tulo 26px; columna qty â†’ carrito â†’ WhatsApp */
@media (max-width: 991px) {
	.oz-single-product .ozc-single-product__title .product_title,
	.oz-single-product .ozc-single-product__title h1 {
		font-size: 26px !important;
		line-height: 1.2}

	.oz-single-product .ozc-single-product__cta form.cart:not(.variations_form):not(.grouped_form),
	.oz-single-product .ozc-single-product__cta form.cart.variations_form .woocommerce-variation-add-to-cart,
	.oz-single-product .ozc-single-product__cta form.cart:not(.grouped_form) > div:has(.quantity):has(.single_add_to_cart_button),
	.oz-single-product .ozc-single-product__cta form.cart:not(.grouped_form) > div:has(.quantity):has(button[type='submit'].single_add_to_cart_button) {
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		align-items: stretch !important;
		gap: 12px}

	.oz-single-product .ozc-single-product__cta form.cart:not(.variations_form):not(.grouped_form) .quantity,
	.oz-single-product .ozc-single-product__cta form.cart.variations_form .woocommerce-variation-add-to-cart .quantity,
	.oz-single-product .ozc-single-product__cta form.cart:not(.grouped_form) > div:has(.quantity):has(.single_add_to_cart_button) .quantity,
	.oz-single-product .ozc-single-product__cta form.cart:not(.grouped_form) > div:has(.quantity):has(button[type='submit'].single_add_to_cart_button) .quantity {
		align-self: flex-start;
		flex: 0 0 auto !important}

	.oz-single-product .ozc-single-product__cta form.cart:not(.variations_form):not(.grouped_form) .single_add_to_cart_button,
	.oz-single-product .ozc-single-product__cta form.cart:not(.variations_form):not(.grouped_form) button[type='submit'].single_add_to_cart_button,
	.oz-single-product .ozc-single-product__cta form.cart.variations_form .woocommerce-variation-add-to-cart .single_add_to_cart_button,
	.oz-single-product .ozc-single-product__cta form.cart.variations_form .woocommerce-variation-add-to-cart button[type='submit'].single_add_to_cart_button,
	.oz-single-product .ozc-single-product__cta form.cart:not(.grouped_form) > div:has(.quantity):has(.single_add_to_cart_button) .single_add_to_cart_button,
	.oz-single-product .ozc-single-product__cta form.cart:not(.grouped_form) > div:has(.quantity):has(button[type='submit'].single_add_to_cart_button) .single_add_to_cart_button {
		width: 100% !important;
		flex: 0 0 auto !important;
		max-width: none !important}
	.oz-single-product .ozc-single-product__wa .ozc-product-card__wa-btn {
		width: 100%;
		box-sizing: border-box}
}

/* =============================================================
   Tablet + Mobile (≤991px): galería al FINAL de la ficha.
   En desktop la galería va a la izquierda del resumen; en responsive
   apilamos resumen arriba y galería abajo usando grid order.
   ============================================================= */
@media (max-width: 991px) {
	.oz-single-product div.product {
		grid-template-columns: 1fr;
	}
	.oz-single-product div.product .entry-summary,
	.oz-single-product div.product .ozc-single-product,
	.oz-single-product div.product .ozc-single-product__summary {
		order: 1;
	}
	.oz-single-product div.product .woocommerce-product-gallery {
		order: 2;
	}
	/* Cualquier bloque después del resumen (pestañas, relacionados) se
	   mantiene al final, pero debajo de la galería. */
	.oz-single-product div.product .woocommerce-tabs,
	.oz-single-product div.product .related,
	.oz-single-product div.product .upsells {
		order: 3;
		grid-column: 1 / -1;
	}
}

/* =============================================================
   Botón "Añadir al carrito" en mobile/tablet chico (≤767px):
   stack con cantidad arriba y botón al 100% debajo para que el
   texto no se vea apretado en 2–3 líneas.
   ============================================================= */
@media (max-width: 767px) {
	.oz-single-product form.cart:not(.variations_form):not(.grouped_form),
	.oz-single-product form.cart.variations_form .woocommerce-variation-add-to-cart,
	.oz-single-product form.cart:not(.grouped_form) > div:has(.quantity):has(.single_add_to_cart_button),
	.oz-single-product form.cart:not(.grouped_form) > div:has(.quantity):has(button[type='submit'].single_add_to_cart_button) {
		flex-wrap: wrap;
		gap: 0.75rem;
	}
	.oz-single-product form.cart .quantity {
		width: 100%;
		flex: 0 0 100% !important;
	}
	.oz-single-product form.cart .quantity .oz-qty-stepper {
		width: 100%;
		justify-content: space-between;
	}
	.oz-single-product form.cart .single_add_to_cart_button,
	.oz-single-product form.cart .button.alt,
	.oz-single-product form.cart button[type='submit'].single_add_to_cart_button {
		width: 100% !important;
		flex: 0 0 100% !important;
		max-width: none !important;
		min-height: 44px;
		padding: 0.65rem 1rem;
		font-size: 0.85rem;
		font-weight: 600;
		letter-spacing: 0.01em;
		white-space: nowrap;
	}
}
