/* ========================================================================
   ГЛАВНАЯ СЕТКА КАРТОЧЕК
   ======================================================================== */

.t778 .js-store-grid-cont .t-store__card-list {
    display: grid !important;
    max-width: 100% !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    box-sizing: border-box;
}

.t778 .t-container {
    max-width: 100% !important;
    padding: 0 40px !important;
    box-sizing: border-box !important;
}

/* Адаптив */
@media (max-width: 1200px) and (min-width: 960px) {
    .t778 .js-store-grid-cont .t-store__card-list {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 959px) {
    .t778 .js-store-grid-cont .t-store__card-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .t778 .t-container {
        padding: 0 20px !important;
    }
    
    .t758 .t-container {
        padding: 0 20px !important;
    }
}

@media (max-width: 640px) {
    .t778 .js-store-grid-cont .t-store__card-list {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 10px !important;
    }
    
     .t778 .t-container {
        padding: 0 20px !important;
    }
    
    .t778 .t-btnflex_smd, .t-btn.t-btnflex_smd, .t-submit.t-btnflex_smd {
        font-size: 13px !important;
    }
    
    .t758 .t-container {
        padding: 0 20px !important;
    }
}

@media (max-width: 480px) {
    .t778 .js-store-grid-cont .t-store__card-list {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 10px !important;
    }
    
    .t778 .t-container {
        padding: 0 10px !important;
    }
    
    img.t-store__card__img.t-store__card__img_second.t-img.loaded {
        display: none !important;
    }
    
    .t758 .t-container {
        padding: 0 10px !important;
    }
    
}


/* Убираем отступы-сепараторы */
.js-store-grid-cont:before,
.js-store-grid-cont:after,
.t-store__grid-separator {
    display: none !important;
}

 /* Делаем карточку тянущейся */
    .js-product.t-store__card {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }
    
    /* внутренняя колонка */
    .t-store__card_wrap_all {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        height: 100% !important;
    }
    
    /* блок текста+кнопки — тоже колонка */
    .t-store__card_wrap_txt-and-btns {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        height: 100% !important;
    }
    
    /* кнопку вниз */
    .t-store__card_btns-wrapper {
        margin-top: auto !important;
    }
    
    /* Выровнять кнопку по низу карточки */
    
    .t-store__card__wrap_txt-and-btns {
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
    }
    
    .t-store__card__btns-wrapper {
        margin-top: auto !important;
    }
    
    .t-store__card__btn {
        margin-bottom: 0px !important;
    }


/* =========================================================================
   КАРТОЧКА — фиксируем высоту и убираем растягивания
   ========================================================================= */

.t-store__card {
    border: 1px solid #E0D6CE !important;
    border-radius: 20px !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    transition: all .35s ease;
    height: auto !important;
    max-width: 100% !important;
}

.t778 .t-col {
    margin-left: 0px; !important;
    margin-right: 0px; !important;
}

.t778 .store__card__wrap_txt-and-opts {
    padding-top: 0px !important;
}

.t778 .t-store__card__textwrapper {
    padding: 0px 30px 10px !important;
}


.t778 .store__card__wrap_txt-and-opts {
    padding-top: opx !important;
}

.t778 .store__card__wrap_txt-and-opts.store__card__has-btns {
    padding-top: opx !important;
}

.t-store__card__img {
    margin: 0 !important;
}
.t-store__card__imgwrapper img {
    width: 100%;
    display: block;
    transition: transform .45s cubic-bezier(.3,.45,.25,1);
}

@media screen and (max-width: 960px) {
    .t-store__grid-cont_mobile-grid .t-col:not(.t-col_8):not(.t-col_12), .t-store__grid-cont_mobile-grid .t-store__stretch-col:not(.t-store__stretch-col_100) {
        width: 100%;
    }
    .t-col {
        padding-left: 0px !important; 
        padding-right: 0px !important;
    }

    .t-store__card__btn {
        margin-bottom: 0px !important;
    }
}

/* Premium hover */
.t-store__card:hover .t-store__card__imgwrapper img {
    transform: scale(1.06);
}
.t-store__card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.t-store__card {
    transition: all 0.3s ease !important;
}


/* Контент */
.t778 .t-store__card__textwrapper {
    padding: 0px 30px 10px !important;
    flex-grow: 0 !important;
}

/* Заголовок */
.t778 .js-store-prod-name {
    font-size: 20px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
}


/* Описание */
.t778 .js-store-prod-descr {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: rgba(47, 47, 47, 1) !important;
    margin-top: 16px !important;
    line-height: 1.4 !important;
}

.t778 .t-store__card__price-wrapper {
    margin-top: 24px !important;
}

@media screen and (max-width: 959px) {
    .t778 .js-store-prod-descr {
        font-size: 14px !important;
    }
}

/* =========================================================================
   КНОПКА — прижимаем вниз и делаем premium-appearance
   ========================================================================= */

.t-store__card__btn-wrapper {
    width: 100% !important;
    margin-top: auto !important;
    padding: 0 !important;
}

/* Кнопка на всю ширину карточки*/
    .t-store__card__wrap_txt-and-btns a {
        width: 100% !important;
    }

.t-store__card__btn-wrapper .t-btn {
    width: 100% !important;
    border-radius: 0 !important;
    height: 54px !important;
    background: rgba(255,255,255,0.15) !important;
    color: #fcfcfc !important;
    opacity: 0;
    transform: translateY(20px);
    transition: all .35s ease;
}

.t778 .t-store__card__btns-wrapper {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

    .t-store__card:hover .t-store__card__btn-wrapper .t-btn {
        opacity: 1;
        transform: translateY(0);
        background: rgba(255,255,255,0.2) !important;
    }

    .t706__cartwin-content {
        border-radius: 16px !important;
    }
    
    .t706__orderform  .t-btnflex.t-btnflex_type_submit {
        border-radius: 12px !important;
    }
    
    .t706__orderform .t-btnflex__text {
        text-transform: uppercase;
        FONT-WEIGHT: 500 !important;
        font-family: 'Nunito' !important;
    }
    
    @media screen and (max-width: 479px) {
        .t778 .store__card__wrap_txt-and-opts.store__card__has-btns {
            padding-top: 20px !important;
        }
        
        .t778 .t-store__card__textwrapper {
            padding: 0px 20px 10px !important;
        }
    }
    
    .t-store__card__imgwrapper img {
        border-radius: 16px !important;
        border-bottom: solid 1px #E0D6CE !important;
    }