/* --- Bloque de variantes de producto --- */
.nutri-product-variants {
  margin-top: 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nutri-product-variants__label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a1a;
  display: inline-block;
  margin-bottom: 0.25rem;
  letter-spacing: 0.2px;
}

.nutri-product-variants__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Botones */
.nutri-variant-btn {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid #b8c2cc;
  border-radius: 999px;
  background: #fff;
  color: #0b3557;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.nutri-variant-btn:hover {
  border-color: #0b3557;
  background: #f5f7fa;
  color: #0b3557;
  transform: translateY(-1px);
}

.nutri-variant-btn.is-active {
  background: #e8eaed;
  border-color: #b0b7c3;
  color: #0b3557;
  font-weight: 600;
}

/* Animación de carga */
.single-product.loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Bloqueo global durante el cambio de variante */
body.nutri-loading-locked {
  overflow: hidden !important;
}

.nutri-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.8);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  animation: fadeIn 0.2s ease;
}

/* Spinner */
.nutri-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(11, 53, 87, 0.2);
  border-top-color: #0b3557;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

