/* Ficha de producto: foto, precio, talla, color, estampación y botón. Las muestras las pinta su plugin y las opciones
   de estampación, WowAddons: aquí solo se visten. */

.alo-woo__migas {
	padding-top: 16px;
}

.alo-woo__avisos:empty {
	display: none;
}

.alo-ficha {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0 clamp(24px, 5vw, 64px);
	align-items: start;
	width: 100%;
	max-width: calc(var(--alo-ancho) + 2 * var(--alo-medianil));
	margin-inline: auto;
	padding-inline: var(--alo-medianil);
}

.alo-ficha__foto {
	margin: 0;
	border-radius: var(--alo-r-bloque);
	background: var(--alo-gris-foto);
	overflow: hidden;
}

.alo-ficha__img {
	width: 100%;
	height: auto;
	transition: opacity var(--alo-d-estado) ease;
}

.alo-ficha__img[data-alo-cambiando] {
	opacity: 0.55;
}

.alo-ficha .summary {
	min-width: 0;
}

.alo-ficha .product_title {
	margin-bottom: 0.3em;
	font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
	font-weight: 600;
}

/* Etiqueta cosida: pieza de tela con su puntada por dentro */
.alo-ficha .summary > .price {
	display: inline-block;
	margin: 0 0 14px;
	padding: 2px 12px;
	border: 1.5px dashed rgba(28, 36, 75, 0.45);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.55);
	font-size: 1.625rem;
	font-weight: 600;
	color: var(--alo-navy);
	font-variant-numeric: tabular-nums;
}

.alo-ficha .woocommerce-product-details__short-description {
	margin-top: 18px;
	color: var(--alo-tinta-suave);
	font-size: var(--alo-t-pequeno);
}

.alo-ficha .woocommerce-product-details__short-description p:last-child {
	margin-bottom: 0;
}

/* Variaciones */
.alo-ficha table.variations {
	width: 100%;
	margin: 0 0 8px;
	border-collapse: collapse;
}

.alo-ficha table.variations tr {
	display: block;
	margin-bottom: 12px;
}

.alo-ficha table.variations th,
.alo-ficha table.variations td {
	display: block;
	padding: 0;
	text-align: left;
}

.alo-ficha table.variations th.label label {
	display: block;
	margin-bottom: 6px;
	font-size: var(--alo-t-pequeno);
	font-weight: 600;
}

.alo-ficha table.variations select {
	width: 100%;
}

.alo-ficha .reset_variations {
	display: inline-block;
	margin-top: 4px;
	font-size: var(--alo-t-dato);
	color: var(--alo-turquesa-hondo);
}

/* Muestras (Variation Swatches): píldoras de 44 px */
.alo-ficha .cfvsw-swatches-container {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.alo-ficha .cfvsw-swatches-option {
	min-width: 44px !important;
	min-height: 44px !important;
	padding: 6px 12px !important;
	border: 1px solid var(--alo-linea-campo) !important;
	border-radius: 10px !important;
	background: var(--alo-blanco) !important;
	box-shadow: none !important;
	color: var(--alo-navy) !important;
	font-size: var(--alo-t-pequeno) !important;
	line-height: 1.3 !important;
	cursor: pointer;
	transition: background-color var(--alo-d-estado) ease, border-color var(--alo-d-estado) ease;
}

.alo-ficha .cfvsw-swatches-option.cfvsw-selected-swatch {
	border-color: var(--alo-navy) !important;
	background: var(--alo-menta) !important;
	font-weight: 600;
}

.alo-ficha .cfvsw-swatches-option .cfvsw-swatch-inner {
	color: inherit !important;
	font-size: inherit !important;
}

@media (hover: hover) and (pointer: fine) {
	.alo-ficha .cfvsw-swatches-option:hover {
		border-color: var(--alo-turquesa-hondo) !important;
	}
}

/* Opciones de estampación (WowAddons) */
.alo-ficha .prad-addons-wrapper {
	width: 100%;
	margin: 6px 0 8px;
	font-family: var(--alo-letra);
}

.alo-ficha .prad-addons-wrapper,
.alo-ficha .prad-addons-wrapper * {
	font-family: var(--alo-letra);
}

.alo-ficha .prad-upload-wrapper {
	border: 1.5px dashed var(--alo-turquesa-fuerte) !important;
	border-radius: var(--alo-r-campo) !important;
	background: var(--alo-menta-suave) !important;
}

.alo-ficha .prad-upload-container {
	background: transparent !important;
}

.alo-ficha .prad-block-upload-icon {
	flex: none;
	min-height: 44px;
	padding: 0 14px !important;
	border-radius: var(--alo-r-campo) !important;
	background: var(--alo-navy) !important;
	color: var(--alo-blanco) !important;
	white-space: nowrap;
}

/* Casillas de estampado: 44 px de objetivo sin separar la casilla de su precio */
.alo-ficha :has(> .prad-checkbox-item) {
	align-items: center !important;
	min-height: 44px;
}

.alo-ficha .prad-checkbox-item label {
	position: relative;
}

.alo-ficha .prad-checkbox-item label::after {
	content: "";
	position: absolute;
	inset: -11px 0;
}

/* Cantidad con botones */
.alo-ficha .quantity {
	display: inline-flex;
	align-items: stretch;
	height: 48px;
	border: 1px solid var(--alo-linea-campo);
	border-radius: var(--alo-r-campo);
	background: var(--alo-blanco);
	overflow: hidden;
}

.alo-ficha .quantity input.qty {
	width: 52px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	text-align: center;
	font-weight: 600;
	-moz-appearance: textfield;
	appearance: textfield;
}

.alo-ficha .quantity input.qty::-webkit-outer-spin-button,
.alo-ficha .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.alo-cantidad__boton {
	display: inline-grid;
	place-items: center;
	width: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--alo-navy);
	cursor: pointer;
	transition: background-color var(--alo-d-estado) ease;
}

@media (hover: hover) and (pointer: fine) {
	.alo-cantidad__boton:hover {
		background: var(--alo-menta);
	}
}

.alo-ficha .woocommerce-variation-add-to-cart,
.alo-ficha form.cart:not(.variations_form) {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
}

.alo-ficha .woocommerce-variation-add-to-cart > .prad-addons-wrapper,
.alo-ficha .woocommerce-variation-add-to-cart > .aloha-digi,
.alo-ficha form.cart:not(.variations_form) > .prad-addons-wrapper,
.alo-ficha form.cart:not(.variations_form) > .aloha-digi {
	flex: 1 1 100%;
}

.alo-ficha .single_add_to_cart_button {
	flex: 1 1 200px;
	min-height: 48px;
	padding: 11px 24px;
	border: 1.5px solid var(--alo-turquesa);
	border-radius: var(--alo-r-campo);
	background: var(--alo-turquesa);
	color: var(--alo-navy);
	font-family: var(--alo-letra);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color var(--alo-d-estado) ease, border-color var(--alo-d-estado) ease, transform var(--alo-d-pulsar) var(--alo-ease-salida);
}

.alo-ficha .single_add_to_cart_button:active {
	transform: scale(0.97);
}

.alo-ficha .single_add_to_cart_button.disabled,
.alo-ficha .single_add_to_cart_button:disabled {
	border-color: var(--alo-linea);
	background: var(--alo-linea);
	color: var(--alo-tinta-suave);
	cursor: not-allowed;
}

@media (hover: hover) and (pointer: fine) {
	.alo-ficha .single_add_to_cart_button:not(.disabled):not(:disabled):hover {
		background: var(--alo-turquesa-fuerte);
		border-color: var(--alo-turquesa-fuerte);
	}
}

/* Junto al botón */
.alo-ficha__consulta {
	margin: 14px 0 0;
}

.alo-ficha__consulta .alo-boton {
	width: 100%;
}

.alo-ficha__datos {
	display: grid;
	gap: 8px;
	margin: 18px 0 0;
	padding: 14px 16px;
	border: 1.5px dashed var(--alo-turquesa-fuerte);
	border-radius: var(--alo-r-campo);
	background: var(--alo-menta-suave);
	font-size: var(--alo-t-pequeno);
	list-style: none;
}

.alo-ficha__datos li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.alo-ficha__datos .alo-icono {
	margin-top: 2px;
	color: var(--alo-turquesa-hondo);
}

/* Tabla de precios por cantidad (Advanced Dynamic Pricing) */
.alo-ficha .wdp_bulk_table_content,
.alo-ficha [class*="wdp_bulk"] {
	margin-top: 14px;
	font-size: var(--alo-t-pequeno);
}

.alo-ficha table.wdp_table {
	width: 100%;
	border-collapse: collapse;
}

.alo-ficha table.wdp_table td,
.alo-ficha table.wdp_table th {
	padding: 8px 10px;
	border-bottom: var(--alo-filete);
}

/* Debajo: descripción, preguntas y relacionados, a todo el ancho */
.alo-ficha__detalle,
.alo-ficha .related,
.alo-ficha .upsells {
	grid-column: 1 / -1;
}

.alo-ficha__detalle {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 32px clamp(32px, 6vw, 72px);
	padding-top: clamp(32px, 5vw, 64px);
}

.alo-ficha__descripcion h2,
.alo-ficha__preguntas h2 {
	font-size: var(--alo-t-titulo);
}

.alo-ficha__descripcion .alo-prosa {
	font-size: 0.9688rem;
}

.alo-ficha__descripcion .alo-prosa h2,
.alo-ficha__descripcion .alo-prosa h3 {
	font-size: 1.125rem;
}

.alo-ficha .related {
	padding-block: clamp(32px, 5vw, 64px);
}

.alo-ficha .related > h2 {
	font-size: var(--alo-t-titular);
}

@media (max-width: 899px) {
	.alo-ficha {
		grid-template-columns: 1fr;
	}

	.alo-ficha__foto {
		max-width: 420px;
		margin: 0 auto 16px;
		width: 100%;
	}

	.alo-ficha__detalle {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 639px) {
	.alo-ficha__foto {
		max-width: min(100%, 50svh);
	}
}

@media (max-width: 899px) {
	.alo-ficha__preguntas {
		order: -1;
	}
}

/* Detalles del producto: plegable, cerrado en el móvil por ficha.js */
.alo-ficha__plegable summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
	cursor: pointer;
	list-style: none;
}

.alo-ficha__plegable summary::-webkit-details-marker {
	display: none;
}

.alo-ficha__plegable summary h2 {
	margin: 0;
}

.alo-ficha__plegable summary::after {
	content: "+";
	flex: none;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--alo-turquesa-hondo);
	transition: transform var(--alo-d-estado) var(--alo-ease-salida);
}

.alo-ficha__plegable[open] summary::after {
	transform: rotate(45deg);
}

.alo-ficha__plegable[open] summary {
	margin-bottom: 12px;
}
