
/*****************************************************
 * GENERAL
 *****************************************************/
.cart-summary-wrapper.custom-cart-totals{
    padding-bottom: 56px;
}

/*****************************************************
 * CART – base tabla
 *****************************************************/


body.woocommerce-cart .woocommerce form table.shop_table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    margin: 0;
}

body.woocommerce-cart .woocommerce form table.shop_table th,
body.woocommerce-cart .woocommerce form table.shop_table td {
    text-align: left;
    vertical-align: middle;
    padding: 16px 0;
    border: none;
    background: transparent;
}

body.woocommerce-cart .woocommerce form table.shop_table td:not(.product-thumbnail) {
    padding: 16px;
}
/* Encabezados (primer fila con colspan="2" en PRODUCTO) */
body.woocommerce-cart .woocommerce form table.shop_table thead th {
    color: var(--gray-900);
    font-family: Raleway, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gray-300);
    padding-bottom: 24px;
}

/* Borde entre filas del body */
body.woocommerce-cart .woocommerce form table.shop_table tbody tr.cart_item td {
    position: relative;
    vertical-align: top;
}

body.woocommerce-cart .woocommerce form table.shop_table tbody tr.cart_item td::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, .08);
}

body.woocommerce-cart .woocommerce form table.shop_table tbody tr.cart_item:last-of-type td {
    border-bottom: none;
}

/*****************************************************
 * Anchos de columnas (coinciden th y td)
 * Orden: [thumbnail] [name] [price] [quantity] [remove]
 *****************************************************/
body.woocommerce-cart .woocommerce form th.product-thumbnail,
body.woocommerce-cart .woocommerce form td.product-thumbnail {
    width: 10%;
}

body.woocommerce-cart .woocommerce form th.product-name,
body.woocommerce-cart .woocommerce form td.product-name {
    width: 20%;
}

body.woocommerce-cart .woocommerce form th.product-price,
body.woocommerce-cart .woocommerce form td.product-price {
    width: 20%;
}

body.woocommerce-cart .woocommerce form th.product-quantity,
body.woocommerce-cart .woocommerce form td.product-quantity {
    width: 20%;
}

body.woocommerce-cart .woocommerce form th.product-remove,
body.woocommerce-cart .woocommerce form td.product-remove {
    width: 10%;
    text-align: center;
}

/* Botón de eliminar */
body.woocommerce-cart .woocommerce form td.product-remove .remove,
body.woocommerce-cart .woocommerce form td.product-remove .remove-inline {
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 400;
    text-decoration: underline;
    padding: 0;
    line-height: 1;
    width: 100%;
    border: unset !important;
}

/*****************************************************
 * Celdas: contenido por columna
 *****************************************************/

/* Thumbnail */
body.woocommerce-cart .woocommerce form td.product-thumbnail a,
body.woocommerce-cart .woocommerce form td.product-thumbnail img {
    display: block;
    width: 100%;
    max-width: 120px;
    height: 100%;
}

body.woocommerce-cart .woocommerce form td.product-thumbnail img {
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: 4px;
}

/* Nombre + meta */
body.woocommerce-cart .woocommerce form td.product-name .product-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 232px;
}

body.woocommerce-cart .woocommerce form td.product-name .product-title a {
    color: var(--gray-900);
    font-size: 15px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
}

body.woocommerce-cart .woocommerce form td.product-name .product-attributes {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.woocommerce-cart .woocommerce form td.product-name .product-attributes dl {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.woocommerce-cart .woocommerce form td.product-name .product-attributes p {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: capitalize;
    color: var(--gray-700);
}

/* Precio */
body.woocommerce-cart .woocommerce form td.product-price .amount {
    color: var(--black);
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 30px; /* 187.5% */
    letter-spacing: 0.5px;
}

/* Cantidad */
body.woocommerce-cart .woocommerce form .quantity.buttons-added {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-height: 30px;
}

body.woocommerce-cart .woocommerce form .quantity .qty {
    min-width: 56px;
    padding: 8px;
    text-align: center;
    border: none;
}

body.woocommerce-cart .woocommerce form .quantity .minus,
body.woocommerce-cart .woocommerce form .quantity .plus {
    width: 36px;
    height: 36px;
    line-height: 36px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    border: 1px solid transparent !important;

}

body.woocommerce-cart .woocommerce form .quantity .plus {
    background: var(--primary-light);
    color: var(--gray-900);
}

/*****************************************************
 * Cabecera “Carrito (n)”
 *****************************************************/
body.woocommerce-cart .woocommerce .cart-head {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-top: 44px !important;
    padding-bottom: 60px !important;
}
body.woocommerce-cart .woocommerce .cart-head .entry-title {
    text-transform: uppercase;
}
/*****************************************************
 * Resumen/cupones
 *****************************************************/
body.woocommerce-cart .woocommerce .cart-summary-wrapper {
    display: flex;
    gap: 20px;
}

body.woocommerce-cart .woocommerce .cart-summary-totals {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.woocommerce-cart .woocommerce .cart-summary-totals h3 {
    font-size: 24px;
    color: var(--gray-900);
    font-weight: 500;
    margin: 0;
}

body.woocommerce-cart .woocommerce p.cart-subtotal {
    display: flex;
    justify-content: space-between;
    color: var(--gray-700);
    border-bottom: 1px solid var(--primary-light);
    margin: 0;
}

body.woocommerce-cart .woocommerce .cart-total {
    display: flex;
    justify-content: space-between;
    margin: 0;
    text-transform: uppercase;
}

body.woocommerce-cart .woocommerce .cart-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-top: 40px;
}

body.woocommerce-cart .woocommerce .cart-buttons .button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    width: 100%;
    max-width: 222px;
}

body.woocommerce-cart .woocommerce a.button.continue-shopping {
    background: transparent;
    border: 1px solid var(--gray-900);
    color: var(--gray-900);
}

body.woocommerce-cart .woocommerce a.button.checkout {
    background: var(--gray-900);
    color: var(--white);
}

.cart-summary-wrapper custom-cart-totals {
    padding-bottom: 56px;
}


/*****************************************************
 * Responsive
 *****************************************************/
@media (max-width: 1024px) {
    body.woocommerce-cart .woocommerce form table.shop_table th,
    body.woocommerce-cart .woocommerce form table.shop_table td {
        padding: 16px 0;
    }
    body.woocommerce-cart .woocommerce form table.shop_table td:not(.product-thumbnail) {
        padding: 16px;
    }
    body.woocommerce-cart .woocommerce form td.product-name {
        max-width: 420px;
    }
}

@media (max-width: 768px) {


    body.woocommerce-cart .woocommerce form td {
        width: 100%!important;
    }

    body.woocommerce-cart .woocommerce form td.product-name {
        max-width: 100%;
    }

    body.woocommerce-cart .woocommerce .cart-buttons {
        flex-direction: column;
        gap: 8px;
    }

    body.woocommerce-cart .woocommerce .cart-head {
        padding-top: 40px !important;
        padding-bottom: 24px !important;
    }

}

@media (max-width: 768px){
    .cart-summary-wrapper.custom-cart-totals {
        padding-bottom: 40px;
    }
    body.woocommerce-cart .woocommerce table.shop_table_responsive tr td, .woocommerce-page table.shop_table_responsive tr td{
        text-align: left!important;
        padding: 0 !important;
    }
    body.woocommerce-cart .woocommerce table.shop_table_responsive tr td, .woocommerce-page table.shop_table_responsive tr td::after {
        content: unset!important;
    }
    body.woocommerce-cart #content  .woocommerce form tr.woocommerce-cart-form__cart-item.cart_item {
        display: grid !important;
        grid-template-columns: auto 1fr auto; /* thumbnail - info - acciones */
        grid-template-rows: auto;
        grid-template-areas:
      "thumb info info"
      "thumb price price"
      "thumb qty remove";
        gap: 16px;
        align-items: center;
        padding: 24px 0;
        border-bottom: 1px solid var(--gray-300);
    }
    body.woocommerce-cart .woocommerce form td.product-thumbnail a,
    body.woocommerce-cart .woocommerce form td.product-thumbnail img {
        max-height: 100%;
    }
    body.woocommerce-cart #content  .woocommerce form td.product-thumbnail {
        display: block;
    }
    body.woocommerce-cart #content  .woocommerce form td::before {
        content: unset;
    }

    body.woocommerce-cart #content  .woocommerce form tr.woocommerce-cart-form__cart-item .product-thumbnail {
        grid-area: thumb;
    }

    body.woocommerce-cart #content  .woocommerce form tr.woocommerce-cart-form__cart-item .product-name {
        grid-area: info;
        justify-self: stretch;
    }

    body.woocommerce-cart #content  .woocommerce form tr.woocommerce-cart-form__cart-item .product-remove {
        grid-area: remove;
        text-align: right;
    }

    body.woocommerce-cart #content  .woocommerce form tr.woocommerce-cart-form__cart-item .product-quantity {
        grid-area: qty;
    }

    body.woocommerce-cart #content  .woocommerce form tr.woocommerce-cart-form__cart-item .product-price {
        grid-area: price;
        justify-self: start;
        text-align: left!important;
    }

    /* Ajustes de imágenes */
    body.woocommerce-cart #content  .woocommerce form tr.woocommerce-cart-form__cart-item .product-thumbnail img {
        width: 100%;
        height: auto;
        display: block;
    }
}

/**
 CART CROSS SELL CAROUSEL
 */


.cart-crosssells {
    margin: 24px 0;
}