/*описание для блока новостей на главной*/
.t-section__descr {
    max-width: 100% !important;
}
/*фон для блока по ланшафтному дизайну*/
div#coverCarry1860665421 {
    background-attachment: fixed !important;
}
/* меню категорий */
.t-menu-base__list {
    justify-content: center;
}
/* меню категорий на мобильных устройствах */
@media screen and (max-width: 960px) {
    #rec1819241001 .t-menu-base__leftwrapper {
        width: 100%;
        justify-content: center;
    }
    
    #rec1819241001 .t-menu-base__list {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        padding: 10px 0;
        gap: 0 !important;
    }
    
    #rec1819241001 .t-menu-base__list-item {
        flex: 0 0 auto;
        margin: 5px;
    }
    
    #rec1819241001 a.t-menu__link-item {
        font-size: 14px !important;
        line-height: 1.3 !important;
        padding: 8px 12px;
        white-space: nowrap;
    }
    
    #rec1819241001 a.t-menu__link-item:hover {
        background-color: #e0e0e0 !important;
    }
    
    #rec1819241001 .t-menu-base__maincontainer {
        padding: 10px;
    }
    
    #rec1819241001 .t-menu-base {
        min-height: auto !important;
    }
}


/* Карточка товара — фиксированная ширина для 4 в ряд */
.t-store__card {
    width: calc(25% - 15px); /* Компенсация зазоров */
    min-width: 200px; /* Защита от слишком сильного сжатия */
    margin-right: 20px; /* Создаем горизонтальный отступ */
    background-color: #ffffff;
    border: 1px solid #e2dcd5;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    box-sizing: border-box; /* Важно! padding не увеличивает ширину */
}

/* Убираем margin у каждой 4-й карточки, чтобы они не переносились */
.t-store__card:nth-child(4n) {
    margin-right: 0;
}

/* Остальные стили остаются как в предыдущем варианте */
.t-store__card:hover {
    box-shadow: 0 12px 30px rgba(99, 65, 24, 0.08);
    border-color: #c0b09a;
    transform: translateY(-4px);
}

.t-store__card__imgwrapper {
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.t-store__card__title {
    font-family: 'PT Serif', 'Georgia', serif !important;
    font-size: 18px;
    font-weight: 500;
    color: #2e4a2c;
    line-height: 1.4;
    margin-bottom: 8px;
    padding: 0 5px;
}

/* Обертка для цены */
.t-store__card__price-wrapper {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    margin-right: 10px;
}

.t-store__card__price .js-product-price {
    font-family: 'PT Serif', serif;
    font-size: 22px;
    font-weight: 600;
    color: #5a3e2b;
}

.t-store__card__price-currency {
    font-size: 16px;
    color: #5a3e2b;
}

.store__card__wrap_txt-and-opts {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.t-store__card__textwrapper {
    padding-top: 0px;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Контейнер кнопки — здесь будет цена и кнопка в ряд */
.t-store__card__btns-wrapper {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border-top: 1px dashed #d9d0c5;
    padding-top: 15px;
}

/* Кнопка */
.t-btnflex.t-btnflex_type_button2 {
    background-color: transparent !important;
    border: 2px solid #7e9a5b !important;
    border-radius: 40px !important;
    color: #2e4a2c !important;
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px !important;
    text-transform: none !important;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    margin-left: auto;
}

.t-btnflex.t-btnflex_type_button2:hover {
    background-color: #7e9a5b !important;
    color: #ffffff !important;
    border-color: #7e9a5b !important;
}

/* Выравнивание высоты карточек */
.t-store__card-list {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; /* Растягивает карточки по высоте родителя */
}

.t-store__card {
    display: flex;
    flex-direction: column;
    height: auto; /* Убираем фиксированную высоту */
    min-height: 100%; /* Минимальная высота на всякий случай */
}

/* Адаптация под планшеты — 2 карточки */
@media screen and (max-width: 960px) {
    .t-store__card {
        width: calc(50% - 15px);
        margin-right: 30px; /* Увеличим отступ для планшетов */
    }
    .t-store__card:nth-child(4n) {
        margin-right: 30px; /* Сбрасываем предыдущее правило */
    }
    .t-store__card:nth-child(2n) {
        margin-right: 0; /* Убираем у четных */
    }
}

/* Адаптация под телефоны — 1 карточка */
@media screen and (max-width: 640px) {
    .t-store__card {
        width: 100%;
        max-width: 320px;
        margin-right: 0 !important;
        margin-left: auto;
        margin-right: auto;
    }
    .t-btnflex.t-btnflex_type_button2 {
        padding: 6px 12px !important;
        min-width: 100px;
    }
}