/* ============================================
   CARRITO - Estilos coherentes con inicio
   ============================================ */

/* Wrapper principal con mismo fondo que inicio */
.carrito-wrapper {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(circle at 30% 20%, rgba(107, 74, 124, 0.15), transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(233, 165, 58, 0.12), transparent 50%),
              linear-gradient(180deg, #0a0e1a 0%, #050810 100%);
  padding-top: 100px;
  padding-bottom: 50px;
  overflow: hidden;
}

.carrito-wrapper > .container {
  position: relative;
  z-index: 2;
}

/* Glows flotantes - mismo estilo que inicio */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float-glow 20s ease-in-out infinite;
  pointer-events: none;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(77, 208, 225, 0.4), transparent);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(171, 71, 188, 0.3), transparent);
  top: 60%;
  right: 15%;
  animation-delay: 7s;
}

.hero-glow-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(233, 165, 58, 0.25), transparent);
  bottom: 20%;
  left: 50%;
  animation-delay: 14s;
}

@keyframes float-glow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Breadcrumb light */
.breadcrumb-light .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-light .breadcrumb-item a:hover {
  color: #e9a53a;
}

.breadcrumb-light .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* Titulo con gradiente liquido */
h1.gradient-liquid {
  display: inline-block;
  background: linear-gradient(135deg, var(--liquid-cyan), var(--liquid-purple), var(--liquid-pink), var(--amber-glow));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 8s ease infinite;
}

@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Carrito vacio */
.carrito-vacio {
  text-align: center;
  padding: 80px 20px;
  position: relative;
  z-index: 2;
}

.empty-icon {
  font-size: 5rem;
  color: rgba(233, 165, 58, 0.5);
  margin-bottom: 1.5rem;
  animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.carrito-vacio h2 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-weight: 700;
}

.carrito-vacio p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Glass card - efecto cristal */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(233, 165, 58, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Item del carrito */
.carrito-item {
  margin-bottom: 1rem;
}

.item-image-link {
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  transition: transform 0.3s ease;
}

.item-image-link:hover {
  transform: scale(1.05);
}

.item-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 1rem;
  transition: transform 0.3s ease;
}

.item-title {
  margin-bottom: 0.5rem;
}

.item-title a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.item-title a:hover {
  color: #e9a53a;
}

.item-precio {
  color: #e9a53a;
  font-size: 1.25rem;
  font-weight: 700;
}

.item-precio-original {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: line-through;
  font-size: 1rem;
}

.stock-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.stock-info i {
  color: #4ade80;
}

.item-subtotal {
  color: #e9a53a;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Controles de cantidad */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.25rem;
}

.qty-btn {
  width: 35px;
  height: 35px;
  border-radius: 0.5rem;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.qty-btn:hover:not(:disabled) {
  background: rgba(233, 165, 58, 0.3);
  transform: scale(1.1);
}

.qty-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.quantity-control input {
  width: 50px;
  text-align: center;
  border: none;
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  outline: none;
}

/* Botones */
.btn-eliminar {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-eliminar:hover {
  background: rgba(255, 107, 107, 0.2);
  border-color: rgba(255, 107, 107, 0.5);
  color: #ff6b6b;
  transform: translateY(-2px);
}

.btn-vaciar {
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-vaciar:hover {
  background: rgba(255, 107, 107, 0.2);
  border-color: rgba(255, 107, 107, 0.5);
  color: #ff6b6b;
}

/* Resumen del carrito */
.resumen-carrito {
  position: sticky;
  top: 120px;
}

.resumen-carrito h4 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.resumen-linea {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.resumen-total {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0 1rem;
  margin-top: 1rem;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  font-size: 1.5rem;
  font-weight: 700;
  color: #e9a53a;
}

.resumen-carrito .btn-magic {
  margin-top: 1.5rem;
}

/* Alert info */
.alert-info {
  background-color: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #bae6fd;
  border-radius: 0.75rem;
}

/* Responsive */
@media (max-width: 991.98px) {
  .carrito-wrapper {
    padding-top: 90px;
  }

  .item-image {
    width: 80px;
    height: 80px;
  }

  .resumen-carrito {
    position: relative;
    top: 0;
    margin-top: 2rem;
  }

  .item-subtotal {
    font-size: 1.25rem;
    margin-top: 1rem;
  }
}

@media (max-width: 575.98px) {
  .carrito-vacio {
    padding: 60px 15px;
  }

  .empty-icon {
    font-size: 4rem;
  }

  .item-image {
    width: 70px;
    height: 70px;
  }

  .item-precio {
    font-size: 1.1rem;
  }

  .item-subtotal {
    font-size: 1.1rem;
  }

  .quantity-control {
    width: 100%;
  }
}
