/* === OYEDU – Woo fixes (yalnızca Woo sayfaları) === */

/* --- SINGLE PRODUCT: ana görsel kutusu sabitlenir, aşağı uzama biter --- */
body.single-product .woocommerce div.product div.images {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;            /* görsel alanı yüksekliği */
  background: #fff;
  border-radius: 16px;
  padding: 12px;
}
body.single-product .woocommerce div.product div.images img {
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Woocomm. galeri wrapper’ı taşmasın */
body.single-product .woocommerce div.product .woocommerce-product-gallery__wrapper {
  display: flex;
  align-items: center;
}

/* --- RELATED / UPSELL / BENZER ÜRÜNLER KARTLARI --- */
.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;            /* kartların boyunu eşitler */
  border-radius: 16px;
}

/* Kart içindeki görsel: sabit yükseklik + taşmadan sığdırma */
.woocommerce ul.products li.product a img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
}

/* Başlık 2 satırı geçmesin, hizalar sabit kalsın */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.2em; /* iki satır yer tut */
}

/* Fiyat + butonlar aşağıda kalsın */
.woocommerce ul.products li.product .price { margin-top: 6px; }
.woocommerce ul.products li.product .button {
  margin-top: auto;             /* butonu karta göre aşağı iter */
  align-self: flex-start;
  border-radius: 999px;
}