/* ===== LEVEL UP FITNESS — CARRITO DE COMPRAS ===== */
/* Paleta: negro + lime #AAFF00. Ajusta las variables si tu web usa otros tonos. */

:root {
  --lu-black: #0d0d0d;
  --lu-black-soft: #1a1a1a;
  --lu-lime: #AAFF00;
  --lu-lime-dark: #8fd900;
  --lu-white: #f5f5f5;
  --lu-gray: #999999;
}

/* Botón flotante del carrito (icono fijo, esquina) */
#lu-cart-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--lu-lime);
  color: var(--lu-black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  z-index: 9998;
  border: none;
  transition: transform 0.2s ease;
}
#lu-cart-fab:hover { transform: scale(1.08); }
#lu-cart-fab svg { width: 26px; height: 26px; }

#lu-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--lu-black);
  color: var(--lu-lime);
  border: 2px solid var(--lu-lime);
  font-size: 12px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow', sans-serif;
}

/* Overlay oscuro cuando el carrito está abierto */
#lu-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#lu-cart-overlay.lu-open {
  opacity: 1;
  pointer-events: auto;
}

/* Panel lateral (drawer) */
#lu-cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 92vw;
  height: 100%;
  background: var(--lu-black);
  border-left: 1px solid rgba(170,255,0,0.25);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  font-family: 'Barlow', sans-serif;
  color: var(--lu-white);
}
#lu-cart-drawer.lu-open { right: 0; }

#lu-cart-header {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#lu-cart-header h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--lu-lime);
  margin: 0;
}
#lu-cart-close {
  background: none;
  border: none;
  color: var(--lu-white);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}
#lu-cart-close:hover { color: var(--lu-lime); }

#lu-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.lu-cart-empty {
  color: var(--lu-gray);
  text-align: center;
  margin-top: 60px;
  font-size: 15px;
}

.lu-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lu-cart-item-info { flex: 1; }
.lu-cart-item-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--lu-white);
  margin: 0 0 4px 0;
}
.lu-cart-item-addon {
  font-size: 12.5px;
  color: var(--lu-lime);
  margin: 0 0 2px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lu-cart-addon-remove {
  background: none;
  border: none;
  color: var(--lu-gray);
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.lu-cart-addon-remove:hover { color: #ff5555; }

.lu-cart-addon-add {
  background: none;
  border: 1px dashed var(--lu-gray);
  color: var(--lu-gray);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 4px;
  cursor: pointer;
  margin: 2px 0 4px 0;
  transition: all 0.2s ease;
}
.lu-cart-addon-add:hover {
  border-color: var(--lu-lime);
  color: var(--lu-lime);
}
.lu-cart-item-price {
  font-size: 14px;
  color: var(--lu-gray);
}
.lu-cart-item-remove {
  background: none;
  border: none;
  color: var(--lu-gray);
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  padding: 0;
  white-space: nowrap;
}
.lu-cart-item-remove:hover { color: #ff5555; }

#lu-cart-footer {
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
#lu-cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--lu-white);
}
#lu-cart-subtotal span:last-child { color: var(--lu-lime); }

#lu-cart-checkout {
  width: 100%;
  background: var(--lu-lime);
  color: var(--lu-black);
  border: none;
  padding: 15px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 19px;
  letter-spacing: 1px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}
#lu-cart-checkout:hover { background: var(--lu-lime-dark); }
#lu-cart-checkout:disabled {
  background: #444;
  color: #888;
  cursor: not-allowed;
}

#lu-cart-error {
  color: #ff6b6b;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  display: none;
}

/* Botón "Añadido ✓" temporal en las tarjetas de producto */
.lu-added-flash {
  background: var(--lu-lime-dark) !important;
}

/* Estado activo del botón "Añadir Nutrición Premium" cuando está seleccionado */
.upsell-active {
  border-color: var(--lu-lime) !important;
  color: var(--lu-lime) !important;
  background: rgba(170,255,0,0.08) !important;
}
.upsell-active::before {
  content: '' !important;
}
