/* ==========================================================
   TRIPLE B — CARRITO VACÍO
   Diseño del mensaje y productos recomendados
   Página: /carrito/ (page-id-7)

   IMPORTANTE:
   - El título "Nuevo en la tienda" se mantiene en el contenido
     de WordPress (Gutenberg).
   - El shortcode de productos no debe imprimir otro título.
   ========================================================== */


/* 1. CONTENEDOR DEL ESTADO VACÍO
   ---------------------------------------------------------- */

body.page-id-7 .wp-block-woocommerce-empty-cart-block {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 38px 20px 55px;
    box-sizing: border-box;
    color: #232A48;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
}


/* 2. MENSAJE PRINCIPAL: CARRITO VACÍO
   ---------------------------------------------------------- */

body.page-id-7 .wp-block-woocommerce-empty-cart-block
.wc-block-cart__empty-cart__title {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 12px 22px !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    color: #232A48 !important;
    font-family: 'Poppins', Helvetica, Arial, sans-serif !important;
    font-size: 25px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    text-transform: none !important;
}

/* Quita el icono predeterminado del bloque de WooCommerce. */
body.page-id-7 .wp-block-woocommerce-empty-cart-block
.wc-block-cart__empty-cart__title::before,
body.page-id-7 .wp-block-woocommerce-empty-cart-block
.wc-block-cart__empty-cart__title::after {
    display: none !important;
    content: none !important;
}


/* 3. SEPARADOR
   ---------------------------------------------------------- */

body.page-id-7 .wp-block-woocommerce-empty-cart-block
.wp-block-separator {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 1px;
    margin: 8px auto 34px !important;
    padding: 0;
    border: 0 !important;
    border-top: 1px solid #DCE5F5 !important;
    background: transparent !important;
    opacity: 1;
}


/* 4. TÍTULO "NUEVO EN LA TIENDA"
   ---------------------------------------------------------- */

body.page-id-7 .wp-block-woocommerce-empty-cart-block
> h2:not(.wc-block-cart__empty-cart__title) {
    margin: 0 0 28px !important;
    padding: 0;
    color: #232A48 !important;
    font-family: 'Poppins', Helvetica, Arial, sans-serif !important;
    font-size: 23px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: center !important;
}

/* Evita el segundo título si todavía está en el PHP del shortcode. */
body.page-id-7 .tripleb-empty-cart-products-title {
    display: none !important;
}


/* 5. CONTENEDOR Y CUADRÍCULA DE PRODUCTOS
   ---------------------------------------------------------- */

body.page-id-7 .tripleb-empty-cart-products {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

body.page-id-7 .tripleb-empty-cart-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.page-id-7 .tripleb-empty-cart-products ul.products li.product {
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    list-style: none !important;
}


/* 6. TARJETAS NATIVAS DE WOOSTIFY
   ---------------------------------------------------------- */

body.page-id-7 .tripleb-empty-cart-products .product-loop-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #E3EAF5 !important;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(35, 42, 72, 0.04);
    transition: transform .2s ease, box-shadow .2s ease;
}

body.page-id-7 .tripleb-empty-cart-products .product-loop-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(35, 42, 72, 0.09);
}


/* 7. IMÁGENES
   ---------------------------------------------------------- */

body.page-id-7 .tripleb-empty-cart-products .product-loop-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #FFFFFF;
}

body.page-id-7 .tripleb-empty-cart-products .product-loop-image {
    display: block;
    width: 100%;
    height: 210px;
    padding: 12px;
    box-sizing: border-box;
    object-fit: contain;
    transition: transform .25s ease;
}

body.page-id-7 .tripleb-empty-cart-products .product-loop-wrapper:hover
.product-loop-image {
    transform: scale(1.04);
}


/* 8. INFORMACIÓN Y NOMBRE DEL PRODUCTO
   ---------------------------------------------------------- */

body.page-id-7 .tripleb-empty-cart-products .product-loop-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0 !important;
    padding: 15px 14px 16px;
    box-sizing: border-box;
    text-align: center;
}

body.page-id-7 .tripleb-empty-cart-products .woocommerce-loop-product__title {
    min-height: 42px;
    margin: 0 0 12px !important;
    color: #232A48 !important;
    font-family: 'Poppins', Helvetica, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

body.page-id-7 .tripleb-empty-cart-products .woocommerce-loop-product__title a {
    color: #232A48 !important;
    text-decoration: none !important;
    transition: color .2s ease;
}

body.page-id-7 .tripleb-empty-cart-products .woocommerce-loop-product__title a:hover {
    color: #286DD8 !important;
}


/* 9. PRECIOS NORMALES Y PREMIUM
   ---------------------------------------------------------- */

body.page-id-7 .tripleb-empty-cart-products .product-loop-meta {
    width: 100%;
    margin-top: auto;
}

body.page-id-7 .tripleb-empty-cart-products .product-loop-meta .price {
    display: block;
    margin: 0 0 12px !important;
    color: #232A48;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

body.page-id-7 .tripleb-empty-cart-products .precio-premium-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

body.page-id-7 .tripleb-empty-cart-products .precio-premium {
    color: #286DD8 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}

body.page-id-7 .tripleb-empty-cart-products .precio-normal {
    color: #8992A5 !important;
    font-size: 12px !important;
    text-decoration: line-through;
}

body.page-id-7 .tripleb-empty-cart-products .precio-ahorro {
    color: #23845B !important;
    font-size: 11px !important;
    font-weight: 600;
}

body.page-id-7 .tripleb-empty-cart-products .precio-premium-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

body.page-id-7 .tripleb-empty-cart-products .precio-normal-linea {
    color: #232A48;
    font-size: 15px;
    font-weight: 600;
}

body.page-id-7 .tripleb-empty-cart-products .precio-con-premium {
    color: #286DD8;
    font-size: 13px;
    font-weight: 600;
}

body.page-id-7 .tripleb-empty-cart-products .premium-ahorro {
    color: #23845B;
    font-size: 11px;
    font-weight: 600;
}

body.page-id-7 .tripleb-empty-cart-products .premium-link {
    color: #286DD8;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

body.page-id-7 .tripleb-empty-cart-products .premium-link:hover {
    color: #232A48;
    text-decoration: underline;
}


/* 10. BOTÓN AÑADIR AL CARRITO
   ---------------------------------------------------------- */

body.page-id-7 .tripleb-empty-cart-products .loop-add-to-cart-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin: 10px 0 0 !important;
    padding: 10px 12px !important;
    box-sizing: border-box;
    background: #232A48 !important;
    border: 1px solid #232A48 !important;
    border-radius: 8px !important;
    color: #FFFFFF !important;
    font-family: 'Poppins', Helvetica, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background .2s ease, border-color .2s ease;
}

body.page-id-7 .tripleb-empty-cart-products .loop-add-to-cart-btn:hover {
    background: #286DD8 !important;
    border-color: #286DD8 !important;
    color: #FFFFFF !important;
}


/* 11. LISTA DE DESEOS
   ---------------------------------------------------------- */

body.page-id-7 .tripleb-empty-cart-products .tinv-wraper {
    margin-top: 8px;
}

body.page-id-7 .tripleb-empty-cart-products .tinv-wraper a {
    color: #64708F;
    font-size: 12px;
    text-decoration: none;
}

body.page-id-7 .tripleb-empty-cart-products .tinv-wraper a:hover {
    color: #286DD8;
}


/* 12. TABLET
   ---------------------------------------------------------- */

@media (max-width: 900px) {
    body.page-id-7 .tripleb-empty-cart-products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    body.page-id-7 .tripleb-empty-cart-products .product-loop-image {
        height: 190px;
    }
}


/* 13. MÓVIL
   ---------------------------------------------------------- */

@media (max-width: 600px) {
    body.page-id-7 .wp-block-woocommerce-empty-cart-block {
        padding: 25px 12px 35px;
    }

    body.page-id-7 .wp-block-woocommerce-empty-cart-block
    .wc-block-cart__empty-cart__title {
        margin-bottom: 18px !important;
        padding: 0 8px 18px !important;
        font-size: 20px !important;
        line-height: 1.45 !important;
    }

    body.page-id-7 .wp-block-woocommerce-empty-cart-block
    .wp-block-separator {
        margin: 5px auto 26px !important;
    }

    body.page-id-7 .wp-block-woocommerce-empty-cart-block
    > h2:not(.wc-block-cart__empty-cart__title) {
        margin-bottom: 22px !important;
        font-size: 20px !important;
    }

    body.page-id-7 .tripleb-empty-cart-products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body.page-id-7 .tripleb-empty-cart-products .product-loop-image {
        height: 145px;
        padding: 8px;
    }

    body.page-id-7 .tripleb-empty-cart-products .product-loop-content {
        padding: 11px 9px 12px;
    }

    body.page-id-7 .tripleb-empty-cart-products .woocommerce-loop-product__title {
        min-height: 40px;
        margin-bottom: 8px !important;
        font-size: 12px !important;
    }

    body.page-id-7 .tripleb-empty-cart-products .product-loop-meta .price {
        font-size: 13px;
    }

    body.page-id-7 .tripleb-empty-cart-products .precio-premium {
        font-size: 15px !important;
    }

    body.page-id-7 .tripleb-empty-cart-products .loop-add-to-cart-btn {
        min-height: 38px;
        padding: 8px 5px !important;
        font-size: 11px !important;
    }
}

/* ==========================================================
   CORRECCIÓN: PRECIOS HORIZONTALES EN CARRITO VACÍO
   ========================================================== */

body.page-id-7 .tripleb-empty-cart-products .precio-premium-box {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 5px 10px !important;
    width: 100%;
}

body.page-id-7 .tripleb-empty-cart-products .precio-normal,
body.page-id-7 .tripleb-empty-cart-products .precio-premium,
body.page-id-7 .tripleb-empty-cart-products .precio-ahorro {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
}

body.page-id-7 .tripleb-empty-cart-products .precio-premium-info {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 5px 8px !important;
}

body.page-id-7 .tripleb-empty-cart-products .precio-normal-linea,
body.page-id-7 .tripleb-empty-cart-products .precio-con-premium,
body.page-id-7 .tripleb-empty-cart-products .premium-ahorro,
body.page-id-7 .tripleb-empty-cart-products .premium-link {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
}

/* ==========================================================
   CORRECCIÓN: IMÁGENES EN CARRITO VACÍO
   ========================================================== */

body.page-id-7 .tripleb-empty-cart-products .product-loop-image-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 210px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

body.page-id-7 .tripleb-empty-cart-products .product-loop-image-wrapper a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.page-id-7 .tripleb-empty-cart-products .product-loop-image {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 12px !important;
    object-fit: contain !important;
    object-position: center center !important;
    box-sizing: border-box !important;
    transform: none !important;
}

/* =========================================
   CARRITO VACÍO - ALINEACIÓN DE PRECIOS
========================================= */

/* Contenedor del precio */
body.page-id-7 .tripleb-empty-cart-products .product-loop-meta .price {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    text-align: center !important;
}

/* Usuarios Premium */
body.page-id-7 .tripleb-empty-cart-products .precio-premium-box {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    margin: 0 !important;
}

/* Usuarios no Premium */
body.page-id-7 .tripleb-empty-cart-products .precio-premium-info {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
}

/* Elementos individuales */
body.page-id-7 .tripleb-empty-cart-products .precio-normal,
body.page-id-7 .tripleb-empty-cart-products .precio-premium,
body.page-id-7 .tripleb-empty-cart-products .precio-ahorro,
body.page-id-7 .tripleb-empty-cart-products .precio-normal-linea,
body.page-id-7 .tripleb-empty-cart-products .precio-con-premium,
body.page-id-7 .tripleb-empty-cart-products .premium-ahorro,
body.page-id-7 .tripleb-empty-cart-products .premium-link {
    width: auto !important;
    margin: 0 !important;
}

/* =========================================
   BOTÓN AÑADIR - ANCHO COMPLETO
========================================= */

body.page-id-7 .tripleb-empty-cart-products .loop-add-to-cart-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 12px 0 0 !important;
}