:root {
  --vm: "Yerli";
  /* --vm: "Made in\ATurkey"; */
  --vn: "Yeni";
  /* --vn: "New"; */
  --vs: "Sınırlı";
  /* --vs: "Limited"; */
  --vtu: "TÜKENDi";
  /* --vtu: "Not available"; */
}
#sayfalamax{
    width: 98%;
    margin: 10px auto;
}
#urunler {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  padding: 10px 2% 30px;
}
#urunler>a{
    max-width: 98%;
    display: inline-block;
}
#urunler .product-card {
  width: 300px;
  padding: 20px;
  max-width: 100%; /* Kartı biraz genişlettik (260px resim + padding) */
  border: 1px solid #eee; /* Daha hafif bir gri tonu */
  padding: 20px;
  display: inline-block;
  flex-direction: column;
  /*gap: 15px;*/
  border-radius: 12px;
  font-family: "PT Sans", system-ui, sans-serif;
  background: #fff;
  /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);*/ /* Hafif derinlik */
  -webkit-box-shadow: 0 0px 18px rgb(0 0 0 / 10%);
  box-shadow: 0 0px 18px rgb(0 0 0 / 10%);
  position: relative;
  /* margin: 5px;*/
  margin-top: 20px;
  position: relative;
  cursor: pointer;
}

#urunler .image-frame {
  width: 260px;
  max-width: 100%;
  height: 260px; /* BU SATIR MUTLAKA OLMALI */
  /* background-color: #f4f6f7;
  box-shadow: inset -3px -3px 8px rgba(0, 0, 0, 0.02),
    inset 8px 8px 8px rgba(0, 0, 0, 0.04);*/
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 0 auto;
}

#urunler .image-frame::before {
  content: attr(data-urnkd);
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  /* z-index: 11111; */
  margin: auto;
  width: max-content;
  border-radius: 16px;
  border: 1px solid #eee;
  background-color: #ffffff;
  padding: 2px 8px;
  font-size: 14px;
  /* font-size: 12px; */
  /*font-weight: bold;*/

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 90%;
}

/* Resimlerin çerçeveye sığması için */
#urunler .image-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
#urunler .image-frame img:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease-in-out;
}

/* Kare Resim Alanı */
#urunler .image-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f9f9f9; /* Resim arkasına hafif fon */
  border-radius: 8px;
  overflow: hidden;
}

#urunler .product-image {
  border-radius: 8px;
   /*aspect-ratio: 1 / 1; Kare formu garanti eder */
  object-fit: contain; /* Resmi bozmadan kutuya sığdırır */
  display: block; /* Görüntü hatalarını önlemek için */

  /* 2. Resim Ayarları */

  /* Resim asla çerçeveden büyük olamaz */
  max-width: 100%;
  max-height: 100%;

  /* Kendi en/boy oranını koru, bozulma/sünme yapma */
  width: auto;
  height: auto;
}

/* 1. Dış Taşıyıcı: Yüksekliği burada sabitliyoruz */
#urunler .title-container {
  height: 2.8em;
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 19px;
}

/* 2. İçteki Link: Üç nokta (ellipsis) görevini yapar */
#urunler .product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  /* Görsel Ayarlar */
  text-decoration: none;
  color: #697f91;
  font-size: 14px;
  line-height: 1.3; /* Satır yüksekliğini biraz daralttık */
  text-align: center; /* Metni yatayda da ortalamak isterseniz */
  position: relative;
}

#urunler .title-container::before {
  content: attr(data-manset);
  font-size: 11px;
  color: #8bc34a;
  margin: auto;
  margin: 10px 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: auto;
  margin-top: -13px;
  max-width: 89%;
  width: auto;
  /* margin: auto; */
  background: white;
  -webkit-box-shadow: 0 0px 18px rgb(0 0 0 / 10%);
  box-shadow: 0 0px 18px rgb(0 0 0 / 10%);
  border-radius: 8px;
  padding: 0 4px;
  z-index: 1;
  position: relative;
  line-height: 16px;
}

/* Alt Bölüm */
#urunler .product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Fiyat ve butonu dikeyde ortalar */
  padding-bottom: 4px !important; /* Min alım miktarı için, Alt kısma biraz boşluk ekle */
  position: relative;
}

#urunler ._stk0 .product-footer:before {
  content: var(--vtu);
  display: inherit;
  position: absolute;
  right: -7px;
  border-radius: 4px;
  /* bottom: 7%; */
  padding: 0px 6px;
  background-color: red;
  /* border-bottom: 8px solid #9155ad; */
  color: white;
  /* width: 58px; */
  /* height: 33px; */
  font-size: 13px;
  line-height: 40px;
  z-index: 1;
  transform: scale(0.8);
  text-align: center;
}

#urunler .price-wrapper {
  display: flex;
  flex-direction: column;
}

#urunler .price-label {
  font-size: 12px;
  color: #888;
  display: block;
  text-align: left;
}

#urunler .price-value {
  font-size: 18px;
  font-weight: 800;
  /*color: #697f91;*/
  color: #59b320;
  position: relative;
  top: -8px;
}

/* Ekle Butonu */
#urunler .add-button {
  width: 36px;
  height: 36px;
  background-color: #697f91;
  box-shadow: inset -3px -3px 3px rgb(0 0 0 / 10%),
    inset 3px 3px 3px rgb(0 0 0 / 10%), inset -3px -3px 3px rgb(0 0 0 / 10%),
    inset 2px 2px 2px rgb(0 0 0 / 3%);
  color: white;
  border: none;
  border-radius: 50%; /* Tam yuvarlak buton */
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.2s;
  z-index: 1;
  position: absolute;
  right: -1px;
  display: inline-block;
  pointer-events: none;
}

#urunler .add-button:hover {
  background-color: #333;
  transform: scale(1.05); /* Üzerine gelince hafif büyüme */
}

#urunler ._stk0 .add-button:before {
  content: var(--vtu);
  display: inherit;
  position: absolute;
  right: 4px;
  border-radius: 4px;
  bottom: 7%;
  padding: 0px 6px;
  background-color: red;
  border-bottom: 8px solid #9155ad;
  color: white;
  height: 33px;
  font-size: 12px;
  line-height: 40px;
  z-index: 1;
  transform: scale(0.8);
  text-align: center;
}
#urunler ._stk0 .add-button {
  display: none;
}

#urunler .mina {
  position: absolute;
  bottom: -6px;
  left: 5%;
  /*right: 5%;*/
  font-size: 12px;
  color: #697f91;
  background-color: #fff;
  border-radius: 8px;
  padding: 0px 6px;
  z-index: 0;
  -webkit-box-shadow: 0 0px 18px rgb(0 0 0 / 10%);
  box-shadow: 0 0px 18px rgb(0 0 0 / 10%);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 90%;
}

@media (min-width: 1608px) and (max-width: 1927px) {
  #urunler .product-card {
    /*width: 15%; Küçük ekranlarda kart genişliğini %48 olarak ayarla */
    /*gap: 10px;*/
    padding: 10px;
  }
}
@media (max-width: 1286px) {
  #urunler .image-frame::before {
    max-width: 85%;
    font-size: 13px;
  }
}
@media (min-width: 1288px) and (max-width: 1607px) {
  #urunler .product-card {
    /* width: 18%; Küçük ekranlarda kart genişliğini %48 olarak ayarla */
    /*gap: 10px;*/
    padding: 10px;
  }
}
@media (min-width: 968px) and (max-width: 1287px) {
  #urunler .product-card {
    /* width: 23%; Küçük ekranlarda kart genişliğini %48 olarak ayarla */
    /*gap: 5px;*/
    padding: 10px;
  }
}
@media (min-width: 648px) and (max-width: 967px) {
  #urunler .product-card {
     /*width: 31%; Küçük ekranlarda kart genişliğini %48 olarak ayarla */
    /* gap: 5px;*/
    padding: 10px;
  }
}
@media (min-width: 355px) and (max-width: 647px) {
  #urunler .product-card {
    /* width: 47%; Küçük ekranlarda kart genişliğini %48 olarak ayarla */
    /* gap: 5px;*/
    padding: 10px;
  }
  /*#urunler .image-frame {
    max-height: 145px;
  }*/
}

.almiktar {
  padding: 12px !important;
  width: 80px !important;
  margin-bottom: 30px;
}

._gnc {
 /* border-bottom: 1px solid #d8d8d8;*/
 /* padding-bottom: 10px;*/
  margin-bottom: 10px;
}

._gnc button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  margin-bottom: 8px !important;
  font-size: 14px;
  cursor: pointer;
  margin: 0 16px;
}

.edit input[type="text"] {
  width: 150px;
  padding: 8px;
  margin-top: 8px;
  border-block-color: #697f91;
  color: #eb1fa9;
  font-size: 13px;
  font-weight: bold;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}
