/* =========================================
   SUPLEFARMA — Custom Styles
   ========================================= */

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.animate-fade-up {
  animation: fadeUp 0.8s ease-out both;
}
.animate-modal-in {
  animation: modalIn 0.3s ease-out both;
}

/* Hero cross pattern */
.hero-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Smooth scroll offset for sticky header */
html {
  scroll-padding-top: 5rem;
}

/* Header scroll state */
.header-scrolled {
  box-shadow: 0 1px 20px rgba(10, 77, 110, 0.08);
}

/* Product card image */
.product-img-container {
  background: linear-gradient(135deg, #EDF9FB 0%, #F5F9E8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-img-container img {
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-container img {
  transform: scale(1.05);
}

/* Product card */
.product-card {
  transition: all 0.3s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 77, 110, 0.1);
}

/* Featured badge */
.featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #c5dbe5;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8db7cb;
}

/* Select arrow custom */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  padding-right: 2.5rem;
}

/* Placeholder image style */
.placeholder-img {
  background: linear-gradient(135deg, #EDF9FB 0%, #E8F2C5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid #6BBFD0;
  outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-up,
  .animate-modal-in {
    animation: none;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}
