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

.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;
    }
}


/* ==============================> WHATSAPP BOTÓN PRODUCTO */

/* -> Contenedor */
.wsp-producto-contenedor {
    display: block;
    width: 100%;
}

/* -> Botón base */
.wsp-producto-contenedor .wsp-producto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    border-radius: 6px;
    background-color: #25d366;
    color: #fff;
    font-size: 15px;
    line-height: 17px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
}

/* -> Ícono */
.wsp-producto-contenedor .wsp-producto-btn i {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

/* -> Texto */
.wsp-producto-contenedor .wsp-producto-btn span {
    line-height: 1.2;
}

/* -> Hover */
.wsp-producto-contenedor .wsp-producto-btn:hover {
    background-color: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.wsp-producto-contenedor .wsp-producto-btn:hover i {
    transform: scale(1.15) rotate(-5deg);
}

/* -> Active / tap */
.wsp-producto-contenedor .wsp-producto-btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition-duration: 0.1s;
}

/* -> Responsive tablet */
@media (max-width: 1024px) {
    .wsp-producto-contenedor .wsp-producto-btn {
        font-size: 14px;
        padding: 12px 16px;
    }
}

/* -> Responsive móvil */
@media (max-width: 768px) {
    .wsp-producto-contenedor .wsp-producto-btn {
        font-size: 14px;
        padding: 12px 14px;
        gap: 6px;
    }

    .wsp-producto-contenedor .wsp-producto-btn i {
        font-size: 18px;
    }

    .btn-wsp-product {
        max-width: stretch;
    }
}

/* -> iOS: deshabilitar highlight y fix tap */
@supports (-webkit-touch-callout: none) {
    .wsp-producto-contenedor .wsp-producto-btn {
        -webkit-appearance: none;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
    }
}