.catalog-card-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px; }
.catalog-card-actions .product-cart-btn { display: inline-flex; justify-content: center; align-items: center; width: 100%; max-width: 240px; min-height: 36px; padding: 6px 10px; font-size: 14px; text-align: center; line-height: 1.3; }
.catalog-material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
#catalogMaterialModal .catalog-material-option { border: 2px solid #dee2e6; border-radius: 8px; background: #fff; color: #212529; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
#catalogMaterialModal .catalog-material-option img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
#catalogMaterialModal .catalog-material-option.active { border-color: #32b87d; background: #effaf4; }
#catalogMaterialModal .catalog-material-option:focus-visible { outline: 3px solid #5b84c9; outline-offset: 2px; }
#catalogMaterialModal .modal-body { min-width: 0; }
#catalogMaterialModal [data-cm-price] { overflow-wrap: anywhere; }
.catalog-card-actions .product-cart-btn.btn-added { background: #32b87d; border-color: #32b87d; color: #fff; }
.catalog-card-actions .product-cart-btn.btn-added:hover { background: #279563; border-color: #279563; color: #fff; }
#catalogMaterialModal [data-cm-add] { min-height: 36px; padding: 6px 14px; font-size: 14px; }
@media (max-width: 575px) { #catalogMaterialModal .modal-footer { align-items: stretch; flex-direction: column; } }

/* Компактный счётчик анонса: общие обработчики корзины, отдельное оформление. */
.catalog-card-actions .catalog-card-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
}
.catalog-card-quantity .btn-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #333;
    color: #fff;
    font-size: 14px;
    line-height: 1;
}
.catalog-card-quantity .js-cart-qty-input {
    flex: 0 0 60px;
    width: 60px;
    height: 38px;
    padding: 6px;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}
.catalog-card-quantity .js-cart-qty-input::-webkit-inner-spin-button,
.catalog-card-quantity .js-cart-qty-input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}
.catalog-card-quantity .btn-counter:focus-visible {
    outline: 3px solid #5b84c9;
    outline-offset: 2px;
}
