/* ALTAY P29 - ÜST KATEGORİ FONT + GÖRSEL FİNAL
   Sadece ana sayfadaki üst kategori kartlarını hedefler. */
:root{
  --altay-clean-font-final: Arial, Helvetica, sans-serif !important;
  --altay-premium-font: Arial, Helvetica, sans-serif !important;
  --altay-pv2-font: Arial, Helvetica, sans-serif !important;
  --altay-pv2-heading-font: Arial, Helvetica, sans-serif !important;
}

/* Üst kategori alanındaki Clash/özel font etkisini kesin kapat */
html body .home-collections-strip,
html body .home-collections-strip *,
html body.home .home-collections-strip *,
html body.front-page .home-collections-strip *,
html body .homepage-clean .home-collections-strip *,
html body .home-collection-mini,
html body .home-collection-mini *,
html body .home-collection-mini-copy,
html body .home-collection-mini-copy *,
html body [data-altay-collection-card],
html body [data-altay-collection-card] *{
  font-family:Arial, Helvetica, sans-serif !important;
  font-synthesis:none !important;
  text-rendering:auto !important;
}

/* Üst kategori kartı: taşma yok, görsel/kopya çakışmaz */
html body .home-collections-strip,
html body.home .home-collections-strip,
html body.front-page .home-collections-strip,
html body .homepage-clean .home-collections-strip{
  width:min(1420px,calc(100% - 44px)) !important;
  margin:18px auto 30px !important;
  overflow:visible !important;
}

html body .home-collections-grid,
html body.home .home-collections-grid,
html body.front-page .home-collections-grid,
html body .homepage-clean .home-collections-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:16px !important;
  align-items:stretch !important;
}

html body .home-collection-mini,
html body.home .home-collection-mini,
html body.front-page .home-collection-mini,
html body .homepage-clean .home-collection-mini{
  display:grid !important;
  grid-template-columns:108px minmax(0,1fr) !important;
  align-items:center !important;
  gap:14px !important;
  min-height:104px !important;
  height:104px !important;
  padding:12px 16px !important;
  border-radius:22px !important;
  overflow:hidden !important;
  text-decoration:none !important;
  color:#071020 !important;
  background:#ffffff !important;
  border:1px solid #dde6f0 !important;
  box-shadow:0 12px 30px rgba(7,16,31,.055) !important;
  transform:none !important;
  position:relative !important;
}

html body .home-collection-mini::before,
html body.home .home-collection-mini::before,
html body.front-page .home-collection-mini::before,
html body .homepage-clean .home-collection-mini::before{
  display:none !important;
  content:none !important;
}

html body .home-collection-mini-media,
html body.home .home-collection-mini-media,
html body.front-page .home-collection-mini-media,
html body .homepage-clean .home-collection-mini-media{
  width:108px !important;
  height:76px !important;
  min-width:108px !important;
  max-width:108px !important;
  border-radius:16px !important;
  overflow:hidden !important;
  background:#f2f5f8 !important;
  box-shadow:none !important;
  border:1px solid #e2e8f0 !important;
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:6px !important;
}

html body .home-collection-mini-media::after,
html body.home .home-collection-mini-media::after,
html body.front-page .home-collection-mini-media::after,
html body .homepage-clean .home-collection-mini-media::after{
  display:none !important;
  content:none !important;
}

html body .home-collection-mini-media img,
html body.home .home-collection-mini-media img,
html body.front-page .home-collection-mini-media img,
html body .homepage-clean .home-collection-mini-media img,
html body [data-altay-collection-image]{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  background:transparent !important;
  border-radius:11px !important;
  margin:0 !important;
  padding:0 !important;
  transform:none !important;
  filter:none !important;
}

html body .home-collection-mini-copy,
html body.home .home-collection-mini-copy,
html body.front-page .home-collection-mini-copy,
html body .homepage-clean .home-collection-mini-copy{
  min-width:0 !important;
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  gap:5px !important;
}

html body .home-collection-mini-copy small,
html body.home .home-collection-mini-copy small,
html body.front-page .home-collection-mini-copy small,
html body .homepage-clean .home-collection-mini-copy small,
html body [data-altay-collection-subtitle]{
  display:block !important;
  margin:0 !important;
  color:#68758a !important;
  font-size:13px !important;
  line-height:1.15 !important;
  font-weight:700 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

html body .home-collection-mini-copy strong,
html body.home .home-collection-mini-copy strong,
html body.front-page .home-collection-mini-copy strong,
html body .homepage-clean .home-collection-mini-copy strong,
html body [data-altay-collection-title]{
  display:block !important;
  margin:0 !important;
  color:#071020 !important;
  font-size:20px !important;
  line-height:1.08 !important;
  font-weight:800 !important;
  letter-spacing:-.01em !important;
  text-transform:none !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

html body .home-collection-mini:hover{
  transform:translateY(-2px) !important;
  box-shadow:0 16px 34px rgba(7,16,31,.08) !important;
}

/* Ürün görsellerindeki önceki contain koruması korunur */
html body li.product .altay-loop-media img,
html body .woocommerce ul.products li.product .altay-loop-media img,
html body .home-row-section ul.products li.product .altay-loop-media img,
html body .altay-catalog-v111__products li.product .altay-loop-media img,
html body ul.products li.product img{
  object-fit:contain !important;
  object-position:center center !important;
}

@media (max-width:1024px){
  html body .home-collections-grid,
  html body.home .home-collections-grid,
  html body.front-page .home-collections-grid,
  html body .homepage-clean .home-collections-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media (max-width:680px){
  html body .home-collections-strip,
  html body.home .home-collections-strip,
  html body.front-page .home-collections-strip,
  html body .homepage-clean .home-collections-strip{
    width:calc(100% - 24px) !important;
    margin:14px auto 22px !important;
  }
  html body .home-collections-grid,
  html body.home .home-collections-grid,
  html body.front-page .home-collections-grid,
  html body .homepage-clean .home-collections-grid{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }
  html body .home-collection-mini,
  html body.home .home-collection-mini,
  html body.front-page .home-collection-mini,
  html body .homepage-clean .home-collection-mini{
    grid-template-columns:98px minmax(0,1fr) !important;
    height:96px !important;
    min-height:96px !important;
    padding:10px 12px !important;
  }
  html body .home-collection-mini-media,
  html body.home .home-collection-mini-media,
  html body.front-page .home-collection-mini-media,
  html body .homepage-clean .home-collection-mini-media{
    width:98px !important;
    height:70px !important;
    min-width:98px !important;
    max-width:98px !important;
  }
  html body .home-collection-mini-copy strong,
  html body [data-altay-collection-title]{
    font-size:18px !important;
  }
}
