/* assets/css/base.css */
/* Reseteo básico y comportamiento global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ===== ANIMACIONES COMPARTIDAS ===== */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== CLASES DE SKELETON (Carga esquelética) ===== */
.skeleton {
  border-radius: 4px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-title {
  height: 20px;
  width: 70%;
  border-radius: 4px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-text {
  height: 14px;
  width: 100%;
  border-radius: 4px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-text-half {
  width: 50%;
}

.skeleton-button {
  height: 36px;
  width: 100%;
  border-radius: 4px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

#cart-modal {
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
}
#cart-modal.open {
  transform: translateX(0);
}
#cart-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ===== CLASE DE TOAST (Mensajes emergentes) ===== */
.toast {
  animation: fadeInDown 0.3s ease-out;
}