/* IPEKERP_POPULAR_PURCHASE_FOCUS_V1_2:BEGIN */

/*
  Popüler Ürünler kartı:
  - yapay minimum yüksekliği kaldır
  - veri satırlarını karttan çıkar
  - detay sayfasına dokunma
*/
body.sf-home-concept[data-c5-live-home]
#urunler [data-c5-product-grid] > .sf-product-card.sf-product-card--stage3 {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding-bottom: 14px !important;
}

/*
  Grid kendi satırındaki kartları doğal olarak stretch edeceği için,
  sabit 584px olmadan da kart tabanları dengeli kalır.
*/
body.sf-home-concept[data-c5-live-home]
#urunler [data-c5-product-grid] {
  align-items: stretch !important;
}

/* Karttan çıkarılan üç bilgi satırı. Wrapper dahil tamamen akış dışı. */
body.sf-home-concept[data-c5-live-home]
#urunler [data-c5-product-grid] > article.sf-product-card
.ipek-popular-compatibility-hidden,
body.sf-home-concept[data-c5-live-home]
#urunler [data-c5-product-grid] > article.sf-product-card
.ipek-popular-vat-hidden,
body.sf-home-concept[data-c5-live-home]
#urunler [data-c5-product-grid] > article.sf-product-card
.ipek-popular-original-stock-hidden {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Önceki sürümden kalabilecek görsel üstü stok rozetini kesin kaldır. */
body.sf-home-concept[data-c5-live-home]
#urunler [data-c5-product-grid] > article.sf-product-card
.ipek-popular-stock-badge {
  display: none !important;
}

/*
  Önceki katmanlarda kalan compatibility/spacer işaretlerini
  temizlenmiş kartta sıfırla.
*/
body.sf-home-concept[data-c5-live-home]
#urunler [data-c5-product-grid] > article.sf-product-card.ipek-popular-card-clean
.ipek-popular-empty-row {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* CTA kartın son odağı olarak altta kalabilir; yapay kart yüksekliği artık yok. */
body.sf-home-concept[data-c5-live-home]
#urunler [data-c5-product-grid] > article.sf-product-card.ipek-popular-card-clean
.sf-product-card__actions {
  margin-top: auto !important;
}

@media (max-width: 760px) {
  body.sf-home-concept[data-c5-live-home]
  #urunler [data-c5-product-grid] > .sf-product-card.sf-product-card--stage3 {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-bottom: 12px !important;
  }
}

/* IPEKERP_POPULAR_PURCHASE_FOCUS_V1_2:END */

/* IPEKERP_POPULAR_PRODUCTS_EXACT_FLEX_GAP_FIX_V1:BEGIN */

/*
  Exact root-cause fix.
  Scope: homepage > #urunler > stage3 product cards only.
*/

body.sf-home-concept[data-c5-live-home]
#urunler [data-c5-product-grid] {
  align-items: start !important;
}

body.sf-home-concept[data-c5-live-home]
#urunler [data-c5-product-grid] > article.sf-product-card.sf-product-card--stage3 {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  align-self: start !important;
}

/*
  storefront.css defines .sf-product-card__link as flex:1 1 auto.
  On the home card that flex-grow reserves the unused vertical area.
*/
body.sf-home-concept[data-c5-live-home]
#urunler [data-c5-product-grid] > article.sf-product-card.sf-product-card--stage3
.sf-product-card__link {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
}

/*
  storefront.css also defines .sf-product-card__body as flex:1 1 auto.
  After compatibility copy is removed this is the direct source of the
  visible title-to-price blank block.
*/
body.sf-home-concept[data-c5-live-home]
#urunler [data-c5-product-grid] > article.sf-product-card.sf-product-card--stage3
.sf-product-card__body {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
}

/*
  Exact compatibility wrapper.
  Base CSS gives this element min/max-height:36px, so hiding only its text
  cannot collapse the row.
*/
body.sf-home-concept[data-c5-live-home]
#urunler [data-c5-product-grid] > article.sf-product-card.sf-product-card--stage3
.sf-product-card__compat {
  display: none !important;
  min-height: 0 !important;
  max-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/*
  Do not let an earlier cleanup rule push the CTA to the bottom of an
  artificially tall flex card.
*/
body.sf-home-concept[data-c5-live-home]
#urunler [data-c5-product-grid] > article.sf-product-card.sf-product-card--stage3
.sf-product-card__actions {
  margin-top: 14px !important;
}

@media (max-width: 760px) {
  body.sf-home-concept[data-c5-live-home]
  #urunler [data-c5-product-grid] {
    align-items: start !important;
  }

  body.sf-home-concept[data-c5-live-home]
  #urunler [data-c5-product-grid] > article.sf-product-card.sf-product-card--stage3 {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: start !important;
  }
}

/* IPEKERP_POPULAR_PRODUCTS_EXACT_FLEX_GAP_FIX_V1:END */
