.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.quantity-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    width: 90%;
    max-width: 400px;
}

.quantity-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.quantity-btn {
    background-color: #ff6b6b;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: #ff5252;
}

.quantity-input {
    width: 80px;
    height: 40px;
    text-align: center;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin: 0 10px;
}

.stock-info {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.checkout-btn {
    background-color: #4CAF50;
    color: white;
}

.checkout-btn:hover {
    background-color: #45a049;
}

.cancel-btn {
    background-color: #f44336;
    color: white;
}

.cancel-btn:hover {
    background-color: #da190b;
}

.error-message {
    color: #f44336;
    text-align: center;
    margin-top: 10px;
    display: none;
}