:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(0 0% 9%);
  --accent: hsl(42 89% 54%);
}

body {
  overflow-x: hidden;
}

/* Küçük ekranda filtre çubuğu öğelerinin üst üste binmesini önle */
@media (max-width: 480px) {
  select#sortSelect {
    min-width: 100%;
    display: block;
  }
  /* Filtre barının kahraman bloka yapışmasını azaltmak için alt boşluk */
  .filter-safe-bottom { padding-bottom: 8px; }
  .filter-safe-bottom a[href="#iletisim"]{ width: 100% !important; }
  /* CTA ve filtre bar arasında tampon */
  .hero-cta + .filter-safe-bottom { margin-top: 6px; }
}

.font-serif {
  font-family: 'Playfair Display', serif;
}

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-card {
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ürün kartı içeriğini düzenle */
.product-card .product-image-container {
  flex-shrink: 0;
}

.product-card .product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card .product-details {
  flex: 1;
}

.product-card .product-actions {
  margin-top: auto;
  padding-top: 1rem;
}

.filter-badge {
  transition: all .2s ease;
}

.filter-badge:hover {
  transform: scale(1.05);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modal-overlay {
  backdrop-filter: blur(8px);
  -webkit-overflow-scrolling: touch;
}

.animate-fade-in {
  animation: fadeIn .5s ease-out;
}

.animate-slide-up {
  animation: slideUp .3s ease-out;
}

/* Ürün grid düzeni */
.products-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* Mobil için daha kompakt düzen */
@media (max-width: 639px) {
  .products-grid {
    gap: 1rem;
  }
  
  .product-card .product-content {
    padding: 1rem 0.75rem 0.75rem;
  }
}

/* Ürün kartı yükseklik eşitleme */
.products-grid .animate-fade-in {
  height: 100%;
  display: flex;
}

.products-grid .animate-fade-in > div {
  width: 100%;
  height: 100%;
}

/* Ürün kartı içerik düzeni */
.product-card .product-content {
  min-height: 0;
  flex: 1;
}

.product-card .product-info {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card .product-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Metin uzunluğu kontrolü */
.product-card .product-details h3 {
  min-height: 2.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-details .line-clamp-2 {
  min-height: 2.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Kategori etiketleri için minimum yükseklik */
.product-card .product-details .flex.items-center.gap-2 {
  min-height: 1.5rem;
}

/* Kategori etiketleri container'ı */
.product-card .product-details .flex.items-center.gap-2 .flex.flex-wrap.gap-1 {
  min-height: 1.5rem;
  align-items: flex-start;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}