.card .buy:has(.catalog-buy-controls) {
    flex-wrap: wrap;
}
.catalog-buy-controls,
.catalog-quantity {
    display: flex;
    align-items: stretch;
}
.catalog-buy-controls {
    flex-wrap: wrap;
    gap: 8px;
    margin-inline-start: auto;
}
.card .catalog-quantity {
    border: 1px solid var(--line, #e4e7e7);
    border-radius: 3px;
    overflow: hidden;
}
.card .catalog-quantity button,
.card .catalog-quantity input {
    box-sizing: border-box;
    min-height: 38px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: var(--ink, #343837);
    font: inherit;
    text-align: center;
}
.card .catalog-quantity button {
    min-width: 32px;
    padding: 0;
}
.card .catalog-quantity input {
    appearance: textfield;
    width: 44px;
    padding: 0 2px;
    border-inline: 1px solid var(--line, #e4e7e7);
}
.card .catalog-quantity input::-webkit-inner-spin-button,
.card .catalog-quantity input::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}
.card .catalog-buy-controls .add {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    width: auto;
    text-decoration: none;
}
.card .catalog-buy-controls [hidden] { display: none; }
@media (pointer: coarse) {
    .card .catalog-quantity button,
    .card .catalog-quantity input,
    .card .catalog-buy-controls .add { min-height: 44px; }
    .card .catalog-quantity button { min-width: 40px; }
    .card .catalog-quantity input { font-size: 16px; }
}

/* Bitrix catalog.section: media above the title, then tasting notes and purchase controls. */
.card.card--product-tile {
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.card--product-tile .pic {
    background: #fff;
}

.card--product-tile .card-body h2 {
    font-size: clamp(17px, 1.6vw, 23px);
    line-height: 1.24;
}

.card--product-tile .taste {
    gap: 8px;
}

.card--product-tile .taste b {
    letter-spacing: .04em;
    color: #737373;
}

.card--product-tile .product-fact {
    color: var(--sbm-brand-muted, #737373);
}

.card--product-tile .catalog-buy-controls {
    justify-content: flex-end;
}

.card .catalog-in-cart.add {
    background: var(--sbm-brand-blue-fill, #1785ab);
    color: #fff;
}

.card .catalog-in-cart.add:hover {
    background: #126e8f;
    color: #fff;
}
