/* ==============================> PLANTILLA DE PRODUCTO */

.single-product .product form.cart {
    flex-wrap: wrap !important;
}

.product-template-default .wd-single-price .price {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
}

.product-template-default form:not(.variations_form).cart {
    
}

.product-template-default form.variations_form .woocommerce-variation-add-to-cart {
    
}

.product-template-default .price {
    word-spacing: 0px !important;
}

.product-template-default .price :is(del, ins) bdi {
    display: flex;
}

.product-template-default .price :is(del, ins) {
    display: flex;
}

.product-template-default .price del:before {
    content: "Antes:";
    padding-right: 12px;
}

.product-template-default .price ins:before {
    content: "Oferta:";
    padding-right: 12px;
}

.product-template-default .price .precio-secundario-woocs {
    font-size: 16px;
    color:#888888;
}

/* CONTENIDO DE PRODUCTO Y PRODUCTOS RELACIONADOS */

.elementor-widget-wd_single_product_content .elementor-widget-container:before {
    content: "Descripción";
    display: block;
    font-size: 24px;
    line-height: 28px;
    font-weight: 600;
    color: var(--e-global-color-primary);
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--e-global-color-primary);
}


.tabs-surcom .wc-tabs-wrapper {
    padding: 24px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 0px 16px -8px rgba(0, 0, 0, 0.16);
}

/*
.productos-relacionados .elementor-widget-container {
    padding: 24px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 0px 16px -8px rgba(0, 0, 0, 0.16);
}
*/

.productos-relacionados .elementor-widget-container:before {
    content: "Productos relacionados";
    display: block;
    font-size: 24px;
    line-height: 28px;
    font-weight: 600;
    color: var(--e-global-color-primary);
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--e-global-color-primary);
}


/* 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: 100%;
}

.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;
    }
}

/* ==============================> VIDEOS DE PRODUCTO */
/* -> CONTENEDOR PRINCIPAL [producto-video] */
.producto-video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000000;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.producto-video-container:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* -> REPRODUCTOR HTML5 (MP4) */
.producto-video-container .producto-video-html5 {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    outline: none;
    -webkit-appearance: none;
}

/* -> REPRODUCTOR OEMBED (YOUTUBE / VIMEO) */
.producto-video-container .producto-video-oembed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.producto-video-container .producto-video-oembed iframe,
.producto-video-container .producto-video-oembed object,
.producto-video-container .producto-video-oembed embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    transition: opacity 0.3s ease-in-out;
}

/* -> EFECTOS HOVER Y TRANSICIONES */
.producto-video-container .producto-video-oembed:hover iframe {
    opacity: 0.95;
}

/* -> RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .producto-video-container {
        border-radius: 4px;
        margin-bottom: 16px;
    }

    .producto-video-container .producto-video-html5,
    .producto-video-container .producto-video-oembed {
        border-radius: 4px;
    }
}



/* ==============================> ESTILOS SHORTCODE AGREGAR PRODUCTO */

/* -> CONTENEDOR PRINCIPAL */
.custom-product-actions-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
}

.custom-product-actions-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.custom-row {
    width: 100%;
}

/* -> FILA 1: PRECIOS Y CANTIDAD */
.custom-row-1-price-qty {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.custom-price-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-template-default .custom-price-wrapper {
    word-spacing: 0px !important;
}

.product-template-default .custom-price-wrapper :is(del, ins) bdi {
    display: flex;
}

.product-template-default .custom-price-wrapper del .amount {
    color: #c2c2c2;
}

.product-template-default .custom-price-wrapper ins {
    font-size: 24px;
    line-height: 28px;
    font-weight: 600;
    color: var(--e-global-color-primary);
}

.product-template-default .custom-price-wrapper :is(del, ins) {
    display: flex;
}

.product-template-default .custom-price-wrapper del:before {
    content: "Antes:";
    padding-right: 12px;
    color: #c2c2c2;
}

.product-template-default .custom-price-wrapper ins:before {
    content: "Oferta:";
    padding-right: 12px;
}

.product-template-default .custom-price-wrapper .precio-secundario-woocs {
    font-size: 16px;
    color:#888888;
}

.custom-qty-wrapper {
    display: flex;
    align-items: center;
}

.custom-qty-wrapper .quantity input.qty {
    width: 70px;
    height: 45px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    color: #333333;
    -webkit-appearance: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-qty-wrapper .quantity input.qty:focus {
    border-color: var(--e-global-color-primary);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
    outline: none;
}

/* -> FILA 2: AÑADIR AL CARRITO */
.custom-add-to-cart-btn {
    width: 100%;
    height: 50px;
    background-color: var(--e-global-color-primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    -webkit-appearance: none;
    transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
}

.custom-add-to-cart-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* -> FILA 3: WHATSAPP */
.custom-whatsapp-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    background-color: #25D366;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none;
    -webkit-appearance: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.custom-whatsapp-btn:hover {
    background-color: #1EBE57;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

/* -> RESPONSIVE (MÓVILES) */
@media (max-width: 768px) {
    .custom-row-1-price-qty {
        flex-direction: column;
        align-items: flex-start;
    }

    .custom-qty-wrapper {
        width: 100%;
    }

    .custom-qty-wrapper .quantity {
        width: 100%;
    }

    .custom-qty-wrapper .quantity input.qty {
        width: 100%;
        max-width: 100%;
    }
}


/* ==============================> 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: 16px;
    line-height: 20px;
    font-weight: 500;
    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;
    }
}