/* Кнопки в списках товаров (главная, каталог, «похожие», модалка комплекта) — мобайл, в стиле карточки v2:
   44px, скругление 12px, заливка #0091bf, 15px 700, одна строка. Подключается из inc/15-mobile-card-v2.php. */
@media (max-width: 768px) {
    ul.products li.product a.button.add_to_cart_button,
    ul.products li.product a.button.product_type_variable,
    ul.products li.product a.button.product_type_simple {
        display: flex !important; align-items: center; justify-content: center;
        height: 44px !important; min-height: 0 !important; padding: 0 10px !important;
        border: 0 !important; border-radius: 12px !important; background: #0091bf !important; color: #fff !important;
        font: 700 15px/1.2 Montserrat, sans-serif !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        box-shadow: none !important;
    }
    ul.products li.product a.button.add_to_cart_button:active { background: #007ea8 !important; }

    /* Категория: «Нужна помощь с выбором?» (smg-cat.js) — как блок в карточке товара */
    .term-description.smg-cat-desc-hidden { display: none !important; }
    .smg-cat-help { margin: 4px 0 20px; padding: 0 0 20px; border-bottom: 1px solid #e6eaec; }
    .smg-cat-help__title { font: 700 18px/1.25 Montserrat, sans-serif; color: #211c1d; margin: 0 0 6px; }
    .smg-cat-help__text { font-size: 14px; line-height: 1.4; color: #6b6f74; margin: 0 0 12px; }
    .smg-cat-help__btns { display: flex; gap: 10px; }
    a.smg-cat-help__btn {
        flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px;
        height: 48px; border: 1px solid rgba(11, 133, 169, .24); border-radius: 12px; background: #fff;
        color: #0095cb !important; font: 600 15px/1 Montserrat, sans-serif; text-decoration: none !important;
    }
    a.smg-cat-help__btn:active { background: #f1f9fc; }
    .smg-cat-toast {
        position: fixed; left: 16px; right: 16px; bottom: 96px; z-index: 10000; padding: 12px 14px;
        border-radius: 12px; background: #211c1d; color: #fff; font-size: 14px; line-height: 1.35;
        opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s;
    }
    .smg-cat-toast.is-on { opacity: 1; transform: none; }
}
.smg-cat-help[hidden] { display: none !important; }

/* Ровные карточки в сетке (телефон): «В 1 клик» под кнопкой добавляет карточке 12px (40px зона минус
   отрицательные отступы -15/-13 из smg-quick.css). Где ссылки нет или она скрыта (вариативный товар без
   выбранного варианта — то же условие, что в smg-quick.css), отдаём эти 12px кнопке снизу — цены и кнопки в ряду на одной линии. */
@media (max-width: 767px) {
    ul.products li.product.mini:not(:has(.smg-q1-open--loop)) a.button,
    ul.products li.product.mini.product-type-variable:not(:has([data-selected]:not([data-selected=""]))) a.button {
        margin-bottom: 27px !important;
    }
}
