/**
 * Quantity stepper — minus / plus controls
 */

.quantity--stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-md);
    background: var(--white);
    overflow: hidden;
}

.quantity--stepper .qty {
    width: 48px;
    min-height: 40px;
    padding: 8px 4px;
    border: 0;
    border-inline: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
    color: var(--color-title);
    font-family: var(--entities-font);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.quantity--stepper .qty:focus {
    outline: 2px solid var(--green-90);
    outline-offset: -2px;
    z-index: 1;
}

.quantity--stepper .qty::-webkit-outer-spin-button,
.quantity--stepper .qty::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.quantity__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    padding: 0;
    border: 0;
    background: var(--white-97);
    color: var(--color-title);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.quantity__btn:hover:not(:disabled) {
    background: var(--green-99);
    color: var(--color-primary);
}

.quantity__btn:focus-visible {
    outline: 2px solid var(--green-90);
    outline-offset: -2px;
    z-index: 1;
}

.quantity__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.quantity__btn-icon {
    pointer-events: none;
}
