/* ALTAY P30 - KONTROLLÜ MENÜ GRID + ÜRÜN GÖRSEL FİNAL
   Sadece font son katman, ana/kategori ürün görselleri ve kategori 3'lü grid. */
: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;
}
html body,
html body *:not(svg):not(path):not(circle):not(rect):not(line):not(polyline):not(polygon):not(use),
html body input,
html body button,
html body select,
html body textarea{
  font-family:Arial, Helvetica, sans-serif!important;
  font-synthesis:none!important;
  text-rendering:auto!important;
}
html body .home-collection-mini,
html body .home-collection-mini *,
html body [data-altay-collection-card],
html body [data-altay-collection-card] *,
html body .section-head h2,
html body .altay-loop-title,
html body .altay-loop-cat,
html body .altay-loop-price,
html body .price{
  font-family:Arial, Helvetica, sans-serif!important;
}
html body .home-collection-mini-copy small,
html body [data-altay-collection-subtitle]{font-weight:700!important;letter-spacing:0!important;text-transform:none!important;}
html body .home-collection-mini-copy strong,
html body [data-altay-collection-title]{font-weight:800!important;letter-spacing:-.01em!important;text-transform:none!important;}

/* Ürün görsel alanları: gridin içine tam oturur, gri boşluk bırakmaz */
html body ul.products li.product .altay-loop-inner{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
html body ul.products li.product .altay-loop-media,
html body .home-row-section ul.products li.product .altay-loop-media,
html body .altay-catalog-v111__products ul.products li.product .altay-loop-media{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  aspect-ratio:4/5!important;
  height:auto!important;
  min-height:0!important;
  display:block!important;
  position:relative!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
  background:#05080f!important;
  border-radius:22px 22px 0 0!important;
  box-sizing:border-box!important;
}
html body ul.products li.product .altay-loop-media-link,
html body ul.products li.product .altay-loop-media .main,
html body ul.products li.product .altay-loop-media .hover,
html body .home-row-section ul.products li.product .altay-loop-media-link,
html body .altay-catalog-v111__products ul.products li.product .altay-loop-media-link{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
html body ul.products li.product .altay-loop-media img,
html body .woocommerce ul.products li.product a 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 ul.products li.product .altay-loop-media img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  min-width:0!important;
  object-fit:cover!important;
  object-position:center top!important;
  background:#05080f!important;
  border-radius:0!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  transition:none!important;
}
html body ul.products li.product .altay-loop-body{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}

/* ANA SAYFA ürünleri: 3'lü net grid */
@media (min-width:1025px){
  html body .home-row-section ul.products,
  html body ul.products.altay-home-products-grid,
  html body .homepage-clean ul.products.altay-home-products-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:28px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    list-style:none!important;
    align-items:start!important;
  }
  html body .home-row-section ul.products>li.product,
  html body ul.products.altay-home-products-grid>li.product{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    float:none!important;
    clear:none!important;
    margin:0!important;
    grid-column:auto!important;
  }
}

/* KATEGORİ/MENÜ sayfaları: masaüstünde kesin 3'lü grid */
@media (min-width:1025px){
  html body.tax-product_cat .altay-catalog-v111,
  html body.post-type-archive-product .altay-catalog-v111{
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  html body.tax-product_cat .altay-catalog-v111__container,
  html body.post-type-archive-product .altay-catalog-v111__container,
  html body.tax-product_cat .container-narrow,
  html body.post-type-archive-product .container-narrow{
    width:min(1560px,calc(100vw - 56px))!important;
    max-width:min(1560px,calc(100vw - 56px))!important;
    min-width:0!important;
    margin-left:auto!important;
    margin-right:auto!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
  html body.tax-product_cat .altay-catalog-v111__shell,
  html body.post-type-archive-product .altay-catalog-v111__shell{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
  html body.tax-product_cat .altay-catalog-v111__layout,
  html body.post-type-archive-product .altay-catalog-v111__layout{
    display:grid!important;
    grid-template-columns:250px minmax(0,1fr)!important;
    gap:24px!important;
    align-items:start!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
  html body.tax-product_cat .altay-filter-v111,
  html body.post-type-archive-product .altay-filter-v111{
    width:250px!important;
    max-width:250px!important;
    min-width:0!important;
  }
  html body.tax-product_cat .altay-catalog-v111__products,
  html body.post-type-archive-product .altay-catalog-v111__products{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
  html body.tax-product_cat .altay-catalog-v111__products ul.products,
  html body.post-type-archive-product .altay-catalog-v111__products ul.products,
  html body.tax-product_cat ul.products.altay-menu-products-grid-v23,
  html body.post-type-archive-product ul.products.altay-menu-products-grid-v23,
  html body.tax-product_cat .woocommerce ul.products,
  html body.post-type-archive-product .woocommerce ul.products{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(210px,1fr))!important;
    grid-auto-flow:row!important;
    gap:24px!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    list-style:none!important;
    float:none!important;
    clear:none!important;
    overflow:visible!important;
    align-items:start!important;
    box-sizing:border-box!important;
  }
  html body.tax-product_cat .altay-catalog-v111__products ul.products>li.product,
  html body.post-type-archive-product .altay-catalog-v111__products ul.products>li.product,
  html body.tax-product_cat .woocommerce ul.products>li.product,
  html body.post-type-archive-product .woocommerce ul.products>li.product,
  html body.tax-product_cat ul.products>li.product,
  html body.post-type-archive-product ul.products>li.product{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    float:none!important;
    clear:none!important;
    display:block!important;
    margin:0!important;
    padding:0!important;
    grid-column:auto!important;
    box-sizing:border-box!important;
  }
  html body.tax-product_cat ul.products>li.product.first,
  html body.tax-product_cat ul.products>li.product.last,
  html body.post-type-archive-product ul.products>li.product.first,
  html body.post-type-archive-product ul.products>li.product.last{
    clear:none!important;
    float:none!important;
  }
}

/* Tablet ve mobil korunur */
@media (max-width:1024px){
  html body .altay-catalog-v111__layout{grid-template-columns:1fr!important;}
  html body .altay-filter-v111{width:100%!important;max-width:100%!important;}
  html body .altay-catalog-v111__products ul.products,
  html body .home-row-section ul.products,
  html body .woocommerce ul.products,
  html body ul.products.altay-home-products-grid,
  html body ul.products.altay-unified-products-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:16px!important;
  }
}
@media (max-width:680px){
  html body .altay-catalog-v111__products ul.products,
  html body .home-row-section ul.products,
  html body .woocommerce ul.products,
  html body ul.products.altay-home-products-grid,
  html body ul.products.altay-unified-products-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  html body ul.products li.product .altay-loop-media{border-radius:18px 18px 0 0!important;}
}
