/* Home Product Styles - Idénticos a las categorías */

/* Variables del tema BebeYou */
:root {
  --bebeyou-primary: #e6bceb;
  --bebeyou-secondary: #baebe5;
  --bebeyou-body-color: #aca7a7;
  --bebeyou-heading-color: #baebe5;
  --bebeyou-gray: #989898;
  --bebeyou-gray-100: #f2f2f2;
  --bebeyou-gray-200: #e7e7e7;
  --bebeyou-gray-300: #dcdad4;
  --bebeyou-gray-500: #a09c9c;
  --bebeyou-light: #fff;
  --bebeyou-dark: #1a1a1a;
  --bebeyou-font: 'Nunito', Tahoma, sans-serif;
}

/* Animaciones y efectos para las tarjetas de producto */
.product-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(220, 218, 212, 0.3);
  font-family: var(--bebeyou-font);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(186, 235, 229, 0.15) !important;
  border-color: var(--bebeyou-primary);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-card:hover .product-overlay {
  opacity: 1 !important;
}

.product-image-wrapper {
  position: relative;
  /* height: 270px; */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: #fafafa;
  border-radius: 8px 8px 0 0;
}

.product-overlay {
  transition: opacity 0.4s ease;
  background: linear-gradient(
    45deg,
    rgba(230, 188, 235, 0.1),
    rgba(186, 235, 229, 0.1)
  ) !important;
}

/* Botones mejorados con estilos Bebeyou */
.btn {
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.3px;
  font-family: var(--bebeyou-font);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--bebeyou-primary),
    var(--bebeyou-secondary)
  );
  border: none;
  color: var(--bebeyou-light);
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--bebeyou-secondary),
    var(--bebeyou-primary)
  );
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 188, 235, 0.4);
  color: var(--bebeyou-light);
}

.btn-white {
  background: var(--bebeyou-light);
  color: var(--bebeyou-dark);
  border: 2px solid var(--bebeyou-light);
}

.btn-white:hover {
  background: var(--bebeyou-secondary);
  color: var(--bebeyou-light);
  border-color: var(--bebeyou-light);
}

.btn-outline-primary {
  border-color: var(--bebeyou-primary);
  color: var(--bebeyou-primary);
}

.btn-outline-primary:hover {
  background: var(--bebeyou-primary);
  border-color: var(--bebeyou-primary);
  color: var(--bebeyou-light);
}

/* Estados de carga para botón AJAX */
.ajax-add-to-cart.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.ajax-add-to-cart.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid var(--bebeyou-light);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Success state */
.ajax-add-to-cart.success {
  background: #28a745 !important;
  border-color: #28a745 !important;
}

/* Animación de entrada de botones */
.product-overlay-home .btn:nth-child(1) {
  transition-delay: 0.1s;
}

.product-overlay-home .btn:nth-child(2) {
  transition-delay: 0.2s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-overlay-home .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem !important;
  }

  .product-overlay-home {
    gap: 0.5rem !important;
  }
}

/* Mejoras para accesibilidad */
.product-overlay-home .btn:focus {
  outline: 2px solid var(--bebeyou-primary);
  outline-offset: 2px;
}

/* Animación suave para todo el producto */
.product-item {
  transition: all 0.3s ease;
}

.product-item:hover {
  transform: translateY(-2px);
}

/* Estilos para iconos */
.product-overlay-home .fas {
  font-size: 0.9rem;
}
