/* Cafe Endüstriyel — masaüstü CWV (CLS/LCP): görsel yuvası ve menü yüksekliği */

@media (min-width: 992px) {
  .header-nav-cafemarkt-row.top-level-menu-main-div {
    min-height: 90px;
  }
  .header-nav-cafemarkt-row .head-new-area-left,
  .header-nav-cafemarkt-row .header-nav-all-cats-btn {
    min-height: 56px;
  }
}

.cat-detail-products-box-img,
.cat-detail-products-box-img-big,
.urun-detay-benzer-urun-box-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.cat-detail-products-box-img img,
.cat-detail-products-box-img-big img,
.urun-detay-benzer-urun-box-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.home-promo-grid__media,
.home-promo-grid__media--slide {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.home-promo-grid__media img,
.home-promo-grid__media--slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vitrin2-box-img {
  aspect-ratio: 16 / 7;
  overflow: hidden;
}
.vitrin2-box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ürün detay CLS: footer görselleri, sekmeler, stok kutusu, marka logosu */
.footer-module-box-logo {
  max-width: 328px;
}
.footer-module-box-logo img {
  width: 100%;
  height: auto;
  aspect-ratio: 966 / 266;
  display: block;
}
.footer-shop-card-area img {
  width: 257px;
  height: 26px;
  aspect-ratio: 257 / 26;
  display: block;
}
#urundetaytabs {
  min-height: 460px;
}
/* jQuery UI .tabs() defer ile geç geliyor; yorum paneli ilk boyamada açık kalıp sonra gizlenince CLS üretiyor */
#urundetaytabs:not(.ui-tabs) {
  height: 460px;
  overflow: hidden;
}
#urundetaytabs > div:not(#tabs-aciklama) {
  display: none;
}
#urundetaytabs > ul,
#urundetaytabs .ui-tabs-nav {
  min-height: 44px;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
#tabs-aciklama {
  min-height: 400px;
  height: 400px;
  overflow-y: scroll;
  box-sizing: border-box;
}
.urun-detay-sag-alan-no-stok {
  min-height: 42px;
}
.urun-detay-marka-logo-box {
  min-height: 48px;
}
.urun-detay-marka-logo-box img {
  max-height: 48px;
  width: auto;
  height: 48px;
  display: block;
}


/* Siparişle temin — liste kartı rozeti */
.cat-detail-products-box-img,
.cat-detail-products-box-img-list,
.cat-detail-products-box-img-big,
.firsat-product-box-img,
.ce-chef-deals__img-wrap {
  position: relative;
}
.ce-siparisle-temin-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 4;
  display: inline-block;
  background: #1e5a2c;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  padding: 4px 8px;
  border-radius: 3px;
  pointer-events: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.ce-siparisle-temin-badge .fa {
  margin-right: 4px;
}


/* Tur 4 — masaüstü CLS: vitrin kartları (önceki kural yalnızca .cat-detail-products-box-img idi) */
.cat-detail-products-box-caturunvitrin-img,
.cat-detail-products-box-caturunvitrin-img-3,
.cat-detail-products-box-caturunvitrin-img-4,
.cat-detail-products-box-caturunvitrin-img-5,
.cat-detail-products-box-caturunvitrin-img-6 {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.cat-detail-products-box-caturunvitrin-img img,
.cat-detail-products-box-caturunvitrin-img-3 img,
.cat-detail-products-box-caturunvitrin-img-4 img,
.cat-detail-products-box-caturunvitrin-img-5 img,
.cat-detail-products-box-caturunvitrin-img-6 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Şef/barista fırsat görselleri: min-height, yükleme sonrası max-height'e kaymasın */
.ce-chef-deals__img-wrap {
  min-height: 140px;
  box-sizing: border-box;
}
.ce-chef-deals__img-wrap img {
  max-height: 140px;
}
.ce-chef-deals__featured .ce-chef-deals__img-wrap {
  min-height: 220px;
}
.ce-chef-deals__featured .ce-chef-deals__img-wrap img {
  max-height: 220px;
}
.ce-chef-deals__card--compact .ce-chef-deals__img-wrap {
  min-height: 140px;
}
.ce-chef-deals__cell--bottom-wide .ce-chef-deals__img-wrap {
  min-height: 200px;
}
.ce-chef-deals__cell--bottom-wide .ce-chef-deals__img-wrap img {
  max-height: 200px;
}
@media screen and (max-width: 767px) {
  .ce-chef-deals__img-wrap,
  .ce-chef-deals__card--compact .ce-chef-deals__img-wrap,
  .ce-chef-deals__featured .ce-chef-deals__img-wrap {
    min-height: 118px;
  }
  .ce-chef-deals__featured .ce-chef-deals__img-wrap img {
    max-height: 118px;
  }
  .ce-chef-deals__card--compact .ce-chef-deals__img-wrap img {
    max-height: 108px;
  }
}

/* Ürün video sekmesi: iframe oranını ayır */
#tabs-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  border: 0;
}

/* Header arama öneri görselleri */
#searchBox img,
.results img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}
