/* Estilos para el carrito de compras */

.cart-container {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
}

.cart-content {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

/* Header de la tabla */
.cart-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 2px solid #f47b20;
  margin-bottom: 20px;
}

.header-item {
  font-weight: 600;
  color: #f47b20;
  font-size: 16px;
  text-align: center;
}

.header-item:first-child {
  text-align: left;
}

/* Items del carrito */
.cart-items {
  min-height: 200px;
}

.cart-item {
  display: grid;
  grid-template-columns: 2fr 150px 160px;
  align-items: center;
  gap: 1rem;
}

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

.remove-item {
  background-color: #f47b20;
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background-color 0.3s;
  text-decoration: none;
}

.remove-item:hover {
  background-color: #e06a10;
}

.product-details {
  flex: 1;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: #333;
}

.product-description {
  font-size: 14px;
  color: #666;
  margin: 0;
  height: fit-content;
}

.item-quantity {
  display: flex;
  width: fit-content;
  border: 1px solid #e06a10;
  border-radius: 6px;
  overflow: hidden;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input {
  width: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid #e06a10;
  border-right: 1px solid #e06a10;
  
}

.btn-increase,
.btn-decrease {
  width: 32px;
  border: none;
  background: white;
  color: #e06a10;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
}

.item-price {
  text-align: center;
}

.price {
  font-size: 18px;
  font-weight: 600;
  color: #f47b20;
}

/* Total del carrito */
.cart-total {
  margin: 30px 0 20px 0;
  text-align: right;
}

.total-row {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: 20px;
  font-weight: 600;
}

.total-label {
  color: #f47b20;
}

.total-amount {
  color: #f47b20;
}

/* Notas del carrito */
.cart-notes {
  margin: 20px 0;
  font-size: 14px;
  color: #f47b20;
  text-align: center;
}

.cart-notes p {
  margin: 5px 0;
}

/* Acciones del carrito */
.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  gap: 20px;
}

.add-more-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-add-more {
  background-color: #f47b20;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn-add-more:hover {
  background-color: #e06a10;
}

.add-more-text {
  color: #f47b20;
  font-weight: 500;
}

.btn-submit-order {
  background-color: #f47b20;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
}

.btn-submit-order:hover {
  background-color: #e06a10;
}

/* Estado vacío del carrito */
.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.cart-empty h3 {
  color: #f47b20;
  margin-bottom: 10px;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
  .cart-container {
    padding: 20px 15px;
  }

  .cart-content {
    padding: 20px;
  }

  .cart-table-header {
    grid-template-columns: 2fr 80px 80px;
    gap: 10px;
  }

  .cart-item {
    grid-template-columns: 2fr 80px 80px;
    gap: 10px;
  }

  .header-item {
    font-size: 14px;
  }

  .product-name {
    font-size: 14px;
  }

  .product-description {
    font-size: 12px;
  }

  .quantity-input {
    width: 20px;
    padding: 6px;
    font-size: 14px;
  }

  .btn-increase,
.btn-decrease {
  width: 25px;
}

  .price {
    font-size: 16px;
  }

  .cart-actions {
    flex-direction: column;
    gap: 15px;
  }

  .btn-submit-order {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cart-table-header {
    grid-template-columns: 1.5fr 60px 70px;
    gap: 5px;
  }

  .cart-item {
    grid-template-columns: 1.5fr 60px 70px;
    gap: 5px;
  }

  .header-item {
    font-size: 12px;
  }

  .item-info {
    gap: 8px;
  }

  .remove-item {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .quantity-input {
    width: 10px;
    padding: 4px;
    font-size: 12px;
  }

  .btn-increase,
.btn-decrease {
  width: 20px;
}

  .total-row {
    font-size: 18px;
  }

  .item-price{
    width: 30px;
  }

  .price{
    font-size: 15px;
  }
}

.hidden {
  display: none;
}