/* ====================================
   CARRITO PAGE STYLES
   ==================================== */

/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

/* Background */
body {
  background: url('../../img/flores/fondo.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
}

/* Container */
.carrito-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  margin: 30px auto;
  max-width: 1000px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* Title */
.titulo-carrito {
  font-family: 'Dancing Script', cursive;
  font-size: 3rem;
  color: #4a148c;
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Cart Item */
.carrito-item {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 20px;
}

.item-imagen {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}

.item-info {
  flex: 1;
}

.item-nombre {
  font-weight: bold;
  color: #4a148c;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.item-detalles {
  color: #666;
  font-size: 0.9rem;
}

/* Quantity Controls */
.cantidad-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-cantidad {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid #4a148c;
  background: white;
  color: #4a148c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-cantidad:hover {
  background: #4a148c;
  color: white;
}

.cantidad-numero {
  min-width: 40px;
  text-align: center;
  font-weight: bold;
}

/* Delete Button */
.btn-eliminar {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-eliminar:hover {
  transform: scale(1.1);
}

/* Purchase Summary */
.resumen-compra {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 15px;
  padding: 30px;
  margin-top: 30px;
}

.resumen-linea {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.resumen-total {
  border-top: 2px solid rgba(255,255,255,0.3);
  padding-top: 15px;
  margin-top: 15px;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Finalize Purchase Button */
.btn-finalizar {
  background: white;
  color: #4a148c;
  border: none;
  padding: 15px 40px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1.1rem;
  width: 100%;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.btn-finalizar:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

/* Empty Cart */
.carrito-vacio {
  text-align: center;
  padding: 60px 20px;
}

.carrito-vacio i {
  font-size: 5rem;
  color: #ccc;
  margin-bottom: 20px;
}

/* Continue Shopping Button */
.btn-seguir-comprando {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-seguir-comprando:hover {
  transform: scale(1.05);
}

/* Empty Cart Button */
.btn-vaciar-carrito {
  background: #dc3545;
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-vaciar-carrito:hover {
  transform: scale(1.05);
  background: #c82333;
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .carrito-item {
    flex-direction: column;
    text-align: center;
  }

  .item-precio-cantidad {
    width: 100%;
    justify-content: center;
  }
}
