/* =========================================
   TRIPLE B - DISEÑO CARRITO WOOCOMMERCE
   ========================================= */

body.page-id-7 .wp-block-woocommerce-cart {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    color: #232A48;
    max-width: 1250px;
    margin: 0 auto;
    padding: 20px 15px 50px;
}

/* Seguir comprando */
body.page-id-7 .continue-shopping {
    margin: 10px 0 30px !important;
    text-align: left !important;
}

body.page-id-7 .continue-shopping a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px !important;
    background: #EEF3FC !important;
    color: #232A48 !important;
    border: 1px solid #D7E3F8 !important;
    border-radius: 10px !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all .2s ease;
}

body.page-id-7 .continue-shopping a:hover {
    background: #DCE8FC !important;
    color: #286DD8 !important;
}

/* Layout principal */
body.page-id-7 .wc-block-components-sidebar-layout {
    gap: 35px;
    align-items: flex-start;
}

/* Tabla de productos */
body.page-id-7 .wc-block-cart-items {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid #E3EAF5;
    border-radius: 16px;
    overflow: hidden;
    background: #FFFFFF;
}

body.page-id-7 .wc-block-cart-items__header th {
    padding: 16px 12px;
    background: #F5F7FC;
    color: #232A48;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #E3EAF5;
}

body.page-id-7 .wc-block-cart-items__row td {
    padding: 20px 12px;
    border-bottom: 1px solid #EAEFF6;
    vertical-align: middle;
}

body.page-id-7 .wc-block-cart-items__row:last-child td {
    border-bottom: none;
}

/* Imágenes */
body.page-id-7 .wc-block-cart-item__image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    background: #FFFFFF;
}

/* Nombre del producto */
body.page-id-7 .wc-block-components-product-name {
    color: #232A48 !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
}

body.page-id-7 .wc-block-components-product-name:hover {
    color: #286DD8 !important;
}

/* Precio */
body.page-id-7 .wc-block-cart-item__prices,
body.page-id-7 .wc-block-cart-item__total {
    color: #232A48;
    font-size: 14px;
    font-weight: 600;
}

/* Descripción */
body.page-id-7 .wc-block-components-product-metadata {
    color: #8992A5;
    font-size: 12px;
}

/* Selector de cantidad */
body.page-id-7 .wc-block-components-quantity-selector {
    border: 1px solid #D7E3F8 !important;
    border-radius: 9px !important;
    overflow: hidden;
    background: #FFFFFF;
}

body.page-id-7 .wc-block-components-quantity-selector__button {
    color: #232A48 !important;
    background: #F5F7FC !important;
}

body.page-id-7 .wc-block-components-quantity-selector__input {
    color: #232A48 !important;
    font-weight: 600;
    background: #FFFFFF !important;
}

/* Eliminar producto */
body.page-id-7 .wc-block-cart-item__remove-link {
    color: #8992A5 !important;
    font-size: 12px;
    transition: color .2s ease;
}

body.page-id-7 .wc-block-cart-item__remove-link:hover {
    color: #D14343 !important;
}

/* Resumen del carrito */
body.page-id-7 .wc-block-cart__sidebar {
    padding: 24px !important;
    background: #FFFFFF;
    border: 1px solid #E3EAF5;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(35,42,72,.05);
}

body.page-id-7 .wc-block-cart__totals-title {
    color: #232A48;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 20px;
}

body.page-id-7 .wc-block-components-totals-item {
    padding: 12px 0;
    color: #232A48;
    font-size: 14px;
}

body.page-id-7 .wc-block-components-totals-item__label {
    color: #59647C;
}

body.page-id-7 .wc-block-components-totals-item__value {
    color: #232A48;
    font-weight: 600;
}

body.page-id-7 .wc-block-components-totals-footer-item {
    border-top: 1px solid #E3EAF5;
    margin-top: 10px;
    padding-top: 20px;
}

body.page-id-7 .wc-block-components-totals-footer-item
.wc-block-components-totals-item__label {
    color: #232A48;
    font-size: 16px;
    font-weight: 700;
}

body.page-id-7 .wc-block-components-totals-footer-item
.wc-block-components-formatted-money-amount {
    color: #232A48;
    font-size: 21px;
    font-weight: 700;
}

/* Cupón */
body.page-id-7 .wc-block-components-totals-coupon {
    border: 1px solid #D7E3F8;
    border-radius: 9px;
    overflow: hidden;
}

body.page-id-7 .wc-block-components-panel__button {
    color: #286DD8;
    font-size: 14px;
    font-weight: 600;
    padding: 14px;
}

/* Finalizar compra */
body.page-id-7 .wc-block-cart__submit-button {
    width: 100%;
    min-height: 52px;
    margin-top: 15px;
    background: #232A48 !important;
    color: #FFFFFF !important;
    border: 1px solid #232A48 !important;
    border-radius: 11px !important;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    transition: all .2s ease;
}

body.page-id-7 .wc-block-cart__submit-button:hover {
    background: #286DD8 !important;
    border-color: #286DD8 !important;
}

/* Recomendaciones */
body.page-id-7 #ai-reco-block {
    margin-top: 40px !important;
}

body.page-id-7 #ai-reco-block h3 {
    color: #232A48;
    font-size: 20px;
    font-weight: 700;
}

body.page-id-7 #ai-reco-items {
    gap: 18px;
}

/* Móvil */
@media (max-width: 768px) {
    body.page-id-7 .wp-block-woocommerce-cart {
        padding: 10px 12px 35px;
    }

    body.page-id-7 .wc-block-components-sidebar-layout {
        gap: 20px;
    }

    body.page-id-7 .wc-block-cart__sidebar {
        padding: 18px !important;
    }

    body.page-id-7 .wc-block-cart-items__row td {
        padding: 12px 7px;
    }

    body.page-id-7 .wc-block-cart-item__image img {
        width: 60px;
        height: 60px;
    }

    body.page-id-7 .wc-block-components-product-name {
        font-size: 13px;
    }

    body.page-id-7 .wc-block-cart-item__total {
        font-size: 13px;
    }

    body.page-id-7 #ai-reco-block h3 {
        font-size: 18px;
    }
}


/* =========================================
   TRIPLE B - PANEL DE PRODUCTOS DEL CARRITO
   ========================================= */

/* Contenedor completo de productos */
body.page-id-7 .wc-block-cart__main {
    background: #FFFFFF !important;
    padding: 24px !important;
    border: 1px solid #E3EAF5 !important;
    border-radius: 16px !important;
    box-shadow: 0 5px 20px rgba(35, 42, 72, 0.05);
    box-sizing: border-box;
}

/* Tabla */
body.page-id-7 .wc-block-cart-items {
    width: 100% !important;
    background: #FFFFFF !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-collapse: collapse !important;
}

/* Encabezado */
body.page-id-7 .wc-block-cart-items__header {
    background: #F5F7FC !important;
}

body.page-id-7 .wc-block-cart-items__header th {
    background: #F5F7FC !important;
    color: #232A48 !important;
    padding: 16px 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: left !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #E3EAF5 !important;
}

/* Alineación de columnas */
body.page-id-7 .wc-block-cart-items__header-image {
    width: 100px !important;
    text-align: center !important;
}

body.page-id-7 .wc-block-cart-items__header-product {
    text-align: left !important;
}

body.page-id-7 .wc-block-cart-items__header-total {
    width: 115px !important;
    text-align: right !important;
}

/* Filas de productos */
body.page-id-7 .wc-block-cart-items__row {
    background: #FFFFFF !important;
}

body.page-id-7 .wc-block-cart-items__row td {
    background: #FFFFFF !important;
    padding: 20px 12px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #EAEFF6 !important;
}

/* Imagen centrada */
body.page-id-7 .wc-block-cart-item__image {
    text-align: center !important;
}

body.page-id-7 .wc-block-cart-item__image img {
    display: block;
    margin: 0 auto;
    width: 75px !important;
    height: 85px !important;
    object-fit: contain !important;
}

/* Nombre y precio unitario */
body.page-id-7 .wc-block-cart-item__product {
    text-align: left !important;
}

body.page-id-7 .wc-block-cart-item__wrap {
    text-align: left !important;
}

body.page-id-7 .wc-block-components-product-name {
    display: inline-block;
    margin-bottom: 5px !important;
    text-align: left !important;
    line-height: 1.45 !important;
}

/* Total por producto */
body.page-id-7 .wc-block-cart-item__total {
    text-align: right !important;
    white-space: nowrap;
    vertical-align: middle !important;
}

/* Eliminar la descripción duplicada */
body.page-id-7 .wc-block-components-product-metadata__description {
    display: none !important;
}

/* Recomendaciones dentro del panel */
body.page-id-7 #ai-reco-block {
    background: #FFFFFF;
    margin-top: 30px !important;
}

/* Responsive */
@media (max-width: 768px) {
    body.page-id-7 .wc-block-cart__main {
        padding: 12px !important;
        border-radius: 12px !important;
    }

    body.page-id-7 .wc-block-cart-items__header th {
        padding: 12px 6px !important;
    }

    body.page-id-7 .wc-block-cart-items__row td {
        padding: 14px 6px !important;
    }

    body.page-id-7 .wc-block-cart-item__image img {
        width: 55px !important;
        height: 65px !important;
    }

    body.page-id-7 .wc-block-cart-items__header-image {
        width: 65px !important;
    }

    body.page-id-7 .wc-block-cart-items__header-total {
        width: 75px !important;
    }
}

