/* 1. Ürün listesini esnek ve eşit hizalı grid/flex yapısına dönüştür */
.icerik {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important; /* Tüm kartların boyunu eşitler */
}

/* Sitenizdeki inline 'float:left; width:24.99%' yapısını modern flex kutusuna çevir */
.icerik > div[style*="float:left"] {
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  padding: 10px !important;
}

/* 2. Kart gövdesini flex yaparak alt butonları en alta sabitler */
.urun {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid #eee;
  padding: 10px;
  background: #fff;
}

.urun > div {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* 3. Ürün İsmi: Sabit 2 satır ve hizalı yükseklik */
.urun_ismi {
  min-height: 44px;
  max-height: 44px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  margin-bottom: 8px;
  text-align: center;
}

/* 4. Fiyat Alanı: Uzun fiyatların kırılmasını önler ve sabit yükseklik verir */
.urun_fiyatlar {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 6px 0;
}

.urun_fiyati span,
.urun_kdvdahil_fiyati span {
  white-space: nowrap !important; /* Fiyatın TL ile alt satıra düşmesini engeller */
  display: inline-block;
}

.urun_fiyati {
  font-size: 13px;
  color: #777;
}

.urun_kdvdahil_fiyati {
  font-size: 16px;
  font-weight: 700;
  color: #e53935;
}

/* 5. Varyant Alanı (10 Koli vb.): Sabit yükseklik ve taşmayı engelleme */
[component="product-variant"] {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pv-wrapper {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pv-price {
  white-space: nowrap !important;
  font-weight: 600;
}

/* 6. Butonları her zaman kartın en altına it */
.butonveikonlar {
  margin-top: auto !important;
  padding-top: 10px;
}

/* Responsive (Mobil / Tablet Desteği) */
@media (max-width: 992px) {
  .icerik > div[style*="float:left"] {
    width: 50% !important; /* Tablette 2'li */
  }
}

@media (max-width: 576px) {
  .icerik > div[style*="float:left"] {
    width: 100% !important; /* Mobilde tekli */
  }
}