.catalog {
    margin: 210px 0;

}

.catalog__container {
    padding: 0 34px;
}

.catalog__title {
    margin-bottom: 60px;
}

.catalog__wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.catalog__item {
    background: #F5F5F5;
    height: 255px;
    flex: 0 0 19%;
    position: relative;
    overflow: hidden;
}

.catalog__item-text {
    color: #091D3E;
    padding: 20px 10px 0 21px;
}

.main-content__container .catalog__item-text {
    padding: 10px 10px 0 10px;
}

.catalog__item-img {
    display: inline-block; 
    overflow: hidden;
    position: absolute;
    bottom: -3px;
}

.catalog__item-img {
    transition: 1s; 
    display: block; 
}

.catalog__item-img img {
    width: 180px;
    height: auto;
    object-fit: contain;
}


.catalog__item:hover .catalog__item-img {
    transform: scale(1.1); 
}

.main-catalog-link {
    display: flex;
    align-items: center;
    margin-top: 20px;
    flex: 0 0 100%;
    border: none;
    justify-content: flex-end;
    color: #1A3C5E;
    height: 30px;
    background: none;
}


.main-catalog-text span {
    position: relative;
    margin-right: 33px;
}

.main-catalog-text {
    position: relative;
}

.main-catalog-text::before {
    content: "";
    position: absolute;
    width: 100%;
    background-color: #1A3C5E;
    height: 1px;
    bottom: 0px;
}

.main-catalog-text span::after  {
    content: "";
    position: absolute;
    border: solid #1A3C5E;
    border-width: 0 1.5px 1.5px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    top: 11px;
    right: -30px;
}


@media (max-width: 1200px) {
    .catalog__wrapper {
        justify-content: start;
    }

    .catalog__item {
        flex: 0 0 224px;
        height: 270px;
        margin-bottom: 10px;
    }

    .catalog__item:not(:last-child) {
        margin-right: 10px;
    }

    .main-catalog-link {
        margin-top: 0;
        background: #f5f5f5;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .catalog__wrapper {
        flex-wrap: wrap;
    }
    .catalog {
        margin: 90px 0;
    }

    .catalog__item {
        height: 255px;
    }
}


@media (max-width: 768px) {
    .main-catalog-text span::after {
        top: 9px;
    }

    .catalog__title {
        margin-bottom: 40px;
    }

    
    .main-catalog-text span {
        margin-right: 15px;
    }
    
    .main-catalog-text span::after {
        right: -11px;
    }
}

@media (max-width: 598px) {
    .catalog__item {
        height: 194px;
        flex: 0 0 210px;
    }
      
    .catalog__item-img img {
        width: 155px;
    }
}


@media (max-width: 480px) {
    .catalog__item {
        flex: 0 0 180px;
        margin-bottom: 9px;
    }
}

@media (max-width: 480px) {
    .catalog__item {
        flex: 0 0 167px;
        margin-bottom: 9px;
    }
}

@media (max-width: 390px) {
    .catalog__wrapper {
        justify-content: space-between;
    }
    .catalog__item:not(:last-child) {
        margin-right: 0;
    }
}

@media (max-width: 370px) {
    .catalog__item {
        flex: 0 0 160px;
    }
}


@media (max-width: 356px) {
    .catalog__item {
        flex: 0 0 200px;
    }
 
    .catalog__item.main-catalog-link {
        align-items: center;
        justify-content: flex-start;
        height: 40px;
        background: none;
    }


}


/*** product-details ***/
         
.product__inner-left-rest { width: 520px; }
.detail-card__content-rest { width: calc(100% - 540px); }
.detail-card__content-rest .detail-card__title-wrapper { margin-bottom: 10px; }
.detail-card__content-rest .detail-card__price { font-size: 38px; width: 32%; float: left; margin-bottom: 0; }
.detail-card__content-rest .detail-card__available { width: 28%; float: left; padding-top: 3px; }
.detail-card__content-rest .detail-card__available a { width: 100%; display: block; margin: 7px 0 0 0; text-align: left; }
.detail-card__content-rest .detail-card__online { display: block; width: 100%; font-size: 16px; color: #D80202; line-height: 26px; }
.detail-card__content-rest .detail-card__order { margin-top: 40px; margin-bottom: 35px; }
.detail-card__link { padding: 10px; }

.content-carousel { width: 100%; display: block; margin: 0 auto; }
.owl-carousel { width: calc(100% - 100px); float: right; }

.brands.owl-carousel { width: calc(100% - 5px); float: right; }
/*
.owl-carousel div { width: 100%; }
*/
.owl-carousel .owl-dots { position: absolute; top: 0; left: -100px; width: 80px; height: 100%; overflow-y: auto;
            -ms-overflow-style: none;  /* IE and Edge */
            scrollbar-width: none;  /* Firefox */
}
.owl-carousel .owl-dots::-webkit-scrollbar { display: none; } /* Hide scrollbar for Chrome, Safari and Opera */
.owl-carousel .owl-dot { background-size: cover !important; background-position: center !important;
            background-repeat: no-repeat !important; height: 100px; width: 100%; margin: 5px 0; border: 1px solid #ccc !important;
}
.owl-carousel .owl-dot.active { border: 1px solid #2c9bda !important; }
.owl-carousel .owl-item img { width: 100%; height: 100%; object-fit: contain; }
.product-wish { right: unset; left: 490px; }
.product-stickers { display: flex; width: 100%; padding-top: 50px; justify-content: center; }
.product-stickers img { max-width: 212px; height: auto; }
.product-stickers img:first-child { margin-right: 25px; }
.product-stickers-mobile { display: none; width: 100%; padding-bottom: 30px; justify-content: center; }
.product-stickers-mobile img { max-width: 200px; height: auto; }
.product-stickers-mobile img:first-child { margin-right: 10px; }

.detail-card__details-descr.body-text a { margin-right: 5px; display: flex; flex-direction: column; }

.tab__select { margin-left: 0; }

@media(max-width: 1124px) {
    .detail-card__title { width: 100%; margin-bottom: 30px; font-size: 20px; }
    .detail-card__wrapper { flex-direction: unset; }
    .product__inner-left-rest { width: 400px; }
    .detail-card__content-rest { width: calc(100% - 420px); }
    .detail-card__content-rest .detail-card__online { font-size: 14px; }
    .detail-card__order-btn.right { margin-left: 32px; }
    .product-wish { left: 370px; }
}
@media(max-width: 992px) {
    .detail-card__wrapper { flex-direction: column; }
    .product__inner-left-rest { width: 100%; max-width: 540px; margin-bottom: 40px; }
    .detail-card__content-rest { width: 100%; }
    .product-wish { left: 510px; }
}
@media(max-width: 768px) {
    .detail-card__order-btn.right { margin-left: 0px; }
    .detail-card__order .calc-quantity { margin-top: 40px; }
    .card__item-reviews { padding-left: 0; }
    .card__item-reviews::before { left: -21px; }
    .detail-card__available { margin-top: 0; }
    .detail-card__content-rest .detail-card__online { font-size: 16px; }
    .tab__detail-text { padding: 0 0 0 10px; }
}
@media(max-width: 540px) {
    .product-wish { left: unset; right: 10px; }
    .product-stickers { display: none; }
    .product-stickers-mobile { display: flex; }

    .calc-quantity { display: none; }
    #product .detail-card__order-btn { width: 48%; margin-right: 1%; margin-left: 1%; }

    .detail-card__price, .detail-card__available { float: none !important; margin-bottom: 20px !important; }
    .detail-card__price { width: 90% !important; }
    .detail-card__available { width: 50% !important; }
    .detail-card__online { width: 100%; }
    .detail-card__content-rest .detail-card__order { margin-top: 0; }
    .detail-card__order .detail-card__order-btn { margin-top: 20px; }

    .product-stickers-mobile img { max-width: 48%; height: auto; }
    .product-stickers-mobile img:first-child { margin-right: 2%; }

    .detail-card__details-descr.body-text a { margin-right: 10px; }
}
@media(max-width: 475px) {
    .owl-carousel { width: 100%; margin-bottom: 60px; }
    .owl-carousel .owl-dots { display: flex; top: unset; bottom: -100px; left: 0; width: 100%; overflow-x: auto; height: 100px; flex-direction: column; flex-wrap: wrap; }
    .owl-carousel .owl-dot { width: 60px !important; height: 60px; margin: 5px; }
    .detail-card__price { margin-left: 0 !important; }
}

.calc-quantity__btn { color: #1a3c5e; }

.detail-card__available_limit { color: #ff9800; font-weight: 600; }
.detail-card__available_limit::before {
    background-color: #ff9800;
    animation: pulsate 1.5s ease-out infinite;
}
@-webkit-keyframes pulsate {
            0%   { box-shadow: 0 0 0 #ff9800; }
            50%  { box-shadow: 0 0 20px #ff9800; }
            100% { box-shadow: 0 0 0 #ff9800; }
}
