/* Сетка/баннер — productsformainpage подключается через Asset.
   Правки карточек — только #newblackformain, полки не затрагиваем. */

.up_nav .title {
    margin-bottom: 10px;
}

#product4 { grid-area: product4; }
#product5 { grid-area: product5; }
#product6 { grid-area: product6; }
#product7 { grid-area: product7; }

#newblackformain .product-new,
#newblackformain .product-new .item-product-card-mb,
#newblackformain .product-new .old-product-card {
    max-width: 100%;
    width: 100%;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    flex: none;
    margin-bottom: 0;
}

#newblackformain .product-new .item-product-card-mb .products-list-item-mb,
#newblackformain .product-new .products-list-item-mb {
    display: flex !important;
    flex-direction: column !important;
    grid-template-rows: none !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 8px 6px 12px;
    box-sizing: border-box;
}

#newblackformain .product-new .products-list-item__image-mb img,
#newblackformain .product-new .old-product-card img {
    max-width: 100% !important;
    max-height: 160px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

#newblackformain .product-new .cardlev7,
#newblackformain .product-new .products-list-item__title-mb {
    height: auto !important;
    max-height: none !important;
    min-height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.3;
    margin: 8px 0 4px;
    text-align: center;
}

#newblackformain .product-new .products-list-item__footer.even_in_box,
#newblackformain .product-new .products-list-item__footer {
    height: auto !important;
    min-height: 45px;
    margin-top: auto;
    margin-bottom: 0 !important;
    padding: 8px 4px 6px !important;
    overflow: visible !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    box-sizing: border-box;
}

#newblackformain .product-new {
    border: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-self: stretch;
}

#newblackformain .product-new:hover {
    border: none !important;
}

#newblackformain .product-new > .old-product-card.item-product-card-mb {
    flex: 1 1 auto;
    height: 100% !important;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

#newblackformain .product-new .old-product-card .products-list-item-mb {
    flex: 1 1 auto;
    height: 100% !important;
}

#newblackformain .product-new .old-product-card:hover {
    border-color: #ed2690;
}

#newblackformain .product-new .image.image--basket,
#newblackformain .product-new .old-product-card .image.image--basket {
    height: 33px !important;
    min-height: 33px;
    overflow: visible !important;
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-transform: uppercase;
    font-size: 12px;
    color: #ed2690;
}

#newblackformain .product-new .image.image--basket:hover,
#newblackformain .product-new .image.image--basket.in-basket,
#newblackformain .product-new .old-product-card .image.image--basket:hover,
#newblackformain .product-new .old-product-card .image.image--basket.in-basket {
    color: #fff !important;
    background-color: #ed2690 !important;
}

#newblackformain .product-new .image.image--basket:hover .list_title,
#newblackformain .product-new .image.image--basket:hover .list_title span,
#newblackformain .product-new .image.image--basket.in-basket .list_title,
#newblackformain .product-new .image.image--basket.in-basket .list_title a {
    color: #fff !important;
}

#newblackformain .product-new .icon__basket--large.list_title {
    height: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-transform: uppercase !important;
    font-size: 12px;
    font-weight: normal;
    line-height: 1;
    color: inherit;
}

#newblackformain .product-new .icon__basket--large.list_title:hover {
    background-color: transparent !important;
}

#newblackformain .product-new .icon__basket--large.list_title span,
#newblackformain .product-new .icon__basket--large.list_title a {
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    color: inherit;
}

#newblackformain .product-new .add2basket [data-add2basket] span {
    display: flex;
}

#newblackformain .product-new .add2basket [data-add2basket] a {
    display: none;
}

#newblackformain .product-new .add2basket.in-basket [data-add2basket] span {
    display: none;
}

#newblackformain .product-new .add2basket.in-basket [data-add2basket] a {
    display: flex;
    color: #fff !important;
}

#newblackformain .product-new .wishlist-item.buttons-block__like {
    z-index: 60;
    pointer-events: auto;
}

#newblackformain .product-new .marks-product.products-list-item__status {
    z-index: 40;
    pointer-events: none;
}

#newblackformain .product-new .marks-product.products-list-item__status .icon,
#newblackformain .product-new .marks-product.products-list-item__status .legend-item,
#newblackformain .product-new .marks-product.products-list-item__status a {
    pointer-events: auto;
}
