/* ArterShop desktop v2 / каталог: нативная сетка uCoz.
   DOM verified: #grid > .row > #goods_cont > .goods-list > .list-item.
   No JavaScript, no wrappers, no product markup edits. */
@media (min-width:769px) {
  html.as-desktop-v2 body:not(.as-new-home) #products-wrap {
    min-width:0!important;
  }
  html.as-desktop-v2 body:not(.as-new-home) #products-wrap .ht-product-shop,
  html.as-desktop-v2 body:not(.as-new-home) #products-wrap #grid {
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
  }
  /* The previous rule made this .row a grid. Its ONLY child,
     #goods_cont, then occupied a single narrow track. */
  html.as-desktop-v2 body:not(.as-new-home) #products-wrap #grid > .row {
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    float:none!important;
  }
  html.as-desktop-v2 body:not(.as-new-home) #products-wrap #grid > .row > #goods_cont {
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    float:none!important;
    box-sizing:border-box!important;
  }
  /* Actual grid: only direct uCoz list-item children. */
  html.as-desktop-v2 body:not(.as-new-home) #products-wrap:not(.list) #goods_cont > .goods-list {
    display:grid!important;
    grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr))!important;
    gap:16px!important;
    align-items:stretch!important;
    justify-items:stretch!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    float:none!important;
    height:auto!important;
    box-sizing:border-box!important;
  }
  html.as-desktop-v2 body:not(.as-new-home) #products-wrap:not(.list) #goods_cont > .goods-list::before,
  html.as-desktop-v2 body:not(.as-new-home) #products-wrap:not(.list) #goods_cont > .goods-list::after {
    display:none!important;
    content:none!important;
  }
  html.as-desktop-v2 body:not(.as-new-home) #products-wrap:not(.list) #goods_cont > .goods-list > .list-item {
    display:flex!important;
    flex-direction:column!important;
    grid-column:auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    float:none!important;
    flex:initial!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
  }
  html.as-desktop-v2 body:not(.as-new-home) #products-wrap:not(.list) #goods_cont > .goods-list > .list-item > .product-item {
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:100%!important;
    box-sizing:border-box!important;
  }
  html.as-desktop-v2 body:not(.as-new-home) #products-wrap:not(.list) #goods_cont .product-item .product-image-hover,
  html.as-desktop-v2 body:not(.as-new-home) #products-wrap:not(.list) #goods_cont .product-item .product-image-hover-nostock {
    display:block!important;
    position:relative!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    aspect-ratio:1/1;
    overflow:hidden!important;
  }
  html.as-desktop-v2 body:not(.as-new-home) #products-wrap:not(.list) #goods_cont .product-item .product-image-hover > a,
  html.as-desktop-v2 body:not(.as-new-home) #products-wrap:not(.list) #goods_cont .product-item .product-image-hover-nostock > a {
    display:block!important;
    position:relative!important;
    width:100%!important;
    height:100%!important;
  }
  html.as-desktop-v2 body:not(.as-new-home) #products-wrap:not(.list) #goods_cont .product-item .primary-image {
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    object-fit:contain!important;
  }
  html.as-desktop-v2 body:not(.as-new-home) #products-wrap:not(.list) #goods_cont .product-item .product-text {
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    width:100%!important;
    min-width:0!important;
  }
  html.as-desktop-v2 body:not(.as-new-home) #products-wrap:not(.list) #goods_cont .product-item .product-text h4 {
    min-width:0!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
  }
  html.as-desktop-v2 body:not(.as-new-home) #products-wrap:not(.list) #goods_cont .product-item .wrap-btn-cart {
    margin-top:auto!important;
  }
}
