/* Стили для фиксированного блока с информацией о товаре */
.stick-name-product-block {
    --pt4-image-size: 60px;
    --pt4-image-height: var(--pt4-image-size);
    --pt4-image-width: var(--pt4-image-size);
    --pt4-background-pictures: rgba(0, 0, 0, 0.05);
    background-color: #fff;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.03), 0 20px 40px rgba(0, 0, 0, 0.05);
    display: none;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.stick-name-product-block.active {
    transform: translateY(0);
    display: block;
}



.stick-name-product-block .row {
    margin: 0 auto;
}

.stick-name-product-block .sticky-card {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 16px 0;
}

.stick-name-product-block .sticky-card__info {
    align-items: center;
    display: flex;
    gap: 0 15px;
    flex: 1;
}

.stick-name-product-block .sticky-card__info-image {
    display: flex;
    height: var(--pt4-image-height);
    justify-content: center;
    max-height: var(--pt4-image-height);
    max-width: var(--pt4-image-width);
    position: relative;
    width: var(--pt4-image-width);
    border-radius: 8px;
    overflow: hidden;
}

.stick-name-product-block .sticky-card__info-image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.stick-name-product-block .sticky-card__info-content {
    padding-right: 20px;
    flex: 1;
}

.stick-name-product-block .sticky-card__name-title {
    display: flex;
    font-size: 14px;
    gap: 6px;
    line-height: 20px;
    margin: 0;
}

@media screen and (min-width: 1440px) {
    .stick-name-product-block .sticky-card__name-title {
        flex-direction: row;
        font-size: 18px;
    }
}

.stick-name-product-block .sticky-card__name-brand-text {
    border-bottom: 1px dashed #000;
    display: inline-block;
    font-weight: bold;
}

.stick-name-product-block .sticky-card__name-brand {
    align-self: start;
    cursor: pointer;
}

.stick-name-product-block .sticky-card__spec {
    color: #999;
    display: flex;
    font-size: 12px;
    margin-top: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.stick-name-product-block .sticky-card__rating,
.stick-name-product-block .sticky-card__photo-gallery,
.stick-name-product-block .sticky-card__description,
.stick-name-product-block .sticky-card__consult,
.stick-name-product-block .sticky-card__wishlist {
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #000;
    cursor: pointer;
    display: flex;
    gap: 2px;
    justify-content: center;
    margin-right: 8px;
    padding: 2px 6px;
}

.stick-name-product-block .rating-block__content {
    display: flex;
    align-items: center;
}
.rating-block__content svg{
    width: 12px;
    height: 12px;
}

.stick-name-product-block .rating-block__count {
    margin-left: 3px;
}

.stick-name-product-block .rating-block__text {
    margin-left: 5px;
}

.stick-name-product-block .sticky-card__text-icon {
    align-self: center;
    color: #999;
    display: flex;
    font-size: 14px;
    margin-left: 3px;
}

.stick-name-product-block .product-detail-price-action-block {
    display: flex;
    align-items: center;
}
.stick-name-product-block .row,
.stick-name-product-block .row .sticky-card{
    width: 100%;
}

.stick-name-product-block .product-detail-cart__wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stick-name-product-block .sticky-card__prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
}
.sticky-card__old-price-flag{
    position: absolute;
    bottom:0;
    right:calc(100% + 14px);
    color:#fff;
    background: #ED1B24;
    padding: 4px 4px;
    white-space: nowrap;
    font-size: 12px;
}

.stick-name-product-block .sticky-card__old-price {
    color: #999;
    font-size: 12px;
    text-decoration: line-through;
}

.stick-name-product-block .sticky-card__actual-price {
    font-size: 18px;
    font-weight: bold;
}


.stick-name-product-block .sticky-card__not-available {
    color: #999;
    font-size: 14px;
}

.stick-name-product-block .sticky-card__wishlist {
    color: #999;
    transition: color 0.3s ease;
}

.product-pm.in_favorites .sticky-card__wishlist {
    color: #ff5252;
}

.stick-name-product-block .le-icon {
    width: 16px;
    height: 16px;
}
.product-detail-price-action-block .stick-cart-btn{
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    height: 40px;
    background: linear-gradient(0deg, #FF8F18 0%, #FEAC56 100%);
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    color: #FFFFFF;
    justify-content: center;
}
.product-detail-price-action-block .inCart{
    display: none;
}
.product-detail-price-action-block .product-buy-btn:hover{
    background: linear-gradient(0deg, #FF8F18 0%, #FEC58A 100%);
}
.product-pm.in_cart .product-detail-price-action-block .stick-cart-btn.inCart{
    display: inline-flex;
}
.product-pm.in_cart .stick-cart-btn.product-buy-btn{
    display: none;
}


@media screen and (max-width: 1020px) {
    .sticky-card__info{
        display: none !important;
    }
    .stick-name-product-block .container{
        padding: 0 20px;
    }
    .stick-name-product-block .product-detail-price-action-block,
    .product-detail-price-action-block__button
    {
        width: 100%;
    }
    .stick-name-product-block .product-detail-cart__wrapper{
        justify-content: space-between;
    }
    .sticky-card__actual-price{
        order:1;
    }
    .sticky-card__old-price{
        order: 2;
    }
    .stick-name-product-block .sticky-card{
        padding: 10px 0;
    }
    .product-detail-price-action-block .stick-cart-btn{
        height: 30px;
        font-size: 14px;
    }
    .stick-name-product-block .sticky-card__actual-price{
        font-size: 16px;
    }
    .stick-name-product-block{
        top:unset;
        bottom: 0;
        box-shadow: none !important;
        border-bottom:1px solid #ececec;
    }
    .main-layout-wrapper-product ~ .whatsAppWidget{
        bottom:130px;
    }
    .sticky-card__old-price-flag{
        right:unset;
        left:calc(100% + 10px);
        padding: 2px 2px;
        white-space: nowrap;
        font-size: 10px;
    }
    .stick-cart-btn svg{
        width: 18px;
        height: 18px;
    }
}
@media screen and (max-width: 768px) {
    .stick-name-product-block{
        bottom:54px;
    }
}