/* Ürün kutusunu tam esnek sütun yap */
.productBox {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.productBox:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
  transform: translateY(-3px);
  border-color: #e0e0e0;
}

/* Görsel sarmalayıcı — sabit en-boy oranı ile tüm görseller aynı yükseklikte */
.item-product-image-box {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 kare oran — gerekirse 75% (4:3) veya 80% yapabilirsiniz */
  overflow: hidden;
  background-color: #fafafa;
  flex-shrink: 0;
}

/* Görsel sarmalayıcı içindeki tüm görselleri tam doldur */
.item-product-image-box > a,
.item-product-image-box > .item-product-image-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tüm ürün görseli sınıflarını sıfırla ve düzelt */
.item-product-image,
.productPhoto_250,
.productPhoto_200_x,
.item-product-image-box img,
.item-product-image-box a img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-height: unset !important;
  min-width: unset !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 8px !important;
  transition: transform 0.35s ease !important;
}

.productBox:hover .item-product-image,
.productBox:hover .item-product-image-box img {
  transform: scale(1.05) !important;
}

/* Ürün bilgi alanı — alt kısmı sabit tut, kart yüksekliği eşit olsun */
.item-product-info {
  min-height: unset !important;
  padding: 12px 14px 14px !important;
  display: flex !important;
  flex-grow: 1 !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: stretch !important;
}

/* Marka adı */
.item-product-brand,
.item-product-brand a {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #555 !important;
  margin-bottom: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

/* Ürün adı — 2 satırda kes, kayma önle */
.item-product-name {
  display: block !important;
  margin-bottom: 10px !important;
  flex-grow: 1 !important;
  min-height: 38px !important;
}

.item-product-name a {
  font-size: 13.5px !important;
  font-weight: 400 !important;
  color: #222 !important;
  text-decoration: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  white-space: normal !important;
  text-overflow: unset !important;
  line-height: 1.5 !important;
}

.item-product-name a:hover {
  color: #8b0033 !important;
}

/* Fiyat alanını her zaman en alta sabitle */
.item-product-price {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 4px 8px !important;
  margin-bottom: 10px !important;
}

/* ============================================================
   2. İNDİRİM ROZET — ÜST SOL KÖŞEYEYERLEŞTİR
   ============================================================ */

.salePriceBox,
.item-product-disc,
.productPrices .product-discount {
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 0.02em !important;
}

/* Kart üzerindeki indirim rozeti — mutlak konumlandırma */
.item-product-image-box .salePriceBox,
.item-product-image-box .product-label-new-ticket {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 2 !important;
  border-radius: 6px !important;
}

/* ============================================================
   3. SEPETE EKLE BUTONU İYİLEŞTİRMESİ
   ============================================================ */

.addSptBt,
.dontStokBt {
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  padding: 9px 16px !important;
  transition: all 0.2s ease !important;
  margin-top: 8px !important;
}

/* ============================================================
   4. KATEGORİ / ÜRÜN IZGARA KARIŞTIRMASINI ÖNLE
   ============================================================ */

/* Bootstrap sütun sarmalayıcıları eşit yükseklik için */
.row.products-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
}

.row.products-row > [class*="col-"] {
  display: flex !important;
  flex-direction: column !important;
}

/* Genel ürün kutusu sarmalayıcı */
.item-product-box {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* ============================================================
   5. FAVORİ BUTONU İYİLEŞTİRMESİ (kart üstü)
   ============================================================ */

.favitem-btn {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 2 !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  backdrop-filter: blur(4px) !important;
}

.favitem-btn:hover {
  transform: scale(1.15) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18) !important;
}

/* ============================================================
   6. GENEL SAYFA İYİLEŞTİRMELERİ
   ============================================================ */

/* Sayfalama */
.pagination li a {
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

/* Filtre panel başlıkları */
.panel-filtre .panel-title {
  font-size: 15px !important;
}

/* Kategori başlığı */
.categoriTitle h1 {
  font-size: 22px !important;
  font-weight: 700 !important;
}

/* Ürün detay sayfası görsel kutusu */
.productImageBox {
  border-radius: 16px !important;
  padding: 12px !important;
}

/* Ürün detay sayfası küçük resimler */
.productImages .product-image img {
  border-radius: 10px !important;
  transition: border-color 0.2s ease !important;
}

.productImages .product-image img:hover {
  border-color: #8b0033 !important;
}

/* ============================================================
   7. MOBİL ÜRÜN KARTI — DOKUNMA OPTİMİZASYONU
   ============================================================ */

@media screen and (max-width: 768px) {
  .item-product-image-box {
    padding-top: 85% !important; /* Mobilede biraz daha yatay */
  }

  .item-product-name {
    min-height: 32px !important;
  }

  .item-product-name a {
    font-size: 12.5px !important;
  }

  .addSptBt,
  .dontStokBt {
    font-size: 12px !important;
    padding: 8px 10px !important;
  }
}

@media screen and (max-width: 480px) {
  .item-product-image-box {
    padding-top: 90% !important;
  }

  .productBox {
    border-radius: 10px !important;
  }
}

/* Owl carousel ve swiper içindeki kartlar */
.owl-item .productBox,
.swiper-slide .productBox {
  overflow: hidden !important;
}