/* Minimalista y responsive - corrección overflow móvil */
html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    overflow-x: hidden;
}

.object-cover {
    object-fit: cover;
}

.card {
    border: 0;
    box-shadow: 0 0.25rem 0.5rem rgba(15, 15, 15, 0.04);
}

#cartBtn {
    min-width: 120px;
}

.offcanvas {
    width: 380px;
    max-width: 100%;
}

@media (max-width: 576px) {
    .offcanvas {
        width: 100% !important;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    nav .navbar-brand img {
        height: 40px;
    }

    /* Evita margen derecho en cards */
    .row.g-3 {
        margin-right: 0;
        margin-left: 0;
    }

    .col-6 {
        padding-left: .25rem;
        padding-right: .25rem;
    }
}

.small-input {
    max-width: 140px;
    display: inline-block;
}

.badge-bs {
    background: #0d6efd;
    color: #fff;
}

.text-bs {
    color: #0d6efd;
}
/* Toast/alerta al añadir al carrito */
#addToast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.98);
  color: #000;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 280ms cubic-bezier(.2,.9,.3,1), opacity 220ms ease;
  min-width: 220px;
}

/* Visible state */
#addToast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Producto añadido: efecto latido */
.card.added-animate {
  animation: udca-pop 520ms cubic-bezier(.2,.9,.3,1);
  box-shadow: 0 12px 30px rgba(13,110,253,0.12);
  border-radius: 10px;
}

@keyframes udca-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.04); }
  60% { transform: scale(0.99); }
  100% { transform: scale(1); }
}

/* Icono dentro del toast */
#addToast .toast-thumb {
  width:44px;
  height:44px;
  border-radius:8px;
  overflow:hidden;
  flex: 0 0 44px;
  display:inline-block;
}
#addToast .toast-body { font-size:0.95rem; line-height:1.05; }
#addToast .toast-actions { display:flex; gap:0.5rem; margin-left:auto; }
#addToast .toast-actions .btn { font-size:0.85rem; padding:0.35rem 0.6rem; }

/*Estilos generales del boton whatsapp*/
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  animation: breathe 2s ease-in-out infinite;
}

.banner-responsive {
  width: 970px;
  height: 90px;
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .banner-responsive {
    width: 300px;
    height: 50px;
  }
}