/* Lumina · main
 * Global: variables, tipografía, layout.
 * NO lleva reset: lo aporta el Reboot de Bootstrap.
 */

/* --- TIPOGRAFÍAS LUMINA ---
 * Recoleta: identidad, títulos y frases importantes.
 * Montserrat: textos, botones y contenido.
 * Recoleta es de pago: el archivo se guarda en src/assets/fonts/ (ver @font-face).
 * Mientras no esté, se usa Fraunces, que es parecida.
 */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600&family=Montserrat:wght@400;500;600&display=swap");

@font-face {
  font-family: "Recoleta";
  src: local("Recoleta"),
    local("Recoleta Regular"),
    url("../assets/fonts/recoleta-regular.woff2") format("woff2"),
    url("../assets/fonts/recoleta-regular.otf") format("opentype"),
    url("../assets/fonts/recoleta-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- PALETA DE COLORES LUMINA --- */
:root {
  /* Verdes */
  --verde-amarillento: #E9EAE5;
  --verde-claro: #D1DCCA;
  --verde-apagado: #7C9474;
  --celeste-apagado: #374F59;

  /* Naranjas */
  --naranja-claro: #F9F1E8;
  --naranja-acentuado: #DBCBBF;
  --naranja-pastel: #CBB3A1;
  --naranja-apagado: #AD784E;

  /* Oscuros */
  --negro-relajacion: #33302D;
  --negro-acentuado: #13120F;

  /* Del prototipo de Figma */
  --cafe-lumina: #3B2C2C;
  /* texto, logo y botones */
  --gris-barra: #F7F6F4;
  /* fondo de la barra del header */

  /* Tipografías */
  --fuente-titulos: "Recoleta", "Fraunces", Georgia, serif;
  --fuente-texto: "Montserrat", system-ui, sans-serif;
}

/* Notificación de producto agregado al carrito */
.cart-toast {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 9999;
  width: 340px;
  max-width: calc(100% - 30px);
  padding: 18px;
  background: #403332;
  color: #f4eee8;
  border: 1px solid #806d65;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateX(30px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.cart-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.cart-toast-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  color: #ead7c4;
}

.cart-toast-header i {
  font-size: 1.2rem;
}

.cart-toast-header strong {
  flex: 1;
  font-size: 0.95rem;
}

.cart-toast-close {
  background: none;
  border: none;
  color: #f4eee8;
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-toast-content {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

.cart-toast-content img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-toast-content strong {
  font-size: 0.95rem;
}

.cart-toast-content p {
  margin: 5px 0 0;
  color: #e0d3ca;
  font-size: 0.8rem;
}

/* Botón CTA de los toasts (ej. "Ver favoritos") */
.cart-toast-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background-color: #ead7c4;
  color: #403332;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cart-toast-cta:hover {
  background-color: #d9c2ac;
  color: #403332;
}

@media (max-width: 600px) {
  .cart-toast {
    top: 15px;
    right: 15px;
  }
}

@media screen and (min-width: 1024px) {
  .content-gap {
    gap: 3rem;
  }
}