/*
 * Доработки tupinamba.ge по ТЗ от 13.11.2026.
 * Подключается в functions.php после build/css/style.min.css (тот билд не пересобираем).
 */

/* Общая кнопка More: одна, по центру, без переноса — в т.ч. для более длинного грузинского текста
   (ТЗ №1, №2 и уточнение к №15 от 18.11.2026) */
.btn-more {
    min-width: 160px;
    white-space: nowrap;
    text-align: center;
}

/* ТЗ №3. Пара «Request a Call» + WhatsApp/More: на телефоне длинный грузинский текст переносит
   вторую кнопку на новую строку — убираем ей отступ слева, чтобы она не съезжала вбок */
@media screen and (max-width: 767px) {
    .btn-request-call {
        margin-right: 12px;
        margin-top: 5px;
        margin-bottom: 5px;
    }
    .btn-request-call ~ .m-left-25 {
        margin-left: 0;
        margin-top: 5px;
        margin-bottom: 5px;
    }
}

/* ТЗ №1. Главная, блок «Thinking about renting a coffee machine?»:
   десктоп и планшет в альбомной ориентации — все карточки в один ряд равными колонками;
   планшет в портретной (769–960) — две колонки, третья по центру; телефон — одна колонка (как было) */
@media screen and (min-width: 961px) {
    .home-block-trent .page-sub-catalog--count-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media screen and (min-width: 769px) and (max-width: 960px) {
    .home-block-trent .page-sub-catalog--count-3 > :last-child {
        grid-column: 1 / -1;
        justify-self: center;
        box-sizing: border-box;
        width: calc((100% - 20px) / 2);
    }
}
@media screen and (min-width: 769px) {
    .home-block-trent .page-sub-catalog--count-2 {
        grid-template-columns: repeat(2, minmax(0, 440px));
        justify-content: center;
    }
    .home-block-trent .page-sub-catalog--count-1 {
        grid-template-columns: minmax(0, 440px);
        justify-content: center;
    }
}
