/* Aplicamos las fuentes base */
html, body {
  width: 100%;
  overflow-x: hidden;
}
body {
  font-family: 'body', sans-serif;
  color: #5D4A66; /* kawaii-dark */
}
h1, h2, h3, h4, h5, h6, button, label, input, select {
  font-family: 'display', sans-serif;
  letter-spacing: 0.05em;
}

/* Efecto "bubble" en botones */
.btn-kawaii {
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  font-family: 'display', sans-serif;
}
.btn-kawaii:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}
.btn-kawaii:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}
.btn-kawaii:disabled,
.add-to-cart-btn:disabled {
  background-color: #d1d5db; /* gray-300 */
  color: #6b7280; /* gray-500 */
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.add-to-cart-btn:disabled:hover {
  background-color: #d1d5db;
  color: #6b7280;
  transform: none;
  box-shadow: none;
}


/* Efecto "wiggle" en tarjetas de producto */
.product-card:hover {
   transform: rotate(1.5deg) scale(1.02);
   transition: transform 0.2s ease-in-out;
}

/* Divisor ondulado (SVG) */
.wavy-divider {
  position: relative;
  background: #BDE0FE; /* kawaii-blue */
  color: #5D4A66; /* kawaii-dark */
  padding-top: 6rem;
  padding-bottom: 6rem;
  margin-top: -1px;
}
.wavy-divider.top-wave::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23FFFACD' fill-opacity='1' d='M0,160L48,181.3C96,203,192,245,288,250.7C384,256,480,224,576,192C672,160,768,128,864,138.7C960,149,1056,203,1152,208C1248,213,1344,171,1392,149.3L1440,128L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  transform: rotate(180deg);
}
.wavy-divider.bottom-wave::after {
   content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,160L48,181.3C96,203,192,245,288,250.7C384,256,480,224,576,192C672,160,768,128,864,138.7C960,149,1056,203,1152,208C1248,213,1344,171,1392,149.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
}

/* Estilos para filtros de categoría */
.btn-categoria {
  font-family: 'display', sans-serif;
  background-color: #ffffff;
  color: #5D4A66;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.btn-categoria:hover {
  background-color: #FFC0CB;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}
.btn-categoria-active {
  background-color: #A2E4B8;
  color: #5D4A66;
  border: 2px solid #5D4A66;
  transform: scale(1.05);
}

/* === NUEVO: AVISO DE POCAS EXISTENCIAS (TARJETA) === */
.stock-warning {
  position: absolute;
  top: 0.75rem; /* 12px */
  left: 0.75rem; /* 12px */
  background-color: #ef4444; /* red-500 */
  color: white;
  padding: 0.25rem 0.75rem; /* py-1 px-3 */
  border-radius: 9999px; /* rounded-full */
  font-size: 0.75rem; /* text-xs */
  font-weight: bold;
  font-family: 'display', sans-serif;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.stock-warning.sold-out {
  background-color: #6b7280; /* gray-500 */
}

/* === NUEVO: ANIMACIÓN "SHAKE" PARA BOTÓN DE CARRITO === */
.shake-animation {
  animation: shake 0.5s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px) rotate(-3deg); }
  75% { transform: translateX(5px) rotate(3deg); }
}

/* === NUEVO: NOTIFICACIÓN "TOAST" === */
.toast {
  background-color: #5D4A66; /* kawaii-dark */
  color: white;
  padding: 1rem 1.5rem; /* p-4 px-6 */
  border-radius: 0.75rem; /* rounded-xl */
  box-shadow: 0 10px 15px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem; /* space-x-3 */
  animation: slideIn 0.3s ease, slideOut 0.3s ease 2.7s forwards;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}