/* TABLA CARRITO */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cart-table th,
.cart-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.cart-table th {
  background: #f8f9fa;
}

.promo-container {
  margin-bottom: 20px;
  padding: 20px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.totals-container {
  background: white; 
  padding: 20px; 
  border-radius: 4px; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
  text-align: right;
}

.totals-row {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 10px;
  font-size: 16px;
}

.total-final {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
  border-top: 2px solid #eee;
  padding-top: 10px;
  margin-top: 10px;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.qty-control {
  display: flex;
  gap: 10px;
  align-items: center;
}

.qty-control button {
  padding: 2px 8px;
  cursor: pointer;
}

.qty-control input {
  width: 50px;
  text-align: center;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.promo-inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.promo-inline-form input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#promo-msg {
  margin-left: 10px;
  font-weight: bold;
}

.cart-actions-bottom {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
}

/* CARRITO VACÍO */
.empty-cart-container {
  text-align: center;
  padding: 50px 0;
}

.empty-cart-icon {
  font-size: 50px;
  color: #ccc;
  margin-bottom: 20px;
}

.empty-cart-text {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

.hide-mobile {
  display: table-cell;
}

/* Quitar flechas de los inputs de número */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

@media (max-width: 768px) {
  .cart-table th:nth-child(2),
  .cart-table td:nth-child(2),
  .hide-mobile {
    display: none !important;
  }
}
