:root{--page-title-display:none;}/* Start custom CSS *//* ====== Variables de color (ajusta el azul si no calza exacto) ====== */
:root{
  --carrito-azul: #1c6ea4;
  --carrito-azul-oscuro: #16587f;
  --carrito-fondo: #f4f7fa;
  --carrito-borde: #dfe6ee;
}

/* ====== Contenedor general del carrito ====== */
.woocommerce-cart-form,
.cart-collaterals{
  font-family: inherit;
}

/* ====== Tabla de productos ====== */
table.shop_table.cart{
  border: none !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  background: #fff;
}

/* Redondeo forzado en las esquinas de la tabla */
table.shop_table.cart thead tr th:first-child{
  border-top-left-radius: 14px !important;
}
table.shop_table.cart thead tr th:last-child{
  border-top-right-radius: 14px !important;
}
table.shop_table.cart tbody tr:last-child td:first-child{
  border-bottom-left-radius: 14px !important;
}
table.shop_table.cart tbody tr:last-child td:last-child{
  border-bottom-right-radius: 14px !important;
}

/* Cabecera azul: Producto / Precio / Cantidad / Subtotal */
table.shop_table.cart thead tr{
  background: var(--carrito-azul);
}
table.shop_table.cart thead th{
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 14px;
  border: none;
  text-align: left;
}
table.shop_table.cart thead th.product-remove,
table.shop_table.cart thead th.product-thumbnail{
  width: 1%;
}

/* Filas de producto */
table.shop_table.cart tbody tr.cart_item{
  border-bottom: 1px solid var(--carrito-borde);
}
table.shop_table.cart tbody tr.cart_item td{
  vertical-align: middle;
  padding: 16px 14px;
  border: none;
}

/* Imagen del producto */
table.shop_table.cart td.product-thumbnail img{
  border-radius: 8px;
  width: 64px;
  height: 64px;
  object-fit: cover;
}

/* Nombre del producto */
table.shop_table.cart td.product-name a{
  color: #1e293b;
  font-weight: 700;
  text-decoration: none;
}

/* Precio y subtotal en azul */
table.shop_table.cart td.product-price .amount,
table.shop_table.cart td.product-subtotal .amount{
  color: var(--carrito-azul);
  font-weight: 700;
}

/* ====== Selector de cantidad (input) estilo píldora ====== */
table.shop_table.cart td.product-quantity .quantity{
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--carrito-azul);
  border-radius: 30px;
  overflow: hidden;
  padding: 2px 6px;
}
table.shop_table.cart td.product-quantity input.qty{
  border: none;
  box-shadow: none;
  width: 40px;
  height: 28px;
  text-align: center;
  color: var(--carrito-azul);
  font-weight: 700;
  background: transparent;
}
/* Oculta las flechitas nativas del input number */
table.shop_table.cart input.qty::-webkit-inner-spin-button,
table.shop_table.cart input.qty::-webkit-outer-spin-button{
  -webkit-appearance: none;
  margin: 0;
}
table.shop_table.cart input.qty{
  -moz-appearance: textfield;
}

/* Botón eliminar (la X) más discreto */
table.shop_table.cart td.product-remove a.remove{
  color: #94a3b8;
}

/* ====== Fila de cupón / "tarjeta regalo" ====== */
table.shop_table.cart tr td.actions{
  background: transparent;
  border: none;
  padding: 20px 14px;
}
table.shop_table.cart .coupon{
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--carrito-borde);
  padding-top: 20px;
  margin-top: 10px;
}
table.shop_table.cart .coupon #coupon_code{
  flex: 1;
  max-width: 320px;
  border: 1px solid var(--carrito-azul);
  border-radius: 8px;
  height: 44px;
  padding: 0 14px;
}
table.shop_table.cart .coupon button[name="apply_coupon"]{
  background: var(--carrito-azul);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 28px;
  font-weight: 700;
  cursor: pointer;
}
table.shop_table.cart .coupon button[name="apply_coupon"]:hover{
  background: var(--carrito-azul-oscuro);
}

/* Botón "Actualizar carrito" */
table.shop_table.cart button[name="update_cart"]{
  background: transparent;
  border: 1px solid var(--carrito-borde);
  border-radius: 8px;
  padding: 10px 18px;
  color: #64748b;
}

/* ====== Caja de Totales ====== */
.cart-collaterals{
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}
.elementor-widget-woocommerce-cart .cart-collaterals .cart_totals,
.cart-collaterals .cart_totals{
  width: 100%;
  max-width: 580px; /* ← ancho aumentado (antes 340px) */
  background: #fff !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border: none !important;
}

/* Encabezado "Totales del carrito" forzado en azul */
.elementor-widget-woocommerce-cart .cart-collaterals .cart_totals > h2,
.cart-collaterals .cart_totals h2{
  background: var(--carrito-azul) !important;
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 20px !important;
  margin: 0 !important;
  border-radius: 14px 14px 0 0 !important;
}

.cart-collaterals .cart_totals table.shop_table{
  border: none;
  width: 100%;
}
.cart-collaterals .cart_totals table.shop_table tr{
  border-bottom: 1px solid var(--carrito-borde);
}
.cart-collaterals .cart_totals table.shop_table th,
.cart-collaterals .cart_totals table.shop_table td{
  border: none;
  padding: 14px 20px;
  color: var(--carrito-azul);
  font-weight: 600;
}
.cart-collaterals .cart_totals table.shop_table td{
  text-align: right;
  color: #1e293b;
  font-weight: 700;
}
.cart-collaterals .cart_totals tr.order-total th,
.cart-collaterals .cart_totals tr.order-total td{
  font-size: 17px;
  color: var(--carrito-azul);
}

/* Botón Finalizar compra */
.cart-collaterals .wc-proceed-to-checkout{
  padding: 18px 20px;
}
.cart-collaterals .wc-proceed-to-checkout .checkout-button{
  display: block;
  width: 100%;
  background: var(--carrito-azul);
  color: #fff !important;
  text-align: center;
  border-radius: 30px;
  padding: 14px 0;
  font-weight: 700;
  text-decoration: none;
}
.cart-collaterals .wc-proceed-to-checkout .checkout-button:hover{
  background: var(--carrito-azul-oscuro);
}

/* ====== Responsive (móvil) ====== */
@media (max-width: 768px){
  table.shop_table.cart thead{ display: none; }
  table.shop_table.cart tbody tr.cart_item{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px;
  }
  .cart-collaterals{ justify-content: center; }
  .cart-collaterals .cart_totals{ max-width: 100%; }
}/* End custom CSS */