/* cart-styles.css */
/* Блок управления количеством */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-controls button {
    min-width: 130px;
}

.quantity-input {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.quantity-input input {
    width: 70px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding: 1px 5px;
    -moz-appearance: textfield;
    font-weight: bold;
    font-size: 16px;
}

.quantity-input input::-webkit-outer-spin-button,
.quantity-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart {
    padding: 8px 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.add-to-cart.request {
    background: #FF9800;
}

/* Кнопки действий с корзиной */
.cart-action {
    min-width: 120px;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
}

.cart-action .fa-spinner {
    display: inline-block;
    width: 100%;
    text-align: center;
}

/* Уведомления */
.cart-notification {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    position: relative;
}

.cart-notification.cart {
    border: 1px solid #e0e0e0;
    color: #1D387A;
    font-size: 12px;
}

.cart-notification.request {
    border: 1px solid #e0e0e0;
}

.cart-notification.error {
    background-color: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
}

.notification-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    color: red;
}