/* ==============================> PLANTILLA DE PRODUCTO */

.woocommerce-product-gallery .product-labels[class*="labels-rounded"] {
 	inset-inline-start: 15px !important;
 	width: fit-content;
}

.wd-gallery-images .product-labels .product-label {
	font-size: 18px !important;
 	min-width: 70px !important;
    min-height: 70px !important;
}

.wd-single-price .price {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 16px;
}

.single-product form:not(.variations_form).cart {
    flex-wrap: nowrap;
}

.single-product form.variations_form .woocommerce-variation-add-to-cart {
    flex-wrap: nowrap;
}

/* BOTON DE WHATSAPP EN FICHA DE PRODUCTO */

.btn-wsp-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    padding: 10px 15px;
    border-radius: var(--btn-accented-brd-radius);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    vertical-align: middle;
    transition: background 0.3s;
    height: auto;
    max-width: fit-content;
}

.btn-wsp-product:hover {
    background-color: #128C7E;
    color: white;
}

.btn-wsp-product i {
    margin-right: 5px;
    font-size: 16px;
}

/* RESPONSIVE */

@media(max-width: 768px) {
    .single-product form.cart {
        flex-wrap: wrap !important;
    }
	.btn-wsp-product {
		max-width: -webkit-fill-available;
	}
	
	.wd-gallery-images .product-labels .product-label {
		font-size: 14px !important;
		min-width: 55px !important;
		min-height: 55px !important;
	}
}

/* ==============================> REDISEÑO PRECIO SINGLE WOOCOMMERCE */

/* -> Contenedor Principal */
.wcc-precio-wrapper .wcc-precio-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 15px;
    opacity: 0;
    animation: wccFadeIn 0.6s ease-out forwards;
}

/* -> Animación de Entrada */
@keyframes wccFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -> Fila Superior (Anterior + Descuento) */
.wcc-precio-wrapper .wcc-fila-superior {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* -> Precio Anterior (Tachado) */
.wcc-precio-wrapper .wcc-precio-anterior span {
    font-size: 16px !important;
    color: #999 !important;
    /* Gris suave para quitar jerarquía */
    text-decoration: line-through !important;
    font-weight: 400 !important;
    transition: color 0.4s ease !important;
}

/* -> Box de Descuento (Badge) */
.wcc-precio-wrapper .wcc-badge-descuento {
    background-color: #ffebeb !important;
    /* Fondo rojo muy suave */
    color: #d32f2f !important;
    /* Rojo alerta estándar o cambiar a gusto */
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 2px 8px;
    border-radius: 4px;
    /* Efecto Box */
    border: 1px solid #ffcdd2;
    transition: all 0.3s ease;
}

/* Efecto Hover en el Box */
.wcc-precio-wrapper .wcc-precio-wrapper:hover .wcc-badge-descuento {
    transform: scale(1.05);
    background-color: #ffcdd2;
}

/* -> Precio Final (Grande) */
.wcc-precio-wrapper .wcc-precio-final span {
    font-size: 32px !important;
    /* Tamaño grande como la imagen */
    font-weight: 700;
    color: #111;
    /* Negro sólido */
    line-height: 1.1;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

/* Uso de variable global al hacer hover en el precio final */
.wcc-precio-wrapper .wcc-precio-final:hover {
    color: var(--e-global-color-primary);
}

.wd-product .wcc-precio-anterior span {
    font-size: 12px !important;
}

.wd-product .wcc-badge-descuento span {
    font-size: 14px !important;
}

.wd-product .wcc-precio-final span {
    font-size: 18px !important;
}

.wd-product .price ins span {
    color: var(--e-global-color-accent) !important;
}

.wd-product:hover .price ins span {
    color: var(--e-global-color-primary) !important;
}

/* -> Estilos Responsive (Tablets y Móviles) */
@media screen and (max-width: 768px) {
    .wcc-precio-wrapper .wcc-precio-anterior {
        font-size: 14px;
    }

    .wcc-precio-wrapper .wcc-badge-descuento {
        font-size: 12px;
        padding: 2px 6px;
    }

    .wcc-precio-wrapper .wcc-precio-final {
        font-size: 26px;
        /* Ligeramente más pequeño en móvil */
    }
}